:root {
    --ink: #102a2a;
    --ink-soft: #26413e;
    --muted: #6a7d79;
    --muted-light: #8b9a97;
    --surface: #ffffff;
    --canvas: #f4f7f6;
    --canvas-deep: #eaf1ef;
    --line: #dce6e3;
    --line-strong: #c8d7d3;
    --green: #117864;
    --green-dark: #0b5d4d;
    --green-pale: #e3f3ef;
    --lime: #d9f36a;
    --orange: #c76b2a;
    --orange-pale: #fff1e5;
    --red: #b93838;
    --red-dark: #922d2d;
    --red-pale: #fff0f0;
    --shadow: 0 14px 40px rgba(16, 42, 42, 0.065);
    --radius: 18px;
    --radius-sm: 11px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Noto Sans KR", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
    align-items: center;
    min-height: 72px;
    padding: 0 max(24px, calc((100vw - 1480px) / 2));
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(200, 215, 211, 0.8);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
}

.brand-symbol {
    display: grid;
    grid-template-columns: repeat(2, 8px);
    grid-template-rows: repeat(2, 8px);
    gap: 3px;
    width: 28px;
    height: 28px;
    padding: 3px;
    background: var(--ink);
    border-radius: 7px;
}

.brand-symbol i {
    display: block;
    background: var(--lime);
    border-radius: 1px;
}

.brand-symbol i:nth-child(2),
.brand-symbol i:nth-child(3) {
    background: #fff;
}

.brand-copy {
    display: grid;
    line-height: 1.06;
}

.brand-copy strong {
    font-size: 17px;
    letter-spacing: -0.025em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: #edf3f1;
    border-radius: 12px;
}

.main-nav a {
    padding: 8px 17px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.main-nav a[aria-current="page"] {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 2px 9px rgba(16, 42, 42, 0.08);
}

.account-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
    min-width: 0;
}

.account-menu form,
.heading-actions form {
    margin: 0;
}

