/* Identity pages deliberately use no decorative imagery. */
body.identity-active { background: #f7f8f4; }
.identity-active #app { display: flex; flex-direction: column; min-height: 100dvh; }
.identity-active #main { flex: 1; display: flex; flex-direction: column; outline: none; }
.identity-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1280px; width: 100%; padding: 28px 40px; margin-inline: auto; }
.identity-logo { display: block; width: 175px; }
.identity-logo img { width: 100%; height: auto; mix-blend-mode: multiply; }
.identity-back { display: inline-flex; align-items: center; gap: 9px; color: #7a8970; font-size: 12px; }
.identity-back .icon { width: 17px; height: 17px; }
.identity-page { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 32px 24px; }
.identity-card { width: 100%; max-width: 470px; padding: 36px 38px 28px; border: 1px solid #e4eadd; background: #fff; border-radius: 23px; box-shadow: 0 16px 50px #1f402506; }
.identity-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.identity-symbol { display: grid; place-items: center; width: 44px; height: 44px; background: #f0f5e9; border: 1px solid #e9efdf; border-radius: 14px; color: #6d865b; }
.identity-symbol .icon { width: 22px; height: 22px; stroke-width: 1.4; }
.identity-step { color: #8c9981; font-size: 10px; }
.identity-step > span { margin-inline: 7px; color: #ccd5c3; }
.identity-card h1 { color: #24482e; font-size: 27px; line-height: 1.7; letter-spacing: -.6px; font-weight: 650; margin-bottom: 10px; }
.identity-subtitle { color: #7c8b70; font-size: 12px; line-height: 2.2; margin-bottom: 25px; }
.identity-subtitle bdi { font-size: 13px; font-weight: 600; color: #526c46; margin-inline: 3px; }
.identity-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; background: #f5f7f0; border-radius: 12px; margin-bottom: 26px; }
.identity-switch a { display: block; padding: 9px; text-align: center; color: #859477; font-size: 12px; border: 1px solid transparent; border-radius: 9px; }
.identity-switch a.is-active { color: #315733; background: #fff; border-color: #e5ebdc; box-shadow: 0 2px 5px #203e2406; font-weight: 600; }
.identity-field { margin-bottom: 21px; }
.identity-field > label { display: block; font-size: 12px; color: #52694a; margin-bottom: 9px; font-weight: 500; }
.identity-input { display: flex; align-items: center; position: relative; }
.identity-page .identity-field input:not([type=checkbox]) { width: 100%; height: 51px; padding: 12px 15px; border: 1px solid #dfe7d6; border-radius: 11px; background: #fff; color: #304e33; font-size: 15px; outline: none; box-shadow: none; transition: border-color 150ms ease, box-shadow 150ms ease; }
.identity-page .identity-field input::placeholder { color: #b2bca8; opacity: 1; }
.identity-page .identity-field input:focus { border-color: #7d986c; box-shadow: 0 0 0 3px #6d865b0c; }
.identity-page .identity-field input[aria-invalid=true] { border-color: #bf645a; background: #fffdfc; }
.identity-page .identity-field input[dir=ltr] { text-align: left; }
.identity-page .identity-field input[type=password], .identity-page .identity-field input[name=password] { padding-right: 48px; }
.identity-input > button { display: grid; place-items: center; position: absolute; right: 7px; width: 37px; height: 37px; padding: 0; border: 0; border-radius: 8px; background: none; color: #8d9b82; }
.identity-input > button:hover { background: #f0f5e9; }
.identity-input > button .icon { width: 19px; height: 19px; stroke-width: 1.4; }
.identity-hint { display: block; color: #8e9c82; font-size: 10px; margin-top: 7px; line-height: 1.9; }
.identity-field-error { display: block; font-size: 11px; color: #ac5045; line-height: 2; margin-top: 6px; }
.identity-field-error:empty { display: none; }
.identity-terms { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 8px; font-size: 11px; line-height: 2.1; color: #829175; }
.identity-terms input { width: 16px; height: 16px; margin: 4px 0 0; accent-color: #365f35; flex-shrink: 0; }
.identity-terms a { color: #526e44; text-decoration: underline; text-decoration-color: #c7d3b9; text-underline-offset: 4px; }
.identity-message { padding: 11px 13px; border-radius: 9px; background: #f1f6e9; color: #667d53; font-size: 12px; line-height: 2; margin-bottom: 15px; }
.identity-message.is-error { background: #fcf3ef; color: #a65a4c; }
.identity-message[hidden] { display: none; }
.identity-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 51px; background: #254b2d; border: 1px solid #254b2d; border-radius: 11px; padding: 12px 17px; color: #fff; font-size: 13px; font-weight: 500; margin-top: 22px; }
.identity-submit:hover { background: #335e38; border-color: #335e38; }
.identity-submit .icon { width: 18px; height: 18px; }
.identity-local-note { font-size: 10px; color: #94a087; line-height: 2; text-align: center; margin-top: 13px; }
.identity-local-note bdi { color: #5c744c; font-size: 12px; font-weight: 600; }
.identity-card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding-top: 22px; margin-top: 23px; border-top: 1px solid #edf1e6; color: #8a987e; font-size: 11px; }
.identity-small-link { font-size: 11px; color: #567746; }
.identity-small-link:hover { color: #254b2d; }
.identity-page-note { display: flex; align-items: center; gap: 7px; color: #94a087; font-size: 10px; margin-top: 25px; }
.identity-page-note .icon { width: 15px; height: 15px; stroke-width: 1.3; }
.identity-page .identity-code input[name=code] { height: 66px; text-align: center; font-size: 29px; letter-spacing: 17px; padding-left: 30px; font-weight: 500; background: #fcfdf9; }
.identity-code-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8c9c7d; font-size: 11px; margin-top: -5px; }
.identity-code-meta strong { color: #6c815d; font-weight: 500; display: inline-block; min-width: 34px; }
.identity-resend { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: 10px; color: #92a082; }
.identity-resend button { font-size: 11px; color: #587846; border: 0; background: none; padding: 4px 0; }
.identity-resend button:disabled { color: #a8b29d; opacity: 1; }
.identity-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1280px; width: 100%; margin-inline: auto; padding: 24px 40px; font-size: 10px; color: #9da990; }
.identity-footer > div { display: flex; align-items: center; gap: 20px; }
.identity-footer a { color: #8b9b7c; }
.identity-demo { font-size: 10px; color: #8a987e; border-top: 1px solid #edf1e6; margin-top: 22px; padding-top: 15px; }
.identity-demo summary { cursor: pointer; color: #839674; }
.identity-demo p { font-size: 12px; line-height: 2.2; margin-top: 12px; color: #617951; }
.identity-demo small { display: block; font-size: 10px; line-height: 2; color: #98a58b; margin-top: 8px; }
.identity-caps-warning { display: block; color: #ad8046; font-size: 11px; margin-top: -10px; }
.identity-caps-warning[hidden] { display: none; }
/* Both workspaces share a calm, readable dashboard system. */
body.workspace-active { background: #f8faf5; }
.workspace-container { max-width: 1400px; padding-inline: 35px; }
.workspace-container .dash { grid-template-columns: 235px minmax(0,1fr); gap: 30px; padding-block: 35px 55px; }
.workspace-container .sidebar { position: sticky; top: 205px; padding: 20px 13px 13px; border: 1px solid #e6edde; border-radius: 17px; background: #fff; }
.workspace-container .profile-mini { padding: 3px 8px 22px; margin-bottom: 18px; border-color: #edf2e6; }
.workspace-container .avatar { width: 42px; height: 42px; background: #eff5e7; color: #63874e; border: 1px solid #e4edd9; font-size: 17px; }
.workspace-container .profile-mini strong { color: #3d5a36; font-size: 12px; }
.workspace-container .profile-mini p { font-size: 10px; color: #97a58a; direction: ltr; text-align: right; margin-top: 4px; }
.workspace-container .sidebar a,.workspace-container .sidebar button { font-size: 12px; padding: 12px; border-radius: 9px; margin-bottom: 5px; color: #798e6b; }
.workspace-container .sidebar .active { color: #355e2e; background: #f0f5e9; font-weight: 600; }
.workspace-container .sidebar .icon { width: 18px; height: 18px; stroke-width: 1.4; }
.workspace-container .sidebar button[data-action*=logout] { color: #a17865; border-top: 1px solid #edf2e6; padding-top: 17px; margin-top: 12px; border-radius: 0; }
.workspace-container .dash > section { min-width: 0; }
.workspace-container .dash > section > h2 { font-size: 26px; line-height: 1.9; color: #355733; font-weight: 600; }
.workspace-container .dash > section > p { font-size: 12px; color: #8e9e81; margin-top: 5px; }
.workspace-container .stats { gap: 18px; margin-block: 28px; }
.workspace-container .stat { background: #fff; border: 1px solid #e7edde; border-radius: 14px; padding: 23px 20px; box-shadow: none; }
.workspace-container .stat > .icon { width: 22px; height: 22px; color: #91a87e; stroke-width: 1.3; }
.workspace-container .stat strong { font-size: 28px; font-weight: 600; color: #395f31; margin-block: 10px 5px; }
.workspace-container .stat span { color: #899b7b; font-size: 11px; }
.workspace-container .panel { border-color: #e5eddc; border-radius: 15px; background: #fff; padding: 25px; box-shadow: none; }
.workspace-container .sidebar.panel { padding: 20px 13px 13px; }
.workspace-container .section-head h2 { color: #355733; font-size: 25px; }
.workspace-container .section-head h3 { font-size: 16px; font-weight: 600; color: #46633d; }
.workspace-container table { font-size: 12px; }
.workspace-container th { background: #f6f9f1; color: #7d926d; font-weight: 500; padding: 15px 13px; }
.workspace-container td { padding: 16px 13px; color: #637c53; border-color: #edf3e6; }
.workspace-container .badge { font-size: 10px; padding: 5px 10px; border-radius: 25px; }
.workspace-container .btn { border-radius: 9px; }
.workspace-container .empty { background: #fff; border: 1px dashed #dce7d0; border-radius: 15px; }
.workspace-container input:not([type=checkbox]):not([type=radio]):not([type=range]),.workspace-container textarea,.workspace-container select { border-color: #dfe9d4; background: #fcfdf9; min-height: 44px; font-size: 13px; }
.workspace-container label { color: #6c855b; font-size: 12px; }
.workspace-container .address-card { margin-bottom: 18px; }
.workspace-container .address-card p { font-size: 13px; color: #7f9370; line-height: 2.2; }
.workspace-container .address-card small { font-size: 10px; color: #96a78a; }
.workspace-active .admin-head { background: #fff; color: #819474; border-bottom: 1px solid #e4ecdb; padding-block: 18px; }
.workspace-active .admin-head .logo { width: 165px; padding: 0; }
.workspace-active .admin-head .btn { color: #708b5d; border-color: #e0e9d4; background: #f6f9f1; font-size: 11px; }
@media (max-width: 1000px) {
 .workspace-container .dash { grid-template-columns: 1fr; gap: 22px; }
 .workspace-container .sidebar { position: static; display: flex; overflow-x: auto; gap: 7px; }
 .workspace-container .sidebar .profile-mini { display: none; }
 .workspace-container .sidebar a,.workspace-container .sidebar button { min-width: max-content; width: auto; margin: 0; white-space: nowrap; }
 .workspace-container .sidebar button[data-action*=logout] { border-top: 0; padding: 12px; margin: 0; }
}
@media (max-width: 760px) {
 .identity-header { padding: 23px 22px; }
 .identity-logo { width: 145px; }
 .identity-back { font-size: 10px; gap: 6px; }
 .identity-back .icon { width: 15px; height: 15px; }
 .identity-page { padding: 20px; }
 .identity-card { padding: 28px 24px 24px; border-radius: 18px; max-width: 470px; }
 .identity-card h1 { font-size: 24px; }
 .identity-subtitle { font-size: 12px; line-height: 2.2; }
 .identity-card-top { margin-bottom: 20px; }
 .identity-step { font-size: 9px; }
 .identity-field { margin-bottom: 20px; }
 .identity-page .identity-field input:not([type=checkbox]) { font-size: 16px; }
 .identity-page .identity-code input[name=code] { font-size: 29px; }
 .identity-local-note { font-size: 9px; }
 .identity-resend { gap: 7px; }
 .identity-footer { padding: 22px; flex-direction: column; gap: 12px; font-size: 9px; }
 .identity-page-note { margin-top: 22px; font-size: 9px; }
 .workspace-container { padding-inline: 18px; }
 .workspace-container .dash { padding-block: 22px 35px; gap: 22px; }
 .workspace-container .dash > section > h2 { font-size: 22px; }
 .workspace-container .stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 22px; }
 .workspace-container .stat { padding: 18px 15px; }
 .workspace-container .stat strong { font-size: 25px; }
 .workspace-container .stat span { font-size: 10px; }
 .workspace-container .panel { padding: 18px; }
 .workspace-container .sidebar.panel { padding: 9px; }
 .workspace-container .sidebar a,.workspace-container .sidebar button { font-size: 11px; padding: 11px; }
 .workspace-container .section-head { flex-wrap: wrap; }
 .workspace-container .section-head h2 { font-size: 22px; }
 .workspace-container .section-head .row { flex-wrap: wrap; gap: 8px; }
 .workspace-container .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .identity-page .identity-field input { transition: none; } }
