:root {
    color-scheme: light;
    --accent: #065dff;
    --accent-dark: color-mix(in srgb, var(--accent) 82%, #000000);
    --paper: #ffffff;
    --paper-deep: #e4e6ea;
    --ink: #090909;
    --muted: #090909;
    --line: #d2d5da;
    --panel: #ffffff;
    --panel-strong: #eceef2;
    --green: var(--accent);
    --green-dark: var(--accent-dark);
    --coral: var(--accent);
    --blue: var(--accent);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    overflow-x: clip;
    background: #ffffff;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: clip;
    font-family: "Space Grotesk", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

button,
input,
select,
textarea {
    font: inherit;
}

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

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
    outline-offset: 2px;
}

.site-top {
    position: relative;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 14px clamp(16px, 4vw, 44px);
    background: rgba(247, 243, 234, 0.9);
    /* border-bottom: 1px solid var(--line); */
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--panel);
    font-size: 0.82rem;
}

.top-actions,
.preview-toolbar,
.seed-row,
.preset-row,
.card-actions,
.detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.icon-button,
.primary-action,
.chip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.icon-button {
    width: 38px;
    padding: 0;
}

.text-button {
    width: auto;
    padding: 0 12px;
}

.icon-button svg,
.primary-action svg,
.search-field svg {
    width: 17px;
    height: 17px;
    stroke-width: 2;
}

.icon-button:hover,
.chip-button:hover,
.primary-action:hover {
    background: var(--panel-strong);
    border-color: var(--accent);
}

.icon-button:active,
.primary-action:active,
.chip-button:active {
    transform: translateY(1px);
}

.icon-button:disabled,
.primary-action:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.primary-action {
    min-width: 118px;
    padding: 0 16px;
    border-color: var(--green);
    background: var(--green);
    color: #fff;
    font-weight: 700;
}

.primary-action:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.publish-action {
    border-color: var(--coral);
    background: var(--coral);
}

.publish-action:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
}

.admin-panel {
    padding: 24px clamp(16px, 4vw, 44px) 28px;
    background: #efe3d1;
    border-bottom: 1px solid #d7c5aa;
}

.admin-head,
.section-head,
.card-top,
.detail-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-head {
    margin: 0 auto 18px;
    max-width: 1480px;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--green-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: 0;
}

h1 {
    font-size: 1.55rem;
}

h2 {
    font-size: 1.45rem;
}

h3 {
    font-size: 1rem;
}

.admin-state {
    display: grid;
    gap: 4px;
    justify-items: end;
    color: var(--muted);
    font-size: 0.82rem;
}

.studio-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.88fr) minmax(420px, 1.12fr);
    gap: 16px;
    align-items: start;
    max-width: 1480px;
    margin: 0 auto;
}

.generator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
}

.control-block {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 250, 241, 0.78);
    border: 1px solid #d9c9af;
    border-radius: 8px;
}

.compact-block {
    display: block;
    padding: 0;
    overflow: hidden;
}

.compact-block summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 14px;
    color: #4f493f;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    list-style: none;
    text-transform: uppercase;
}

.compact-block summary::-webkit-details-marker {
    display: none;
}

.compact-block summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid #cdbda5;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1;
}

.compact-block[open] summary {
    border-bottom: 1px solid #e0d2bd;
}

.compact-block[open] summary::after {
    content: "-";
}

.compact-content {
    display: grid;
    gap: 10px;
    padding: 12px 14px 14px;
}

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

.tweak-grid > label,
.tweak-grid > input,
.tweak-grid > select {
    grid-column: 1 / -1;
}

.glyph-tweak-actions,
.glyph-tweak-list {
    grid-column: 1 / -1;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.glyph-tweak-list {
    min-height: 30px;
    padding: 6px;
    border: 1px dashed #d9c9af;
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.58);
}

.glyph-tweak-pill {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #cdbda5;
    border-radius: 7px;
    background: #fffdf7;
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
}

.glyph-tweak-pill:hover,
.glyph-tweak-pill:focus-visible {
    border-color: var(--green);
    background: #f4eadb;
}

.glyph-tweak-empty {
    align-self: center;
    color: var(--muted);
    font-size: 0.8rem;
}

.danger-chip {
    color: #ad3326;
    border-color: rgba(217, 79, 61, 0.36);
}

.control-block label,
.range-field label {
    color: #4f493f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

input[type="text"],
input[type="number"],
input[type="search"],
select,
textarea {
    width: 100%;
    border: 1px solid #cdbda5;
    border-radius: 8px;
    background: #fffdf7;
    color: var(--ink);
}

input[type="text"],
input[type="number"],
input[type="search"],
select {
    min-height: 40px;
    padding: 0 11px;
}

textarea {
    min-height: 116px;
    padding: 11px;
    line-height: 1.45;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    outline: none;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid #cdbda5;
    border-radius: 8px;
    background: #f4eadb;
}

.segmented label {
    display: block;
    cursor: pointer;
}

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

.segmented span {
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    text-transform: none;
}

.segmented input:checked + span {
    background: var(--ink);
    color: #fff;
}

.upload-row {
    display: grid;
    gap: 8px;
}

.character-block textarea {
    min-height: 132px;
    white-space: pre-wrap;
}

.chip-button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.range-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.range-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.range-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

output {
    color: var(--blue);
    font-variant-numeric: tabular-nums;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--green);
}

.seed-row {
    flex-wrap: nowrap;
}

.seed-row input {
    min-width: 0;
}

.preview-band {
    display: grid;
    gap: 12px;
    align-self: start;
    position: sticky;
    top: 86px;
}

.glyph-editor-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d9c9af;
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.86);
    box-shadow: 0 12px 32px rgba(40, 31, 20, 0.08);
}

.editor-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.editor-glyph-field {
    display: grid;
    gap: 5px;
    width: 86px;
}

.editor-glyph-field label,
.editor-side label {
    color: #4f493f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.glyph-editor-list {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 2px 0 6px;
}

.editor-glyph-button {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid #cdbda5;
    border-radius: 7px;
    background: #fffdf7;
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
}

.editor-glyph-button.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.editor-glyph-button.is-edited::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--coral);
    position: absolute;
    transform: translate(11px, -11px);
}

.editor-toolbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.editor-toolbar .icon-button.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.editor-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 12px;
    align-items: start;
}

.glyph-canvas-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 360px;
    border: 1px solid #cdbda5;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(23, 23, 23, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(23, 23, 23, 0.05) 1px, transparent 1px),
        #fffdf7;
    background-size: 42px 42px;
    overflow: hidden;
}

.editor-canvas-proof {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    color: rgba(23, 23, 23, 0.9);
    font-size: clamp(17rem, 38vw, 30rem);
    line-height: 1;
    overflow: hidden;
    pointer-events: none;
}

.glyph-editor-svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    user-select: none;
}

.editor-grid-line {
    stroke: rgba(23, 23, 23, 0.16);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.editor-metric-line {
    stroke: rgba(40, 95, 159, 0.42);
    stroke-dasharray: 8 6;
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
}

.editor-advance-line {
    stroke: rgba(217, 79, 61, 0.55);
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
}

.editor-outline {
    fill: rgba(23, 23, 23, 0.16);
    fill-rule: nonzero;
    stroke: rgba(23, 23, 23, 0.9);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.editor-outline.is-hidden {
    display: none;
}

.editor-control-line {
    stroke: rgba(40, 95, 159, 0.64);
    stroke-dasharray: 5 5;
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.editor-node,
.editor-handle {
    vector-effect: non-scaling-stroke;
    cursor: grab;
}

.editor-node {
    fill: #fffdf7;
    stroke: var(--green);
    stroke-width: 2.2;
}

.editor-handle {
    fill: #fff7d8;
    stroke: var(--blue);
    stroke-width: 1.8;
}

.editor-node.is-selected,
.editor-handle.is-selected {
    fill: var(--coral);
    stroke: #8e2b22;
}

.editor-side {
    display: grid;
    gap: 8px;
}

.editor-font-proof {
    display: grid;
    place-items: center;
    min-height: 112px;
    border: 1px solid #cdbda5;
    border-radius: 8px;
    background: #fffdf7;
    color: var(--ink);
    font-size: 5.4rem;
    line-height: 1;
    overflow: hidden;
}

.editor-status {
    min-height: 74px;
    padding: 10px;
    border: 1px dashed #cdbda5;
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.72);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.preview-toolbar {
    justify-content: space-between;
}

.preview-title {
    display: grid;
    gap: 2px;
}

.preview-title span {
    color: #4f493f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.preview-title small {
    color: var(--muted);
    font-size: 0.78rem;
}

.preview-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.font-preview {
    min-height: clamp(320px, 48vh, 620px);
    padding: 22px;
    border: 1px solid #d9c9af;
    border-radius: 8px;
    background: #fffdf7;
    color: var(--ink);
    font-size: clamp(2.2rem, 4.2vw, 5.25rem);
    line-height: 1.08;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    box-shadow: var(--shadow);
}

.font-preview[contenteditable="true"],
.detail-preview[contenteditable="true"] {
    cursor: text;
}

.font-preview[contenteditable="true"]:focus,
.detail-preview[contenteditable="true"]:focus {
    border-color: var(--green);
    outline: none;
    box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.glyph-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 8px;
}

.glyph-cell {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid #d9c9af;
    border-radius: 8px;
    background: #fffdf7;
    color: var(--ink);
    cursor: pointer;
    font-size: 1.7rem;
    padding: 0;
}

.glyph-cell:hover,
.glyph-cell:focus-visible {
    border-color: var(--green);
    background: #f4eadb;
}

.page-shell {
    width: min(1480px, calc(100% - 32px));
    margin: 34px auto 56px;
}

.library-section,
.detail-section {
    display: grid;
    gap: 18px;
}

.license-note {
    max-width: 430px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: right;
}

.library-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(100%, 360px);
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
}

.search-field input {
    min-height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
}

.font-count {
    color: var(--muted);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.font-library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.font-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.86);
    box-shadow: 0 10px 28px rgba(40, 31, 20, 0.08);
}

.font-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.78rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #efe4d3;
    color: #53493b;
    font-weight: 700;
}

.card-sample {
    min-height: 132px;
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e1d7c8;
    border-radius: 8px;
    background: #fffdf7;
    font-size: 2.2rem;
    line-height: 1;
    overflow-wrap: anywhere;
}

.card-actions {
    justify-content: space-between;
}

.danger-button {
    border-color: rgba(217, 79, 61, 0.36);
    color: #ad3326;
}

.danger-button:hover {
    background: #fae5df;
    border-color: rgba(217, 79, 61, 0.55);
}

.empty-state {
    padding: 24px;
    border: 1px dashed #cdbda5;
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 250, 241, 0.6);
}

.detail-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.92);
    box-shadow: var(--shadow);
}