.company-chip {
    max-width: 180px;
    overflow: hidden;
    padding: 5px 9px;
    background: var(--green-pale);
    border-radius: 8px;
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-chip {
    padding: 4px 7px;
    background: #edf2f0;
    border-radius: 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.account-name {
    max-width: 170px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-button {
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--green);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.page-shell {
    width: min(1440px, calc(100% - 48px));
    min-height: calc(100vh - 150px);
    margin: 0 auto;
    padding: 46px 0 72px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.message-stack {
    position: fixed;
    top: 84px;
    left: 50%;
    z-index: 50;
    display: grid;
    gap: 8px;
    width: min(520px, calc(100% - 30px));
    transform: translateX(-50%);
}

.message {
    padding: 13px 16px;
    background: #effaf7;
    border: 1px solid #b9dfd6;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 42, 42, 0.14);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 720;
}

.message.error {
    background: var(--red-pale);
    border-color: #efb8b8;
    color: var(--red);
}

.message.warning {
    background: var(--orange-pale);
    border-color: #efc6a8;
    color: #8d4c1c;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--green);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-heading,
.detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.page-heading h1,
.detail-heading h1,
.form-page-heading h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.18;
    letter-spacing: -0.045em;
}

.page-heading p:not(.eyebrow),
.form-page-heading > p:not(.eyebrow),
.detail-heading > div > p {
    margin: 10px 0 0;
    color: var(--muted);
}

.heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 820;
    transition: 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 7px 18px rgba(16, 42, 42, 0.16);
}

.button.primary:hover {
    background: #173c3b;
}

.button.secondary {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink-soft);
}

.button.secondary:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.button.warning {
    background: var(--orange-pale);
    border-color: #efc59f;
    color: #8d4c1c;
}

.button.success {
    background: var(--green-pale);
    border-color: #b5dbd2;
    color: var(--green-dark);
}

.button.danger {
    background: var(--red);
    color: #fff;
}

.button.danger:hover {
    background: var(--red-dark);
}

.button.danger:disabled {
    background: #d7dedd;
    color: #8d9997;
    cursor: not-allowed;
    transform: none;
}

.button.danger-outline {
    background: transparent;
    border-color: #e0abab;
    color: var(--red);
}

.button.large {
    min-height: 49px;
    padding: 12px 20px;
}

.button.full {
    width: 100%;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.metric-grid article {
    position: relative;
    display: grid;
    min-height: 145px;
    padding: 22px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.metric-grid article > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.metric-grid strong {
    align-self: end;
    margin-top: 12px;
    font-size: 33px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.metric-grid small {
    margin-top: 9px;
    color: var(--muted-light);
    font-size: 11px;
}

.metric-grid .accent-metric {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.metric-grid .accent-metric::after {
    position: absolute;
    right: -25px;
    bottom: -45px;
    width: 125px;
    height: 125px;
    background: var(--lime);
    border-radius: 50%;
    content: "";
    opacity: 0.12;
}

.metric-grid .accent-metric span,
.metric-grid .accent-metric small {
    color: #afc3bf;
}

.success-text {
    color: var(--green);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dashboard-insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.75fr);
    gap: 16px;
    margin-bottom: 16px;
}

.chart-panel,
.ranking-panel,
.product-panel,
.category-sidebar,
.qr-studio,
.product-summary,
.version-panel,
.recent-scan-panel,
.device-panel {
    padding: 23px;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-heading h2,
.panel-heading h3,
.product-toolbar h2,
.section-heading h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.panel-stat {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.panel-stat strong {
    font-size: 28px;
    letter-spacing: -0.04em;
}

.panel-stat span {
    color: var(--muted);
    font-size: 12px;
}

.chart-wrap {
    position: relative;
    height: 190px;
    margin-top: 13px;
}

.chart-wrap.large {
    height: 245px;
}

.chart-wrap canvas {
    width: 100%;
    height: 100%;
}

.ranking-list {
    display: grid;
    gap: 0;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    border-top: 1px solid #edf2f0;
}

.ranking-list .rank {
    color: var(--muted-light);
    font-size: 11px;
    font-weight: 850;
}

.ranking-list a {
    display: grid;
    min-width: 0;
}

.ranking-list a strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list a small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list b {
    font-size: 12px;
}

.management-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.category-sidebar {
    position: sticky;
    top: 92px;
    padding: 20px 13px 13px;
}

.compact-heading {
    padding: 0 7px 12px;
}

.icon-link {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: var(--green-pale);
    border-radius: 9px;
    color: var(--green-dark);
    font-size: 19px;
    font-weight: 650;
}

.category-nav {
    display: grid;
    gap: 3px;
}

.category-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 8px 10px 8px calc(10px + var(--depth, 0) * 14px);
    border-radius: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.category-nav a:hover {
    background: #f3f7f6;
    color: var(--ink);
}

.category-nav a[aria-current="page"] {
    background: var(--ink);
    color: #fff;
}

.category-nav b {
    min-width: 24px;
    padding: 2px 6px;
    background: rgba(106, 125, 121, 0.1);
    border-radius: 7px;
    font-size: 10px;
    text-align: center;
}

.category-nav a[aria-current="page"] b {
    background: rgba(255, 255, 255, 0.13);
}

.sidebar-empty {
    margin: 8px;
    color: var(--muted);
    font-size: 11px;
}

.sidebar-manage-link {
    display: block;
    margin-top: 9px;
    padding: 12px 8px 4px;
    border-top: 1px solid var(--line);
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
}

.product-panel {
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

.product-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 23px 18px;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

input,
select {
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--ink);
    outline: none;
    transition: 150ms ease;
}

input:focus,
select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(17, 120, 100, 0.1);
}

input::placeholder {
    color: #9aa9a6;
}

.search-field input {
    width: 260px;
}

.filter-form select {
    width: 125px;
}

.table-scroll {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    text-align: left;
}

.product-table th {
    padding: 11px 17px;
    background: #f4f7f6;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    font-weight: 820;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.product-table td {
    padding: 16px 17px;
    border-bottom: 1px solid #edf2f0;
    color: var(--ink-soft);
    font-size: 12px;
    vertical-align: middle;
}

.product-table tbody tr:hover {
    background: #fbfcfc;
}

.product-table td:first-child {
    min-width: 220px;
}

.product-name {
    display: block;
    color: var(--ink);
    font-size: 13px;
    font-weight: 820;
}

.product-table td small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.row-link,
.text-link {
    color: var(--green);
    font-size: 11px;
    font-weight: 820;
    white-space: nowrap;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status.active {
    background: var(--green-pale);
    color: var(--green-dark);
}

.status.active i {
    background: #19a286;
    box-shadow: 0 0 0 3px rgba(25, 162, 134, 0.13);
}

.status.paused {
    background: var(--orange-pale);
    color: #8d4c1c;
}

.status.paused i {
    background: var(--orange);
}

.empty-state {
    display: grid;
    place-items: center;
    max-width: 520px;
    min-height: 290px;
    margin: 0 auto;
    padding: 36px 20px;
    text-align: center;
}

.empty-state h3 {
    margin: 15px 0 5px;
    font-size: 18px;
}

.empty-state p {
    margin: 0 0 18px;
    color: var(--muted);
}

.empty-qr {
    width: 42px;
    height: 42px;
    background:
        linear-gradient(90deg, var(--ink) 35%, transparent 35% 65%, var(--ink) 65%),
        linear-gradient(var(--ink) 35%, transparent 35% 65%, var(--ink) 65%);
    opacity: 0.35;
}

.empty-compact {
    margin: 20px 0;
    color: var(--muted);
    font-size: 12px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px;
}

.pagination a {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

.pagination span {
    color: var(--muted);
    font-size: 11px;
}

.audit-strip {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    margin-top: 16px;
    padding: 22px;
}

.audit-strip h2 {
    margin: 0;
    font-size: 17px;
}

.audit-strip ul {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
}

.audit-strip li {
    display: grid;
    flex: 0 0 180px;
    padding: 10px 12px;
    background: #f4f7f6;
    border-radius: 10px;
}

.audit-strip li strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-strip li span,
.audit-strip li time {
    color: var(--muted);
    font-size: 9px;
}

.category-management {
    overflow: hidden;
}

.category-header-row,
.category-tree-list article {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 110px 230px;
    align-items: center;
}

.category-header-row {
    padding: 12px 22px;
    background: #edf3f1;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.category-tree-list article {
    min-height: 68px;
    padding: 11px 22px;
    border-bottom: 1px solid #edf2f0;
}

.category-tree-list article:last-child {
    border-bottom: 0;
}

.category-identity {
    display: grid;
    grid-template-columns: calc(var(--depth) * 25px) minmax(0, 1fr);
}

.tree-connector {
    grid-row: 1 / 3;
    position: relative;
}

.category-identity strong,
.category-identity small {
    grid-column: 2;
}

.category-identity small {
    color: var(--muted);
    font-size: 10px;
}

.inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.inline-actions a {
    color: var(--green);
    font-size: 11px;
    font-weight: 780;
}

.inline-actions .danger-link {
    color: var(--red);
}

.button.compact {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 9px;
}

.role-guide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.role-guide article {
    display: grid;
    gap: 4px;
    padding: 15px 17px;
    background: #f3f7f6;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.role-guide strong {
    color: var(--ink-soft);
    font-size: 12px;
}

.role-guide span {
    color: var(--muted);
    font-size: 10px;
}

.team-panel {
    padding: 0;
    overflow: hidden;
}

.team-panel > .panel-heading,
.removed-members > .panel-heading {
    padding: 20px 22px;
}

.team-table {
    width: 100%;
    min-width: 830px;
    border-collapse: collapse;
}

.team-table th {
    padding: 10px 17px;
    background: #f4f7f6;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.05em;
    text-align: left;
}

.team-table td {
    padding: 14px 17px;
    border-bottom: 1px solid #edf2f0;
    color: var(--ink-soft);
    font-size: 11px;
    vertical-align: middle;
}

.team-table td:first-child strong,
.team-table td:first-child small {
    display: block;
}

.team-table td:first-child small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.team-table td:first-child em {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 5px;
    background: var(--green-pale);
    border-radius: 5px;
    color: var(--green-dark);
    font-size: 8px;
    font-style: normal;
    font-weight: 850;
}

.role-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.role-form select {
    width: 105px;
    min-height: 34px;
    padding: 5px 8px;
    font-size: 10px;
}

.source-badge,
.role-label {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 7px;
    background: #edf2f0;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.source-badge.google {
    background: #eef4ff;
    color: #315ea8;
}

.role-label.admin {
    background: var(--green-pale);
    color: var(--green-dark);
}

.team-table .danger-link {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
}

.removed-members {
    margin-top: 16px;
}

.removed-members ul {
    display: grid;
    margin: 0;
    padding: 0 22px 18px;
    list-style: none;
}

.removed-members li {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(200px, 1.5fr) auto;
    gap: 16px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.removed-members strong {
    color: var(--ink-soft);
}

.state-card {
    width: min(620px, calc(100% - 32px));
    margin: 70px auto;
    padding: 48px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.state-symbol {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0 auto 20px;
    place-items: center;
    background: var(--orange-pale);
    border-radius: 50%;
    color: var(--orange);
    font-size: 22px;
    font-weight: 900;
}

.state-card h1 {
    margin: 0;
    font-size: 28px;
}

.state-card > p:not(.eyebrow) {
    margin: 12px auto 24px;
    color: var(--muted);
    line-height: 1.7;
}

.info-callout {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 15px 18px;
    background: var(--green-pale);
    border-radius: 13px;
    color: var(--green-dark);
}

.info-callout p {
    margin: 0;
    font-size: 12px;
}

.form-page-heading {
    max-width: 900px;
    margin-bottom: 24px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 900px) minmax(260px, 1fr);
    gap: 18px;
    align-items: start;
}

.form-card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-card.narrow {
    max-width: 680px;
}

.stack-form {
    display: grid;
    gap: 18px;
}

.stack-form.compact {
    margin-top: 28px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 820;
}

.field small,
.helptext {
    color: var(--muted);
    font-size: 10px;
}

.errorlist {
    margin: 0;
    padding-left: 18px;
    color: var(--red);
    font-size: 11px;
}

.form-alert {
    margin: 16px 0;
    padding: 12px;
    background: var(--red-pale);
    border-radius: 10px;
    color: var(--red);
    font-size: 12px;
}

.form-section {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.form-section + .form-section {
    padding-top: 10px;
}

.section-number {
    display: grid;
    place-items: center;
    align-self: start;
    width: 38px;
    height: 38px;
    background: var(--green-pale);
    border-radius: 11px;
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 900;
}

.section-fields {
    display: grid;
    gap: 17px;
}

.section-fields h2 {
    margin: 7px 0 3px;
    font-size: 18px;
}

.two-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.optional {
    color: var(--muted-light);
    font-size: 9px;
    font-weight: 650;
}

.switch-field {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    cursor: pointer;
}

.switch-field input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-ui {
    position: relative;
    width: 42px;
    height: 24px;
    background: #cbd5d2;
    border-radius: 999px;
    transition: 150ms ease;
}

.switch-ui::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(16, 42, 42, 0.2);
    content: "";
    transition: 150ms ease;
}

.switch-field input:checked + .switch-ui {
    background: var(--green);
}

.switch-field input:checked + .switch-ui::after {
    transform: translateX(18px);
}

.switch-field > span:last-child {
    display: grid;
}

.switch-field strong {
    font-size: 12px;
}

.switch-field small {
    color: var(--muted);
    font-size: 10px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 5px;
}

.form-guide {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 12px;
}

.guide-card {
    padding: 22px;
    background: var(--ink);
    border-radius: var(--radius);
    color: #fff;
}

.guide-card h3 {
    margin: 15px 0 12px;
    font-size: 17px;
}

.guide-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: #c1d0cd;
    font-size: 11px;
}

.guide-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--lime);
    border-radius: 10px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 900;
}

.guide-card.legal {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
}

.guide-card.legal p:not(.eyebrow) {
    color: var(--muted);
    font-size: 11px;
}

.guide-card.legal a {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
}

.detail-heading {
    align-items: center;
}

.title-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pause-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: -8px 0 16px;
    padding: 14px 18px;
    background: var(--orange-pale);
    border: 1px solid #efc6a8;
    border-radius: 13px;
    color: #8d4c1c;
}

.pause-banner span {
    font-size: 12px;
}

.detail-primary-grid {
    display: grid;
    grid-template-columns: minmax(350px, 0.76fr) minmax(0, 1.24fr);
    gap: 16px;
}

.client-badge {
    padding: 5px 8px;
    background: var(--green-pale);
    border-radius: 8px;
    color: var(--green-dark);
    font-size: 9px;
    font-weight: 850;
}

.qr-preview-shell {
    display: grid;
    place-items: center;
    width: min(280px, 100%);
    margin: 22px auto 18px;
    padding: 21px 21px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(16, 42, 42, 0.07);
}

.qr-preview {
    width: 100%;
    aspect-ratio: 1;
}

.qr-preview svg {
    display: block;
    width: 100%;
    height: 100%;
}

.qr-preview-shell p {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.qr-style-form {
    display: grid;
    gap: 10px;
    margin: 2px 0 14px;
    padding: 13px;
    background: #f7f9f8;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.qr-style-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.qr-style-heading > div {
    display: grid;
    gap: 2px;
}

.qr-style-heading strong {
    color: var(--ink-soft);
    font-size: 11px;
}

.qr-style-heading span {
    color: var(--muted);
    font-size: 9px;
}

.qr-style-heading .button.compact {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 9px;
    white-space: nowrap;
}

.qr-style-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.qr-style-presets label {
    cursor: pointer;
}

.qr-style-presets input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.qr-style-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 1px 8px;
    align-items: center;
    min-height: 50px;
    padding: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    transition: 150ms ease;
}

.qr-style-card strong {
    align-self: end;
    color: var(--ink-soft);
    font-size: 10px;
}

.qr-style-card small {
    align-self: start;
    color: var(--muted);
    font-size: 8px;
}

.qr-style-presets input:checked + .qr-style-card {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(17, 120, 100, 0.11);
}

.qr-style-presets input:focus-visible + .qr-style-card {
    outline: 3px solid rgba(17, 120, 100, 0.2);
    outline-offset: 2px;
}

.preset-swatch {
    --preset-color: #111;
    grid-row: 1 / 3;
    width: 36px;
    height: 36px;
    background:
        linear-gradient(90deg, var(--preset-color) 30%, transparent 30% 65%, var(--preset-color) 65%),
        linear-gradient(var(--preset-color) 30%, transparent 30% 65%, var(--preset-color) 65%),
        #fff;
    border: 5px solid #fff;
    box-shadow: 0 0 0 1px #d9e2df;
}

.preset-swatch.navy {
    --preset-color: #102a43;
}

.preset-swatch.forest {
    --preset-color: #123b32;
}

.preset-swatch.rounded {
    --preset-color: #111827;
    border-radius: 8px;
}

.qr-url-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 10px 9px 12px;
    background: #f3f6f5;
    border-radius: 10px;
}

.qr-url-row code {
    overflow: hidden;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-button {
    padding: 4px 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--green);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 14px;
}

.download-options label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.download-options select {
    min-height: 37px;
    padding: 6px 8px;
    font-size: 11px;
}

.download-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 7px;
    margin-top: 9px;
}

.download-grid .button {
    padding: 8px;
    font-size: 10px;
}

.qr-quality-note {
    display: grid;
    margin-top: 14px;
    padding: 12px;
    background: #f2f7f6;
    border-left: 3px solid var(--green);
    color: var(--muted);
    font-size: 9px;
}

.qr-quality-note strong {
    color: var(--ink-soft);
}

.detail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 22px 0 0;
    border-top: 1px solid var(--line);
}

.detail-list > div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 6px;
    border-bottom: 1px solid var(--line);
}

.detail-list > div:nth-child(odd):not(.full) {
    padding-right: 20px;
    border-right: 1px solid var(--line);
}

.detail-list > div:nth-child(even):not(.full) {
    padding-left: 20px;
}

.detail-list .full {
    grid-column: 1 / -1;
}

.detail-list dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 780;
}

