/* Next Level operational design layer */
:root {
    --bg: #f3f5f3;
    --surface: #ffffff;
    --surface-soft: #f7f9f7;
    --ink: #121714;
    --muted: #66716b;
    --line: #dce2de;
    --primary: #07825e;
    --primary-strong: #055e45;
    --primary-soft: #e6f5ef;
    --navy: #0b100d;
    --navy-soft: #151b17;
    --gold: #bd8e46;
    --gold-soft: #f8f0e3;
    --success: #157a55;
    --success-soft: #e7f5ee;
    --warning: #a56408;
    --warning-soft: #fff4df;
    --danger: #b42318;
    --danger-soft: #fff0ee;
    --info: #2369a7;
    --info-soft: #e9f2fb;
    --shadow: 0 18px 48px rgba(8, 18, 12, .09);
    --shadow-soft: 0 8px 24px rgba(8, 18, 12, .06);
    --radius: 8px;
}

body {
    background: var(--bg);
    color: var(--ink);
}

svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

h1 {
    font-size: 2.15rem;
    line-height: 1.12;
    letter-spacing: 0;
}

h2 {
    font-size: 1.15rem;
    letter-spacing: 0;
}

.sidebar {
    width: 264px;
    padding: 18px 14px;
    gap: 14px;
    background: #0a0f0c;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.content-shell {
    margin-left: 264px;
}

.brand-block {
    min-height: 70px;
    padding: 5px 8px 16px;
    border-bottom-color: rgba(255, 255, 255, .1);
}

.brand-symbol {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.brand-title {
    font-size: 1rem;
    letter-spacing: 0;
}

.brand-subtitle {
    color: #92a098;
    font-size: .75rem;
}

.nav-section {
    gap: 4px;
}

.nav-group {
    gap: 3px;
    margin-top: 2px;
}

.nav-group-toggle {
    min-height: 30px;
    padding: 6px 10px;
    color: #849188;
    font-size: .68rem;
}

.nav-group-links {
    gap: 3px;
}

.nav-link,
.nav-logout {
    min-height: 42px;
    padding: 8px 9px;
    border-radius: 7px;
    color: #d8e0db;
    font-size: .92rem;
    font-weight: 680;
}

.nav-link:hover,
.nav-logout:hover {
    background: rgba(255, 255, 255, .07);
}

.nav-link.active {
    background: #e9f5f0;
    color: #093d2e;
}

.nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: #c9d5ce;
}

.nav-icon svg {
    width: 17px;
    height: 17px;
}

.nav-link.active .nav-icon {
    background: #cfeade;
    color: var(--primary-strong);
}

.nav-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.topbar {
    min-height: 72px;
    padding: 12px 30px;
    background: rgba(248, 249, 248, .96);
    border-bottom-color: #dfe4e1;
}

.topbar-context,
.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-title {
    font-size: .96rem;
}

.topbar-meta {
    font-size: .78rem;
}

.topbar-user {
    padding: 6px 8px 6px 6px;
    border-radius: 7px;
    color: var(--ink);
}

.topbar-user:hover {
    background: #edf1ee;
    color: var(--ink);
}

.topbar-user > span:not(.user-avatar) {
    display: grid;
}

.topbar-user strong {
    font-size: .84rem;
}

.topbar-user small {
    color: var(--muted);
    font-size: .73rem;
}

.user-avatar,
.section-icon,
.command-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 7px;
    background: var(--primary-soft);
    color: var(--primary);
}

.user-avatar {
    width: 36px;
    height: 36px;
}

.menu-toggle {
    padding: 0;
}

main {
    max-width: 1440px;
    padding: 34px 34px 56px;
}

.page-header {
    align-items: center;
    margin-bottom: 26px;
}

.page-kicker {
    margin-bottom: 7px;
    color: var(--primary);
    font-size: .73rem;
    letter-spacing: .07em;
}

.page-title {
    margin-bottom: 7px;
}

.page-subtitle {
    color: #66716b;
}

.header-date {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: .85rem;
}

.panel,
.card,
.table-card,
.filter-card {
    border-color: var(--line);
    box-shadow: none;
}

.panel,
.card,
.filter-card {
    padding: 20px;
}

.section-title {
    margin: 26px 0 12px;
}

.clean-section-title {
    align-items: flex-end;
}

.clean-section-title h2 {
    margin: 0;
}

