:root {
    color-scheme: light;
    --ink: #1b302e;
    --muted: #647672;
    --line: #dce5df;
    --paper: #fbfcf8;
    --canvas: #eff3ee;
    --forest: #123f3b;
    --forest-deep: #0c302d;
    --sea: #62c2b1;
    --sea-pale: #dff3ed;
    --coral: #e4775d;
    --gold: #d7ad52;
    --white: #fff;
    --shadow: 0 18px 50px rgba(19, 53, 46, .08);
    font-family: "Aptos", "Trebuchet MS", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--ink);
    background-color: var(--canvas);
    background-image: linear-gradient(rgba(18, 63, 59, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 63, 59, .035) 1px, transparent 1px);
    background-size: 32px 32px;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    display: flex;
    width: 258px;
    flex-direction: column;
    padding: 26px 18px 18px;
    color: #e9f4ef;
    background: var(--forest-deep);
    box-shadow: 12px 0 36px rgba(15, 49, 44, .08);
}

.brand-lockup {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 12px;
    padding: 3px 4px;
    text-decoration: none;
}

.brand-mark {
    position: relative;
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
    border: 1px solid rgba(220, 247, 237, .27);
    border-radius: 12px 12px 12px 4px;
    background: #1a6257;
}

.brand-mark span {
    display: block;
    width: 4px;
    border-radius: 3px;
    background: #b6e4d7;
}