.detail-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 11px;
    font-weight: 750;
}

.detail-list dd a {
    color: var(--green);
}

.route-explainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 19px;
    padding: 16px;
    background: var(--ink);
    border-radius: 12px;
    color: #b9cac6;
    font-size: 10px;
}

.route-explainer strong {
    padding: 6px 8px;
    background: var(--lime);
    border-radius: 7px;
    color: var(--ink);
}

.route-explainer i {
    opacity: 0.45;
}

.analytics-section {
    margin-top: 42px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.period-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #e8efed;
    border-radius: 10px;
}

.period-tabs a {
    padding: 6px 11px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 820;
}

.period-tabs a[aria-current="page"] {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 7px rgba(16, 42, 42, 0.08);
}

.period-tabs .export-link {
    margin-left: 5px;
    color: var(--green);
}

.analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.45fr);
    gap: 16px;
}

.analytics-summary {
    display: flex;
    gap: 40px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.analytics-summary div {
    display: grid;
}

.analytics-summary span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.analytics-summary strong {
    margin-top: 3px;
    font-size: 25px;
    letter-spacing: -0.035em;
}

.device-list {
    display: grid;
    margin-top: 16px;
}

.device-list div {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.device-list span {
    color: var(--muted);
}

.privacy-note {
    margin: 18px 0 0;
    padding: 12px;
    background: #f2f7f6;
    border-radius: 9px;
    color: var(--muted);
    font-size: 9px;
}

.history-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}

.version-current {
    padding: 5px 8px;
    background: var(--ink);
    border-radius: 8px;
    color: #fff;
    font-size: 9px;
    font-weight: 850;
}

.version-timeline {
    display: grid;
    margin-top: 18px;
}

.version-timeline > article {
    position: relative;
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 9px;
    padding-bottom: 17px;
}

.version-timeline > article:not(:last-child)::before {
    position: absolute;
    top: 12px;
    bottom: -3px;
    left: 5px;
    width: 1px;
    background: var(--line);
    content: "";
}

.version-node {
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: 5px;
    background: var(--green);
    border: 3px solid #d7eee9;
    border-radius: 50%;
}

.version-copy {
    min-width: 0;
}

.version-copy > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.version-copy strong {
    font-size: 12px;
}

.version-copy time {
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}

.version-copy p {
    margin: 3px 0;
    color: var(--muted);
    font-size: 10px;
}

.version-copy details {
    font-size: 10px;
}

.version-copy summary {
    color: var(--green);
    cursor: pointer;
    font-weight: 750;
}

.version-copy details dl {
    display: grid;
    gap: 4px;
    margin: 9px 0;
    padding: 10px;
    background: #f3f7f6;
    border-radius: 8px;
}

.version-copy details dl div {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
}

.version-copy details dt {
    color: var(--muted);
}

.version-copy details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.recent-scan-list {
    display: grid;
    margin-top: 13px;
}

.recent-scan-list > div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 49px;
    border-top: 1px solid var(--line);
}