.clean-section-title p {
    margin: 4px 0 0;
}

.clean-section-title a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .87rem;
    font-weight: 750;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.section-heading h2 {
    margin: 0 0 4px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.section-icon {
    width: 40px;
    height: 40px;
}

.section-icon.gold {
    background: var(--gold-soft);
    color: #90651f;
}

button,
.button {
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 7px;
    font-size: .9rem;
    letter-spacing: 0;
}

.button.secondary,
button.secondary {
    border-color: #bfc9c3;
    color: #1f4f40;
}

.button.secondary:hover,
button.secondary:hover {
    border-color: var(--primary);
}

input,
select,
textarea {
    min-height: 44px;
    border-color: #c9d3cd;
    border-radius: 7px;
}

select option {
    background: #fff;
    color: var(--ink);
}

select option:checked {
    background: var(--primary);
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    @supports (appearance: base-select) {
        select,
        ::picker(select) {
            appearance: base-select;
        }

        ::picker(select) {
            max-height: 320px;
            margin-top: 5px;
            overflow-y: auto;
            border: 1px solid #b8c6be;
            border-radius: 7px;
            background: #fff;
            box-shadow: 0 14px 34px rgba(10, 35, 28, .16);
        }

        select option {
            min-height: 38px;
            padding: 9px 12px;
            border-radius: 5px;
        }

        select option:hover,
        select option:focus-visible {
            background: var(--primary-soft);
            color: var(--primary-strong);
        }

        select option:checked {
            background: var(--primary);
            color: #fff;
            font-weight: 750;
        }

        select option:checked::checkmark {
            color: #fff;
        }

        select::picker-icon {
            color: #54655c;
            transition: transform .15s ease;
        }

        select:open::picker-icon {
            transform: rotate(180deg);
        }
    }
}

input[type="checkbox"],
.check-row input[type="checkbox"] {
    appearance: none;
    display: inline-grid;
    place-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #9eaba4;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

input[type="checkbox"]::before {
    width: 10px;
    height: 9px;
    background: #fff;
    clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 16%, 84% 0, 39% 68%);
    content: "";
    transform: scale(0);
    transition: transform .12s ease;
}

input[type="checkbox"]:hover:not(:disabled) {
    border-color: var(--primary);
}

input[type="checkbox"]:checked {
    border-color: var(--primary);
    background: var(--primary);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

input[type="checkbox"]:disabled {
    border-color: #cfd6d2;
    background: #edf1ef;
    cursor: not-allowed;
    opacity: .7;
}

label {
    color: #26302a;
    font-size: .9rem;
}

label:has(> .optional) {
    grid-template-columns: max-content 1fr;
    align-items: baseline;
    column-gap: 7px;
}

label:has(> .optional) > .optional {
    justify-self: start;
}

label:has(> .optional) > input,
label:has(> .optional) > select,
label:has(> .optional) > textarea,
label:has(> .optional) > .input-with-icon {
    grid-column: 1 / -1;
}

.input-with-icon,
.public-code-input {
    position: relative;
}

.input-with-icon > svg,
.public-code-input > svg {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    color: #77817b;
    pointer-events: none;
}

.input-with-icon input,
.public-code-input input {
    padding-left: 42px;
}

.filter-card {
    background: #f8faf8;
}

.streamlined-filter {
    padding: 16px;
}

.filter-panel {
    padding: 14px 16px;
    background: #fff;
}

.filter-form {
    display: grid;
    gap: 12px;
}

.filter-panel-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.filter-primary {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    min-width: 0;
}

.filter-primary > label,
.filter-advanced-grid > label,
.filter-advanced-grid > .date-range-fields {
    flex: 1 1 190px;
    min-width: 0;
}

.filter-primary > .filter-search {
    flex: 2 1 330px;
}

.filter-panel label {
    gap: 6px;
    color: #33453f;
    font-size: .83rem;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    min-height: 42px;
}

.filter-panel-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.filter-toggle,
.filter-clear {
    min-height: 42px;
    white-space: nowrap;
}

.filter-toggle-chevron {
    width: 16px;
    height: 16px;
    transition: transform .18s ease;
}

.filter-toggle[aria-expanded="true"] .filter-toggle-chevron {
    transform: rotate(180deg);
}

.filter-count {
    min-width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    line-height: 1;
}

.filter-shortcuts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding-top: 1px;
}

.filter-shortcut-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.filter-shortcut-label {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.filter-chip-list {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f6f8f6;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 5px;
    color: #53625c;
    font-size: .8rem;
    font-weight: 800;
    white-space: nowrap;
}

.filter-chip:hover {
    background: #e7eeea;
    color: var(--primary-strong);
}

.filter-chip.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(9, 95, 84, .14);
}

.filter-advanced {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.filter-advanced[hidden] {
    display: none;
}

.filter-advanced-heading {
    padding-top: 2px;
}

.filter-advanced-heading strong,
.filter-advanced-heading span {
    display: block;
}

.filter-advanced-heading strong {
    color: var(--ink);
    font-size: .87rem;
}

.filter-advanced-heading span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.4;
}

.filter-advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    align-items: end;
}

