:root {
    --ink: #1c2434;
    --muted: #6b778c;
    --line: #e6ebf2;
    --bg: #f4f6f9;
    --card: #ffffff;
    --accent: #2f6bff;
    --accent-ink: #ffffff;
    --accent-soft: #e8f1ff;
    --danger: #b42318;
    --ok: #067647;
    --shadow: 0 10px 30px rgba(28, 39, 64, 0.08);
    color-scheme: light;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }

html { font-size: 16px; }

body { font-size: 15px; }

html { -webkit-text-size-adjust: 100%; }

.boot { min-height: 100vh; background: var(--bg); }

body { background: var(--bg); }

h1, h2, p { margin: 0; }

h1, h2, h3, h4, h5, h6 { font-size: 15px; font-weight: 700; }

h1 { letter-spacing: -0.02em; }

a { color: inherit; }

button, input { font: inherit; color: inherit; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.muted { color: var(--muted); line-height: 1.5; }

.eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-ink);
    min-height: 44px;
    padding: 0.7rem 1rem;
    font-weight: 650;
    cursor: pointer;
}

.primary svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.primary:hover { background: #1f57db; }

.primary:disabled { opacity: 0.45; cursor: default; }

.link-button, .text-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.text-link { color: var(--accent); font-weight: 650; margin-top: 0.8rem; }

.shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.shell.collapsed { grid-template-columns: 84px minmax(0, 1fr); }

.sidebar {
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--ink);
    border-right: 1px solid var(--line);
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1rem 0.75rem;
}

.mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-text strong { font-size: 15px; }

.brand-text small { color: var(--muted); }

.shell.collapsed .brand-text,
.shell.collapsed .nav-label,
.shell.collapsed .nav-item span,
.shell.collapsed .version { display: none; }

.shell.collapsed .sidebar-foot { align-items: center; }

.nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.35rem 0.7rem 0.8rem;
}