.brand-mark span:nth-child(1) { height: 12px; opacity: .7; }
.brand-mark span:nth-child(2) { height: 22px; background: #f0c46b; }
.brand-mark span:nth-child(3) { height: 16px; opacity: .85; }

.brand-copy, .user-chip-copy, .sidebar-bottom div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.brand-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-copy span {
    margin-top: 4px;
    color: #9dbbb1;
    font-size: 11px;
}

.sidebar-divider {
    height: 1px;
    margin: 24px 2px 20px;
    background: rgba(235, 248, 242, .13);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }

.nav-section-label {
    margin: 0 0 8px 10px;
    color: #88aaa0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.nav-section-spaced { margin-top: 25px; }

.nav-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #cfdfd8;
    font-size: 13px;
    text-decoration: none;
}

.nav-link.is-current {
    border-color: rgba(159, 222, 203, .15);
    color: #fff;
    background: #1a514b;
    box-shadow: inset 3px 0 0 var(--sea);
}

.nav-index {
    width: 22px;
    color: #88aaa0;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.is-current .nav-index { color: #a4dfcf; }

.nav-link.is-unavailable {
    min-height: 38px;
    color: #91aaa2;
    cursor: default;
}

.nav-state {
    margin-left: auto;
    color: #75948a;
    font-size: 9px;
    text-transform: uppercase;
}

.sidebar-bottom {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 9px 10px;
    border: 1px solid rgba(227, 245, 237, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
}

.instance-indicator {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border: 2px solid #9de0c9;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(100, 194, 177, .12);
}

.sidebar-bottom strong { color: #f4faf7; font-size: 11px; }
.sidebar-bottom div span { margin-top: 3px; color: #90aca2; font-size: 10px; }
.instance-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #94d3b1; }

.app-main {
    min-height: 100vh;
    margin-left: 258px;
}

.topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 34px;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 252, 248, .95);
    backdrop-filter: blur(12px);
}

.topbar-start, .topbar-actions, .user-chip {
    display: flex;
    align-items: center;
}

.topbar-start { gap: 14px; }
.topbar-actions { gap: 22px; }
.topbar-kicker, .topbar-title { margin: 0; }
.topbar-kicker { color: #76908a; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.topbar-title { margin-top: 4px; color: #294441; font-size: 13px; font-weight: 600; }

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: var(--white);
}

.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before, .menu-toggle-lines::after { position: absolute; left: 0; content: ""; }
.menu-toggle-lines::before { top: -5px; }
.menu-toggle-lines::after { top: 5px; }

.user-chip { gap: 9px; }
.user-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    color: #174940;
    background: #cde9dd;
    font-size: 13px;
    font-weight: 700;
}

.user-chip-copy strong { overflow: hidden; max-width: 160px; color: #213b37; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-copy span { margin-top: 3px; color: var(--muted); font-size: 10px; }

.signout-button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd9d1;
    border-radius: 6px;
    color: #36534d;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
}

.signout-button:hover { border-color: #7aa99b; background: #f1f7f3; }

.page-content {
    width: min(100%, 1440px);
    min-height: calc(100vh - 128px);
    margin: 0 auto;
    padding: 32px 36px 48px;
}

.eyebrow { margin: 0; color: #758b83; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.page-heading { margin-bottom: 22px; }
.page-heading h1 { margin: 8px 0 0; color: #1c3934; font-family: Georgia, serif; font-size: 31px; font-weight: 500; line-height: 1.15; }

.dev-mode-banner {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 20px;
    padding: 11px 14px;
    border: 1px solid #e6b56c;
    border-radius: 7px;
    color: #72431e;
    background: #fff4dc;
    font-size: 12px;
}

.dev-mode-dot { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 3px; border-radius: 50%; background: #d47a35; }

.app-footer {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 36px;
    border-top: 1px solid var(--line);
    color: #758780;
    background: rgba(251, 252, 248, .76);
    font-size: 10px;
}

.sidebar-backdrop { display: none; }

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 36px;
}

.auth-layout {
    display: grid;
    width: min(100%, 1080px);
    min-height: 620px;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid #d5e0d9;
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow);
    animation: auth-enter .45s ease-out both;
}

.auth-brand-panel {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px;
    color: #f0f8f3;
    background-color: var(--forest);
    background-image: linear-gradient(rgba(173, 226, 205, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(173, 226, 205, .08) 1px, transparent 1px);
    background-size: 34px 34px;
}

.auth-brand-panel::after {
    position: absolute;
    right: -72px;
    bottom: 105px;
    width: 300px;
    height: 86px;
    border-top: 2px solid rgba(182, 232, 214, .42);
    border-radius: 50%;
    box-shadow: 0 -18px 0 -1px rgba(182, 232, 214, .25), 0 -36px 0 -1px rgba(182, 232, 214, .12);
    content: "";
    transform: rotate(-15deg);
}

.auth-brand-heading, .auth-brand-footer { position: relative; z-index: 1; }
.auth-brand-heading .brand-lockup { margin-bottom: 72px; }
.auth-brand-heading .brand-copy strong { font-size: 15px; }
.auth-brand-heading .brand-copy span { color: #afd0c4; }
.auth-brand-heading h1 { max-width: 400px; margin: 16px 0; color: #fff; font-family: Georgia, serif; font-size: 43px; font-weight: 400; line-height: 1.08; }
.auth-brand-heading > p:last-child { max-width: 360px; margin: 0; color: #c0d8ce; font-size: 14px; line-height: 1.7; }
.auth-brand-footer { display: flex; align-items: center; gap: 10px; color: #a8c9bc; font-size: 10px; text-transform: uppercase; }
.auth-brand-footer span:first-child { width: 24px; height: 2px; background: var(--gold); }

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px clamp(28px, 5vw, 58px);
}

.auth-panel h2 { margin: 8px 0 8px; color: #1d3834; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.auth-subtitle { margin: 0 0 25px; color: #71817b; font-size: 12px; line-height: 1.6; }
.auth-form { display: grid; gap: 9px; }
.auth-form label { margin-top: 8px; color: #38524c; font-size: 11px; font-weight: 700; }
.auth-form input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #ccd9d1;
    border-radius: 6px;
    color: #1e3833;
    background: #fff;
    font-size: 13px;
}

.auth-form input:focus { border-color: #3b8f7d; outline: 3px solid rgba(98, 194, 177, .18); }
.auth-submit { min-height: 45px; margin-top: 13px; border: 0; border-radius: 6px; color: #fff; background: #176259; font-size: 12px; font-weight: 700; }
.auth-submit:hover { background: #104c45; }
.auth-error { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #efc5b8; border-radius: 6px; color: #813d2f; background: #fff0ea; font-size: 11px; }

.dev-login-panel {
    margin-top: 23px;
    padding: 14px;
    border: 1px solid #e6c48c;
    border-radius: 7px;
    background: #fff7e7;
}

.dev-login-panel h3 { margin: 0; color: #714820; font-size: 12px; }
.dev-login-panel p { margin: 5px 0 10px; color: #846641; font-size: 10px; line-height: 1.5; }
.dev-login-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dev-login-actions form { margin: 0; }
.dev-login-button { min-height: 30px; padding: 0 8px; border: 1px solid #dfb86e; border-radius: 5px; color: #68461b; background: #fffdf8; font-size: 9px; font-weight: 700; }
.dev-login-button:hover { background: #ffedc8; }

.setup-message { max-width: 560px; margin: 0 auto; padding: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); }
.setup-message h1 { margin-top: 0; font-family: Georgia, serif; font-weight: 500; }
.setup-message p { color: var(--muted); font-size: 13px; line-height: 1.7; }

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 23px 26px;
    border: 1px solid #cbded3;
    border-radius: 9px;
    background: #f8fbf6;
    box-shadow: 0 8px 22px rgba(20, 58, 49, .04);
}

.dashboard-welcome h2 { margin: 6px 0; color: #23443e; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.dashboard-welcome p { margin: 0; color: #6a7f76; font-size: 12px; line-height: 1.6; }
.system-state { display: inline-flex; min-height: 30px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #b8d9ca; border-radius: 99px; color: #236449; background: #e8f5ed; font-size: 10px; font-weight: 700; white-space: nowrap; }
.system-state::before { width: 6px; height: 6px; border-radius: 50%; background: #3c9b67; content: ""; }

.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 24px; }
.status-card { min-height: 130px; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .9); }
.status-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-card-label { color: #71817b; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.status-card-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; color: #23564b; background: #e2f1e8; font-size: 10px; font-weight: 800; }
.status-card:nth-child(2) .status-card-mark { color: #86543b; background: #f8e9dc; }
.status-card:nth-child(3) .status-card-mark { color: #375d7a; background: #e5eef5; }
.status-card-value { display: block; margin-top: 12px; color: #203d37; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.status-card-note { display: block; margin-top: 4px; color: #829089; font-size: 10px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(245px, .8fr); gap: 16px; align-items: start; }
.surface-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 24px rgba(26, 62, 52, .035); }
.surface-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 19px 15px; border-bottom: 1px solid #e7ede8; }
.surface-panel-header h2 { margin: 0; color: #25443d; font-size: 13px; font-weight: 700; }
.surface-panel-header p { margin: 5px 0 0; color: #7a8982; font-size: 10px; }
.module-list { margin: 0; padding: 0; list-style: none; }
.module-row { display: flex; min-height: 57px; align-items: center; gap: 12px; padding: 10px 19px; border-bottom: 1px solid #edf1ed; }
.module-row:last-child { border-bottom: 0; }
.module-number { width: 25px; color: #82958b; font-size: 10px; font-variant-numeric: tabular-nums; }
.module-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.module-copy strong { color: #38544c; font-size: 11px; }
.module-copy span { color: #89968f; font-size: 10px; }
.module-tag { padding: 4px 7px; border-radius: 4px; color: #7a7f6f; background: #f0f1e9; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.module-open { flex: 0 0 auto; color: #17685b; font-size: 10px; font-weight: 700; text-decoration: none; }
.module-open:hover { text-decoration: underline; }

.readiness-panel { padding: 19px; color: #e9f4ef; background: var(--forest); }
.readiness-panel .eyebrow { color: #a8d1c2; }
.readiness-panel h2 { margin: 8px 0; color: #fff; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.readiness-panel p { margin: 0; color: #c2d8cf; font-size: 11px; line-height: 1.7; }
.readiness-list { display: grid; gap: 10px; margin: 19px 0 0; padding: 15px 0 0; border-top: 1px solid rgba(231, 245, 237, .2); list-style: none; }
.readiness-list li { display: flex; align-items: center; gap: 8px; color: #e2efe9; font-size: 10px; }
.readiness-list li::before { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: #16483f; background: #a8dcc9; content: "OK"; font-size: 7px; font-weight: 800; }

.registry-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.registry-toolbar h2 { margin: 6px 0 3px; color: #23443e; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.registry-summary { margin: 0; color: #77877f; font-size: 10px; }
.primary-action, .secondary-action, .filter-button, .archive-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid transparent; border-radius: 6px; font-size: 11px; font-weight: 700; text-decoration: none; }
.primary-action { color: #fff; background: #176259; }
.primary-action:hover { background: #104c45; }
.secondary-action { border-color: #cbd9d1; color: #36534d; background: #fff; }
.secondary-action:hover { border-color: #7aa99b; background: #f1f7f3; }
.filter-button { color: #fff; background: #315d54; }
.filter-button:hover { background: #21483f; }

.policy-note { margin: 0 0 15px; padding: 10px 13px; border-left: 3px solid var(--gold); color: #755c32; background: #fff8e9; font-size: 10px; line-height: 1.6; }
.policy-note strong { color: #5f4929; }
.registry-panel { overflow: visible; }
.registry-filters { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(145px, .75fr) minmax(130px, .65fr) auto; align-items: end; gap: 10px; padding: 15px; border-bottom: 1px solid #e7ede8; }
.registry-filters label, .form-field { display: grid; min-width: 0; gap: 6px; color: #536962; font-size: 10px; font-weight: 700; }
.registry-filters input, .registry-filters select, .form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid #d1ddd5; border-radius: 5px; color: #24413a; background: #fff; font: inherit; font-size: 11px; }
.form-field textarea { min-height: 96px; padding: 9px 10px; resize: vertical; line-height: 1.5; }
.registry-filters input:focus, .registry-filters select:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #4a9b88; outline: 3px solid rgba(98, 194, 177, .17); }
.table-scroll { overflow-x: auto; }
.consumer-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.consumer-table th { height: 38px; padding: 0 14px; color: #7b8c84; background: #f7f9f5; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.consumer-table td { min-height: 54px; padding: 11px 14px; border-top: 1px solid #edf1ed; color: #51665f; font-size: 10px; vertical-align: middle; }
.consumer-table tbody tr:hover { background: #fafcf9; }
.consumer-table td:nth-child(2) { min-width: 190px; }
.consumer-table td:nth-child(2) strong, .table-secondary { display: block; }
.consumer-table td:nth-child(2) strong { color: #2e4a43; font-size: 11px; }
.table-secondary { margin-top: 3px; color: #8a9791; font-size: 9px; }
.account-link { color: #17685b; font-weight: 700; text-decoration: none; }
.account-link:hover { text-decoration: underline; }
.record-status { display: inline-flex; min-height: 22px; align-items: center; padding: 0 8px; border-radius: 99px; color: #24664d; background: #e6f4eb; font-size: 9px; font-weight: 700; }
.status-inactive { color: #7a613a; background: #f8efd9; }
.status-archived { color: #65726c; background: #ebefec; }
.registry-empty { padding: 36px 22px 40px; text-align: center; }
.empty-index { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; color: #216556; background: #e5f2ea; font-size: 10px; font-weight: 700; }
.registry-empty h3 { margin: 12px 0 4px; color: #2b4841; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.registry-empty p { margin: 0; color: #7d8c85; font-size: 10px; }
.pagination { display: flex; justify-content: flex-end; gap: 5px; padding: 12px 14px; border-top: 1px solid #edf1ed; }
.pagination a { display: grid; min-width: 28px; height: 28px; place-items: center; border: 1px solid #dbe4dd; border-radius: 5px; color: #536b62; font-size: 10px; text-decoration: none; }
.pagination a.is-current { border-color: #286b5f; color: #fff; background: #286b5f; }

.consumer-form-shell { max-width: 920px; }
.form-errors { display: grid; gap: 4px; margin-bottom: 14px; padding: 11px 14px; border: 1px solid #efc5b8; border-radius: 6px; color: #813d2f; background: #fff0ea; font-size: 10px; }
.form-errors span { color: #995849; }
.duplicate-warning { display: grid; gap: 6px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #e7c786; border-radius: 6px; color: #6d5124; background: #fff7e6; font-size: 10px; }
.duplicate-warning strong { color: #68491b; font-size: 11px; }
.duplicate-warning p { margin: 3px 0; }
.duplicate-warning a { width: fit-content; color: #216556; font-weight: 700; }
.duplicate-warning > span { color: #88734e; }
.consumer-form { overflow: hidden; }
.form-section { padding: 21px; border-bottom: 1px solid #e7ede8; }
.form-section-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; }
.form-section-heading > span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 6px; color: #236053; background: #e4f2e9; font-size: 9px; font-weight: 700; }
.form-section-heading h2 { margin: 1px 0 3px; color: #294740; font-size: 12px; }
.form-section-heading p { margin: 0; color: #7e8d85; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { align-content: start; }
.form-field > span b { color: #b75d47; }
.field-error { color: #a44634; font-size: 9px; font-weight: 500; }
.consumer-form-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 21px; background: #fafbf8; }
.consumer-flash { margin: 0 0 15px; padding: 10px 13px; border: 1px solid #b8d9ca; border-radius: 6px; color: #236449; background: #e8f5ed; font-size: 11px; }

.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; padding: 20px 22px; }
.profile-heading h2 { margin: 7px 0 5px; color: #23443e; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.profile-account-number { color: #187060; font-size: 11px; font-weight: 700; }
.profile-heading-actions { display: flex; align-items: center; gap: 9px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-section { min-width: 0; }
.profile-address { grid-column: 1 / -1; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 4px 19px 13px; }
.detail-list div { min-width: 0; padding: 10px 4px; border-bottom: 1px solid #eff2ef; }
.detail-list dt { color: #839088; font-size: 9px; }
.detail-list dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #38564d; font-size: 11px; font-weight: 600; }
.profile-address address { padding: 17px 19px 20px; color: #3e5b52; font-size: 12px; font-style: normal; line-height: 1.7; }
.provisional-tag { display: inline-block; margin-left: 5px; padding: 3px 6px; border-radius: 4px; color: #785f34; background: #fbf0d7; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.profile-remarks { grid-column: 1 / -1; }
.remarks-copy { margin: 0; padding: 15px 19px 19px; color: #526960; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.archive-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 14px 16px; border: 1px solid #ead8d0; border-radius: 7px; background: #fff9f5; }
.archive-panel div { display: grid; gap: 4px; }
.archive-panel strong { color: #704b3f; font-size: 10px; }
.archive-panel span { color: #8a7067; font-size: 9px; }
.archive-button { border-color: #dfb5a7; color: #8b4937; background: #fff; }
.archive-button:hover { border-color: #b87460; background: #fff0ea; }

@keyframes auth-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
    .sidebar { width: 228px; }
    .app-main { margin-left: 228px; }
    .page-content { padding-right: 24px; padding-left: 24px; }
    .topbar { padding-right: 24px; padding-left: 24px; }
    .dashboard-grid { grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); }
    .registry-filters { grid-template-columns: minmax(160px, 1fr) repeat(2, minmax(120px, .65fr)); }
    .registry-filters .filter-button { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .sidebar { z-index: 30; width: min(290px, calc(100vw - 54px)); transform: translateX(-105%); transition: transform .22s ease; }
    .app-shell.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; z-index: 25; inset: 0; display: block; visibility: hidden; border: 0; opacity: 0; background: rgba(9, 29, 26, .44); transition: opacity .2s ease, visibility .2s ease; }
    .app-shell.sidebar-open .sidebar-backdrop { visibility: visible; opacity: 1; }
    .app-main { margin-left: 0; }
    .menu-toggle { display: inline-flex; }
    .topbar { min-height: 68px; padding: 0 17px; }
    .topbar-kicker { font-size: 8px; }
    .topbar-title { font-size: 12px; }
    .topbar-actions { gap: 10px; }
    .user-chip-copy { display: none; }
    .signout-button { min-height: 34px; padding: 0 9px; }
    .page-content { min-height: calc(100vh - 118px); padding: 24px 17px 34px; }
    .page-heading h1 { font-size: 28px; }
    .app-footer { padding: 0 17px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .status-grid { gap: 9px; }
    .status-card { min-height: 118px; padding: 13px; }
    .status-card-label { font-size: 9px; }
    .status-card-value { font-size: 17px; }
    .registry-toolbar { align-items: flex-start; flex-direction: column; }
    .registry-filters { grid-template-columns: 1fr 1fr; }
    .registry-filters .search-field { grid-column: 1 / -1; }
    .registry-filters .filter-button { grid-column: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .profile-heading { align-items: flex-start; flex-direction: column; }
    .profile-heading-actions { flex-wrap: wrap; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-address, .profile-remarks { grid-column: auto; }
    .detail-list { grid-template-columns: 1fr 1fr; }
    .archive-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
    .auth-page { display: block; padding: 0; }
    .auth-layout { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
    .auth-brand-panel { min-height: 236px; padding: 24px 24px 27px; }
    .auth-brand-heading .brand-lockup { margin-bottom: 28px; }
    .auth-brand-heading h1 { max-width: 320px; margin: 12px 0 6px; font-size: 31px; }
    .auth-brand-heading > p:last-child { max-width: 330px; font-size: 11px; }
    .auth-brand-footer { margin-top: 25px; }
    .auth-brand-panel::after { right: -110px; bottom: 12px; opacity: .55; }
    .auth-panel { padding: 28px 24px 34px; }
    .auth-panel h2 { font-size: 25px; }
    .dev-login-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dev-login-button { min-height: 35px; }
    .dashboard-welcome { align-items: flex-start; flex-direction: column; padding: 18px; }
    .status-grid { grid-template-columns: 1fr; }
    .status-card { min-height: 104px; }
    .app-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding-top: 11px; padding-bottom: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}