.filter-advanced-grid .date-range-fields {
    grid-column: span 2;
}

.filter-submit {
    justify-self: start;
}

.filter-form.auto-filter-ready > .filter-submit {
    display: none;
}

@media (max-width: 860px) {
    .filter-panel-row {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-panel-actions {
        align-self: flex-start;
    }

    .filter-advanced {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .filter-panel {
        padding: 12px;
    }

    .filter-primary {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .filter-primary > label,
    .filter-primary > .filter-search {
        width: 100%;
    }

    .filter-panel-actions {
        width: 100%;
    }

    .filter-toggle {
        flex: 1 1 auto;
    }

    .filter-clear span {
        display: none;
    }

    .filter-shortcuts {
        display: grid;
        gap: 9px;
    }

    .filter-shortcut-group {
        display: grid;
        gap: 5px;
    }

    .filter-chip-list {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: thin;
    }

    .filter-advanced-grid {
        grid-template-columns: 1fr;
    }

    .filter-advanced-grid .date-range-fields {
        grid-column: auto;
    }
}

.module-tabs {
    display: flex;
    gap: 4px;
    margin: -8px 0 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.module-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 7px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 760;
}

.module-tabs a:hover {
    background: #edf2ee;
    color: var(--ink);
}

.module-tabs a.active {
    background: var(--primary-soft);
    color: var(--primary-strong);
}

table {
    border-color: var(--line);
}

th {
    background: #eef2ef;
    color: #455049;
    font-size: .72rem;
    letter-spacing: .035em;
}

th,
td {
    padding: 13px 15px;
}

tbody tr:hover td {
    background: #f8faf8;
}

.table-secondary {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .84rem;
}

.table-number {
    display: block;
    font-size: 1.35rem;
}

.code-text {
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: .86rem;
}

.compact-table td,
.compact-table th {
    padding: 11px 13px;
}

.empty-state {
    background: transparent;
}

.empty-state > svg {
    width: 26px;
    height: 26px;
    margin-bottom: 9px;
    color: #8a958e;
}

.empty-state .button {
    margin-top: 14px;
}

/* Dashboard */
.command-section,
.summary-section {
    margin-bottom: 28px;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.command-link {
    min-height: 92px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
}

.command-link:hover {
    border-color: #9cb8aa;
    box-shadow: var(--shadow-soft);
    color: var(--ink);
}

.command-link.primary-command {
    border-color: var(--primary);
    background: #0b7d5c;
    color: #fff;
}

.command-link.primary-command:hover {
    background: #08694e;
    color: #fff;
}

.command-icon {
    width: 44px;
    height: 44px;
}

.primary-command .command-icon {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.command-link > span:nth-child(2) {
    display: grid;
    gap: 4px;
}

.command-link strong {
    font-size: .95rem;
}

.command-link small {
    color: var(--muted);
    line-height: 1.3;
}

.primary-command small {
    color: #d6eee5;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.summary-strip > a,
.summary-strip > div {
    min-width: 0;
    padding: 17px 20px;
    border-right: 1px solid var(--line);
    color: var(--ink);
}

.summary-strip > :last-child {
    border-right: 0;
}

.summary-strip span,
.summary-strip small {
    display: block;
    color: var(--muted);
    font-size: .79rem;
}

.summary-strip strong {
    display: block;
    margin: 7px 0 5px;
    font-size: 1.9rem;
    line-height: 1;
}

.summary-strip a:hover {
    background: #f7faf8;
    color: var(--ink);
}

.dashboard-focus-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr);
    gap: 16px;
    margin: 28px 0;
}

.search-workspace,
.attention-panel {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.quick-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    margin-top: 17px;
}

.attention-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 17px;
}

.attention-link {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
}

.attention-link span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    font-weight: 760;
}

.attention-link strong {
    font-size: 1.55rem;
}

.attention-link.warning {
    background: var(--warning-soft);
    border-color: #edd6aa;
}

.attention-link.danger {
    background: var(--danger-soft);
    border-color: #f0c4bf;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* Guided workflows */
.workflow-overview,
.process-stepper {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.workflow-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.workflow-overview li {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-right: 1px solid var(--line);
}

.workflow-overview li:last-child {
    border-right: 0;
}

.workflow-overview li > span {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 7px;
    background: #edf2ef;
    color: #526158;
}

.workflow-overview strong,
.workflow-overview small {
    display: block;
}

.workflow-overview strong {
    font-size: .82rem;
}

.workflow-overview small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .71rem;
    line-height: 1.25;
}

.process-stepper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: relative;
}

.process-stepper::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--line);
}