.detail-preview {
    min-height: 190px;
    padding: 18px;
    border: 1px solid #e1d7c8;
    border-radius: 8px;
    background: #fffdf7;
    font-size: 4.2rem;
    line-height: 1.05;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1.1fr);
    gap: 16px;
    align-items: start;
}

.detail-panel {
    display: grid;
    gap: 10px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 6px;
    max-height: 340px;
    overflow: auto;
}

.character-tile {
    display: grid;
    place-items: center;
    min-height: 38px;
    border: 1px solid #e1d7c8;
    border-radius: 8px;
    background: #fffdf7;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    max-width: min(420px, calc(100vw - 36px));
    padding: 12px 14px;
    border: 1px solid #cdbda5;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow);
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: #8e2b22;
    border-color: #8e2b22;
}

@media (max-width: 1180px) {
    .studio-layout {
        grid-template-columns: 1fr;
    }

    .preview-band {
        order: -1;
        position: sticky;
        top: 0;
        z-index: 30;
        padding: 12px 0;
        background: #efe3d1;
    }

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

    .font-preview {
        min-height: 220px;
        max-height: 38vh;
        overflow: auto;
    }

    .glyph-canvas-wrap {
        min-height: 320px;
    }
}

@media (max-width: 760px) {
    .site-top,
    .admin-head,
    .section-head,
    .detail-top {
        align-items: stretch;
        flex-direction: column;
    }

    .site-top {
        position: relative;
    }

    .range-block,
    .tweak-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 18px 12px 24px;
    }

    .preview-band {
        margin-inline: -4px;
        padding: 10px 0;
    }

    .preview-toolbar {
        align-items: stretch;
        gap: 10px;
    }

    .editor-head,
    .editor-body {
        grid-template-columns: 1fr;
    }

    .editor-head {
        display: grid;
        align-items: stretch;
    }

    .editor-glyph-field,
    .editor-side {
        width: 100%;
    }

    .glyph-canvas-wrap {
        min-height: 280px;
    }

    .preview-actions {
        width: 100%;
    }

    .preview-actions .primary-action,
    .preview-actions .text-button {
        flex: 1 1 130px;
    }

    .admin-state {
        justify-items: start;
    }

    .license-note {
        text-align: left;
    }

    .font-preview {
        min-height: 190px;
        max-height: 32vh;
        font-size: 2.15rem;
    }

    .detail-preview {
        font-size: 2.5rem;
    }

    .page-shell {
        width: min(100% - 24px, 1480px);
        margin-top: 24px;
    }
}

.upload-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    gap: 18px;
    align-items: start;
}

.upload-card,
.admin-preview-card,
.admin-detail-panel {
    padding: 16px;
    border: 1px solid #d9c9af;
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.9);
    box-shadow: 0 12px 32px rgba(40, 31, 20, 0.08);
}

.field-grid {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
}

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

.font-file-manager {
    min-width: 0;
    margin: 4px 0 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.font-file-manager-head,
.font-family-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.font-file-manager-head > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
}

.font-file-manager-head strong {
    font-size: 0.72rem;
}

.font-family-upload-head {
    margin-top: 10px;
    border-top: 1px solid var(--line);
}

.font-style-upload-list,
.font-family-upload-list {
    min-width: 0;
    overflow-x: auto;
}

.font-style-upload-row,
.font-family-upload-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.25fr) minmax(130px, 0.9fr) minmax(110px, 0.72fr) 68px 82px repeat(3, minmax(64px, 0.42fr));
    gap: 8px;
    align-items: end;
    min-width: 940px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.font-family-upload-row {
    grid-template-columns: minmax(250px, 1.8fr) 108px repeat(3, minmax(80px, 0.55fr));
    min-width: 650px;
}

.font-style-upload-row label,
.font-family-upload-row label {
    display: grid;
    gap: 6px;
    padding: 0;
    color: var(--ink);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
}

.font-style-upload-row input[type="text"],
.font-style-upload-row input[type="number"],
.font-family-upload-row input[type="number"] {
    min-height: 38px;
    padding: 0 9px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
}

.font-style-upload-file,
.font-family-upload-name {
    display: grid;
    gap: 4px;
    align-self: center;
    min-width: 0;
}