.recent-scan-list p {
    display: grid;
    margin: 0;
}

.recent-scan-list strong {
    font-size: 11px;
}

.recent-scan-list small,
.recent-scan-list time {
    color: var(--muted);
    font-size: 9px;
}

.scan-result {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
}

.scan-result.paused,
.scan-result.deleted,
.scan-result.invalid {
    background: var(--orange);
}

.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 32px;
    padding: 20px 22px;
    background: transparent;
    border: 1px solid #e9caca;
    border-radius: 14px;
}

.danger-zone p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.delete-shell {
    max-width: 680px;
    margin: 0 auto;
}

.delete-card {
    padding: 38px;
    background: var(--surface);
    border: 1px solid #edcccc;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.danger-symbol {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    background: var(--red-pale);
    border-radius: 14px;
    color: var(--red);
    font-size: 23px;
    font-weight: 900;
}

.delete-card h1 {
    margin: 0;
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.delete-card > p:not(.eyebrow) {
    color: var(--muted);
}

.danger-text {
    color: var(--red);
}

.strict-delete-form {
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
}

.delete-instruction {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-instruction > span {
    display: grid;
    place-items: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    background: var(--red-pale);
    border-radius: 8px;
    color: var(--red);
    font-size: 10px;
    font-weight: 900;
}

.delete-instruction p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.delete-instruction strong {
    color: var(--ink);
}

.blocker-alert {
    display: grid;
    margin-top: 20px;
    padding: 14px;
    background: var(--orange-pale);
    border-radius: 10px;
    color: #8d4c1c;
    font-size: 11px;
}

.auth-body {
    background: var(--ink);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.75fr);
    min-height: 100vh;
}

.auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(34px, 6vw, 80px);
    overflow: hidden;
    color: #fff;
}

.auth-intro::before,
.auth-intro::after {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    content: "";
}

.auth-intro::before {
    right: -90px;
    bottom: 8%;
    width: 330px;
    height: 330px;
    background: var(--lime);
    opacity: 0.12;
}

.auth-intro::after {
    right: 17%;
    bottom: 24%;
    width: 90px;
    height: 90px;
    border: 22px solid #fff;
    opacity: 0.06;
}

.auth-intro > * {
    z-index: 1;
}

.auth-brand .brand-symbol {
    background: #fff;
}

.auth-brand .brand-copy small {
    color: #aac0bc;
}

.auth-intro h1 {
    max-width: 740px;
    margin: 0;
    font-size: clamp(40px, 5.5vw, 72px);
    line-height: 1.1;
    letter-spacing: -0.055em;
}

.auth-description {
    max-width: 590px;
    margin: 23px 0 0;
    color: #afc2be;
    font-size: 17px;
    line-height: 1.75;
}

.auth-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    overflow: hidden;
}

.auth-proof div {
    display: grid;
    padding: 17px;
    background: rgba(255, 255, 255, 0.025);
}

.auth-proof strong {
    font-size: 12px;
}

.auth-proof span {
    margin-top: 4px;
    color: #94aca7;
    font-size: 9px;
}