.process-stepper li {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 7px;
    text-align: center;
    color: #7a847e;
}

.process-stepper li > span {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
}

.process-stepper li div {
    display: grid;
    gap: 2px;
}

.process-stepper strong {
    font-size: .84rem;
}

.process-stepper small {
    font-size: .72rem;
}

.process-stepper li.complete > span {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.process-stepper li.complete {
    color: var(--primary-strong);
}

.process-stepper li.current > span {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: #8a611f;
}

.process-stepper li.current {
    color: var(--ink);
}

.process-stepper.compact {
    max-width: 720px;
    grid-template-columns: repeat(3, 1fr);
}

.process-stepper.compact::before {
    left: 16%;
    right: 16%;
}

.workflow-next {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #c8ddd3;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #f6fbf8;
}

.workflow-next-copy {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.workflow-next-copy h2 {
    margin: 0 0 5px;
}

.workflow-next-copy p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
}

.workflow-next-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.batch-summary {
    display: grid;
    grid-template-columns: minmax(220px, 1.7fr) repeat(6, minmax(95px, .65fr));
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.batch-summary > div {
    min-width: 0;
    padding: 16px;
    border-right: 1px solid var(--line);
}

.batch-summary > div:last-child {
    border-right: 0;
}

.batch-summary span,
.batch-summary small {
    display: block;
    color: var(--muted);
    font-size: .75rem;
}

.batch-summary strong {
    display: block;
    margin-top: 7px;
    font-size: 1.3rem;
}

.batch-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.batch-identity strong {
    font-size: .94rem;
}

.batch-identity small {
    margin-top: 3px;
}

.secondary-actions-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.secondary-actions-band h2 {
    margin: 0 0 4px;
}

.secondary-actions-band p {
    margin: 0;
    color: var(--muted);
    font-size: .87rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    font-size: .8rem;
}

.progress-label span {
    color: var(--muted);
}

.progress-track {
    width: 100%;
    height: 6px;
    margin-bottom: 9px;
    overflow: hidden;
    border-radius: 6px;
    background: #e5eae7;
}

.progress-track span {
    display: block;
    height: 100%;
    background: var(--primary);
}

.operation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr);
    gap: 18px;
}

.operation-primary {
    margin: 0;
}

.operation-primary form {
    margin-top: 20px;
}

.operation-summary {
    min-width: 0;
}

.state-panel {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 28px;
    border: 1px dashed #bfc9c3;
    border-radius: 8px;
    text-align: center;
    background: #f8faf8;
}

.state-panel > svg {
    width: 42px;
    height: 42px;
    color: #7b8780;
}

.state-panel span {
    max-width: 300px;
    color: var(--muted);
}

.state-panel.danger-state {
    border-color: #e1aaa3;
    background: var(--danger-soft);
}

.unit-preview {
    margin: 0;
}

.summary-list,
.result-facts {
    display: grid;
    margin: 18px 0;
}

.summary-list div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.summary-list dt {
    color: var(--muted);
}

.summary-list dd {
    margin: 0;
    font-weight: 760;
}