.font-style-upload-file strong,
.font-family-upload-name strong {
    overflow: hidden;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.font-style-upload-file span,
.font-family-upload-name span {
    color: var(--muted);
    font-size: 0.64rem;
}

.font-style-upload-row .font-style-default-control,
.font-style-upload-row .font-style-sale-control,
.font-family-upload-row .font-style-sale-control {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 6px;
}

.font-style-default-control input,
.font-style-sale-control input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.upload-preview-style-field {
    display: grid;
    gap: 5px;
    width: min(260px, 44%);
    color: var(--ink);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
}

.upload-preview-style-field select,
.detail-style-control select {
    min-height: 38px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
}

.field-grid label,
.admin-detail-panel label,
.detail-panel label {
    padding-top: 10px;
    color: #4f493f;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field-grid .font-style-upload-row label,
.field-grid .font-family-upload-row label {
    padding-top: 0;
    font-size: 0.64rem;
    letter-spacing: 0;
}

.field-grid input,
.field-grid textarea {
    width: 100%;
}

.form-actions,
.artwork-upload-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
}

.uploaded-preview {
    min-height: 320px;
    padding: 22px;
    border: 1px solid #d9c9af;
    border-radius: 8px;
    background: #fffdf7;
    color: var(--ink);
    font-size: clamp(2.4rem, 5vw, 6rem);
    line-height: 1.08;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.uploaded-preview:focus {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.artwork-section {
    margin-top: 28px;
}

.compact-section-head {
    margin-bottom: 14px;
}

.artwork-section-head {
    align-items: flex-end;
}

.artwork-manager-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.artwork-empty-state {
    min-height: 140px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.artwork-grid {
    columns: 3 280px;
    column-gap: 14px;
}

.artwork-card {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 14px;
    overflow: visible;
    break-inside: avoid;
    vertical-align: top;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.artwork-card img {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
}

.artwork-card-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.artwork-card-controls .icon-button,
.artwork-drag-handle {
    display: grid;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    background: #ffffff;
    color: var(--ink);
}

.artwork-card-controls .icon-button:hover:not(:disabled) {
    background: var(--accent);
    color: #ffffff;
}

.artwork-card-controls .icon-button:disabled {
    opacity: 0.28;
}

.artwork-drag-handle {
    cursor: grab;
}

.artwork-drag-handle svg {
    width: 17px;
    height: 17px;
}

.artwork-card.is-manageable {
    cursor: grab;
}

.artwork-card.is-dragging {
    opacity: 0.38;
}

.artwork-card.is-drop-target {
    box-shadow: 0 0 0 3px var(--accent);
}

@media (max-width: 1180px) {
    .upload-dashboard {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .field-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .field-grid label,
    .admin-detail-panel label {
        padding-top: 0;
    }

    .uploaded-preview {
        min-height: 210px;
        font-size: 2.35rem;
    }
}

/* Public font library and dedicated font admin */
html {
    scroll-behavior: auto;
    scroll-snap-type: none;
    scroll-padding-top: 64px;
}

body {
    background-color: var(--paper);
}

body.is-font-loading {
    overflow: hidden;
}

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

.font-loader {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #ffffff;
    isolation: isolate;
}

.font-loader-trail {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.font-loader-name {
    position: relative;
    z-index: 1;
    display: inline-block;
    opacity: 0;
    white-space: nowrap;
    will-change: transform, opacity;
}

.is-font-loading .font-logo {
    opacity: 0;
}

.site-top {
    position: sticky;
    top: 0;
    z-index: 70;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0 18px;
    border: 0;
    /* border-bottom: 1px solid var(--line); */
    background: transparent;
    backdrop-filter: none;
}

.font-logo,
.font-loader-name {
    color: #090909;
    font-family: "Raleway", sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 6px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.font-logo {
    text-decoration: none;
}

.font-home-hero {
    min-height: calc(100svh - 64px);
    scroll-snap-align: none;
    background: #ffffff;
    overflow: hidden;
}

.font-showcase {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    height: calc(100svh - 64px);
    min-height: 630px;
}

.showcase-row {
    --row-background: #ffffff;
    --row-color: #090909;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--row-background);
    color: var(--row-color);
    text-decoration: none;
    animation: showcase-reveal 0.32s ease both;
}

.showcase-row-2 {
    --row-background: #ffffff;
    --row-color: #090909;
    border-color: var(--line);
}

.showcase-row-3 {
    --row-background: #ffffff;
    --row-color: #090909;
    /* border-bottom: 0; */
}

.showcase-row::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 3px solid transparent;
    pointer-events: none;
    transition: border-color 0.18s ease;
}

.showcase-row:hover::after,
.showcase-row:focus-visible::after {
    border-color: var(--accent);
}

.showcase-track {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: max-content;
    color: inherit;
    font-size: 6.2rem;
    line-height: 0.9;
    white-space: nowrap;
    will-change: transform;
}

.showcase-track > span {
    display: inline-flex;
    align-items: center;
    gap: 3.5rem;
    padding-right: 3.5rem;
}

.showcase-track b {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.42em;
    font-weight: 400;
}

.showcase-row[data-direction="left"] .showcase-track {
    animation: showcase-left 25s linear infinite;
}

.showcase-row[data-direction="right"] .showcase-track {
    animation: showcase-right 25s linear infinite;
}

.showcase-row:hover .showcase-track,
.showcase-row:focus-within .showcase-track {
    animation-play-state: paused;
}

@keyframes showcase-left {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@keyframes showcase-right {
    from { transform: translate3d(-50%, 0, 0); }
    to { transform: translate3d(0, 0, 0); }
}

@keyframes showcase-reveal {
    from { opacity: 0.35; }
    to { opacity: 1; }
}

.page-shell {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.library-section {
    min-height: 100svh;
    padding: 86px 0 72px;
    scroll-snap-align: none;
}

.library-section .section-head {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.library-section .section-head h2 {
    font-size: 3rem;
}

.library-tools {
    margin: 8px 0 4px;
}

.font-library {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}

.font-card {
    min-height: 330px;
    border-color: var(--line);
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.font-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card-price,
.detail-price {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.card-sample {
    min-height: 170px;
    border-color: var(--line);
    background: #ffffff;
    font-size: 2.7rem;
}

.card-actions {
    justify-content: flex-start;
}

.card-actions .danger-button {
    margin-left: auto;
}

.detail-section {
    min-height: calc(100svh - 120px);
    margin: 56px 0 70px;
    padding: 28px;
    border-color: var(--line);
    background: #ffffff;
    scroll-snap-align: none;
}

.detail-preview {
    min-height: 280px;
    border-color: var(--line);
    background: #ffffff;
    font-size: 5.2rem;
}

.site-footer {
    min-height: 240px;
    padding: 48px clamp(24px, 5vw, 72px) 30px;
    scroll-snap-align: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
    color: #090909;
}

.footer-meta {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.4;
    text-transform: uppercase;
}

body[data-view="admin"] {
    background: #ffffff;
}

body[data-view="admin"] .page-shell {
    min-height: calc(100svh - 64px);
}

.admin-panel {
    min-height: calc(100svh - 64px);
    padding: 42px clamp(18px, 4vw, 48px) 64px;
    scroll-snap-align: none;
    border: 0;
    background: #ffffff;
}

.admin-head,
.upload-dashboard,
.quote-manager,
.accent-manager {
    width: min(1360px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.admin-head {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.admin-head h1 {
    font-size: 2.7rem;
}

.upload-dashboard {
    grid-template-columns: minmax(520px, 0.95fr) minmax(420px, 1.05fr);
}

.upload-card,
.admin-preview-card,
.admin-detail-panel {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: none;
}

.field-grid input[type="email"],
.field-grid input[type="file"] {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
}

.quote-manager,
.accent-manager {
    display: grid;
    grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
    gap: 28px;
    margin-top: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.quote-manager-copy,
.accent-manager-copy {
    display: grid;
    align-content: start;
    gap: 8px;
}

.quote-manager-copy p:last-child,
.accent-manager-copy p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.quote-manager-editor,
.accent-manager-editor {
    display: grid;
    gap: 8px;
}

.quote-manager-editor label,
.accent-manager-editor > label {
    color: #4f493f;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.quote-manager-editor textarea {
    min-height: 260px;
}

.quote-actions {
    margin-top: 4px;
}

.accent-add-row {
    display: grid;
    grid-template-columns: 52px minmax(130px, 220px) auto;
    gap: 8px;
    align-items: center;
}

.accent-add-row input[type="color"] {
    width: 52px;
    height: 42px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}

.accent-add-row input[type="text"] {
    min-height: 42px;
    border-color: var(--line);
    background: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    text-transform: uppercase;
}

.accent-palette {
    display: flex;
    gap: 8px;
    min-height: 54px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.accent-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.accent-chip.is-active {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.accent-preview,
.accent-remove {
    display: inline-flex;
    align-items: center;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.accent-preview {
    gap: 8px;
    padding: 0 9px 0 6px;
}

.accent-preview code {
    font-size: 0.74rem;
}

.accent-swatch {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 4px;
}

.accent-remove {
    justify-content: center;
    width: 34px;
    border-left: 1px solid var(--line);
}

.accent-remove svg {
    width: 15px;
    height: 15px;
}

.accent-preview:hover,
.accent-remove:hover {
    background: #ffffff;
}

.accent-actions {
    margin-top: 4px;
}

.sticker-manager {
    display: grid;
    grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
    gap: 28px;
    width: min(1360px, 100%);
    margin: 24px auto 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.sticker-manager-copy,
.sticker-manager-editor {
    display: grid;
    align-content: start;
    gap: 16px;
}

.sticker-manager-copy p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

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

.sticker-target-tabs button {
    min-height: 42px;
    border: 0;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.sticker-target-tabs button + button {
    border-left: 1px solid var(--line);
}

.sticker-target-tabs button.is-active {
    background: var(--ink);
    color: #ffffff;
}

.sticker-preset-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.sticker-preset {
    display: grid;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
}

.sticker-preset-demo {
    display: grid;
    min-height: 82px;
    place-items: center;
    overflow: hidden;
    background: #f3f4f6;
}

.sticker-preset strong {
    padding: 9px 8px;
    overflow: hidden;
    font-size: 0.68rem;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.sticker-preset:hover,
.sticker-preset.is-active {
    box-shadow: inset 0 -3px 0 var(--accent);
}

.sticker-designer {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.sticker-preview-stage {
    position: relative;
    display: grid;
    min-height: 310px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #ffffff;
}

.sticker-preview-stage::before,
.sticker-preview-stage::after {
    content: "";
    position: absolute;
    background: var(--line);
}

.sticker-preview-stage::before {
    width: 1px;
    height: 100%;
}

.sticker-preview-stage::after {
    width: 100%;
    height: 1px;
}

.sticker-admin-preview {
    position: relative;
    z-index: 1;
}

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

.trail-control-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    background: #f7f7f7;
}

.trail-control-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.trail-enabled-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4f535a;
    cursor: pointer;
}

.trail-enabled-control input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.trail-control-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.trail-action-head {
    margin-top: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.sticker-control-grid label {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    color: #4f535a;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sticker-control-grid input[type="text"],
.sticker-control-grid select {
    width: 100%;
    min-height: 40px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
}

.sticker-range-control > span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.sticker-range-control output {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.sticker-range-control input[type="range"] {
    width: 100%;
    min-height: 28px;
    accent-color: var(--accent);
}

.sticker-actions {
    padding-top: 4px;
}

.access-message {
    display: grid;
    gap: 10px;
    max-width: 640px;
    margin: 80px auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.access-message p {
    margin: 0;
    color: var(--muted);
}

.field-grid input[type="text"],
.field-grid input[type="email"],
.field-grid input[type="file"],
.field-grid textarea,
.quote-manager textarea {
    border-color: var(--line);
    background: #ffffff;
}

.uploaded-preview,
.empty-state,
.artwork-card {
    border-color: var(--line);
    background: #ffffff;
}

.pill {
    background: #f2f3f5;
    color: #25272b;
}

.artwork-card img {
    background: #ffffff;
}

.field-grid label,
.admin-detail-panel label,
.detail-panel label,
.preview-title span,
.quote-manager-editor label,
.accent-manager-editor label {
    color: #34363a;
}

.admin-detail-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    background: #f2f3f5;
}

.admin-detail-fields {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px 14px;
    align-items: start;
}

.admin-detail-fields input,
.admin-detail-fields textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
}

.admin-detail-fields input {
    min-height: 40px;
    padding: 0 11px;
}

.admin-detail-fields textarea {
    min-height: 86px;
}

.admin-detail-fields .primary-action {
    justify-self: start;
}

.admin-offer-manager {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 10px 0;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.admin-offer-manager-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.admin-offer-manager-head h3,
.admin-offer-manager-head p {
    margin: 0;
}

.admin-offer-manager-head h3 {
    margin-top: 4px;
    font-size: 1.2rem;
}

.admin-offer-manager-head .toggle-control {
    padding: 0;
}

.admin-offer-list {
    min-width: 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
}

.admin-offer-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) 110px repeat(3, minmax(78px, 0.48fr));
    gap: 9px;
    align-items: end;
    min-width: 690px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

.admin-style-offer-row {
    grid-template-columns: minmax(220px, 1.5fr) 84px 96px repeat(3, minmax(78px, 0.48fr));
    min-width: 850px;
}

.admin-offer-row > div {
    display: grid;
    gap: 3px;
    align-self: center;
}

.admin-offer-row > div strong {
    font-size: 0.76rem;
}

.admin-offer-row > div span {
    color: var(--muted);
    font-size: 0.64rem;
    text-transform: uppercase;
}

.admin-offer-row label {
    display: grid;
    gap: 5px;
    padding: 0;
    font-size: 0.62rem;
}

.admin-offer-row .font-style-default-control,
.admin-offer-row .font-style-sale-control {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 6px;
}

.admin-offer-row input[type="number"] {
    min-height: 38px;
    padding: 0 9px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
}

/* Keep every content surface neutral; accent is reserved for controls and tags. */
.eyebrow,
.field-grid label,
.admin-detail-panel label,
.detail-panel label,
.preview-title span,
.quote-manager-editor label,
.accent-manager-editor label {
    color: var(--ink);
}

.search-field,
.character-tile,
.access-message,
.uploaded-preview,
.empty-state,
.artwork-card,
.artwork-card img {
    border-color: var(--line);
    background: #ffffff;
    color: var(--ink);
}

.pill {
    background: var(--panel-strong);
    color: var(--ink);
}

.danger-button,
.danger-button:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #ffffff;
}

.toast.error {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .showcase-track {
        animation-play-state: paused !important;
        transform: translate3d(0, 0, 0) !important;
    }
}

/* Editorial specimen controls and font-page masthead */
.library-section-head {
    align-items: flex-end;
    min-height: 150px;
}

.library-section-head h2 {
    max-width: 820px;
    font-size: 4.75rem !important;
    font-weight: 500;
    line-height: 0.94;
}

.library-count-display {
    display: grid;
    justify-items: end;
    min-width: 150px;
    padding-bottom: 4px;
}

.library-count-display strong {
    color: var(--accent);
    font-size: 4.2rem;
    font-weight: 500;
    line-height: 0.82;
    font-variant-numeric: tabular-nums;
}

.library-count-display span,
.library-preview-editor > span,
.library-inputs > label > span:first-child {
    color: #62666d;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.library-tools {
    display: grid;
    gap: 0;
    margin: 32px 0 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.library-preview-editor {
    display: grid;
    gap: 13px;
    padding: 18px 0 24px;
    border-bottom: 1px solid var(--line);
}

.library-preview-editor input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: #ffffff;
    color: var(--ink);
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.2;
}

.library-preview-editor:focus-within {
    box-shadow: inset 0 -3px 0 var(--accent);
}

.library-inputs {
    display: grid;
    grid-template-columns: minmax(260px, 1.15fr) minmax(240px, 0.85fr) minmax(135px, 0.3fr);
    gap: 0;
    align-items: stretch;
}

.library-inputs > label {
    display: grid;
    align-content: center;
    gap: 9px;
    min-width: 0;
    min-height: 88px;
    padding: 15px 22px;
    border-right: 1px solid var(--line);
    color: var(--ink);
}

.library-inputs > label:first-child {
    padding-left: 0;
}

.library-inputs > label:last-child {
    border-right: 0;
}

.search-field {
    width: auto;
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

.search-input-wrap {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
}

.search-input-wrap svg {
    width: 17px;
    height: 17px;
}

.search-field .search-input-wrap input {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.95rem;
}

.library-size-field > span {
    display: flex;
    justify-content: space-between;
}

.library-currency-field select {
    width: 100%;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: #ffffff;
    color: var(--ink);
    font-weight: 700;
}

.library-tag-filters {
    padding: 12px 0;
}

body[data-view="detail"] .page-shell {
    margin-top: 0;
}

body[data-view="detail"] .detail-section {
    margin-top: 0;
}

.detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 330px;
    padding: 56px 0 30px;
    border-bottom: 1px solid var(--line);
}

.detail-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.detail-top .font-meta {
    gap: 0;
}

.detail-top .font-meta > span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-top .font-meta > span:first-child {
    border-left: 1px solid var(--line);
}

.detail-top .font-meta .detail-price {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.detail-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.detail-actions .primary-action {
    min-height: 48px;
    border-radius: 4px;
}

.detail-actions .danger-button {
    justify-self: end;
}

/* Admin overview and customer directory */
.admin-section-nav,
.admin-overview,
.customer-manager {
    width: min(1360px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.admin-section-nav {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.admin-section-nav a {
    flex: 0 0 auto;
    padding: 13px 16px;
    border-right: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-section-nav a:hover,
.admin-section-nav a:focus-visible {
    background: var(--accent);
    color: #ffffff;
}

.admin-overview {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.admin-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.admin-overview-head .icon-button {
    width: 40px;
    padding: 0;
    background: #ffffff;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-metric-grid article {
    display: grid;
    align-content: space-between;
    min-height: 142px;
    padding: 18px;
    border-right: 1px solid var(--line);
    background: #ffffff;
}

.admin-metric-grid article:first-child {
    padding-left: 0;
}

.admin-metric-grid article:last-child {
    border-right: 0;
}

.admin-metric-grid span,
.admin-customer-role {
    color: #656a72;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-metric-grid strong {
    color: var(--ink);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1;
}

.admin-metric-grid small {
    color: #6b6f76;
    font-size: 0.68rem;
    line-height: 1.35;
}

.admin-overview > .muted-text {
    display: block;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.customer-manager {
    display: grid;
    grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
    gap: 28px;
    margin-top: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.customer-manager-copy,
.customer-manager-editor {
    display: grid;
    align-content: start;
    gap: 12px;
}

.customer-manager-copy p:last-child {
    margin: 0;
    color: #5d626a;
    line-height: 1.5;
}

.admin-customer-search {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.admin-customer-search svg {
    width: 17px;
    height: 17px;
}

.admin-customer-search input {
    min-width: 0;
    min-height: 40px;
    padding: 0;
    border: 0;
    outline: 0;
    background: #ffffff;
    color: var(--ink);
}

.admin-customer-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.admin-customer-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.7fr) minmax(120px, 0.65fr) minmax(120px, 0.65fr) 36px;
    gap: 16px;
    align-items: center;
    min-height: 84px;
    border-bottom: 1px solid var(--line);
}

.admin-customer-identity,
.admin-customer-detail {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-customer-identity strong,
.admin-customer-identity a,
.admin-customer-detail strong,
.admin-customer-detail span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-customer-identity a {
    color: #5f646b;
    font-size: 0.72rem;
}

.admin-customer-detail span {
    color: #686d74;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-customer-detail strong {
    font-size: 0.8rem;
}

.admin-customer-mail {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
}

.admin-customer-mail:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.admin-customer-mail svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 1100px) {
    .admin-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-metric-grid article:nth-child(3) {
        border-right: 0;
    }

    .admin-metric-grid article:nth-child(-n + 3) {
        border-bottom: 1px solid var(--line);
    }

    .admin-metric-grid article:nth-child(4) {
        padding-left: 0;
    }
}

@media (max-width: 980px) {
    .customer-manager {
        grid-template-columns: 1fr;
    }

    .detail-footer-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-customer-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    }
}

@media (max-width: 760px) {
    .library-section-head {
        align-items: flex-start;
        min-height: 0;
    }

    .library-section-head h2 {
        font-size: 3.15rem !important;
    }

    .library-count-display strong {
        font-size: 3rem;
    }

    .library-preview-editor input {
        font-size: 1.45rem;
    }

    .library-inputs {
        grid-template-columns: 1fr;
    }

    .library-inputs > label,
    .library-inputs > label:first-child {
        min-height: 76px;
        padding: 13px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .library-inputs > label:last-child {
        border-bottom: 0;
    }

    .detail-top {
        min-height: 0;
        padding-top: 34px;
    }

    .detail-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .detail-actions .primary-action {
        width: 100%;
    }

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

    .admin-metric-grid article,
    .admin-metric-grid article:first-child,
    .admin-metric-grid article:nth-child(4) {
        min-height: 120px;
        padding: 14px;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .admin-metric-grid article:nth-child(even) {
        border-right: 0;
    }

    .admin-customer-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 14px 0;
    }

    .admin-customer-detail {
        grid-column: 1;
    }

    .admin-customer-mail {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 980px) {
    .upload-dashboard {
        grid-template-columns: 1fr;
    }

    .quote-manager,
    .accent-manager,
    .sticker-manager {
        grid-template-columns: 1fr;
    }

    .admin-detail-panel {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    html {
        scroll-padding-top: 56px;
    }

    .site-top {
        position: sticky;
        min-height: 56px;
        padding: 0 12px;
    }

    .font-logo,
    .font-loader-name {
        font-size: 1.05rem;
        letter-spacing: 5px;
    }

    .font-home-hero,
    .font-showcase {
        height: calc(100svh - 56px);
        min-height: 570px;
    }

    .showcase-track {
        font-size: 3.4rem;
    }

    .showcase-track > span {
        gap: 2rem;
        padding-right: 2rem;
    }

    .page-shell {
        width: min(100% - 24px, 1320px);
        margin: 0 auto;
    }

    .library-section {
        padding: 56px 0 48px;
    }

    .library-section .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .library-section .section-head h2 {
        font-size: 2.2rem;
    }

    .font-library {
        grid-template-columns: 1fr;
    }

    .card-top {
        align-items: flex-start;
        flex-direction: row;
    }

    .detail-section {
        margin: 24px 0 42px;
        padding: 16px;
    }

    .detail-preview {
        min-height: 220px;
        font-size: 3rem;
    }

    .admin-panel {
        min-height: calc(100svh - 56px);
        padding: 26px 12px 48px;
    }

    .admin-head h1 {
        font-size: 2.1rem;
    }

    .quote-manager,
    .accent-manager,
    .sticker-manager {
        padding: 15px;
    }

    .accent-add-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .accent-add-row .text-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .admin-detail-fields {
        grid-template-columns: 1fr;
    }

    .admin-detail-fields > span:empty {
        display: none;
    }

}

/* Long-form library specimens and licensing controls */
.library-manager {
    display: grid;
    grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
    gap: 28px;
    width: min(1360px, 100%);
    margin: 24px auto 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.library-manager-copy,
.library-manager-editor {
    display: grid;
    align-content: start;
    gap: 10px;
}

.library-manager-editor > label,
.field-label {
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.field-label {
    padding-top: 10px;
}

.toggle-control {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 11px !important;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.toggle-control input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--accent);
}

.display-toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.library-tools {
    display: grid;
    gap: 14px;
    margin: 16px 0 10px;
}

.library-inputs {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1.4fr) minmax(190px, 0.65fr) auto;
    gap: 12px;
    align-items: end;
}

.preview-text-field,
.library-size-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.preview-text-field input,
.library-size-field input,
.library-manager input,
.library-manager select,
.field-grid select,
.admin-detail-fields select {
    border-color: var(--line);
    background: #ffffff;
    color: var(--ink);
}

.library-size-field > span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.library-size-field output {
    color: var(--ink);
}

.font-count {
    align-self: center;
    padding-bottom: 11px;
    white-space: nowrap;
}

.library-tag-filters {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.tag-filter {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-filter:hover,
.tag-filter.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.font-library {
    display: block;
}

.font-card {
    display: grid;
    gap: 18px;
    min-height: 280px;
    padding: 24px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.font-card:first-child {
    border-top: 1px solid var(--line);
}

.font-card:hover,
.font-card:focus-visible {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: inset 4px 0 0 var(--accent);
    transform: none;
}

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

.card-open {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--ink);
}

.card-open svg {
    width: 19px;
    height: 19px;
}

.card-sample {
    display: flex;
    align-items: center;
    min-height: 170px;
    padding: 8px 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: var(--ink);
    line-height: 0.98;
    overflow-wrap: anywhere;
}

.detail-panel .license-note {
    max-width: none;
    text-align: left;
    white-space: pre-line;
}

.glyph-section {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.glyph-groups {
    display: grid;
    gap: 28px;
}

.glyph-group {
    display: grid;
    gap: 10px;
}

.glyph-group h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 0;
    max-height: none;
    overflow: visible;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.character-tile {
    min-height: 64px;
    padding: 8px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    color: var(--ink);
    font-size: 2rem;
}

@media (max-width: 980px) {
    .library-manager {
        grid-template-columns: 1fr;
    }

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

    .library-inputs {
        grid-template-columns: 1fr 1fr;
    }

    .font-count {
        padding-bottom: 0;
    }
}

@media (max-width: 760px) {
    .library-manager {
        padding: 15px;
    }

    .field-label {
        padding-top: 4px;
    }

    .library-inputs {
        grid-template-columns: 1fr;
    }

    .font-count {
        justify-self: start;
    }

    .font-card {
        min-height: 250px;
        padding: 20px 0;
    }

    .card-sample {
        min-height: 150px;
    }

    .card-heading-actions {
        align-items: flex-start;
    }

    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    }

    .character-tile {
        min-height: 52px;
        font-size: 1.55rem;
    }
}

/* Catalog lifecycle, navigation and information pages */
.site-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-content: initial;
}

.is-menu-open .site-top {
    z-index: 90;
}

.site-menu-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.site-menu-toggle {
    justify-self: start;
}

.site-menu-toggle svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.font-logo {
    grid-column: 2;
}

.site-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 78;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(9, 9, 9, 0.22);
    cursor: default;
}

.site-menu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(440px, 92vw);
    min-height: 100svh;
    padding: 20px clamp(20px, 4vw, 40px) 36px;
    border-right: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.12);
}

.site-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.site-menu-links {
    display: grid;
    margin-top: 44px;
}

.site-menu-links a {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 2.45rem;
    line-height: 1;
    text-decoration: none;
}

.site-menu-links a > span {
    color: #6f737a;
    font-size: 0.68rem;
    font-weight: 700;
}

.site-menu-links a:hover,
.site-menu-links a.is-active {
    color: var(--accent);
}

body.is-menu-open {
    overflow: hidden;
}

.admin-panel {
    background: #f3f4f6;
    border-color: var(--line);
}

.upload-card,
.admin-preview-card,
.admin-detail-panel,
.quote-manager,
.accent-manager,
.sticker-manager,
.library-manager,
.pricing-manager,
.catalog-manager,
.order-manager,
.communications-manager {
    border-color: var(--line);
    background: #ffffff;
}

.pricing-manager {
    display: grid;
    grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
    gap: 28px;
    width: min(1360px, 100%);
    margin: 24px auto 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.pricing-manager-copy,
.pricing-manager-editor {
    display: grid;
    align-content: start;
    gap: 16px;
}

.pricing-manager-copy p:last-child {
    margin: 0;
    color: #5d626a;
    line-height: 1.5;
}

.seo-manager {
    display: grid;
    grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
    gap: 28px;
    width: min(1360px, 100%);
    margin: 24px auto 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.seo-manager-copy,
.seo-manager-editor {
    display: grid;
    align-content: start;
    gap: 16px;
}

.seo-manager-copy > p:last-of-type {
    margin: 0;
    color: #5d626a;
    font-size: 0.88rem;
    line-height: 1.5;
}

.seo-endpoint-links {
    display: grid;
    gap: 5px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.seo-endpoint-links a {
    width: fit-content;
    color: var(--ink);
    font-weight: 700;
}

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

.seo-field-grid label {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    color: #4f535a;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.seo-field-grid label small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
}

.seo-field-grid .seo-field-wide {
    grid-column: 1 / -1;
}

.seo-field-grid input,
.seo-field-grid textarea {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.45;
    text-transform: none;
}

.seo-field-grid textarea {
    resize: vertical;
}

.seo-field-grid input:focus,
.seo-field-grid textarea:focus {
    border-color: var(--accent);
    outline: 2px solid color-mix(in srgb, var(--accent) 16%, transparent);
    outline-offset: 0;
}

.seo-index-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.seo-index-controls .toggle-control {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.seo-assets {
    display: grid;
    border-top: 1px solid var(--line);
}

.seo-batch-generator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8f9fa;
}

.seo-batch-generator strong,
.seo-batch-generator p {
    display: block;
    margin: 0;
}

.seo-batch-generator strong {
    margin-bottom: 4px;
    font-size: 0.82rem;
}

.seo-batch-generator p,
.seo-batch-generator .muted-text {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.seo-batch-generator .muted-text {
    grid-column: 1 / -1;
}

.seo-batch-generator svg {
    width: 14px;
    height: 14px;
}

.seo-batch-generator .catalog-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.seo-asset {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.seo-asset-preview {
    display: grid;
    width: 96px;
    min-width: 0;
    height: 64px;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #f3f4f6;
    color: #727780;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.seo-favicon-preview {
    width: 64px;
    height: 64px;
}

.seo-asset-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seo-favicon-preview img {
    padding: 6px;
    object-fit: contain;
}

.seo-asset strong,
.seo-asset p {
    display: block;
    margin: 0;
}

.seo-asset strong {
    margin-bottom: 4px;
    font-size: 0.82rem;
}

.seo-asset p {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.seo-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    cursor: pointer;
}

.seo-asset-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.seo-asset-actions .catalog-action,
.seo-asset-actions .seo-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
}

.seo-asset-actions svg {
    width: 14px;
    height: 14px;
}

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

.seo-search-preview,
.seo-social-preview {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.seo-search-preview {
    display: grid;
    align-content: center;
    gap: 5px;
    min-height: 220px;
    padding: 20px;
}

.seo-search-preview > span {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
}

.seo-search-preview cite {
    overflow: hidden;
    color: #202124;
    font-size: 0.73rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seo-search-preview strong {
    overflow: hidden;
    color: #1a0dab;
    font-family: Arial, sans-serif;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seo-search-preview p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #4d5156;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.seo-social-preview {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 220px;
}

.seo-social-preview-image {
    display: grid;
    min-height: 126px;
    place-items: center;
    background: #f3f4f6 center / cover no-repeat;
    color: #777c84;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.seo-social-preview > div:last-child {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
}

.seo-social-preview > div:last-child span {
    color: var(--muted);
    font-size: 0.63rem;
}

.seo-social-preview strong,
.seo-social-preview p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seo-social-preview strong {
    font-size: 0.82rem;
}

.seo-social-preview p {
    margin: 0;
    color: var(--muted);
    font-size: 0.71rem;
}

.seo-actions {
    margin-top: 2px;
}

.admin-font-seo {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
    gap: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.admin-font-seo-copy p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.admin-font-seo-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-font-seo-fields > label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #4f535a;
    font-size: 0.71rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-font-seo-fields > label.admin-font-seo-wide,
.admin-font-seo-image-row,
.admin-font-seo-toggle {
    grid-column: 1 / -1;
}

.admin-font-seo-fields input,
.admin-font-seo-fields textarea,
.admin-font-seo-fields select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: none;
}

.admin-font-seo-image-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.admin-font-seo-image-preview {
    display: grid;
    width: 150px;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #f3f4f6 center / cover no-repeat;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-font-seo-file-controls {
    display: grid;
    gap: 10px;
}

.admin-font-seo-file-controls label {
    display: grid;
    gap: 6px;
}

.admin-font-seo-file-controls small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
}

.admin-font-seo-file-controls .catalog-action {
    justify-self: start;
}

.admin-font-seo-image-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-font-seo-image-actions .primary-action,
.admin-font-seo-image-actions .catalog-action {
    min-height: 38px;
}

@media (max-width: 900px) {
    .seo-manager,
    .admin-font-seo {
        grid-template-columns: 1fr;
    }

    .seo-asset {
        grid-template-columns: 72px minmax(0, 1fr) auto;
    }

    .seo-asset > button {
        grid-column: 3;
    }

    .seo-share-asset .seo-asset-actions {
        grid-column: 2 / -1;
    }

    .seo-share-asset .seo-asset-preview {
        width: 72px;
    }
}

@media (max-width: 640px) {
    .seo-manager {
        padding: 16px;
    }

    .seo-field-grid,
    .seo-index-controls,
    .seo-previews,
    .admin-font-seo-fields {
        grid-template-columns: 1fr;
    }

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

    .seo-batch-generator .catalog-action {
        justify-self: stretch;
    }

    .seo-field-grid .seo-field-wide,
    .admin-font-seo-fields > label.admin-font-seo-wide,
    .admin-font-seo-image-row,
    .admin-font-seo-toggle {
        grid-column: auto;
    }

    .seo-asset {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .seo-asset .seo-file-button,
    .seo-asset > button {
        grid-column: auto;
    }

    .seo-share-asset .seo-asset-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .seo-share-asset .seo-asset-actions > * {
        flex: 1 1 130px;
    }

    .seo-asset-preview,
    .seo-share-asset .seo-asset-preview {
        width: 64px;
        height: 64px;
    }

    .admin-font-seo-image-row {
        grid-template-columns: 1fr;
    }

    .admin-font-seo-image-preview {
        width: 100%;
        max-width: 240px;
    }
}

.pricing-global-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
    gap: 12px;
}

.pricing-global-row > label,
.pricing-rounding-book {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-global-row select,
.pricing-row input {
    min-width: 0;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
}

.pricing-global-row select {
    width: 100%;
    padding: 0 10px;
}

.price-book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.price-book-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 0;
}

.price-book-grid label > span {
    color: #656a72;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-book-grid input,
.price-book-grid select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
}

.admin-detail-price-book label {
    padding-top: 0;
    letter-spacing: 0;
}

.pricing-group {
    border-top: 1px solid var(--line);
}

.pricing-group-head,
.pricing-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 16px;
    align-items: center;
}

.pricing-group-head {
    padding: 12px 0 8px;
    color: #646970;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-group-head span:last-child {
    text-align: right;
}

.pricing-row {
    min-height: 54px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
}

.pricing-row input {
    width: 120px;
    padding: 0 9px;
    text-align: right;
}

.pricing-tier-row > input:first-child {
    width: 100%;
    border-color: transparent;
    text-align: left;
}

.pricing-tier-row > input:first-child:focus {
    border-color: var(--accent);
}

.pricing-custom-tier > span:last-child {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: right;
    text-transform: uppercase;
}

.pricing-actions {
    align-items: center;
}

.catalog-manager,
.order-manager,
.studio-project-manager {
    display: grid;
    grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
    gap: 28px;
    width: min(1360px, 100%);
    margin: 24px auto 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.catalog-manager-copy,
.catalog-manager-editor,
.order-manager-copy,
.order-manager-editor,
.studio-project-manager-copy,
.studio-project-manager-editor,
.communications-manager-copy,
.communications-manager-editor {
    display: grid;
    align-content: start;
    gap: 12px;
}

.catalog-manager-copy p:last-child,
.order-manager-copy p:last-child,
.studio-project-manager-copy p,
.communications-manager-copy p:last-child {
    margin: 0;
    color: #5d626a;
    line-height: 1.5;
}

.studio-project-manager-copy .studio-editor-link {
    width: fit-content;
    margin-top: 4px;
    color: #ffffff;
    text-decoration: none;
}

.studio-project-manager-editor {
    min-width: 0;
}

.admin-studio-list {
    display: grid;
}

.admin-studio-collection + .admin-studio-collection {
    margin-top: 20px;
}

.admin-studio-collection-head,
.admin-studio-family-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.admin-studio-collection-head {
    min-height: 48px;
    padding: 8px 12px;
    background: #f0f1f3;
}

.admin-studio-collection-head strong {
    font-size: 0.88rem;
}

.admin-studio-family-head {
    min-height: 38px;
    padding: 7px 12px;
    background: #fafafa;
}

.admin-studio-family-head strong {
    font-size: 0.76rem;
}

.admin-studio-collection-head span,
.admin-studio-family-head span {
    color: #6d7178;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-studio-family .studio-project-row {
    padding-right: 12px;
    padding-left: 12px;
}

.studio-project-row {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(150px, 0.7fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 84px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.studio-project-primary,
.studio-project-progress {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.studio-project-primary strong,
.studio-project-primary span,
.studio-project-progress span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-project-primary strong {
    font-size: 0.92rem;
}

.studio-project-primary span,
.studio-project-progress span {
    color: #6d7178;
    font-size: 0.7rem;
}

.studio-progress-track {
    width: 100%;
    height: 4px;
    overflow: hidden;
    background: #e2e4e8;
}

.studio-progress-track span {
    display: block;
    width: var(--studio-progress, 0%);
    height: 100%;
    background: var(--accent);
}

.studio-project-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.studio-project-actions select {
    min-height: 34px;
    padding: 0 28px 0 9px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
}

.studio-project-actions button:disabled {
    border-color: var(--line);
    background: #e2e4e8;
    color: #777c84;
    cursor: not-allowed;
}

.studio-import-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--accent);
    border-left-width: 4px;
    background: #ffffff;
}

.studio-import-context[hidden] {
    display: none;
}

.studio-import-context > div {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 9px;
    min-width: 0;
}

.studio-import-context span,
.studio-import-context small {
    color: #6d7178;
    font-size: 0.68rem;
}

.studio-import-context strong {
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-import-context.is-store-update {
    border-color: #090909;
}

.studio-import-context.is-store-update #studio-import-mode {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
}

#studio-import-target:empty {
    display: none;
}

#studio-import-target {
    flex-basis: 100%;
    color: #3f4349;
    line-height: 1.45;
}

.upload-card.is-store-update .field-grid {
    display: none;
}

.admin-font-filters {
    display: flex;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
}

.admin-filter {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 13px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-filter:hover,
.admin-filter.is-active {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.admin-font-list {
    display: grid;
}

.admin-font-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 64px;
    border-bottom: 1px solid var(--line);
}

.admin-font-row > a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.admin-font-row > a:hover .admin-font-name {
    color: var(--accent);
}

.admin-font-name {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-font-row-actions {
    display: flex;
    gap: 6px;
}

.catalog-action {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
}

.catalog-action:hover,
.primary-catalog-action {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.font-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
}

.font-status-published {
    border-color: var(--accent);
    color: var(--accent);
}

.font-status-archived {
    background: #e4e6ea;
    color: #555a62;
}

.admin-order-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.admin-order-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) minmax(180px, 1fr) minmax(150px, 0.9fr) minmax(110px, 0.55fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 98px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.admin-order-primary,
.admin-order-detail {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-order-primary strong,
.admin-order-detail strong,
.admin-order-detail a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-order-primary > span,
.admin-order-detail > span,
.admin-order-detail small {
    color: #686d74;
    font-size: 0.7rem;
}

.admin-order-detail > span {
    font-weight: 700;
    text-transform: uppercase;
}

.admin-order-detail a {
    color: var(--ink);
    font-size: 0.75rem;
}

.admin-order-amount strong {
    font-size: 1rem;
}

.admin-order-status-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.refund-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-color: #b42318;
    color: #b42318;
}

.refund-action svg {
    width: 14px;
    height: 14px;
}

.refund-action:hover {
    border-color: #b42318;
    background: #b42318;
    color: #ffffff;
}

.refund-action:disabled {
    cursor: wait;
    opacity: 0.5;
}

.purchase-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.purchase-status-paid {
    border-color: var(--accent);
    color: var(--accent);
}

.purchase-status-failed,
.purchase-status-refunded,
.purchase-status-order-failed,
.purchase-status-order-invalid {
    background: #eceef1;
    color: #4f545b;
}

.content-page {
    min-height: calc(100svh - 64px);
    padding: clamp(58px, 8vw, 112px) 0 96px;
}

.content-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr);
    gap: 20px 64px;
    padding-bottom: clamp(52px, 8vw, 100px);
    border-bottom: 1px solid var(--line);
}

.content-hero .eyebrow {
    grid-column: 1 / -1;
}

.content-hero h1 {
    font-size: 6.5rem;
    font-weight: 500;
    line-height: 0.92;
}

.content-hero > p:last-child {
    align-self: end;
    max-width: 520px;
    margin: 0;
    color: #3f4349;
    font-size: 1.1rem;
    line-height: 1.55;
}

.content-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-block {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 20px;
    min-height: 260px;
    padding: 34px 34px 34px 0;
    border-bottom: 1px solid var(--line);
}

.content-block:nth-child(even) {
    padding-left: 34px;
    border-left: 1px solid var(--line);
}

.content-block-wide {
    grid-column: 1 / -1;
    min-height: 230px;
    padding-left: 0 !important;
    border-left: 0 !important;
}

.content-block h2,
.content-table-section h2 {
    margin-bottom: 18px;
    font-size: 2.7rem;
    font-weight: 500;
}

.content-block p:last-child,
.content-table-section p,
.content-callout p,
.legal-copy p {
    max-width: 720px;
    margin: 0;
    color: #474b52;
    line-height: 1.65;
}

.section-index {
    margin: 4px 0 0;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
}

.license-comparison {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.license-comparison article {
    display: grid;
    align-content: start;
    min-height: 330px;
    padding: 30px;
    border-right: 1px solid var(--line);
}

.license-comparison article:last-child {
    border-right: 0;
}

.license-comparison article > span {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
}

.license-comparison h2 {
    margin: 34px 0 16px;
    font-size: 1.55rem;
}

.license-comparison p {
    margin: 0;
    color: #4c5057;
    line-height: 1.55;
}

.license-comparison strong {
    align-self: end;
    margin-top: 32px;
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.content-table-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
    gap: 64px;
    padding: 72px 0;
    border-bottom: 1px solid var(--line);
}

.tier-list {
    border-top: 1px solid var(--line);
}

.tier-list > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.tier-list span {
    color: #6a6e75;
}

.content-callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    padding: 42px 0;
    border-bottom: 1px solid var(--line);
}

.content-callout a,
.content-block a,
.legal-copy a {
    color: var(--accent);
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0;
    cursor: pointer;
    font-size: 1.45rem;
    font-weight: 600;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary span {
    color: var(--accent);
    font-size: 0.7rem;
}

.faq-list details p {
    max-width: 820px;
    margin: 0 0 30px 64px;
    color: #484c53;
    line-height: 1.65;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 40px;
    padding: 54px 0;
}

.recovery-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.6fr) minmax(420px, 1fr);
    gap: 64px;
    padding: 64px 0;
    border-bottom: 1px solid var(--line);
}

.recovery-copy h2 {
    margin: 14px 0 18px;
    font-size: 2.7rem;
    font-weight: 500;
}

.recovery-copy p:last-child {
    max-width: 420px;
    margin: 0;
    color: #474b52;
    line-height: 1.65;
}

.recovery-form {
    align-content: start;
    padding: 0;
}

.recovery-form-actions,
.recovery-result {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    color: var(--ink);
}

.contact-form input,
.contact-form select {
    min-height: 52px;
}

.contact-form textarea {
    min-height: 180px;
    padding: 14px 0;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.contact-form-wide,
.contact-form-actions {
    grid-column: 1 / -1;
}

.contact-form-actions {
    display: flex;
    justify-content: flex-end;
}

.form-unavailable {
    margin: 0;
    color: #5b6067;
}

.legal-version-note {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: #555a62;
    font-size: 0.82rem;
}

.legal-copy {
    counter-reset: legal-section;
}

.legal-copy section {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
    gap: 48px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.legal-copy h2 {
    font-size: 1rem;
}

.detail-specimen-tools {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 26px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: #5a5f66;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-section {
    padding-right: 0;
    padding-left: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.detail-specimen-tools label {
    display: grid;
    gap: 8px;
    width: min(320px, 45vw);
}

.detail-specimen-tools .detail-style-control {
    width: min(300px, 34vw);
}

.detail-specimen-tools label > span {
    display: flex;
    justify-content: space-between;
}

.detail-preview {
    margin-top: 0;
    color: var(--ink);
}

.license-configurator {
    margin-top: 48px;
    padding: 36px 0 48px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.license-configurator-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 28px;
}

.license-configurator-head h2 {
    font-size: 2.5rem;
    font-weight: 500;
}

.configurator-base-price {
    display: grid;
    gap: 4px;
    text-align: right;
}

.configurator-base-price span {
    color: #63676e;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
}

.configurator-base-price strong {
    font-size: 1.35rem;
}

.license-configurator-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.36fr);
    gap: 42px;
    align-items: start;
}

.custom-license-cta {
    display: grid;
    grid-template-columns: minmax(84px, 0.18fr) minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-top: 44px;
    padding: 30px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.custom-license-index {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.custom-license-copy {
    display: grid;
    gap: 8px;
}

.custom-license-copy .eyebrow,
.custom-license-copy h3,
.custom-license-copy p {
    margin: 0;
}

.custom-license-copy h3 {
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1.1;
}

.custom-license-copy p:last-child {
    max-width: 720px;
    color: #5c6168;
    font-size: 0.84rem;
    line-height: 1.5;
}

.custom-license-action {
    min-height: 48px;
    white-space: nowrap;
}

.custom-license-info {
    display: grid;
    grid-template-columns: minmax(150px, 0.28fr) minmax(260px, 0.7fr) minmax(320px, 1fr);
    gap: 30px;
    align-items: start;
}

.custom-license-info .eyebrow,
.custom-license-info h2,
.custom-license-info > p {
    margin: 0;
}

.custom-license-info h2 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.08;
}

.content-callout-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.license-configurator-fields {
    display: grid;
}

.license-step {
    min-width: 0;
    margin: 0;
    padding: 30px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.license-step legend {
    display: flex;
    gap: 12px;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.license-step legend span {
    color: var(--accent);
}

.license-product-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.license-offer-options {
    display: grid;
    margin-top: 20px;
    border-bottom: 1px solid var(--line);
}

.license-offer-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    cursor: pointer;
}

.license-offer-option:has(input:checked) {
    box-shadow: inset 4px 0 0 var(--accent);
}

.license-offer-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.license-offer-option > span {
    display: grid;
    gap: 3px;
}

.license-offer-option strong,
.license-offer-option b {
    font-size: 0.82rem;
}

.license-offer-option small {
    color: var(--muted);
    font-size: 0.68rem;
}

.license-product-option {
    position: relative;
    display: grid;
    min-height: 132px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
}

.license-product-option:has(input:checked) {
    border-color: var(--accent);
    box-shadow: inset 0 -4px 0 var(--accent);
}

.license-product-option input {
    width: 17px;
    height: 17px;
    margin: 0 0 18px;
    accent-color: var(--accent);
}

.license-product-option > span {
    display: grid;
    align-content: start;
    gap: 7px;
}

.license-product-option strong {
    font-size: 1rem;
}

.license-product-option small {
    color: #5c6168;
    font-size: 0.77rem;
    line-height: 1.4;
}

.configurator-select-field,
.licensee-field-grid label {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.configurator-select-field select,
.licensee-field-grid input {
    width: 100%;
    min-height: 48px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
}

.configurator-note {
    margin: 10px 0 0;
    color: #62666d;
    font-size: 0.78rem;
}

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

.license-price-summary {
    position: sticky;
    top: 82px;
    display: grid;
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.license-summary-line,
.license-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.license-summary-line span,
.license-summary-total span {
    color: #656970;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.license-summary-line strong {
    text-align: right;
}

.license-summary-total {
    align-items: end;
    padding: 26px 0;
}

.license-summary-total strong {
    color: var(--accent);
    font-size: 2rem;
    text-align: right;
}

.license-terms-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 18px;
    color: #4f535a;
    font-size: 0.78rem;
    line-height: 1.45;
}

.license-terms-consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--accent);
}

.license-terms-consent a {
    color: var(--ink);
    font-weight: 700;
}

.license-request-button {
    width: 100%;
    margin-top: 18px;
}

.license-request-button[aria-busy="true"] {
    cursor: wait;
    opacity: 0.72;
}

.license-payment-result {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.license-payment-result strong {
    font-size: 0.88rem;
}

.license-payment-result span {
    color: #5d6067;
    font-size: 0.78rem;
    line-height: 1.45;
}

.license-payment-result.is-success strong {
    color: var(--accent-dark);
}

.commercial-package-download {
    width: 100%;
    margin-top: 8px;
}

.commercial-package-download[aria-busy="true"] {
    cursor: wait;
    opacity: 0.72;
}

.license-price-summary > p {
    margin: 12px 0 0;
    color: #656970;
    font-size: 0.76rem;
    line-height: 1.45;
}

.license-summary-links {
    display: flex;
    gap: 18px;
    margin-top: 22px;
}

.license-summary-links a {
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.license-summary-links a:hover {
    color: var(--accent);
}

.related-section {
    margin-top: 72px;
}

.related-showcase-section {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-top: 0;
    border-top: 0;
}

.related-showcase {
    border-top: 1px solid var(--line);
}

body[data-view="detail"] .detail-section {
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.related-showcase-row {
    min-height: 250px;
}

.related-showcase-row:last-child {
    border-bottom: 0;
}

.related-showcase-row .showcase-track {
    font-size: 5.4rem;
}

.related-showcase-row[data-direction="left"] .showcase-track,
.related-showcase-row[data-direction="right"] .showcase-track {
    animation-duration: 28s;
}

.footer-navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 30px;
    padding: 38px 0;
    border-top: 1px solid var(--line);
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-column a {
    width: fit-content;
    color: var(--ink);
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-label {
    margin-bottom: 8px;
    color: #6d7178;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .catalog-manager,
    .order-manager,
    .studio-project-manager,
    .pricing-manager,
    .content-hero,
    .content-table-section,
    .recovery-section {
        grid-template-columns: 1fr;
    }

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

    .license-price-summary {
        position: static;
        padding: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

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

    .content-hero h1 {
        font-size: 4.3rem;
    }

    .license-comparison article:nth-child(2) {
        border-right: 0;
    }

    .license-comparison article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .admin-order-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .studio-project-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .studio-project-progress {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .admin-order-status-actions {
        justify-self: start;
        justify-items: start;
    }
}

@media (max-width: 760px) {
    .admin-offer-manager-head,
    .preview-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .upload-preview-style-field,
    .detail-specimen-tools .detail-style-control {
        width: 100%;
    }

    .license-offer-option {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .license-offer-option > b {
        grid-column: 2;
    }

    .site-top {
        display: block;
        min-height: 56px;
        padding: 0 12px;
    }

    .site-menu-toggle {
        position: absolute;
        top: 7px;
        left: 12px;
    }

    .font-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        max-width: calc(100vw - 170px);
        overflow: hidden;
        font-size: 0.82rem;
        letter-spacing: 4px;
        text-overflow: ellipsis;
        transform: translate(-50%, -50%);
        white-space: nowrap;
    }

    .content-page {
        padding: 48px 0 68px;
    }

    .pricing-manager {
        padding: 15px;
    }

    .pricing-global-row,
    .licensee-field-grid {
        grid-template-columns: 1fr;
    }

    .price-book-grid {
        grid-template-columns: repeat(3, minmax(76px, 1fr));
    }

    .admin-order-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px 0;
    }

    .license-product-options {
        grid-template-columns: 1fr;
    }

    .license-product-option {
        min-height: 112px;
    }

    .license-configurator-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .configurator-base-price {
        text-align: left;
    }

    .license-configurator-form {
        gap: 28px;
    }

    .custom-license-cta,
    .custom-license-info {
        grid-template-columns: 1fr;
    }

    .custom-license-cta {
        align-items: start;
    }

    .custom-license-action {
        width: 100%;
    }

    .content-hero {
        gap: 24px;
        padding-bottom: 48px;
    }

    .content-hero h1 {
        font-size: 3rem;
    }

    .site-menu-links a {
        font-size: 1.9rem;
    }

    .content-block h2,
    .content-table-section h2 {
        font-size: 2rem;
    }

    .content-sections,
    .license-comparison,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .content-block,
    .content-block:nth-child(even) {
        grid-column: auto;
        min-height: 220px;
        padding: 28px 0;
        border-left: 0;
    }

    .license-comparison article {
        min-height: 260px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .content-table-section {
        gap: 38px;
        padding: 52px 0;
    }

    .content-callout,
    .legal-copy section {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .legal-version-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .faq-list details p {
        margin-left: 0;
    }

    .contact-form-wide,
    .contact-form-actions {
        grid-column: auto;
    }

    .admin-font-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 0;
    }

    .studio-project-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px 0;
    }

    .studio-project-progress {
        grid-column: auto;
        grid-row: auto;
    }

    .studio-project-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .studio-import-context,
    .studio-import-context > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-font-row-actions {
        justify-content: flex-start;
    }

    .detail-specimen-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-specimen-tools label {
        width: 100%;
    }

    .related-showcase-row {
        min-height: 180px;
    }

    .related-showcase-row .showcase-track {
        font-size: 3.2rem;
    }

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

/* Storefront header and specimen metadata */
.font-detail-back {
    position: relative;
    z-index: 72;
    display: none;
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    justify-self: start;
    width: 42px;
    height: 42px;
    color: var(--ink);
    text-decoration: none;
}

body[data-view="detail"] .font-detail-back {
    display: grid;
}

body.is-menu-open .font-detail-back {
    display: none;
}

.font-detail-back .back-glyph {
    transform: translateY(-3px);
    width: 24.66px;
    height: 13.44px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-miterlimit: 10;
    vector-effect: non-scaling-stroke;
}

.font-detail-back:hover,
.site-menu-toggle:hover {
    color: var(--accent);
}

.font-detail-back:focus-visible,
.site-menu-toggle:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: -5px;
}

.site-menu-toggle {
    position: relative;
    z-index: 82;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

body.is-menu-open .site-menu-toggle {
    position: fixed;
    top: 11px;
    right: 18px;
    left: auto;
    margin: 0;
}

.site-menu-toggle .menu-glyph {
    width: 24px;
    height: 8px;
    overflow: visible;
    fill: currentColor;
}

.site-menu-toggle .menu-glyph rect {
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.site-menu-toggle[aria-expanded="true"] .menu-glyph rect:first-child {
    transform: rotate(45deg) translate(0, 3px);
}

.site-menu-toggle[aria-expanded="true"] .menu-glyph rect:last-child {
    transform: rotate(-45deg) translate(3px, 0);
}

.site-menu {
    inset: 0 0 0 auto;
    height: 100svh;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 0;
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
}

.site-menu-head {
    padding-right: 52px;
}

.showcase-row {
    padding-bottom: 36px;
}

.showcase-row::after {
    display: none;
}

.showcase-row:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.showcase-meta {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.55fr) minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
}

.showcase-meta > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showcase-meta > span:not(:first-child):not(:last-child) {
    text-align: center;
}

.showcase-meta-price {
    text-align: right;
}

.detail-title-showcase {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}

.detail-title-showcase-row {
    height: calc((100svh - 64px) / 3);
    min-height: 210px;
}

.detail-title-showcase-row[data-direction="right"] .showcase-track {
    animation-duration: 90s;
}

.detail-title-showcase-row .showcase-track > span {
    flex: none;
}

.detail-meta-bar {
    min-height: 0;
    padding: 18px 0;
}

.detail-meta-bar .detail-footer-row {
    width: 100%;
}

.cursor-trail-action,
.sticker-admin-preview,
.sticker-preset-demo {
    --sticker-width: 54px;
    --sticker-height: 38px;
    --sticker-rotation: -4deg;
    --sticker-font-size: 11px;
    --sticker-font-weight: 700;
    --sticker-background: var(--accent);
    --sticker-color: #ffffff;
    --sticker-border-color: transparent;
    --sticker-border-width: 0px;
}

.showcase-cursor-trail {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 66;
    height: var(--trail-page-height, 100vh);
    overflow: hidden;
    pointer-events: none;
    contain: layout paint style;
}

.detail-hover-preview {
    position: fixed;
    inset: 0;
    z-index: 68;
    display: grid;
    width: 100vw;
    height: 100svh;
    overflow: hidden;
    place-items: center;
    background: transparent;
    pointer-events: none;
}

.detail-glyph-preview {
    display: block;
    max-width: 92vw;
    color: var(--ink);
    font-size: 420px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.detail-artwork-preview {
    display: block;
    width: min(78vw, 1120px);
    height: min(78svh, 820px);
    object-fit: contain;
}

.character-tile,
.artwork-card:not(.is-manageable) > img {
    cursor: zoom-in;
}

.cursor-trail-item {
    position: absolute;
    top: var(--trail-y);
    left: var(--trail-x);
    display: block;
    width: var(--trail-item-width);
    height: var(--trail-item-height);
    opacity: 0;
    pointer-events: none;
    transform-origin: center;
    animation-duration: var(--trail-lifetime);
    animation-timing-function: cubic-bezier(0.2, 0.78, 0.24, 1);
    animation-fill-mode: both;
    will-change: transform, opacity;
}

.cursor-trail-item[data-trail-motion="lift"] {
    animation-name: cursor-trail-lift;
}

.cursor-trail-item[data-trail-motion="drift"] {
    animation-name: cursor-trail-drift;
}

.cursor-trail-item[data-trail-motion="shrink"] {
    animation-name: cursor-trail-shrink;
}

.cursor-trail-item[data-trail-motion="fade"] {
    animation-name: cursor-trail-fade;
}

.cursor-trail-artwork img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
}

.cursor-trail-artwork[data-frame="ink"] img {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
}

.cursor-trail-artwork[data-frame="accent"] img {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.cursor-trail-artwork[data-frame="paper"] img {
    outline: 5px solid #ffffff;
    outline-offset: -5px;
}

.cursor-trail-artwork[data-image-shadow="soft"] img {
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.2));
}

.cursor-trail-artwork[data-image-shadow="hard"] img {
    filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.92));
}

@keyframes cursor-trail-lift {
    0% {
        opacity: 0;
        transform: translate(-50%, -42%) rotate(var(--trail-rotation)) scale(0.76);
    }
    12%, 68% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--trail-rotation)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 38px)) rotate(var(--trail-rotation)) scale(0.92);
    }
}

@keyframes cursor-trail-drift {
    0% {
        opacity: 0;
        transform: translate(-50%, -44%) rotate(var(--trail-rotation)) scale(0.78);
    }
    12%, 62% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--trail-rotation)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--trail-drift)), calc(-50% - 18px)) rotate(var(--trail-rotation)) scale(0.96);
    }
}

@keyframes cursor-trail-shrink {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--trail-rotation)) scale(0.72);
    }
    12%, 64% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--trail-rotation)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--trail-rotation)) scale(0.28);
    }
}

@keyframes cursor-trail-fade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--trail-rotation)) scale(0.96);
    }
    12%, 70% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--trail-rotation)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--trail-rotation)) scale(1);
    }
}

.sticker-surface {
    display: grid;
    width: var(--sticker-width);
    height: var(--sticker-height);
    box-sizing: border-box;
    place-items: center;
    border: var(--sticker-border-width) solid var(--sticker-border-color);
    background: var(--sticker-background);
    color: var(--sticker-color);
    font-family: "Space Grotesk", sans-serif;
    font-size: var(--sticker-font-size);
    font-weight: var(--sticker-font-weight);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

[data-shape="cut"] .sticker-surface {
    clip-path: polygon(0 0, 100% 0, 100% 75%, 78% 100%, 0 100%);
}

[data-shape="pill"] .sticker-surface {
    border-radius: 999px;
}

[data-shape="circle"] .sticker-surface {
    border-radius: 50%;
}

[data-shape="ticket"] .sticker-surface {
    clip-path: polygon(0 0, 100% 0, 100% 34%, 92% 50%, 100% 66%, 100% 100%, 0 100%, 0 66%, 8% 50%, 0 34%);
}

[data-shape="diamond"] .sticker-surface {
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

[data-shape="burst"] .sticker-surface {
    clip-path: polygon(50% 0, 59% 17%, 75% 7%, 78% 26%, 96% 22%, 87% 40%, 100% 50%, 83% 59%, 94% 76%, 75% 73%, 72% 94%, 57% 82%, 48% 100%, 40% 82%, 23% 94%, 22% 74%, 3% 78%, 13% 59%, 0 49%, 17% 40%, 6% 23%, 26% 27%, 28% 7%, 42% 18%);
}

[data-shape="tape"] .sticker-surface {
    clip-path: polygon(4% 6%, 98% 0, 95% 94%, 0 100%);
}

[data-shadow="hard"] .sticker-surface {
    filter: drop-shadow(4px 4px 0 #090909);
}

[data-shadow="soft"] .sticker-surface {
    filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.22));
}

.cursor-trail-action .sticker-surface,
.sticker-admin-preview .sticker-surface {
    transform: rotate(var(--sticker-rotation)) scale(0.84);
    transform-origin: center;
    transition: transform 0.16s ease;
}

.cursor-trail-action.is-visible .sticker-surface,
.sticker-admin-preview.is-visible .sticker-surface {
    transform: rotate(var(--sticker-rotation)) scale(1);
}

[data-motion="spring"] .sticker-surface {
    transition-duration: 0.34s;
    transition-timing-function: cubic-bezier(0.2, 1.55, 0.42, 1);
}

[data-motion="slide"] .sticker-surface {
    transform: translateX(-12px) rotate(var(--sticker-rotation)) scale(0.96);
}

[data-motion="slide"].is-visible .sticker-surface {
    transform: translateX(0) rotate(var(--sticker-rotation)) scale(1);
}

[data-motion="flip"] .sticker-surface {
    transform: rotateY(78deg) rotate(var(--sticker-rotation)) scale(0.96);
}

[data-motion="flip"].is-visible .sticker-surface {
    transform: rotateY(0) rotate(var(--sticker-rotation)) scale(1);
}

[data-motion="none"] .sticker-surface,
[data-motion="none"].is-visible .sticker-surface {
    transform: rotate(var(--sticker-rotation));
    transition: none;
}

.sticker-preset-demo .sticker-surface {
    transform: rotate(var(--sticker-rotation)) scale(0.8);
    transition: none;
}

.library-inputs {
    grid-template-columns: minmax(170px, 0.68fr) minmax(260px, 1.35fr) minmax(180px, 0.62fr) minmax(92px, 0.28fr) auto;
}

.library-currency-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.library-currency-field select {
    min-height: 44px;
    width: 100%;
    padding: 0 28px 0 10px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 0.76rem;
    cursor: pointer;
}

.library-currency-field select:focus-visible {
    border-color: var(--accent);
    outline: 2px solid color-mix(in srgb, var(--accent) 22%, transparent);
    outline-offset: 2px;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-form-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-form-status {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.contact-form-status.is-error {
    color: #a1261d;
}

.site-footer {
    min-height: 0;
    padding-top: 24px;
}

.communications-manager {
    display: grid;
    grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
    gap: 28px;
    width: min(1360px, 100%);
    margin: 24px auto 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.inquiry-workspace {
    display: grid;
    grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
    min-height: 520px;
    border-top: 1px solid var(--line);
}

.admin-inquiry-list {
    border-right: 1px solid var(--line);
}

.admin-inquiry-row {
    display: grid;
    gap: 5px;
    width: 100%;
    padding: 15px 14px 15px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.admin-inquiry-row:hover,
.admin-inquiry-row.is-active {
    color: var(--accent);
}

.admin-inquiry-row strong,
.admin-inquiry-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-inquiry-row span,
.admin-inquiry-row small {
    color: #686d74;
    font-size: 0.7rem;
}

.admin-inquiry-detail {
    min-width: 0;
    padding-left: 22px;
}

.inquiry-customer-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.inquiry-customer-summary > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.inquiry-customer-summary span,
.inquiry-composer > label,
.inquiry-quote-grid label > span,
.email-studio-controls label > span,
.newsletter-campaign-fields label > span {
    color: #686d74;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
}

.inquiry-customer-summary strong,
.inquiry-customer-summary a {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inquiry-message-list {
    display: grid;
    gap: 12px;
    max-height: 340px;
    padding: 18px 0;
    overflow-y: auto;
}

.inquiry-message {
    width: min(88%, 660px);
    padding: 12px 14px;
    border-left: 3px solid var(--line);
    background: #f3f4f6;
}

.inquiry-message.is-outbound {
    justify-self: end;
    border-left-color: var(--accent);
}

.inquiry-message-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 7px;
    color: #656a72;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
}

.inquiry-message p {
    margin: 0;
    color: #30343a;
    font-size: 0.82rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.inquiry-composer,
.inquiry-quote-editor,
.email-studio-controls,
.newsletter-campaign-fields {
    display: grid;
    gap: 9px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.inquiry-composer input,
.inquiry-composer select,
.inquiry-composer textarea,
.inquiry-quote-grid input,
.inquiry-quote-grid select,
.email-studio-controls select,
.newsletter-campaign-fields input,
.newsletter-campaign-fields select,
.newsletter-campaign-fields textarea {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--ink);
}

.inquiry-composer textarea,
.newsletter-campaign-fields textarea {
    min-height: 140px;
    resize: vertical;
}

.inquiry-composer-actions,
.email-studio-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.inquiry-composer-actions select {
    width: auto;
    margin-right: auto;
}

.inquiry-quote-editor {
    margin-top: 22px;
}

.inquiry-quote-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.inquiry-quote-head span {
    color: #686d74;
    font-size: 0.72rem;
}

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

.inquiry-quote-grid label,
.email-studio-controls label,
.newsletter-campaign-fields label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.email-studio-editor {
    grid-template-columns: minmax(230px, 0.4fr) minmax(0, 1fr);
}

.email-studio-editor,
.newsletter-manager-editor {
    display: grid;
    gap: 20px;
}

.email-studio-preview {
    width: 100%;
    min-height: 520px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
}

.newsletter-manager-editor {
    grid-template-columns: minmax(280px, 0.6fr) minmax(0, 1fr);
}

.newsletter-actions {
    grid-column: 1;
    align-items: center;
    flex-wrap: wrap;
}

.newsletter-manager-editor .email-studio-preview {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.footer-navigation {
    grid-template-columns: repeat(3, minmax(140px, 0.7fr)) minmax(280px, 1.3fr);
}

.footer-newsletter {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-newsletter-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    border-bottom: 1px solid var(--ink);
}

.footer-newsletter-field input {
    min-width: 0;
    min-height: 42px;
    border: 0;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.9rem;
}

.footer-newsletter-field input:focus {
    outline: none;
}

.footer-newsletter-field button {
    display: inline-grid;
    place-items: center;
    border: 0;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
}

.footer-newsletter-field button:hover {
    color: var(--accent);
}

.footer-newsletter-field svg {
    width: 18px;
    height: 18px;
}

.newsletter-consent {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px;
    color: #656a72;
    font-size: 0.7rem;
    line-height: 1.4;
}

.newsletter-consent input {
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.newsletter-signup-status {
    min-height: 1em;
    color: #656a72;
    font-size: 0.7rem;
}

@media (max-width: 1100px) {
    .communications-manager,
    .email-studio-editor,
    .newsletter-manager-editor {
        grid-template-columns: 1fr;
    }

    .newsletter-manager-editor .email-studio-preview {
        grid-column: 1;
        grid-row: auto;
    }

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

    .footer-navigation {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }

    .footer-newsletter {
        grid-column: 1 / -1;
        max-width: 520px;
    }
}

@media (max-width: 760px) {
    .communications-manager {
        padding: 16px;
    }

    .inquiry-workspace {
        grid-template-columns: 1fr;
    }

    .admin-inquiry-list {
        max-height: 320px;
        overflow-y: auto;
        border-right: 0;
    }

    .admin-inquiry-detail {
        padding: 20px 0 0;
    }

    .inquiry-customer-summary,
    .inquiry-quote-grid {
        grid-template-columns: 1fr;
    }

    .inquiry-composer-actions,
    .inquiry-quote-head {
        align-items: stretch;
        flex-direction: column;
    }

    .inquiry-composer-actions select {
        width: 100%;
    }

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

.footer-navigation {
    padding: 12px 0 32px;
    border-top: 0;
}

.font-in-use-section {
    margin-top: 82px;
    padding-top: 72px;
    scroll-margin-top: 64px;
    border-top: 1px solid var(--line);
}

body[data-home-anchor="library"] #library-section {
    padding-top: 110px;
}

body[data-home-anchor="fonts-in-use"] #fonts-in-use {
    padding-top: 96px;
}

.font-in-use-section .font-in-use-section-head {
    margin-bottom: 24px;
}

.font-in-use-card {
    color: var(--ink);
    text-decoration: none;
}

.font-in-use-card img {
    transition: border-color 0.18s ease;
}

.font-in-use-card:hover img,
.font-in-use-card:focus-visible img {
    border-color: var(--accent);
}

.font-in-use-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

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

    .sticker-manager {
        grid-template-columns: 1fr;
    }

    .trail-control-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
}

@media (max-width: 760px) {
    .font-in-use-section {
        margin-top: 54px;
        padding-top: 44px;
    }

    body[data-home-anchor="library"] #library-section {
        padding-top: 72px;
    }

    body[data-home-anchor="fonts-in-use"] #fonts-in-use {
        padding-top: 60px;
    }

    .sticker-manager {
        padding: 15px;
    }

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

    .sticker-designer,
    .sticker-control-grid {
        grid-template-columns: 1fr;
    }

    .sticker-preview-stage {
        min-height: 240px;
    }

    .detail-glyph-preview {
        font-size: 240px;
    }

    .font-detail-back,
    .site-menu-toggle {
        position: absolute;
        top: 7px;
    }

    .font-detail-back {
        right: auto;
        left: 12px;
    }

    .site-menu-toggle {
        right: 12px;
        left: auto;
    }

    .detail-title-showcase-row {
        height: calc((100svh - 56px) / 3);
        min-height: 190px;
    }

    .detail-meta-bar {
        padding: 14px 0;
    }

    body.is-menu-open .site-menu-toggle {
        top: 7px;
        right: 12px;
    }

    .showcase-row {
        padding-bottom: 34px;
    }

    .showcase-meta {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.58rem;
    }

    .showcase-meta-styles {
        display: none;
    }

    .showcase-meta > span:nth-child(3) {
        text-align: center;
    }

    .library-inputs {
        grid-template-columns: 1fr;
    }

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

    .footer-navigation {
        gap: 28px 18px;
        padding-bottom: 28px;
    }
}

@media (hover: none) {
    .font-loader-trail,
    .showcase-cursor-trail {
        display: none;
    }

    .detail-hover-preview {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-menu-toggle .menu-glyph rect,
    .sticker-surface {
        transition: none;
    }

    .showcase-cursor-trail {
        display: none;
    }

    .font-loader-trail {
        display: none;
    }
}