.nav-label {
    margin: 0.85rem 0.55rem 0.3rem;
    color: #8b97a8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    color: #3c4a60;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}

button.nav-item {
    width: 100%;
    border: 0;
    background: transparent;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.nav-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-icon, .nav-caret {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-caret { width: 16px; height: 16px; flex-basis: 16px; margin-left: auto; }

.nav-group.open .nav-caret { transform: rotate(180deg); }

.nav-group.current > .nav-item { color: #1d5fd0; }

.nav-sub {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin: 0.1rem 0 0.25rem 1.15rem;
    padding-left: 0.45rem;
    border-left: 1px solid var(--line);
}

.nav-sub .nav-item {
    min-height: 40px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.3;
}

.nav-item:hover { background: #f4f7fb; }

.nav-item.active { background: var(--accent-soft); color: #1d5fd0; }

.sidebar-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid var(--line);
}

.version { margin: 0; color: #8b97a8; font-size: 0.78rem; }

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: transparent;
    color: #5d6b80;
    text-align: left;
    padding: 0.35rem 0;
    cursor: pointer;
}

.text-button:hover { color: var(--ink); }

.collapse-button {
    display: none;
    width: 36px;
    height: 36px;
    padding: 7px;
}

.shell.collapsed .collapse-button svg { transform: scaleX(-1); }

.backdrop { display: none; }

.workspace { min-width: 0; display: flex; flex-direction: column; background: var(--bg); }

.topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 64px;
    padding: 0 1.15rem;
    padding-left: max(1.15rem, env(safe-area-inset-left));
    padding-right: max(1.15rem, env(safe-area-inset-right));
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
}

.crumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #3c4a60;
    text-decoration: none;
    font-weight: 650;
    white-space: nowrap;
}

.crumb svg { width: 18px; height: 18px; fill: currentColor; }

.top-actions { position: relative; display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }

.icon-button {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    padding: 8px;
    cursor: pointer;
}

.icon-button svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0.2rem;
    min-width: 0;
}

.who-text { display: flex; flex-direction: column; min-width: 0; text-align: left; }

.who-text strong, .who-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.who-text strong { font-size: 0.86rem; }

.user-chip .caret {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: #8b97a8;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.who-text small { color: var(--muted); font-size: 0.75rem; }

.avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: #e7eefb;
    color: #1d5fd0;
    font-size: 0.75rem;
    font-weight: 700;
}

.avatar.large { width: 72px; height: 72px; font-size: 15px; margin-bottom: 0.8rem; background: #e7eefb; }

.pop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    padding: 0.45rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 8;
}

.user-pop a, .user-pop button {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    text-decoration: none;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.user-pop svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-pop a:hover, .user-pop button:hover { background: #f4f7fb; }

.content {
    flex: 1;
    padding: 1.15rem 1.25rem 1.5rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
}

.app-foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    color: #8b97a8;
    font-size: 0.8rem;
    border-top: 1px solid var(--line);
    background: #fff;
}

.guide { display: flex; flex-direction: column; gap: 0.85rem; }

.guide .panel { padding: 0.95rem 1.05rem 1.1rem; }

.guide h2 { margin-bottom: 0.35rem; }

.guide p, .guide li { color: var(--ink); line-height: 1.5; }

.guide p + p, .guide ul { margin-top: 0.45rem; }

.guide ul { margin-bottom: 0; padding-left: 1.15rem; }

.guide-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.65rem; align-items: center; margin: 0.55rem 0 0.75rem; }

.guide-path {
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.guide-code {
    margin: 0.45rem 0 0.15rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f4f7fb;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.86rem;
    line-height: 1.45;
    overflow: auto;
    white-space: pre;
}

.page-head { margin-bottom: 0.85rem; }

.page-head h1 { font-size: 15px; letter-spacing: 0; line-height: 1.3; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.stat, .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.stat {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
}

.stat p, .stat small { color: var(--muted); }

.stat strong { display: block; margin: 0.15rem 0; font-size: 15px; }

.stat small { font-size: 0.78rem; }

.stat-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
}

.stat-icon svg, .stat-icon .nav-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; }

a.stat { color: inherit; text-decoration: none; }

a.stat:hover { border-color: #c9d7ea; }

.row-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: inherit;
    font-weight: 650;
    text-decoration: none;
}

.row-link .nav-icon { width: 16px; height: 16px; flex-basis: 16px; }

.empty-cell { color: var(--muted); text-align: center; }

.stat-icon.blue { background: #e8f1ff; color: #1d5fd0; }
.stat-icon.green { background: #e7f6ee; color: #067647; }
.stat-icon.amber { background: #fff4e5; color: #b76e00; }
.stat-icon.rose { background: #fdecef; color: #c1154a; }

.activity .dot.rose { background: #c1154a; }

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.panel { padding: 0.35rem 0.35rem 0.9rem; }

.panel-head, .panel > h2 { padding: 0.85rem 0.9rem 0.35rem; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.panel-head h2 { margin: 0; }

.quiet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #5d6b80;
    text-decoration: none;
}

.quiet-icon:hover { background: #f4f7fb; color: var(--ink); }

.quiet-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.panel p { color: var(--muted); line-height: 1.5; }

.table-wrap { overflow-x: auto; }

.panel p.table-count {
    margin: 0;
    padding: 0.75rem 0.9rem 0;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.4;
}

.data-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 0.92rem; }

.data-table th {
    text-align: left;
    color: #6b778c;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    background: #f7f9fc;
    padding: 0.7rem 0.9rem;
}

.data-table td { padding: 0.8rem 0.9rem; border-top: 1px solid var(--line); vertical-align: middle; }

.data-table:not(.sheet-table) th,
.data-table:not(.sheet-table) td {
    max-width: 20rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guide .data-table { width: 100%; max-width: 100%; }

.guide .data-table th,
.guide .data-table td,
.data-table td.empty-cell,
.data-table td:has(.row-actions),
.data-table td:has(> .quiet-icon),
.data-table th:last-child:empty,
.data-table td:last-child:has(.row-actions),
.data-table td:last-child:has(> .quiet-icon) {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.guide .data-table td,
.data-table td.empty-cell {
    white-space: normal;
    overflow-wrap: anywhere;
}

.data-table td:has(.row-actions),
.data-table td:last-child:has(> .quiet-icon),
.data-table th:last-child:empty {
    width: 1%;
}

.pill {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e7f6ee;
    color: #067647;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.pill.amber { background: #fff4e5; color: #b76e00; }

.activity { list-style: none; margin: 0.2rem 0 0; padding: 0 0.9rem; display: flex; flex-direction: column; gap: 0.85rem; }

.activity li { display: flex; gap: 0.7rem; align-items: flex-start; }

.activity p { font-size: 0.84rem; }

.dot { width: 8px; height: 8px; margin-top: 0.4rem; border-radius: 50%; flex: 0 0 8px; }

.dot.blue { background: #2f6bff; }
.dot.green { background: #12b76a; }
.dot.amber { background: #f79009; }

.panel .text-link { margin: 0.9rem 0.9rem 0.2rem; }

.empty-note { margin-top: 0.85rem; color: var(--muted); }

.profile-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.identity { text-align: center; padding: 1.3rem 1rem; }

.identity h2 { margin-top: 0.2rem; }

.account-code {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font-size: 0.82rem;
}

.profile-forms { display: flex; flex-direction: column; gap: 0.85rem; }

.profile-forms .panel { padding: 1.05rem 1.1rem 1.15rem; }

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
    margin-top: 1rem;
}

.span-2 { grid-column: span 2; }

.field-legend, .modal .field-legend {
    grid-column: 1 / -1;
    margin: 0.85rem 0 0;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

textarea {
    width: 100%;
    min-height: calc(1.45em * 3 + 1.4rem);
    resize: vertical;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fbfcfe;
    padding: 0.7rem 0.75rem;
    font: inherit;
    font-weight: 500;
    line-height: 1.45;
}

.field-grid label:has(textarea) { grid-column: 1 / -1; }

textarea:focus { outline: 2px solid rgba(47, 107, 255, 0.22); border-color: var(--accent); }

label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; font-weight: 650; }

.field-grid > label:not(.choice) { display: block; }

.field-grid > label:not(.choice) > :is(input, select, textarea, .pick, .date-field, .secret-field, .path-field) {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
}

.field-grid > label:not(.choice) > small {
    display: block;
    margin-top: 0.3rem;
    font-weight: 500;
}

.field-name {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    align-self: flex-start;
    gap: 0.28rem;
    width: auto;
}

.req { display: inline; color: var(--danger); font-weight: 700; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], input:not([type]), select {
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fbfcfe;
    padding: 0.7rem 0.75rem;
    font-weight: 500;
}

input:focus, select:focus { outline: 2px solid rgba(47, 107, 255, 0.22); border-color: var(--accent); }

.pick { width: 100%; min-width: 0; }

.pick-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    min-width: 0;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fbfcfe;
    padding: 0.7rem 0.75rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.pick-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pick-button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: #6b778c;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pick-button:focus { outline: 2px solid rgba(47, 107, 255, 0.22); border-color: var(--accent); }

.pick-button:disabled { opacity: 0.55; cursor: default; }

.filter-field .pick-button, .exam-bar .pick-button { height: 40px; padding: 0 0.75rem; }

.pick-backdrop { position: fixed; inset: 0; z-index: 79; background: transparent; }

.pick-menu {
    position: fixed;
    z-index: 80;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: white;
    box-shadow: 0 12px 32px rgba(16, 28, 46, 0.16);
}

.pick-find {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    height: 36px;
    margin: 0.4rem;
    padding: 0 0.65rem;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fbfcfe;
}

.pick-find:focus-within { border-color: var(--accent); outline: 2px solid rgba(47, 107, 255, 0.22); }

.pick-find svg { width: 16px; height: 16px; fill: #8b97a8; flex: 0 0 16px; }

.pick-find input,
.pick-find input:focus {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    outline: none;
    box-shadow: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.pick-menu ul { list-style: none; margin: 0; padding: 0 0.35rem 0.35rem; overflow: auto; }

.pick-menu li button {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 0.4rem 0.55rem;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
}

.pick-menu li button:hover, .pick-menu li button.is-on { background: var(--accent-soft); }

.pick-empty { padding: 0.45rem 0.7rem 0.65rem; color: var(--muted); }

.list-search > input,
.list-search > input:focus {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    outline: none;
    box-shadow: none;
    appearance: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.date-field { position: relative; display: block; width: 100%; }

.date-field .date-display { width: 100%; pointer-events: none; }

.date-field input[type="date"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0.01;
    cursor: pointer;
}

.date-field .date-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.date-field:focus-within .date-display { outline: 2px solid rgba(47, 107, 255, 0.22); border-color: var(--accent); }

.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.form-body { padding: 0 0.9rem 0.35rem; }

.form-body small, .field-grid small { color: var(--muted); font-size: 0.78rem; font-weight: 500; }

a.secondary { text-decoration: none; }

.secondary.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.secondary.danger-text { color: var(--danger); }

.path-field, .secret-field { display: flex; align-items: center; gap: 0.45rem; }

.path-field input, .secret-field input { flex: 1; min-width: 0; }

.choice-list { display: flex; flex-direction: column; gap: 0.45rem; }

.choice {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
}

.choice input { width: 16px; height: 16px; margin: 0; }

.field-grid > label.yes-no {
    align-items: flex-start;
    gap: 0.7rem;
    min-height: 2.85rem;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fbfcfe;
    cursor: pointer;
    font-weight: 650;
    line-height: 1.35;
}

.field-grid > label.yes-no input {
    width: 18px;
    height: 18px;
    margin: 0.05rem 0 0;
    flex: 0 0 18px;
    accent-color: var(--accent, #2f6bff);
}

.field-grid > label.yes-no:focus-within {
    outline: 2px solid rgba(47, 107, 255, 0.22);
    border-color: var(--accent);
}

.permit-dialog { width: min(980px, 100%); }

.permit {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.75rem;
    max-height: 52vh;
    overflow: auto;
    padding-right: 0.1rem;
}

.permit-group {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    padding: 0.6rem 0.7rem 0.7rem;
}

.permit-head { font-weight: 700; }

.permit-head .nav-icon { color: var(--accent); }

.permit-card + .permit-card { margin-top: 0.55rem; padding-top: 0.55rem; border-top: 1px solid var(--line); }

.permit-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.45rem 0 0.4rem;
    font-weight: 650;
}

.permit-name .nav-icon { color: var(--muted); }

.permit-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.permit-action {
    min-width: 0;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fbfcfe;
    padding: 0.4rem 0.45rem 0.45rem;
}

.permit-action-name {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.28rem;
    font-size: 13px;
    font-weight: 700;
}

.permit-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.permit-action-name .permit-icon { color: var(--accent); }

.permit-action .choice {
    gap: 0.45rem;
    margin-left: 1.25rem;
    min-height: 1.35rem;
    font-size: 13px;
    font-weight: 400;
}

.permit-action .choice input { flex: 0 0 15px; width: 15px; height: 15px; }

.panel .hint-note {
    margin-top: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: var(--accent-soft);
    color: #1e4fd0;
    font-size: 0.82rem;
    font-weight: 550;
}

.filter-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }

.list-count { color: var(--muted); font-weight: 650; }

.check-col { width: 42px; }

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pill.ok { color: var(--ok); background: #f0fdf4; }

.status-pill.fail { color: var(--danger); background: #fef3f2; }

.detail-list { display: grid; gap: 0.7rem; margin-top: 0.9rem; }

.detail-list div { display: grid; gap: 0.15rem; }

.detail-list dt { color: var(--muted); font-size: 0.78rem; font-weight: 650; }

.detail-list dd { margin: 0; overflow-wrap: anywhere; }

.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--ink);
    min-height: 44px;
    padding: 0.7rem 1rem;
    font-weight: 650;
    cursor: pointer;
}

.secondary svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.secondary:disabled { opacity: 0.45; cursor: default; }

.list-bar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem 0.9rem 0.35rem;
}

.list-bar .primary { margin-left: auto; min-height: 40px; flex: 0 0 auto; }

.list-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }

.list-actions .primary, .list-actions .secondary { margin-left: 0; min-height: 40px; }

.status-pill.wait { color: #b76e00; background: #fff4e5; }

.filter-field { flex: 0 1 240px; min-width: 180px; }

.filter-field select { width: 100%; height: 40px; padding: 0 0.75rem; }

.row-link { color: var(--accent); font-weight: 650; text-decoration: none; white-space: nowrap; align-self: center; }

button.row-link { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; }

.list-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    flex: 0 1 320px;
    width: min(320px, 100%);
    min-width: 0;
    height: 40px;
    overflow: hidden;
    padding: 0 0.85rem;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fbfcfe;
}

.list-search:focus-within {
    border-color: var(--accent);
    outline: 2px solid rgba(47, 107, 255, 0.22);
}

.list-search svg { width: 16px; height: 16px; fill: #8b97a8; flex: 0 0 16px; }

.note-clip { display: block; max-width: 28rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(16, 28, 46, 0.45);
}

.modal {
    width: min(640px, 100%);
    max-height: calc(100dvh - 2.5rem);
    overflow: auto;
    padding: 1.15rem 1.2rem 1.15rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.modal.wide { width: min(860px, 100%); }

.modal.sheet { width: min(1040px, 100%); }

.sheet-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
    margin-top: 0.85rem;
    padding: 0.28rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f3f6fb;
}

.sheet-tabs button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    min-width: 0;
    min-height: 58px;
    padding: 0.4rem 0.25rem;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
}

.sheet-tabs button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sheet-tabs button.is-on {
    background: white;
    color: #1e4fd0;
    box-shadow: 0 1px 2px rgba(16, 28, 46, 0.08), 0 0 0 1px rgba(47, 107, 255, 0.16);
}

.sheet-table input, .sheet-table select, .sheet-table .pick-button { min-width: 7.5rem; padding: 0.4rem 0.55rem; }

.sheet-table td { vertical-align: middle; }

.sheet-add { margin-top: 0.75rem; }

.exam-split {
    display: grid;
    grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.75rem 0.9rem 0.95rem;
}

.exam-side,
.exam-main {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfcfe;
}

.exam-side,
.exam-main {
    height: calc(100dvh - 188px);
    min-height: 420px;
}

.exam-side { display: flex; flex-direction: column; padding: 0.45rem; }

.exam-main { overflow: auto; background: white; padding: 0.85rem 0.95rem 1rem; }

.exam-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 0.8fr) auto;
    align-items: end;
    gap: 0.45rem 0.55rem;
    padding: 0.6rem 0.85rem 0.15rem;
}

.exam-bar .filter-field { min-width: 0; gap: 0.15rem; font-size: 0.78rem; white-space: nowrap; overflow: hidden; }

.exam-bar select, .exam-bar .pick, .exam-bar .pick-button { min-width: 0; max-width: 100%; }

.exam-bar .list-actions { margin-left: 0; flex-wrap: nowrap; }

.exam-bar .list-actions .secondary,
.exam-bar .list-actions .primary { white-space: nowrap; flex: 0 0 auto; }

.action-menu { position: relative; z-index: 9; }

.menu-dismiss { position: fixed; inset: 0; z-index: 8; background: transparent; }

.action-pop { z-index: 10; min-width: 220px; }

.action-pop a, .action-pop button {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.action-pop svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action-pop a:hover, .action-pop button:hover:not(:disabled) { background: #f4f7fb; }

.action-pop button:disabled { opacity: 0.45; cursor: default; }

.exam-search { width: 100%; max-width: none; flex: none; margin: 0.15rem 0 0.35rem; }

.exam-side-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.35rem 0.45rem;
    color: var(--muted);
    font-weight: 650;
}

.exam-people {
    list-style: none;
    margin: 0;
    padding: 0 0.15rem 0 0;
    display: grid;
    align-content: start;
    gap: 0.18rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.exam-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.28rem;
    border: 1px solid transparent;
    border-radius: 8px;
}

.exam-row.seen { background: #f0fdf4; }

.exam-row.fresh { background: #fef3f2; }

.exam-row.is-on { border-color: #1e4fd0; }

.exam-pick {
    min-width: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    padding: 0.1rem 0.15rem;
}

.exam-pick strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.2; }

.exam-flag { font-weight: 700; }

.exam-row.seen .exam-flag { color: var(--ok); }

.exam-row.fresh .exam-flag { color: var(--danger); }

.exam-row.seen .exam-pick strong { color: var(--ok); }

.exam-row.fresh .exam-pick strong { color: var(--danger); }

.exam-pick small {
    display: block;
    margin-top: 0.05rem;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.sample-cols { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.65rem; }

.sample-cols span {
    border: 1px solid #d5deea;
    border-radius: 8px;
    background: white;
    padding: 0.28rem 0.5rem;
    font-size: 13px;
    font-weight: 650;
}

.sample-cols span.is-req { color: var(--danger); border-color: #f3c0bc; background: #fef3f2; }

.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin-top: 0.85rem; }

.file-row input[type="file"] { max-width: 100%; font: inherit; font-size: 13px; }

.exam-facts-box {
    margin-top: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfe;
    overflow: hidden;
}

.exam-facts-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.45rem 0.7rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.exam-facts-toggle svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s ease;
}

.exam-facts-box.is-open .exam-facts-toggle svg { transform: rotate(90deg); }

.exam-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem 0.75rem;
    margin: 0;
    padding: 0.55rem 0.7rem 0.65rem;
    border-top: 1px solid var(--line);
}

.exam-facts div { min-width: 0; }

.exam-facts dt { color: var(--muted); font-size: 0.72rem; font-weight: 650; }

.exam-facts dd { margin: 0.08rem 0 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }

.exam-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }

.exam-head p { margin-top: 0.2rem; color: var(--muted); }

.exam-head-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.exam-head-actions .secondary { min-height: 40px; }

.exam-empty,
.exam-empty-list { margin: 0; padding: 1.4rem 0.8rem; color: var(--muted); text-align: center; }

.exam-side .pager {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-top: auto;
    padding: 0.45rem 0.15rem 0.1rem;
}

.exam-side .pager > span { white-space: nowrap; }

.exam-side .pager-actions {
    display: grid;
    grid-template-columns: auto minmax(4.5rem, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
}

.exam-side .pager-actions strong { text-align: center; white-space: nowrap; }

.exam-side .pager .secondary { min-height: 36px; padding: 0.3rem 0.55rem; white-space: nowrap; }

.modal.confirm { width: min(440px, 100%); }

.modal p { margin-top: 0.45rem; color: var(--muted); }

.modal .popup-note {
    margin-top: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: var(--accent-soft);
    color: #1e4fd0;
    font-size: 0.82rem;
    font-weight: 550;
}

.toast {
    position: fixed;
    top: 76px;
    right: 20px;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: min(380px, calc(100vw - 2rem));
    padding: 0.75rem 0.8rem;
    border: 1px solid;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-weight: 650;
}

.toast svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toast span { flex: 1; }

.toast .quiet-icon { color: inherit; }

.toast-ok { color: var(--ok); background: #f0fdf4; border-color: #abefc6; }

.toast-error { color: var(--danger); background: #fef3f2; border-color: #fecdca; }

.primary.danger { background: var(--danger); }

.primary.danger:hover { background: #912018; }

button.quiet-icon {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #5d6b80;
}

button.quiet-icon.danger { color: var(--danger); }

.row-actions { display: flex; justify-content: flex-end; gap: 0.15rem; }

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem 0.2rem;
    color: var(--muted);
}

.pager-actions { display: flex; align-items: center; gap: 0.55rem; }

.pager strong { color: var(--ink); font-size: 0.92rem; }

.form-ok, .form-error { margin-top: 0.75rem; font-weight: 650; }

.form-ok { color: var(--ok); }

.form-error { color: var(--danger); }

.login-screen {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(340px, 0.85fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 2.5rem;
    overflow: hidden;
    background: #16324d;
    color: white;
}

.login-brand::before {
    content: "";
    position: absolute;
    inset: -28px;
    background:
        linear-gradient(180deg, rgba(8, 32, 52, 0.28), rgba(8, 32, 52, 0.4)),
        url("bg.png") center / cover no-repeat;
    filter: blur(14px);
    transform: scale(1.08);
}

.login-kicker, .login-brand h1 { position: relative; z-index: 1; text-shadow: 0 2px 16px rgba(8, 28, 46, 0.45); }

.login-kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; font-weight: 700; color: #d5e4f2; }

.login-brand h1 { font-size: 15px; max-width: none; line-height: 1.25; }

.login-panel {
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
    background-color: #f5f7fb;
    background-image:
        linear-gradient(rgba(47, 107, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 107, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
}

.login-card {
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.7rem 1.5rem 1.4rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    text-align: center;
}

.emblem {
    width: 92px;
    height: 92px;
    margin: 0 auto 0.2rem;
    object-fit: contain;
}

.login-card h2 { font-size: 15px; }

.login-card .muted { font-size: 0.92rem; }

.field { position: relative; text-align: left; }

.field svg {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: #8b97a8;
}

.field input { width: 100%; padding-left: 40px; padding-right: 40px; min-height: 46px; }

.ghost-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.ghost-icon svg {
    position: static;
    transform: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #5d6b80;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.remember {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    font-weight: 550;
    color: #3c4a60;
}

.remember input { width: 1rem; height: 1rem; }

.login-card .primary { width: 100%; }

.or-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.7rem;
    color: #9aa6b6;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.or-line::before, .or-line::after { content: ""; height: 1px; background: var(--line); }

.sso {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: #3c4a60;
    font-weight: 650;
    cursor: pointer;
}

.sso svg { width: 18px; height: 18px; fill: #5d6b80; }

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 1rem;
    background: #8d2b2b;
    color: white;
    z-index: 40;
}

#blazor-error-ui a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: white;
    margin-left: 0.75rem;
}

#blazor-error-ui svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 0.75rem;
    top: 0.45rem;
    width: 32px;
    height: 32px;
    margin: 0;
    justify-content: center;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .collapse-button { display: inline-flex; }

    .shell.collapsed .nav-sub,
    .shell.collapsed .nav-caret { display: none; }
}

@media (max-width: 1200px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }

    .exam-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .exam-bar .list-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 1023px) {
    .shell, .shell.collapsed { grid-template-columns: 1fr; }

    .shell.mobile-open { height: 100dvh; overflow: hidden; }

    .sidebar {
        position: fixed;
        z-index: 20;
        width: min(86vw, 300px);
        height: 100dvh;
        min-height: 0;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom);
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: var(--shadow);
    }

    .shell.mobile-open .sidebar { transform: translateX(0); }

    .shell.collapsed .brand-text,
    .shell.collapsed .nav-label,
    .shell.collapsed .nav-item span,
    .shell.collapsed .version { display: flex; }

    .shell.collapsed .sidebar-foot { align-items: stretch; }

    .nav-item, .nav-sub .nav-item { min-height: 48px; font-size: 0.92rem; }

    .shell.mobile-open .backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(16, 28, 46, 0.35);
        z-index: 15;
    }

    .icon-button:not(.collapse-button) { display: inline-flex; width: 44px; height: 44px; }

    .dash-grid, .profile-layout, .exam-split { grid-template-columns: 1fr; }

    .login-screen { grid-template-columns: 1fr; }

    .login-brand { min-height: 220px; padding: 1.4rem; }

    .login-brand h1 { font-size: 15px; }

    .login-panel { padding: 1.25rem 1rem 2rem; align-items: start; }
}

@media (max-width: 767px) {
    .topbar { height: 56px; padding-left: max(0.7rem, env(safe-area-inset-left)); padding-right: max(0.7rem, env(safe-area-inset-right)); }

    .crumb, .who-text, .app-foot strong { display: none; }

    .content { padding: 0.9rem 0.8rem 1.4rem; }

    .stat-grid, .field-grid { grid-template-columns: 1fr; }

    .span-2, .field-legend, .field-grid label:has(textarea) { grid-column: 1 / -1; }

    .form-actions .primary, .form-actions .secondary { width: 100%; }

    .form-actions { flex-direction: column; align-items: stretch; }

    .list-bar, .exam-bar { flex-direction: column; align-items: stretch; }

    .exam-bar { display: grid; grid-template-columns: 1fr; }

    .exam-side .pager { flex-direction: column; }

    .exam-side, .exam-main { height: auto; max-height: none; min-height: 0; }

    .exam-people { max-height: 420px; }

    .exam-facts { grid-template-columns: 1fr 1fr; }

    .sheet-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .filter-field, .list-search { flex: 0 0 auto; width: 100%; height: 40px; }

    .permit-actions { grid-template-columns: 1fr 1fr; }

    .list-search, .list-bar .primary, .list-actions, .list-actions .primary, .list-actions .secondary { width: 100%; margin-left: 0; }

    .toast { top: auto; right: 0.8rem; bottom: 0.8rem; left: 0.8rem; width: auto; }

    .pager { flex-direction: column; align-items: stretch; }

    input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], input:not([type]), select { font-size: 15px; }

    .identity {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 0.9rem;
        text-align: left;
        align-items: center;
    }

    .identity .avatar.large {
        width: 56px;
        height: 56px;
        margin: 0;
        grid-row: 1 / span 4;
        font-size: 15px;
    }

    .identity .account-code { justify-self: start; }

    .login-brand { min-height: 150px; }

    .login-card { padding: 1.2rem 1rem; box-shadow: none; }

    .sidebar { width: min(280px, 86vw); }

    .data-table { min-width: 520px; }
}