.sale-confirmation {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

/* Reseller */
.reseller-primary-task {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 8px;
    background: #0c7457;
    color: #fff;
}

.reseller-primary-task:hover {
    background: #095e47;
    color: #fff;
}

.reseller-primary-task .command-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.reseller-primary-task > span:nth-child(2) {
    display: grid;
    gap: 4px;
}

.reseller-primary-task small {
    color: #d8eee5;
}

.reseller-primary-task .button {
    background: #fff;
    border-color: #fff;
    color: var(--primary-strong);
}

.reseller-summary {
    grid-template-columns: repeat(3, 1fr);
}

/* Public verification */
.public-shell {
    display: block;
    min-height: 100vh;
    background: #0a0d0b;
}

.public-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.verification-hero {
    position: relative;
    isolation: isolate;
    min-height: 760px;
    overflow: hidden;
    color: #fff;
    background-color: #0b0e0c;
    background-image: url("../images/brand/verification-hero.webp");
    background-size: cover;
    background-position: center;
}

.verification-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(4, 8, 6, .36);
}

.public-site-header {
    position: relative;
    z-index: 3;
    max-width: 1240px;
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 22px 42px;
}

.public-site-header img,
.result-header img,
.login-brand-panel > img {
    width: 290px;
    max-width: 46vw;
    height: auto;
}

.public-site-header a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e8eee9;
    font-size: .84rem;
    font-weight: 760;
}

.verification-content {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100% - 84px));
    margin: 66px 0 0 max(42px, calc((100vw - 1240px) / 2 + 42px));
}

.public-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #d1a65f;
    font-size: .78rem;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.verification-content h1 {
    max-width: 650px;
    margin-bottom: 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.45rem;
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: 0;
}

.verification-lead {
    max-width: 610px;
    margin-bottom: 27px;
    color: #dce3de;
    font-size: 1.05rem;
}

.verification-form {
    max-width: 650px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .23);
}

.verification-form > label {
    margin-bottom: 9px;
    color: #fff;
}

.verification-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.public-code-input input {
    min-height: 56px;
    border: 1px solid rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .97);
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: .96rem;
}

.verification-input-row button {
    min-height: 56px;
    padding-inline: 22px;
}

.public-scanner {
    margin-top: 13px;
}

.public-scanner .secondary {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(5, 10, 7, .55);
    color: #fff;
}

.public-scanner .scanner-message {
    color: #becac2;
    font-size: .84rem;
}

.public-scanner .scanner-stage {
    border-color: rgba(255, 255, 255, .3);
}

.captcha-message {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(5, 10, 7, .66);
}

.hero-product {
    position: absolute;
    z-index: 1;
    right: max(20px, calc((100vw - 1310px) / 2));
    bottom: 62px;
    width: min(42vw, 570px);
    max-height: 610px;
    object-fit: contain;
    filter: drop-shadow(0 28px 28px rgba(0, 0, 0, .45));
}

.verification-trust {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 86px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    background: rgba(5, 9, 7, .82);
}

.verification-trust > span {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 10px;
    padding: 15px 28px;
    border-right: 1px solid rgba(255, 255, 255, .14);
}

.verification-trust > span:last-child {
    border-right: 0;
}

.verification-trust svg {
    grid-row: 1 / 3;
    width: 25px;
    height: 25px;
    align-self: center;
    color: #d1a65f;
}

.verification-trust strong {
    font-size: .86rem;
}

.verification-trust small {
    color: #aebbb3;
    font-size: .75rem;
}

.code-help-section {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
    gap: 60px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 32px;
    background: #fff;
}

.code-help-section h2 {
    margin: 0 0 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.85rem;
}

.code-help-section p {
    margin: 0;
    color: var(--muted);
}

.code-help-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.code-help-steps span {
    display: grid;
    justify-items: center;
    gap: 7px;
    text-align: center;
}

.code-help-steps strong {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
}

.code-help-steps small {
    color: var(--muted);
}

/* Public result */
.public-result-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    padding: 26px;
    background-color: #0b0e0c;
    background-image: url("../images/brand/verification-hero.webp");
    background-size: cover;
    background-position: center;
}

.result-header {
    width: min(920px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    color: #b8c3bc;
    font-size: .8rem;
}

.result-card {
    width: min(760px, 100%);
    margin: 28px auto;
    padding: 34px;
    border-top: 5px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.result-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
}

.result-icon svg {
    width: 30px;
    height: 30px;
}

.result-heading h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.25rem;
}

.result-heading p {
    color: #4f5b54;
    font-size: 1rem;
}

.result-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.result-facts div {
    padding: 14px;
    background: #fff;
}