.industry-context {
    max-width: 760px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.industry-context h2 {
    margin: 0 0 5px;
    font-size: 13px;
    letter-spacing: -0.02em;
}

.industry-context p {
    margin: 0;
    color: #94aca7;
    font-size: 10px;
    line-height: 1.65;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 6vw, 90px);
    background: #f8faf9;
}

.auth-card h2 {
    margin: 0;
    font-size: 29px;
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.auth-card-copy > p:not(.eyebrow) {
    margin: 10px 0 27px;
    color: var(--muted);
    font-size: 12px;
}

.google-sso-button {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 9px 14px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    transition: 150ms ease;
}

.google-sso-button:hover {
    border-color: #9eb0ac;
    box-shadow: 0 8px 18px rgba(16, 42, 42, 0.06);
}

.google-sso-button > span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    background: #fff;
    border: 1px solid #dde5e2;
    border-radius: 50%;
    color: #4285f4;
    font: 850 14px/1 Arial, sans-serif;
}

.google-sso-button small {
    color: var(--muted);
    font-size: 8px;
}

.google-sso-button.disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 19px 0;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    flex: 1;
    height: 1px;
    background: var(--line);
    content: "";
}

.auth-footnote {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.auth-footnote a {
    color: var(--green);
    font-weight: 800;
}

.legal-reference {
    margin-top: 50px;
    color: var(--muted-light);
    font-size: 9px;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.setup-shell {
    display: grid;
    min-height: calc(100vh - 74px);
    place-items: center;
    padding: 40px 24px;
}

.setup-card {
    width: min(600px, 100%);
    padding: 45px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.setup-card h1 {
    margin: 0;
    font-size: 33px;
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.lead {
    color: var(--muted);
}

.step-indicator {
    display: flex;
    align-items: center;
    width: 130px;
    margin-bottom: 28px;
}

.step-indicator span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: var(--ink);
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 850;
}

.step-indicator i {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.step-indicator .muted-step {
    background: #e7edeb;
    color: var(--muted);
}

@media (max-width: 1120px) {
    .topbar {
        grid-template-columns: auto 1fr auto;
        gap: 24px;
    }

    .main-nav {
        justify-self: center;
    }

    .company-chip,
    .role-chip,
    .account-name {
        display: none;
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-primary-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .qr-studio {
        display: grid;
        grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1fr);
        column-gap: 24px;
    }

    .qr-studio .panel-heading,
    .qr-studio .qr-quality-note {
        grid-column: 1 / -1;
    }

    .qr-preview-shell {
        grid-row: 2 / 7;
        margin: 20px auto;
    }

    .qr-url-row {
        margin-top: 20px;
    }

    .form-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 880px) {
    .topbar {
        grid-template-columns: auto 1fr;
        padding: 11px 18px;
    }

    .main-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-self: stretch;
        margin-top: 8px;
    }

    .main-nav a {
        flex: 1;
        text-align: center;
    }

    .account-menu {
        justify-self: end;
    }

    .page-shell {
        width: min(100% - 28px, 1440px);
        padding-top: 32px;
    }

    .site-footer {
        width: min(100% - 28px, 1440px);
    }

    .dashboard-insight-grid,
    .management-layout,
    .history-grid,
    .form-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar,
    .form-guide {
        position: static;
    }

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

    .category-header-row,
    .category-tree-list article {
        grid-template-columns: minmax(220px, 1fr) 70px 190px;
    }

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

    .auth-intro {
        min-height: 520px;
    }

    .auth-card {
        min-height: 620px;
    }
}

@media (max-width: 640px) {
    .page-heading,
    .detail-heading,
    .section-heading,
    .product-toolbar,
    .danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

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

    .heading-actions .button {
        width: 100%;
    }

    .heading-actions form .button {
        width: 100%;
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .metric-grid article {
        min-height: 125px;
        padding: 17px;
    }

    .metric-grid strong {
        font-size: 28px;
    }

    .dashboard-insight-grid {
        grid-template-columns: 1fr;
    }

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

    .search-field {
        grid-column: 1 / -1;
    }

    .search-field input,
    .filter-form select {
        width: 100%;
    }

    .category-nav {
        grid-template-columns: 1fr;
    }

    .role-guide {
        grid-template-columns: 1fr;
    }

    .removed-members li {
        grid-template-columns: 1fr;
        gap: 3px;
    }

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

    .category-header-row {
        display: none;
    }

    .category-tree-list article {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .category-tree-list .inline-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: calc(var(--depth) * 25px);
    }

    .form-card,
    .delete-card,
    .setup-card {
        padding: 22px;
    }

    .form-section {
        grid-template-columns: 1fr;
    }

    .two-fields,
    .download-options,
    .download-grid,
    .detail-list {
        grid-template-columns: 1fr;
    }

    .detail-list > div,
    .detail-list > div:nth-child(odd):not(.full),
    .detail-list > div:nth-child(even):not(.full) {
        grid-column: 1;
        grid-template-columns: 110px minmax(0, 1fr);
        padding: 13px 4px;
        border-right: 0;
    }

    .qr-studio {
        display: block;
    }

    .route-explainer {
        flex-wrap: wrap;
    }

    .analytics-summary {
        justify-content: space-between;
        gap: 10px;
    }

    .period-tabs {
        align-self: flex-start;
    }

    .version-copy > div {
        display: grid;
    }

    .danger-zone .button {
        width: 100%;
    }

    .auth-intro {
        min-height: 600px;
        padding: 28px;
    }

    .auth-intro h1 {
        font-size: 40px;
    }

    .auth-description {
        font-size: 14px;
    }

    .auth-proof {
        grid-template-columns: 1fr;
    }

    .auth-card {
        min-height: 600px;
        padding: 38px 24px;
    }

    .site-footer {
        display: grid;
        gap: 5px;
    }
}

/* Public marketing and reference pages */
.public-body {
    background: #f7faf9;
}

.public-root {
    min-height: 100vh;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 9px 13px;
    background: #fff;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 800;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.public-header {
    position: sticky;
    z-index: 40;
    top: 0;
    border-bottom: 1px solid rgba(200, 215, 211, 0.82);
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(18px);
}

.public-nav-shell {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    min-height: 70px;
    margin: 0 auto;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.public-nav a {
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 780;
}

.public-nav a:hover,
.public-nav a[aria-current="page"] {
    background: var(--green-pale);
    color: var(--green-dark);
}

.public-login-button {
    justify-self: end;
    padding: 8px 16px;
}

.public-section {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.eyebrow.light {
    color: var(--lime);
}

.button.lime {
    background: var(--lime);
    color: var(--ink);
}

.button.lime:hover {
    background: #e4f88b;
}

.material-symbols-rounded {
    display: inline-block;
    overflow: hidden;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.text-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 850;
}

.text-arrow.light {
    color: #d7e5e2;
}

.text-arrow span {
    font-size: 17px;
    transition: transform 150ms ease;
}

.text-arrow:hover span {
    transform: translateX(3px);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.55fr);
    gap: clamp(48px, 8vw, 110px);
    width: 100%;
    max-width: none;
    min-height: 720px;
    padding: clamp(76px, 9vw, 120px) max(40px, calc((100vw - 1180px) / 2));
    background:
        radial-gradient(circle at 72% 15%, rgba(217, 243, 106, 0.13), transparent 23%),
        linear-gradient(135deg, #102a2a 0%, #0d3530 100%);
    color: #fff;
}

.home-hero-copy {
    align-self: center;
}

.home-hero h1 {
    max-width: 720px;
    margin: 10px 0 0;
    font-size: clamp(48px, 6.6vw, 86px);
    line-height: 1.05;
    letter-spacing: -0.065em;
}

.hero-description {
    max-width: 650px;
    margin: 28px 0 0;
    color: #b6cac6;
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 34px;
}

.hero-assurance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 65px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.13);
}

.hero-assurance > div {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 10px;
    align-content: start;
    padding: 17px;
    background: rgba(9, 39, 35, 0.72);
}

.hero-assurance strong {
    grid-column: 2;
    align-self: center;
    font-size: 11px;
}

.hero-assurance > div > span:not(.pictogram) {
    grid-column: 2;
    margin-top: 6px;
    color: #9fb6b1;
    font-size: 9px;
    line-height: 1.55;
}

.hero-assurance .pictogram {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 26px;
    height: 26px;
    margin: 0;
    color: var(--lime);
    font-size: 23px;
    line-height: 1;
}

.login-card {
    align-self: center;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 23px;
    background: #f8faf9;
    color: var(--ink);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.login-card h2 {
    margin: 0;
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.login-card .auth-card-copy > p:not(.eyebrow) {
    margin-bottom: 24px;
}

.trusted-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 7vw, 90px);
    min-height: 190px;
    padding: 26px 30px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.trusted-section > p {
    max-width: 330px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.trusted-section > p span {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.trusted-logo-frame {
    position: relative;
    display: block;
    width: 230px;
    height: 104px;
    overflow: hidden;
}

.trusted-logo-frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 430px;
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%);
}

.section-heading-public .eyebrow {
    margin-bottom: 10px;
}

.section-heading-public h2 {
    margin: 0;
    font-size: clamp(33px, 4.2vw, 52px);
    line-height: 1.16;
    letter-spacing: -0.055em;
}

.section-heading-public > p:not(.eyebrow):not(.section-number) {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.section-heading-public.centered {
    text-align: center;
}

.section-heading-public.centered > p:not(.eyebrow) {
    margin-inline: auto;
}

.home-problem,
.home-workflow,
.feature-section,
.resource-section {
    padding-block: clamp(80px, 10vw, 130px);
}

.comparison-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    align-items: stretch;
    margin-top: 48px;
}

.comparison-panel article {
    position: relative;
    padding: clamp(27px, 4vw, 44px);
    padding-right: clamp(75px, 8vw, 105px);
    border: 1px solid var(--line);
    border-radius: 19px;
    background: #fff;
}

.comparison-panel article.recommended {
    border-color: var(--green);
    background: var(--ink);
    color: #fff;
}

.comparison-label {
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
}

.comparison-icon {
    position: absolute;
    top: clamp(27px, 4vw, 43px);
    right: clamp(27px, 4vw, 43px);
    width: 44px;
    height: 44px;
    margin: 0;
    color: var(--green);
    font-size: 41px;
    opacity: 0.6;
}

.comparison-panel .recommended .comparison-icon {
    color: var(--lime);
    opacity: 0.78;
}

.comparison-panel strong {
    display: block;
    margin-top: 13px;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.4;
    letter-spacing: -0.035em;
}

.comparison-panel p {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.comparison-panel .recommended p {
    color: #a9beba;
}

.comparison-arrow {
    display: grid;
    place-items: center;
    color: var(--green);
    font-size: 25px;
}

.home-workflow {
    width: 100%;
    max-width: none;
    padding-inline: max(40px, calc((100vw - 1180px) / 2));
    background: #edf3f1;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.workflow-grid li {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 260px;
    padding: 29px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.workflow-grid .workflow-number {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
}

.workflow-grid .workflow-icon {
    position: absolute;
    top: 26px;
    right: 27px;
    width: 39px;
    height: 39px;
    margin: 0;
    color: var(--green);
    font-size: 36px;
    opacity: 0.72;
}

.workflow-grid strong {
    margin-top: 63px;
    font-size: 22px;
    letter-spacing: -0.035em;
}

.workflow-grid p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.feature-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(45px, 7vw, 90px);
}

.feature-grid-public {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.feature-grid-public article {
    position: relative;
    padding: 27px 24px;
    border-bottom: 1px solid var(--line);
}

.feature-grid-public article:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.feature-grid-public .feature-number {
    display: block;
    margin-top: 0;
    color: var(--green);
    font-size: 9px;
    font-weight: 900;
}

.feature-grid-public .feature-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 35px;
    height: 35px;
    color: var(--green);
    font-size: 32px;
    opacity: 0.66;
}

.feature-grid-public h3 {
    margin: 25px 0 7px;
    font-size: 17px;
    letter-spacing: -0.025em;
}

.feature-grid-public p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.resource-section {
    width: 100%;
    max-width: none;
    padding-inline: max(40px, calc((100vw - 1180px) / 2));
    background: #fff;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 46px;
}

.resource-grid > a {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: 170ms ease;
}

.resource-grid > a:hover {
    border-color: var(--green);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.resource-grid span {
    color: var(--green);
    font-size: 9px;
    font-weight: 900;
}

.resource-grid .resource-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 43px;
    height: 43px;
    color: var(--green-dark);
    font-size: 39px;
    opacity: 0.68;
}

.resource-grid .resource-icon + span {
    display: block;
    margin-top: 0;
    padding-right: 55px;
}

.resource-grid h3 {
    margin: 45px 0 12px;
    font-size: 21px;
    line-height: 1.4;
    letter-spacing: -0.035em;
}

.resource-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.resource-grid strong {
    margin-top: auto;
    padding-top: 24px;
    color: var(--green);
    font-size: 11px;
}

.source-callout,
.operations-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: min(1180px, calc(100% - 40px));
    margin-block: 80px;
    padding: clamp(35px, 5vw, 58px);
    border-radius: 22px;
    background: var(--ink);
    color: #fff;
}

.source-callout h2,
.operations-cta h2 {
    margin: 0;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.25;
    letter-spacing: -0.045em;
}

.source-callout p:not(.eyebrow),
.operations-cta p:not(.eyebrow) {
    max-width: 720px;
    margin: 13px 0 0;
    color: #adc2bd;
    font-size: 12px;
}

.callout-icon {
    width: 39px;
    height: 39px;
    margin-bottom: 17px;
    color: var(--lime);
    font-size: 36px;
    opacity: 0.82;
}

.public-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px 80px;
    padding: 56px max(40px, calc((100vw - 1180px) / 2)) 36px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.public-footer > div > p {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.public-footer nav {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: flex-end;
    gap: 13px 22px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.public-footer nav a:hover {
    color: var(--green);
}

.public-footer-note {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted-light);
    font-size: 9px;
}

/* Public reference articles */
.content-hero {
    padding-block: clamp(65px, 9vw, 115px) clamp(55px, 8vw, 92px);
    border-bottom: 1px solid var(--line);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 58px;
    color: var(--muted);
    font-size: 10px;
}

.breadcrumbs a:hover {
    color: var(--green);
}

.content-hero h1 {
    max-width: 900px;
    margin: 12px 0 0;
    font-size: clamp(48px, 7vw, 82px);
    line-height: 1.07;
    letter-spacing: -0.065em;
}

.content-lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.review-meta {
    display: flex;
    gap: 18px;
    margin-top: 35px;
    color: var(--muted-light);
    font-size: 9px;
    font-weight: 750;
}

.review-meta span + span {
    padding-left: 18px;
    border-left: 1px solid var(--line-strong);
}

.content-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    justify-content: space-between;
    gap: clamp(50px, 9vw, 120px);
    padding-block: 70px 120px;
}

.content-toc {
    position: sticky;
    top: 100px;
    display: grid;
    align-self: start;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

.content-toc strong {
    margin-bottom: 8px;
    font-size: 10px;
}

.content-toc a {
    color: var(--muted);
    font-size: 10px;
}

.content-toc a:hover {
    color: var(--green);
}

.content-body > section {
    padding-bottom: 75px;
    scroll-margin-top: 100px;
}

.content-body > section + section {
    padding-top: 70px;
    border-top: 1px solid var(--line);
}

.section-number {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content-body h2,
.route-section h2,
.operations-grid-section h2,
.pause-section h2,
.metrics-section h2,
.export-section h2,
.stop-signs h2 {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.28;
    letter-spacing: -0.05em;
}

.content-body section > p:not(.section-number):not(.note-line):not(.caution-box) {
    margin: 21px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.fact-banner,
.caution-box {
    margin: 30px 0;
    padding: 24px 26px;
    border-left: 4px solid var(--green);
    border-radius: 0 13px 13px 0;
    background: var(--green-pale);
}

.fact-banner strong {
    font-size: 11px;
}

.fact-banner p,
.caution-box {
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.75;
}

.fact-banner p {
    margin: 8px 0 0;
}

.fact-banner em {
    color: var(--green-dark);
    font-style: normal;
    font-weight: 850;
}

.standard-grid,
.package-rule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-top: 31px;
}

.standard-grid article,
.package-rule-grid article {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.standard-grid span {
    color: var(--green);
    font-size: 9px;
    font-weight: 850;
}

.standard-grid h3 {
    margin: 13px 0 10px;
    font-size: 18px;
}

.standard-grid p,
.package-rule-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.75;
}

.standard-grid a {
    display: inline-block;
    margin-top: 21px;
    color: var(--green);
    font-size: 10px;
    font-weight: 850;
}

.note-line {
    margin-top: 17px;
    color: var(--muted-light);
    font-size: 10px;
}

.plain-check-list {
    display: grid;
    gap: 10px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.plain-check-list li {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 17px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.plain-check-list strong {
    font-size: 12px;
}

.plain-check-list span {
    color: var(--muted);
    font-size: 11px;
}

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

.package-rule-grid strong {
    display: block;
    margin-bottom: 12px;
    color: var(--green);
    font-size: 12px;
}

.caution-box {
    border-left-color: var(--orange);
    background: var(--orange-pale);
}

.rule-list {
    display: grid;
    margin-top: 30px;
    border-top: 1px solid var(--line);
}

.rule-list article {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 25px;
    padding: 20px 4px;
    border-bottom: 1px solid var(--line);
}

.rule-list span {
    color: var(--green);
    font-size: 11px;
    font-weight: 850;
}

.rule-list p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.inline-cta,
.next-guide-card {
    display: grid;
    gap: 6px;
    margin-top: 35px;
    padding: 23px 25px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
}

.inline-cta span,
.next-guide-card span {
    color: var(--lime);
    font-size: 9px;
    font-weight: 850;
}

.inline-cta strong,
.next-guide-card strong {
    font-size: 15px;
}

.source-section ul {
    display: grid;
    gap: 9px;
    margin: 27px 0 0;
    padding: 0;
    list-style: none;
}

.source-section li {
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.source-section a {
    color: var(--green);
    font-size: 11px;
    font-weight: 750;
}

/* Launch checklist */
.checklist-shell,
.operations-shell {
    padding-block: 65px 120px;
}

.checklist-intro {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 30px;
    margin-bottom: 55px;
    padding: 25px 28px;
    border-radius: 15px;
    background: var(--green-pale);
}

.checklist-intro strong {
    font-size: 12px;
}

.checklist-intro p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11px;
}

.checklist-intro a {
    color: var(--green-dark);
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.launch-checklist {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.launch-checklist > li {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 30px;
    padding: 43px 0;
    border-top: 1px solid var(--line);
}

.launch-checklist > li:last-child {
    border-bottom: 1px solid var(--line);
}

.check-number {
    display: grid;
    place-items: center;
    align-self: start;
    width: 54px;
    height: 54px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
}

.owner-chip {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--green-pale);
    color: var(--green-dark);
    font-size: 8px;
    font-weight: 900;
}

.launch-checklist h2 {
    margin: 11px 0 0;
    font-size: clamp(24px, 3vw, 33px);
    line-height: 1.3;
    letter-spacing: -0.045em;
}

.launch-checklist p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.launch-checklist ul,
.compact-checks {
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.launch-checklist ul li,
.compact-checks li {
    position: relative;
    padding-left: 19px;
    color: var(--ink-soft);
    font-size: 11px;
}

.launch-checklist ul li::before,
.compact-checks li::before {
    position: absolute;
    top: 7px;
    left: 2px;
    width: 6px;
    height: 6px;
    border: 2px solid var(--green);
    border-radius: 2px;
    content: "";
}

.stop-signs {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: 60px;
    margin-top: 90px;
    padding: clamp(30px, 5vw, 50px);
    border: 1px solid #ebcccc;
    border-radius: 20px;
    background: #fffafa;
}

.stop-signs ul {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stop-signs li {
    position: relative;
    padding-left: 21px;
    color: #6f4545;
    font-size: 11px;
}

.stop-signs li::before {
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 900;
    content: "!";
}

.next-guide-card {
    width: min(920px, 100%);
    margin: 50px auto 0;
}

/* Operations guide */
.operations-shell > section:not(:first-child) {
    margin-top: 110px;
}

.route-section > .section-heading-public,
.operations-grid-section > .section-heading-public,
.metrics-section > .section-heading-public {
    max-width: 780px;
}

.route-flow {
    display: grid;
    grid-template-columns: 1fr 45px 1fr 45px 1fr;
    align-items: center;
    margin-top: 45px;
}

.route-flow article {
    display: grid;
    min-height: 170px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}

.route-flow article.route-core {
    border-color: var(--green);
    background: var(--ink);
    color: #fff;
}

.route-flow span {
    color: var(--green);
    font-size: 9px;
    font-weight: 900;
}

.route-flow strong {
    align-self: end;
    font-size: 17px;
}

.route-flow small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.route-flow .route-core small {
    color: #9db4af;
}

.route-flow > i {
    color: var(--green);
    font-style: normal;
    font-size: 21px;
    text-align: center;
}

.route-benefit {
    display: grid;
    grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
    gap: 35px;
    margin-top: 15px;
    padding: 24px 28px;
    border-radius: 14px;
    background: var(--green-pale);
}

.route-benefit strong {
    font-size: 14px;
}

.route-benefit p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 10px;
}

.governance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 40px;
}

.governance-grid article {
    min-height: 250px;
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}

.governance-grid span {
    color: var(--green);
    font-size: 9px;
    font-weight: 900;
}

.governance-grid h3 {
    margin: 55px 0 11px;
    font-size: 19px;
}

.governance-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.pause-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(50px, 8vw, 100px);
    padding: clamp(35px, 6vw, 65px);
    border-radius: 22px;
    background: var(--ink);
    color: #fff;
}

.pause-section > div > p:not(.section-number) {
    color: #a9bfba;
    font-size: 12px;
}

.pause-section ol {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pause-section li {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pause-section li span {
    color: var(--lime);
    font-size: 10px;
    font-weight: 850;
}

.pause-section li p {
    margin: 0;
    color: #b3c7c3;
    font-size: 10px;
}

.metric-meaning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 40px;
}

.metric-meaning-grid article {
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.metric-meaning-grid strong {
    font-size: 14px;
}

.metric-meaning-grid ul {
    display: grid;
    gap: 9px;
    margin: 19px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 11px;
}

.privacy-strip {
    margin: 15px 0 0;
    padding: 14px 17px;
    border-radius: 10px;
    background: #eaf0ee;
    color: var(--muted);
    font-size: 10px;
}

.export-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(50px, 8vw, 100px);
    align-items: center;
}

.export-preview {
    display: grid;
    place-items: center;
    min-height: 360px;
    border-radius: 22px;
    background:
        linear-gradient(45deg, #dce4e1 25%, transparent 25%),
        linear-gradient(-45deg, #dce4e1 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #dce4e1 75%),
        linear-gradient(-45deg, transparent 75%, #dce4e1 75%);
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-size: 24px 24px;
}

.export-preview > span {
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mini-qr {
    display: grid;
    grid-template-columns: repeat(3, 35px);
    grid-template-rows: repeat(3, 35px);
    gap: 7px;
    padding: 14px;
}

.mini-qr i {
    background: var(--ink);
}

.mini-qr i:nth-child(2),
.mini-qr i:nth-child(4),
.mini-qr i:nth-child(6),
.mini-qr i:nth-child(8) {
    width: 18px;
    height: 18px;
    align-self: center;
    justify-self: center;
}

.operations-cta {
    width: 100%;
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .public-nav-shell {
        grid-template-columns: 1fr auto;
    }

    .public-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-content: center;
        padding: 7px 0 11px;
        border-top: 1px solid var(--line);
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 55px;
        padding-top: 75px;
    }

    .login-card {
        width: min(540px, 100%);
    }

    .feature-section,
    .stop-signs,
    .pause-section,
    .export-section {
        grid-template-columns: 1fr;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-toc {
        position: static;
        grid-template-columns: repeat(3, 1fr);
    }

    .content-toc strong {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .public-section,
    .public-nav-shell,
    .source-callout,
    .operations-cta {
        width: min(100% - 28px, 1180px);
    }

    .public-nav-shell {
        min-height: 62px;
    }

    .public-login-button {
        padding: 7px 11px;
        font-size: 10px;
    }

    .public-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .public-nav a {
        flex: 0 0 auto;
        padding: 7px 9px;
        font-size: 10px;
    }

    .home-hero,
    .home-workflow,
    .resource-section {
        width: 100%;
        padding-inline: 20px;
    }

    .home-hero h1,
    .content-hero h1 {
        font-size: 47px;
    }

    .hero-description,
    .content-lead {
        font-size: 14px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-assurance,
    .workflow-grid,
    .resource-grid,
    .governance-grid {
        grid-template-columns: 1fr;
    }

    .trusted-section {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .comparison-panel {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .comparison-arrow {
        transform: rotate(90deg);
    }

    .feature-grid-public,
    .standard-grid,
    .package-rule-grid,
    .metric-meaning-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid-public article:nth-child(odd) {
        border-right: 0;
    }

    .source-callout,
    .operations-cta {
        align-items: flex-start;
        flex-direction: column;
        margin-block: 50px;
    }

    .public-footer {
        grid-template-columns: 1fr;
        padding-inline: 22px;
    }

    .public-footer nav {
        justify-content: flex-start;
    }

    .public-footer-note {
        grid-column: 1;
    }

    .content-toc {
        grid-template-columns: 1fr 1fr;
    }

    .plain-check-list li,
    .rule-list article,
    .checklist-intro,
    .route-benefit {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .launch-checklist > li {
        grid-template-columns: 43px minmax(0, 1fr);
        gap: 15px;
    }

    .check-number {
        width: 40px;
        height: 40px;
        font-size: 9px;
    }

    .route-flow {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .route-flow > i {
        transform: rotate(90deg);
    }

    .pause-section {
        padding: 29px 23px;
    }

    .export-preview {
        min-height: 290px;
    }
}
