: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;
}

.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);
}

.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-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;
}

.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;
}

.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,
    .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;
    }

    .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;
    }
}