.result-facts dt {
    color: var(--muted);
    font-size: .76rem;
}

.result-facts dd {
    margin: 5px 0 0;
    font-weight: 780;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.result-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    color: #aeb9b2;
    font-size: .76rem;
}

.public-result-shell.result-not-found .result-card,
.public-result-shell.result-blocked .result-card {
    border-top-color: var(--danger);
}

.public-result-shell.result-not-found .result-icon,
.public-result-shell.result-blocked .result-icon {
    background: var(--danger-soft);
    color: var(--danger);
}

.public-result-shell.result-suspicious .result-card,
.public-result-shell.result-already-verified .result-card,
.public-result-shell.result-registered-not-sold .result-card {
    border-top-color: var(--warning);
}

.public-result-shell.result-suspicious .result-icon,
.public-result-shell.result-already-verified .result-icon,
.public-result-shell.result-registered-not-sold .result-icon {
    background: var(--warning-soft);
    color: var(--warning);
}

/* Login */
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
    background: #0a0d0b;
}

.login-brand-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px;
    color: #fff;
    background-color: #0b0e0c;
    background-image: url("../images/brand/verification-hero.webp");
    background-size: cover;
    background-position: center;
}

.login-brand-panel h1 {
    max-width: 620px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
}

.login-brand-panel p {
    max-width: 560px;
    color: #c5d0c9;
}

.login-brand-panel > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #dbe4de;
}

.login-form-panel {
    width: min(480px, calc(100% - 48px));
    align-self: center;
    justify-self: center;
    padding: 34px;
    border-radius: 8px;
    background: #fff;
}

.login-form-panel h2 {
    margin: 4px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.login-form-panel form {
    margin-top: 24px;
}

.login-help {
    border-color: var(--line);
}

.session-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.unit-internal-identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    gap: 28px;
}

.unit-internal-identity h2 {
    margin-top: 0;
}

.unit-internal-qr {
    display: grid;
    justify-items: center;
    gap: 7px;
}

.unit-internal-qr img {
    display: block;
    width: 176px;
    height: 176px;
    border: 1px solid var(--line);
    background: #fff;
}

.unit-internal-qr span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 750;
}

.protected-reprint {
    display: grid;
    gap: 22px;
    max-width: 920px;
}

.security-warning {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 17px;
    border: 1px solid #e8c98e;
    border-radius: 8px;
    background: var(--warning-soft);
}

.security-warning > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 7px;
    background: #fff;
    color: var(--warning);
}

.security-warning svg {
    width: 21px;
    height: 21px;
}

.security-warning h2 {
    margin: 0 0 5px;
    font-size: 1.02rem;
}

.security-warning p {
    margin: 0;
    color: #66552f;
}

.protected-reprint-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.protected-reprint-summary > div {
    min-width: 0;
    padding: 15px 17px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.protected-reprint-summary > div:nth-child(2n) {
    border-right: 0;
}

.protected-reprint-summary > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.protected-reprint-summary span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.protected-reprint-summary strong {
    display: block;
    overflow-wrap: anywhere;
}

.protected-reprint-form {
    display: grid;
    gap: 18px;
    max-width: 680px;
}

.protected-reprint-form textarea {
    resize: vertical;
}

@media (max-width: 1180px) {
    .command-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-overview {
        grid-template-columns: repeat(5, minmax(145px, 1fr));
        overflow-x: auto;
    }

    .batch-summary {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }

    .batch-summary > div {
        border-bottom: 1px solid var(--line);
    }

    .hero-product {
        right: -70px;
        opacity: .72;
    }
}

@media (max-width: 980px) {
    .content-shell {
        margin-left: 0;
    }

    .topbar {
        padding: 11px 18px;
    }

    main {
        padding: 26px 20px 46px;
    }

    .dashboard-focus-grid,
    .activity-grid,
    .operation-layout {
        grid-template-columns: 1fr;
    }

    .workflow-next,
    .secondary-actions-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .workflow-next-actions {
        justify-content: flex-start;
    }

    .verification-content {
        margin-left: 38px;
    }

    .hero-product {
        right: -150px;
        width: 520px;
        opacity: .48;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 310px;
        padding: 34px;
    }

    .login-brand-panel h1 {
        font-size: 2.25rem;
    }

    .login-form-panel {
        margin: 34px auto;
    }
}

@media (max-width: 760px) {
    h1 {
        font-size: 1.75rem;
    }

    .topbar-meta,
    .topbar-user > span:not(.user-avatar),
    .topbar-user > svg {
        display: none;
    }

    .page-header {
        align-items: stretch;
    }

    .header-date {
        display: none;
    }

    .module-tabs {
        overflow-x: auto;
    }

    .module-tabs a {
        white-space: nowrap;
    }

    .command-grid,
    .summary-strip,
    .reseller-summary,
    .attention-links,
    .result-facts,
    .unit-internal-identity,
    .protected-reprint-summary {
        grid-template-columns: 1fr;
    }

    .protected-reprint-summary > div,
    .protected-reprint-summary > div:nth-child(2n),
    .protected-reprint-summary > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .protected-reprint-summary > div:last-child {
        border-bottom: 0;
    }

    .summary-strip > a,
    .summary-strip > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .summary-strip > :last-child {
        border-bottom: 0;
    }

    .summary-strip {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-strip > :nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .summary-strip > :nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .process-stepper {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .process-stepper::before {
        display: none;
    }

    .process-stepper li {
        min-width: 116px;
    }

    .batch-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reseller-primary-task {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .reseller-primary-task .button {
        grid-column: 1 / -1;
    }

    .verification-hero {
        min-height: 790px;
        background-position: 62% center;
    }

    .public-site-header {
        min-height: 82px;
        padding: 18px 22px;
    }

    .public-site-header img {
        width: 210px;
    }

    .public-site-header a {
        width: 40px;
        height: 40px;
        justify-content: center;
        overflow: hidden;
        white-space: nowrap;
        font-size: 0;
    }

    .public-site-header a svg {
        width: 19px;
        height: 19px;
    }

    .verification-content {
        width: calc(100% - 36px);
        margin: 46px 18px 0;
    }

    .verification-content h1 {
        font-size: 2.5rem;
    }

    .verification-lead {
        font-size: .95rem;
    }

    .verification-input-row {
        grid-template-columns: 1fr;
    }

    .hero-product {
        right: -110px;
        bottom: 75px;
        width: 380px;
        opacity: .28;
    }

    .verification-trust {
        grid-template-columns: repeat(3, 1fr);
    }

    .verification-trust > span {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 12px 6px;
        text-align: center;
    }

    .verification-trust svg {
        grid-row: auto;
        margin-bottom: 4px;
    }

    .verification-trust small {
        display: none;
    }

    .code-help-section {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 22px;
    }

    .code-help-steps > svg {
        display: none;
    }

    .public-result-shell {
        padding: 18px;
    }

    .result-header span {
        display: none;
    }

    .result-header img {
        width: 220px;
    }

    .result-card {
        padding: 24px 20px;
    }

    .result-heading h1 {
        font-size: 1.85rem;
    }

    .login-brand-panel {
        min-height: 245px;
        padding: 26px 22px;
    }

    .login-brand-panel > img {
        width: 230px;
    }

    .login-brand-panel h1 {
        font-size: 1.85rem;
    }

    .login-brand-panel > a {
        display: none;
    }

    .login-form-panel {
        width: calc(100% - 30px);
        margin: 20px auto;
        padding: 24px 20px;
    }
}

@media (max-width: 520px) {
    main {
        padding: 22px 14px 40px;
    }

    .is-public main {
        padding: 0;
    }

    .summary-strip {
        grid-template-columns: 1fr;
    }

    .summary-strip > :nth-child(odd) {
        border-right: 0;
    }

    .summary-strip > :nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .summary-strip > :last-child {
        border-bottom: 0;
    }

    .quick-search {
        grid-template-columns: 1fr;
    }

    .workflow-next-copy {
        display: grid;
    }

    .workflow-next-actions,
    .workflow-next-actions .button,
    .workflow-next-actions form,
    .workflow-next-actions button {
        width: 100%;
    }

    .batch-summary {
        grid-template-columns: 1fr 1fr;
    }

    .batch-identity {
        grid-column: 1 / -1;
    }

    .verification-content h1 {
        font-size: 2.15rem;
    }

    .public-scanner .actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .code-help-steps {
        align-items: start;
    }

    .code-help-steps small {
        font-size: .72rem;
    }

    .result-actions,
    .result-actions .button {
        width: 100%;
    }

    .result-footnote {
        text-align: center;
    }
}
