@font-face {
    font-family: "Manrope";
    src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "Instrument Serif";
    src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --red: #ed1c24;
    --red-dark: #bd1218;
    --ink: #111111;
    --ink-soft: #1b1b1b;
    --paper: #f3f2ee;
    --panel: #ffffff;
    --text: #171717;
    --muted: #706f6b;
    --line: #deddd7;
    --line-strong: #c6c5bf;
    --blue: #146ef5;
    --green: #07966b;
    --yellow: #efb620;
    --sidebar: #111111;
    --sidebar-text: #f7f6f1;
    --shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
    --shadow-small: 0 8px 24px rgba(17, 17, 17, 0.07);
    --radius: 6px;
    --radius-small: 4px;
}

html[data-theme="dark"] {
    --paper: #0d0d0d;
    --panel: #181818;
    --text: #f4f3ef;
    --muted: #aaa9a4;
    --line: #30302e;
    --line-strong: #494945;
    --sidebar: #070707;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
    --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--paper);
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: "Manrope", Arial, sans-serif;
    line-height: 1.5;
    letter-spacing: 0;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
    letter-spacing: 0;
}

button,
select {
    cursor: pointer;
}

img,
svg {
    max-width: 100%;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

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

.eyebrow,
.nav-label,
.section-kicker,
.micro-label {
    margin: 0;
    color: var(--red);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

code {
    display: inline-block;
    max-width: 100%;
    padding: 0.18rem 0.4rem;
    overflow-wrap: anywhere;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--paper);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.82em;
}

.brand-mark {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: var(--radius-small);
    background: var(--red);
    color: #ffffff;
    font-weight: 800;
}

.brand-symbol {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-small);
    background: #171717;
}

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

.button-primary,
.button-ghost,
.button-dark,
.button-danger,
.icon-button,
.utility-button,
.actions button,
.actions a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-small);
    font-weight: 750;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button-primary,
.button-ghost,
.button-dark,
.button-danger {
    padding: 0.68rem 0.95rem;
}

.button-primary {
    border: 1px solid var(--red);
    background: var(--red);
    color: #ffffff;
}

.button-primary:hover {
    border-color: var(--red-dark);
    background: var(--red-dark);
}

.button-ghost {
    border: 1px solid var(--line-strong);
    background: var(--panel);
    color: var(--text);
}

.button-ghost:hover {
    border-color: var(--text);
}

.button-dark {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #ffffff;
}

.button-dark:hover {
    background: #2a2a2a;
}

.button-danger {
    border: 1px solid rgba(237, 28, 36, 0.3);
    background: rgba(237, 28, 36, 0.08);
    color: var(--red);
}

.icon-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
}

.button-primary:focus-visible,
.button-ghost:focus-visible,
.button-dark:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(20, 110, 245, 0.24);
    outline-offset: 2px;
}

.admin-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 258px minmax(0, 1fr);
    background: var(--paper);
}

.sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 1.25rem 1rem 1rem;
    overflow-y: auto;
    background: var(--sidebar);
    color: var(--sidebar-text);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--sidebar-text);
    text-decoration: none;
}

.brand-copy {
    display: grid;
    min-width: 0;
}

.brand-copy strong {
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.brand-copy b {
    color: var(--red);
}

.brand-copy small {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.2rem 0 2rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-small);
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.system-status span,
.page-signal span,
.mobile-status {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #2dcc82;
    box-shadow: 0 0 0 4px rgba(45, 204, 130, 0.12);
}

.nav-label {
    margin: 0 0 0.65rem 0.65rem;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.59rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.22rem;
}

.sidebar-nav a {
    position: relative;
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 0.72rem;
    padding: 0.65rem 0.72rem;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
}

.sidebar-nav a::after {
    position: absolute;
    right: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: transparent;
    content: "";
}

.sidebar-nav a:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.sidebar-nav a.is-active {
    border-color: rgba(237, 28, 36, 0.34);
    background: rgba(237, 28, 36, 0.13);
    color: #ffffff;
}

.sidebar-nav a.is-active::after {
    background: var(--red);
}

.sidebar-nav a.is-active .icon {
    color: var(--red);
}

.sidebar-account {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    gap: 0.65rem;
    align-items: center;
    margin-top: auto;
    padding: 1rem 0 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.account-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
}

.account-copy {
    display: grid;
    min-width: 0;
}

.account-copy strong,
.account-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-copy strong {
    font-size: 0.76rem;
}

.account-copy small {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.65rem;
}

.sidebar-profile.icon-button {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.76);
}

.sidebar-profile .icon {
    width: 15px;
    height: 15px;
}

.sidebar-utilities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.utility-button {
    width: 100%;
    min-height: 35px;
    padding: 0.48rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.63);
    font-size: 0.65rem;
}

.utility-button .icon {
    width: 14px;
    height: 14px;
}

.utility-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.logout-form {
    display: contents;
}

.main-content {
    width: 100%;
    min-width: 0;
    padding: 1.7rem clamp(1rem, 3vw, 3rem) 3rem;
}

.mobile-topbar {
    display: none;
}

.page-header {
    display: flex;
    min-height: 86px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1500px;
    margin: 0 auto 1.45rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.page-header h1 {
    margin: 0.22rem 0 0;
    font-size: 2.05rem;
    font-weight: 650;
    line-height: 1.1;
}

.page-signal {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.main-content > :not(.mobile-topbar, .page-header) {
    max-width: 1500px;
    margin-right: auto;
    margin-left: auto;
}

.alert {
    margin-bottom: 1rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: var(--radius-small);
    background: var(--panel);
    box-shadow: var(--shadow-small);
}

.alert-error {
    border-left-color: var(--red);
    color: #a41319;
}

.alert-success {
    border-left-color: var(--green);
    color: var(--green);
}

.alert-info {
    border-left-color: var(--blue);
    color: var(--blue);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.dashboard-command {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem !important;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-small);
}

.dashboard-command strong {
    display: block;
    margin-top: 0.28rem;
    font-size: 1.1rem;
}

.stat-card,
.panel,
.media-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-small);
}

.stat-card {
    position: relative;
    min-height: 132px;
    padding: 1rem 1.05rem;
    overflow: hidden;
}

.stat-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--line-strong);
    content: "";
}

.accent-red::before { background: var(--red); }
.accent-blue::before { background: var(--blue); }
.accent-green::before { background: var(--green); }
.accent-ink::before { background: var(--ink); }

.stat-card span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 750;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin-top: 1.15rem;
    font-size: 2.25rem;
    font-weight: 650;
    line-height: 1;
}

.stat-card strong + span {
    display: block;
    margin-top: 0.7rem;
    text-transform: none;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.panel {
    margin-bottom: 0.85rem;
    padding: 1rem;
}

.panel-header,
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.panel-header {
    min-height: 42px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.panel-header h2,
.panel h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 750;
}

.toolbar {
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-small);
}

.toolbar-actions,
.filters,
.actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.filters {
    flex: 1 1 auto;
}

.form-stack,
.form-grid {
    display: grid;
    gap: 1rem;
}

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

.form-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.span-2 {
    grid-column: span 2;
}

.form-stack label,
.form-grid label,
.field-label {
    display: grid;
    min-width: 0;
    gap: 0.42rem;
    color: var(--text);
    font-size: 0.79rem;
    font-weight: 720;
}

input,
textarea,
select {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 0.68rem 0.78rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    outline: none;
    background: var(--panel);
    color: var(--text);
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 72%, transparent);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(20, 110, 245, 0.11);
}

input[type="color"] {
    min-height: 43px;
    padding: 0.25rem;
}

input[type="range"] {
    min-height: 30px;
    padding: 0;
    border: 0;
    box-shadow: none;
    accent-color: var(--red);
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    min-height: 18px;
    padding: 0;
    accent-color: var(--red);
}

.check-row {
    display: flex !important;
    flex-direction: row;
    align-items: center;
}

.fieldset {
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.fieldset legend {
    padding: 0 0.35rem;
    font-size: 0.79rem;
    font-weight: 800;
}

label.is-dragging {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.52rem;
    border: 1px solid rgba(7, 150, 107, 0.22);
    border-radius: 999px;
    background: rgba(7, 150, 107, 0.08);
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 800;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

th,
td {
    padding: 0.78rem 0.55rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

tbody tr {
    transition: background-color 120ms ease;
}

tbody tr:hover {
    background: color-mix(in srgb, var(--paper) 72%, transparent);
}

tbody tr:last-child td {
    border-bottom: 0;
}

td small,
.media-body small {
    display: block;
    color: var(--muted);
}

[data-inline] {
    display: inline-flex;
    margin: 0;
}

.actions a,
.actions button {
    min-height: 30px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-size: 0.7rem;
}

.actions button {
    color: var(--red);
}

.bar-chart {
    display: flex;
    min-height: 185px;
    align-items: end;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 1rem 0.5rem 0;
    border-bottom: 1px solid var(--line);
}

.bar-item {
    display: grid;
    min-width: 34px;
    gap: 0.4rem;
    justify-items: center;
}

.bar {
    width: 20px;
    border-radius: 2px 2px 0 0;
    background: var(--red);
}

.bar-item:nth-child(3n + 2) .bar { background: var(--blue); }
.bar-item:nth-child(3n + 3) .bar { background: var(--ink); }

.stats-toolbar .filters select {
    width: min(230px, 100%);
}

.stats-toolbar .filters input {
    width: min(165px, 100%);
}

.stats-toolbar-exports {
    flex-wrap: nowrap;
}

.chart-legend {
    display: flex;
    gap: 0.85rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.chart-legend span::before {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--blue);
    content: "";
}

.chart-legend .is-conversion::before {
    background: var(--red);
}

.conversion-chart .bar-item {
    min-width: 44px;
}

.bar-pair {
    display: flex;
    min-height: 140px;
    align-items: end;
    gap: 3px;
}

.bar-pair .bar {
    display: block;
    width: 11px;
}

.bar-item .bar.is-scan {
    background: var(--blue);
}

.bar-item .bar.is-conversion {
    background: var(--red);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.pagination a {
    min-width: 36px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--panel);
    text-align: center;
    text-decoration: none;
}

.pagination a.is-active {
    border-color: var(--red);
    background: var(--red);
    color: #ffffff;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.media-card {
    overflow: hidden;
}

.media-preview {
    display: grid;
    aspect-ratio: 4 / 3;
    place-items: center;
    background: var(--paper);
}

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

.file-icon {
    display: grid;
    width: 62px;
    height: 78px;
    place-items: center;
    border: 2px solid var(--red);
    border-radius: var(--radius-small);
    color: var(--red);
    font-weight: 800;
}

.media-body {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem;
}

.details-list {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 0.55rem 1rem;
}

.details-list dt {
    color: var(--muted);
    font-weight: 750;
}

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

.public-url {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: var(--radius-small);
    background: var(--paper);
}

/* QR studio */
.qr-studio-shell {
    display: grid;
    gap: 0.85rem;
}

.studio-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    box-shadow: var(--shadow-small);
}

.progress-step {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 750;
}

.progress-step:last-child {
    border-right: 0;
}

.progress-step span {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-size: 0.65rem;
}

.progress-step.is-active {
    color: var(--text);
}

.progress-step.is-active span {
    border-color: var(--red);
    background: var(--red);
    color: #ffffff;
}

.qr-workbench {
    display: grid;
    grid-template-columns: 184px minmax(430px, 1fr) 335px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: visible;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.qr-type-panel {
    align-self: stretch;
    min-height: 100%;
    padding: 1rem 0.75rem;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 68%, var(--panel));
}

.qr-type-panel .micro-label {
    margin: 0 0.4rem 0.8rem;
    color: var(--muted);
}

.qr-type-list {
    display: grid;
    gap: 0.28rem;
}

.qr-type-option {
    position: relative;
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 0.62rem;
    padding: 0.58rem 0.62rem;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 720;
}

.qr-type-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.qr-type-option:hover {
    border-color: var(--line);
    color: var(--text);
}

.qr-type-option.is-selected,
.qr-type-option:has(input:checked) {
    border-color: rgba(237, 28, 36, 0.28);
    background: rgba(237, 28, 36, 0.08);
    color: var(--text);
}

.qr-type-option.is-selected .icon,
.qr-type-option:has(input:checked) .icon {
    color: var(--red);
}

.qr-editor-panel {
    min-width: 0;
    padding: 0 1.15rem;
}

.editor-section {
    padding: 1.15rem 0 1.25rem;
    border-bottom: 1px solid var(--line);
}

.editor-section:last-of-type {
    border-bottom: 0;
}

.editor-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.editor-section-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 780;
}

.editor-section-header p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.73rem;
}

.section-number {
    color: var(--red);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.7rem;
    line-height: 1;
}

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

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

.field-help {
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 500;
}

.upload-field {
    display: grid;
    min-height: 92px;
    place-items: center;
    gap: 0.35rem;
    padding: 0.85rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-small);
    background: var(--paper);
    text-align: center;
    cursor: pointer;
}

.upload-field:hover {
    border-color: var(--blue);
}

.upload-field input[type="file"] {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.69rem;
}

.color-control {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
}

.color-control input[type="color"] {
    width: 44px;
    padding: 0.18rem;
}

.color-value {
    min-height: 43px;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--paper);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.76rem;
}

.qr-style-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.qr-style-preset {
    display: grid;
    min-width: 0;
    gap: 0.45rem;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--paper);
    color: var(--text);
    text-align: left;
}

.qr-style-preset:hover {
    border-color: var(--line-strong);
}

.qr-style-preset.is-selected {
    border-color: var(--red);
    box-shadow: inset 0 0 0 1px var(--red);
}

.qr-style-preset strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preset-swatch {
    display: grid;
    height: 43px;
    grid-template-columns: repeat(3, 9px);
    grid-auto-rows: 9px;
    align-content: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--preset-foreground) 22%, transparent);
    border-radius: 3px;
    background: var(--preset-background);
}

.preset-swatch i {
    display: block;
    width: 9px;
    height: 9px;
    background: var(--preset-foreground);
}

.qr-style-preset[data-module-shape="rounded"] .preset-swatch i {
    border-radius: 3px;
}

.qr-style-preset[data-module-shape="dot"] .preset-swatch i {
    border-radius: 50%;
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
}

.segment-option {
    position: relative;
    display: grid;
    min-height: 41px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 720;
}

.segment-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.segment-option:has(input:checked) {
    border-color: var(--red);
    background: rgba(237, 28, 36, 0.07);
    color: var(--red);
}

.range-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 0.6rem;
    align-items: center;
}

.range-output {
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--paper);
    color: var(--muted);
    text-align: center;
    font-size: 0.68rem;
}

.switch-control {
    display: flex;
    min-height: 43px;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--paper);
}

.switch-control input {
    order: 2;
}

.editor-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 -1.15rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    backdrop-filter: blur(12px);
}

.qr-preview-panel {
    position: sticky;
    top: 1rem;
    display: grid;
    max-height: calc(100vh - 2rem);
    min-width: 0;
    gap: 1rem;
    align-self: start;
    overflow-y: auto;
    padding: 1.15rem;
    border-left: 1px solid var(--line);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--ink);
    color: #ffffff;
}

.preview-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.preview-topline .micro-label {
    color: rgba(255, 255, 255, 0.5);
}

.preview-live {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    color: #7bd8ae;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.preview-live span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2dcc82;
}

.qr-canvas {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    place-items: center;
    padding: 1rem;
    border-radius: var(--radius-small);
    background: #ffffff;
}

.qr-canvas img,
.qr-canvas svg {
    width: 100%;
    height: 100%;
}

.readability-panel {
    display: grid;
    gap: 0.7rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.readability-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.readability-panel header > div {
    display: flex;
    align-items: baseline;
    gap: 0.24rem;
}

.readability-panel header span {
    margin-right: 0.35rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.readability-panel header strong {
    font-size: 1.75rem;
    line-height: 1;
}

.readability-panel header small {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.65rem;
}

.readability-panel header > b {
    color: #7bd8ae;
    font-size: 0.67rem;
    font-weight: 800;
    text-align: right;
}

.readability-meter {
    height: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.13);
}

.readability-meter i {
    display: block;
    width: 0;
    height: 100%;
    background: #2dcc82;
    transition: width 180ms ease, background 180ms ease;
}

.readability-factors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.readability-factors > div {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
    padding: 0.48rem 0.55rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.readability-factors span {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.56rem;
    font-weight: 800;
    text-transform: uppercase;
}

.readability-factors strong {
    overflow: hidden;
    font-size: 0.69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.readability-panel > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.65rem;
}

.readability-panel[data-tone="good"] header > b,
.readability-panel[data-tone="good"] > p {
    color: #74b6ff;
}

.readability-panel[data-tone="good"] .readability-meter i {
    background: #3987e8;
}

.readability-panel[data-tone="warning"] header > b,
.readability-panel[data-tone="warning"] > p {
    color: #f5c95a;
}

.readability-panel[data-tone="warning"] .readability-meter i {
    background: #efb620;
}

.readability-panel[data-tone="danger"] header > b,
.readability-panel[data-tone="danger"] > p {
    color: #ff7b80;
}

.readability-panel[data-tone="danger"] .readability-meter i {
    background: #ed1c24;
}

.preview-name {
    display: grid;
    gap: 0.2rem;
}

.preview-name strong {
    font-size: 0.9rem;
}

.preview-name small,
.preview-url {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.67rem;
    overflow-wrap: anywhere;
}

.preview-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-small);
}

.preview-metric {
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem;
}

.preview-metric + .preview-metric {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-metric span {
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.preview-metric strong {
    font-size: 0.84rem;
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.export-grid a,
.export-grid span {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-small);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.65rem;
    font-weight: 750;
    text-decoration: none;
}

.export-grid a:hover {
    border-color: var(--red);
    background: var(--red);
    color: #ffffff;
}

.export-grid .is-disabled {
    opacity: 0.42;
}

.qr-list-name {
    display: flex;
    min-width: 170px;
    align-items: center;
    gap: 0.65rem;
}

.qr-mini {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: #ffffff;
}

.qr-mini svg {
    width: 100%;
    height: 100%;
}

.export-pills {
    display: flex;
    gap: 0.24rem;
}

.export-pills a {
    padding: 0.28rem 0.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    color: var(--muted);
    font-size: 0.61rem;
    font-weight: 800;
    text-decoration: none;
}

.export-pills a:hover {
    border-color: var(--red);
    color: var(--red);
}

.readability-badge {
    display: inline-grid;
    min-width: 62px;
    gap: 0.08rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--green);
}

.readability-badge strong {
    font-size: 0.82rem;
    line-height: 1;
}

.readability-badge small {
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 750;
    white-space: nowrap;
}

.readability-badge[data-tone="good"] {
    border-color: var(--blue);
}

.readability-badge[data-tone="warning"] {
    border-color: var(--yellow);
}

.readability-badge[data-tone="danger"] {
    border-color: var(--red);
}

[data-qr-fields][hidden] {
    display: none !important;
}

/* Login and public QR fallback */
.login-page,
.public-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1.5rem;
    overflow: hidden;
    background: var(--ink);
}

.login-page::before,
.public-page::before {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 7vw;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    content: "";
}

.login-page::after,
.public-page::after {
    position: fixed;
    top: 0;
    right: 7vw;
    bottom: 0;
    width: 4px;
    background: var(--red);
    content: "";
}

.login-card,
.public-card {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 2rem;
    border: 1px solid #d8d7d1;
    border-radius: var(--radius);
    background: #f8f7f3;
    color: #171717;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.public-card {
    width: min(100%, 650px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    margin-bottom: 2rem;
}

.login-brand .brand-symbol {
    width: 48px;
    height: 48px;
}

.login-brand > div,
.login-brand .brand-copy {
    display: grid;
}

.login-brand small {
    color: #7a7974;
}

.login-card h1,
.public-card h1 {
    margin: 0 0 0.4rem;
    font-size: 2.2rem;
    font-weight: 670;
    line-height: 1.05;
}

.login-intro {
    margin: 0 0 1.4rem;
    color: #706f6b;
    font-size: 0.85rem;
}

.login-card input,
.login-card textarea,
.login-card select {
    background: #ffffff;
    color: #171717;
}

.login-help {
    display: flex;
    justify-content: space-between;
    margin: 1.1rem 0 0;
    color: #6e6d68;
    font-size: 0.78rem;
}

.login-signal {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    color: var(--red);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* Public homepage */
.site-home {
    background: #f3f2ee;
    color: #171717;
}

.site-nav {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    display: flex;
    width: min(100% - 2rem, 1460px);
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    color: #ffffff;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.site-brand strong {
    font-size: 0.96rem;
    letter-spacing: 0.02em;
}

.site-brand strong span {
    color: var(--red);
}

.site-brand small {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.site-nav-links,
.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.site-nav-links a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav-links a:hover {
    color: #ffffff;
}

.nav-login {
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
}

.site-nav .button-primary {
    min-height: 38px;
    font-size: 0.72rem;
}

.home-hero {
    min-height: 780px;
    padding: 118px 1rem 42px;
    background: var(--ink);
    color: #ffffff;
}

.hero-inner {
    width: min(100%, 1460px);
    margin: 0 auto;
}

.hero-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.hero-heading h1 {
    margin: 0;
    font-size: 5.4rem;
    font-weight: 720;
    line-height: 0.9;
}

.hero-heading h1 span {
    color: var(--red);
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400;
}

.hero-heading-copy {
    display: grid;
    gap: 1rem;
    padding-bottom: 0.35rem;
}

.hero-heading-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1rem;
}

.hero-signal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--red);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-workbench {
    display: grid;
    grid-template-columns: 210px minmax(350px, 1fr) 350px;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: #f8f7f3;
    color: #171717;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.home-types {
    padding: 1.1rem 0.8rem;
    border-right: 1px solid #dddcd6;
    background: #ecebe6;
}

.home-types .micro-label {
    margin: 0 0.45rem 0.8rem;
    color: #7b7a75;
}

.home-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.32rem;
}

.home-type-button {
    display: flex;
    min-height: 45px;
    align-items: center;
    gap: 0.62rem;
    padding: 0.58rem 0.65rem;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    background: transparent;
    color: #6b6a66;
    font-size: 0.72rem;
    font-weight: 750;
    text-align: left;
}

.home-type-button:hover,
.home-type-button.is-active {
    border-color: rgba(237, 28, 36, 0.24);
    background: rgba(237, 28, 36, 0.08);
    color: #171717;
}

.home-type-button.is-active .icon {
    color: var(--red);
}

.home-editor {
    min-width: 0;
    padding: 1.35rem;
}

.home-editor-header {
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #dddcd6;
}

.home-editor-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.home-editor-header p {
    margin: 0.25rem 0 0;
    color: #777671;
    font-size: 0.76rem;
}

.home-editor-fields {
    display: grid;
    gap: 0.9rem;
}

.home-editor-fields label {
    display: grid;
    gap: 0.4rem;
    color: #33322f;
    font-size: 0.73rem;
    font-weight: 750;
}

.home-editor-fields input,
.home-editor-fields textarea,
.home-editor-fields select {
    border-color: #c8c7c1;
    background: #ffffff;
    color: #171717;
}

.home-color-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.home-color-control {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.home-color-control input[type="color"] {
    width: 42px;
}

.home-color-control span {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.68rem;
}

.home-preview {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 0.85rem;
    padding: 1.35rem;
    border-left: 1px solid #dddcd6;
    background: #ffffff;
}

.home-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-preview-frame {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    place-items: center;
    padding: 1rem;
    border: 1px solid #deddd7;
    border-radius: var(--radius-small);
    background: #ffffff;
}

.home-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-preview-status {
    min-height: 20px;
    margin: 0;
    color: #777671;
    font-size: 0.68rem;
}

.home-preview-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.home-preview-actions .button-primary,
.home-preview-actions .button-dark {
    width: 100%;
}

.home-meta-strip {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.59rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-band {
    padding: 5rem 1rem;
}

.home-band-inner {
    width: min(100%, 1320px);
    margin: 0 auto;
}

.home-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
    gap: 2rem;
    align-items: end;
    margin-bottom: 2.2rem;
}

.home-section-heading h2 {
    max-width: 780px;
    margin: 0.4rem 0 0;
    font-size: 3.1rem;
    font-weight: 680;
    line-height: 1;
}

.home-section-heading h2 em {
    color: var(--red);
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400;
}

.home-section-heading > p {
    margin: 0;
    color: #6c6b67;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #cbc9c2;
    border-left: 1px solid #cbc9c2;
}

.use-case {
    position: relative;
    display: grid;
    min-height: 370px;
    align-content: space-between;
    padding: 1rem;
    overflow: hidden;
    border-right: 1px solid #cbc9c2;
    border-bottom: 1px solid #cbc9c2;
    background: #ffffff;
}

.use-case:nth-child(2) { background: #191919; color: #ffffff; }
.use-case:nth-child(3) { background: #dbe8ff; }
.use-case:nth-child(4) { background: #ed1c24; color: #ffffff; }

.use-case-index {
    color: currentColor;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    opacity: 0.55;
}

.use-case-visual {
    display: grid;
    width: 170px;
    aspect-ratio: 1;
    place-items: center;
    justify-self: center;
    padding: 0.75rem;
    transform: rotate(-3deg);
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #ffffff;
    box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.1);
}

.use-case:nth-child(2) .use-case-visual { transform: rotate(4deg); box-shadow: 12px 14px 0 rgba(237, 28, 36, 0.9); }
.use-case:nth-child(3) .use-case-visual { transform: rotate(2deg); box-shadow: 12px 14px 0 rgba(20, 110, 245, 0.28); }
.use-case:nth-child(4) .use-case-visual { transform: rotate(-4deg); box-shadow: 12px 14px 0 rgba(17, 17, 17, 0.45); }

.use-case-visual svg,
.use-case-visual img {
    width: 100%;
    height: 100%;
}

.automation-tabs {
    display: flex;
    min-height: 48px;
    gap: 0.25rem;
    margin-bottom: 0.85rem !important;
    border-bottom: 1px solid var(--line);
}

.automation-tabs a {
    display: inline-flex;
    min-width: 132px;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 760;
    text-decoration: none;
}

.automation-tabs a:hover {
    color: var(--text);
}

.automation-tabs a.is-active {
    border-bottom-color: var(--red);
    color: var(--text);
}

.automation-tabs .icon {
    width: 16px;
    height: 16px;
}

.automation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 0.85rem;
    align-items: start;
    margin-bottom: 0.85rem !important;
}

.automation-layout > .panel,
.automation-api-grid > .panel,
.automation-code-grid > .panel {
    min-width: 0;
    margin-bottom: 0;
}

.automation-import-form {
    align-items: start;
}

.automation-section-heading {
    display: flex;
    min-height: 38px;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
}

.automation-section-heading h2 {
    margin: 0;
    font-size: 0.94rem;
}

.automation-section-heading span {
    color: var(--muted);
    font-size: 0.67rem;
}

.automation-upload {
    min-height: 118px;
}

.automation-upload > .icon {
    width: 24px;
    height: 24px;
    color: var(--blue);
}

.automation-upload strong {
    font-size: 0.8rem;
}

.automation-format-panel {
    box-shadow: none;
}

.automation-columns {
    display: grid;
    margin: 0;
}

.automation-columns > div {
    display: grid;
    min-height: 39px;
    grid-template-columns: minmax(105px, 0.42fr) minmax(0, 0.58fr);
    gap: 0.65rem;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.automation-columns > div:last-child {
    border-bottom: 0;
}

.automation-columns dt {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.71rem;
    font-weight: 760;
}

.automation-columns dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.67rem;
}

.automation-note {
    margin: 0.85rem -1rem -1rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--blue) 5%, var(--panel));
    color: var(--muted);
    font-size: 0.69rem;
}

.automation-preview {
    overflow: hidden;
}

.automation-validation,
.automation-row-valid,
.automation-row-error {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 780;
}

.automation-validation {
    padding: 0.32rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
}

.automation-validation.is-valid,
.automation-row-valid {
    color: var(--green);
}

.automation-validation.is-error,
.automation-row-error {
    color: var(--red);
}

.automation-validation.is-valid {
    border-color: color-mix(in srgb, var(--green) 30%, var(--line));
    background: color-mix(in srgb, var(--green) 7%, var(--panel));
}

.automation-validation.is-error {
    border-color: color-mix(in srgb, var(--red) 30%, var(--line));
    background: color-mix(in srgb, var(--red) 7%, var(--panel));
}

.automation-validation .icon,
.automation-row-valid .icon {
    width: 14px;
    height: 14px;
}

.automation-row-error {
    max-width: 280px;
    overflow-wrap: anywhere;
}

.automation-preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin: 1rem -1rem -1rem;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.automation-preview-actions form {
    margin: 0;
}

.automation-batch-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.85rem !important;
}

.automation-batch-stats .stat-card {
    box-shadow: none;
}

.automation-stat-text {
    overflow-wrap: anywhere;
    font-size: 1.28rem !important;
}

.automation-stat-date {
    font-size: 1.35rem !important;
}

.api-secret-panel {
    display: grid;
    min-height: 82px;
    grid-template-columns: minmax(160px, 0.35fr) minmax(0, 0.65fr) 38px;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.85rem !important;
    padding: 0.85rem 1rem;
    border: 1px solid #2d2d2d;
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    background: #111111;
    color: #ffffff;
}

.api-secret-panel > div {
    display: grid;
    min-width: 0;
}

.api-secret-panel .micro-label {
    color: #ff6469;
}

.api-secret-panel strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-secret-panel code {
    display: block;
    min-width: 0;
    overflow-x: auto;
    border-color: rgba(255, 255, 255, 0.15);
    background: #1d1d1d;
    color: #ffffff;
    white-space: nowrap;
}

.api-secret-panel .icon-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.automation-api-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
    gap: 0.85rem;
    align-items: start;
    margin-bottom: 0.85rem;
}

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

.automation-key-list {
    overflow: hidden;
}

.automation-key-list table {
    min-width: 760px;
}

.automation-key-list .button-danger {
    min-height: 32px;
    padding: 0.35rem 0.5rem;
    font-size: 0.68rem;
    white-space: nowrap;
}

.automation-endpoints {
    overflow: hidden;
}

.automation-endpoints table {
    min-width: 650px;
}

.http-method {
    display: inline-grid;
    min-width: 48px;
    min-height: 25px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 800;
}

.http-method.is-get {
    border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
    background: color-mix(in srgb, var(--blue) 7%, var(--panel));
    color: var(--blue);
}

.http-method.is-post {
    border-color: color-mix(in srgb, var(--green) 30%, var(--line));
    background: color-mix(in srgb, var(--green) 7%, var(--panel));
    color: var(--green);
}

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

.automation-code-grid pre {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    border-radius: var(--radius-small);
    background: #111111;
}

.automation-code-grid pre code {
    display: block;
    width: max-content;
    min-width: 100%;
    padding: 0.9rem;
    border: 0;
    background: transparent;
    color: #f5f4f0;
    font-size: 0.7rem;
    line-height: 1.6;
    white-space: pre;
}

@media (max-width: 1180px) {
    .automation-layout,
    .automation-api-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .automation-format-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .automation-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
    }
}

@media (max-width: 760px) {
    .automation-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .automation-tabs a {
        min-width: 0;
        padding-right: 0.35rem;
        padding-left: 0.35rem;
    }

    .automation-columns,
    .automation-code-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .automation-batch-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .api-secret-panel {
        grid-template-columns: minmax(0, 1fr) 38px;
    }

    .api-secret-panel > div {
        grid-column: 1 / -1;
    }

    .automation-preview-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .automation-preview-actions form,
    .automation-preview-actions button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .automation-tabs a {
        flex-direction: column;
        gap: 0.2rem;
        font-size: 0.65rem;
    }

    .automation-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .automation-columns > div {
        grid-template-columns: minmax(90px, 0.45fr) minmax(0, 0.55fr);
    }

    .api-secret-panel {
        padding: 0.75rem;
    }
}

@media (min-width: 861px) and (max-height: 760px) {
    .home-hero {
        min-height: 0;
        padding-top: 88px;
        padding-bottom: 22px;
    }

    .hero-heading {
        margin-bottom: 1rem;
    }

    .hero-heading h1 {
        font-size: 4.2rem;
    }

    .home-workbench {
        min-height: 390px;
    }

    .home-types,
    .home-editor,
    .home-preview {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .home-type-button {
        min-height: 39px;
    }

    .home-preview-frame {
        width: 220px;
        justify-self: center;
    }

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

    .home-preview-actions .button-primary,
    .home-preview-actions .button-dark {
        padding-right: 0.55rem;
        padding-left: 0.55rem;
        font-size: 0.64rem;
    }
}

.use-case h3 {
    margin: 0;
    font-size: 1.1rem;
}

.use-case p {
    margin: 0.25rem 0 0;
    font-size: 0.74rem;
    opacity: 0.65;
}

.dynamic-band {
    padding: 5rem 1rem;
    background: #111111;
    color: #ffffff;
}

.dynamic-inner {
    display: grid;
    width: min(100%, 1320px);
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 4rem;
    align-items: center;
    margin: 0 auto;
}

.dynamic-copy h2 {
    margin: 0.55rem 0 1rem;
    font-size: 3.5rem;
    font-weight: 680;
    line-height: 0.98;
}

.dynamic-copy h2 em {
    color: var(--red);
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400;
}

.dynamic-copy > p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.62);
}

.dynamic-route {
    display: grid;
    gap: 0.55rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-small);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.75rem;
}

.dynamic-route span {
    color: rgba(255, 255, 255, 0.44);
}

.process-list {
    display: grid;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.process-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.process-step > span {
    color: var(--red);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.8rem;
}

.process-step h3 {
    margin: 0;
    font-size: 0.95rem;
}

.process-step p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.75rem;
}

.site-footer {
    padding: 1.6rem 1rem;
    border-top: 1px solid #d0cfc9;
    background: #f3f2ee;
}

.site-footer-inner {
    display: flex;
    width: min(100%, 1320px);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
    color: #6f6e69;
    font-size: 0.67rem;
}

.site-footer-links {
    display: flex;
    gap: 1rem;
}

/* Commercial offers */
.commercial-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-small);
}

.commercial-tabs a {
    position: relative;
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 780;
    text-align: center;
    text-decoration: none;
}

.commercial-tabs a:last-child {
    border-right: 0;
}

.commercial-tabs a::after {
    position: absolute;
    right: 0.8rem;
    bottom: 0;
    left: 0.8rem;
    height: 3px;
    background: transparent;
    content: "";
}

.commercial-tabs a.is-active {
    color: var(--text);
}

.commercial-tabs a.is-active::after {
    background: var(--red);
}

.commercial-tabs a > span {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    place-items: center;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--red);
    color: #ffffff;
    font-size: 0.63rem;
}

.commercial-overview-grid,
.commercial-editor-grid {
    display: grid;
    gap: 0.85rem;
    align-items: start;
}

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

.commercial-editor-grid {
    grid-template-columns: minmax(390px, 0.85fr) minmax(0, 1.35fr);
}

.commercial-distribution,
.commercial-request-list {
    display: grid;
}

.commercial-distribution > div,
.commercial-request-list > div {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
}

.commercial-distribution > div:last-child,
.commercial-request-list > div:last-child {
    border-bottom: 0;
}

.commercial-distribution span,
.commercial-request-list span {
    min-width: 0;
}

.commercial-distribution strong,
.commercial-request-list strong,
.commercial-distribution small,
.commercial-request-list small {
    display: block;
    overflow-wrap: anywhere;
}

.commercial-distribution small,
.commercial-request-list small {
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.7rem;
}

.commercial-distribution b {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    font-size: 0.82rem;
}

.commercial-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--line);
}

.commercial-section-heading span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.commercial-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.commercial-checks .check-row {
    min-height: 48px;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
}

.commercial-plan-stack {
    display: grid;
    gap: 0.85rem;
}

.commercial-plan-summary {
    margin: 0;
    box-shadow: none;
}

.commercial-plan-summary.is-featured {
    border-top: 3px solid var(--red);
}

.commercial-plan-summary > header,
.commercial-plan-summary > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.commercial-plan-summary > header strong,
.commercial-plan-summary > header small {
    display: block;
}

.commercial-plan-summary > header strong {
    margin-top: 0.12rem;
    font-size: 1.05rem;
}

.commercial-plan-summary > header small,
.commercial-plan-summary > footer > span {
    color: var(--muted);
    font-size: 0.68rem;
}

.commercial-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin: 1.25rem 0;
}

.commercial-plan-price b {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 2.35rem;
    font-weight: 400;
    line-height: 1;
}

.commercial-plan-price span {
    color: var(--muted);
    font-size: 0.72rem;
}

.commercial-plan-summary dl {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 1rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.commercial-plan-summary dl > div {
    min-width: 0;
    padding: 0.75rem;
    border-right: 1px solid var(--line);
}

.commercial-plan-summary dl > div:last-child {
    border-right: 0;
}

.commercial-plan-summary dt,
.commercial-plan-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.commercial-plan-summary dt {
    color: var(--muted);
    font-size: 0.63rem;
    font-weight: 750;
    text-transform: uppercase;
}

.commercial-plan-summary dd {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    font-weight: 800;
}

.commercial-subscription-list {
    min-width: 0;
    margin: 0;
}

.commercial-message-cell {
    min-width: 220px;
    max-width: 360px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.client-plan-command {
    display: flex;
    min-height: 154px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 0.85rem;
    padding: 1.4rem 1.5rem;
    border-left: 5px solid var(--red);
    border-radius: var(--radius);
    background: var(--ink);
    color: #ffffff;
    box-shadow: var(--shadow-small);
}

.client-plan-command h2 {
    margin: 0.25rem 0;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1;
}

.client-plan-command > div > span,
.client-plan-price span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.73rem;
}

.client-plan-price {
    min-width: 190px;
    text-align: right;
}

.client-plan-price strong {
    display: block;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1;
}

.commercial-pending-request {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(20, 110, 245, 0.3);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--blue) 5%, var(--panel));
}

.commercial-pending-request > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    color: var(--blue);
}

.commercial-pending-request strong,
.commercial-pending-request small {
    display: block;
}

.commercial-pending-request small {
    margin-top: 0.15rem;
    color: var(--muted);
}

.commercial-usage-panel {
    overflow: hidden;
}

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

.commercial-quota-item {
    min-width: 0;
    padding: 1rem;
    border-right: 1px solid var(--line);
}

.commercial-quota-item:last-child {
    border-right: 0;
}

.commercial-quota-item header {
    display: grid;
    min-height: 48px;
    gap: 0.25rem;
}

.commercial-quota-item header span,
.commercial-quota-item small {
    color: var(--muted);
    font-size: 0.68rem;
}

.commercial-quota-item header strong {
    overflow-wrap: anywhere;
    font-size: 0.86rem;
}

.commercial-quota-item progress {
    width: 100%;
    height: 7px;
    margin: 0.7rem 0 0.45rem;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: var(--line);
    accent-color: var(--green);
}

.commercial-quota-item progress::-webkit-progress-bar {
    background: var(--line);
}

.commercial-quota-item progress::-webkit-progress-value {
    background: var(--green);
}

.commercial-quota-item progress::-moz-progress-bar {
    background: var(--green);
}

.commercial-quota-item.is-warning progress {
    accent-color: var(--red);
}

.commercial-quota-item.is-warning progress::-webkit-progress-value {
    background: var(--red);
}

.commercial-quota-item.is-warning progress::-moz-progress-bar {
    background: var(--red);
}

.commercial-unlimited-track {
    height: 7px;
    margin: 0.7rem 0 0.45rem;
    overflow: hidden;
    background: var(--line);
}

.commercial-unlimited-track span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--blue);
}

.commercial-usage-note {
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.client-offers-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.2rem 0 1rem;
}

.client-offers-heading h2 {
    margin: 0.25rem 0 0;
    font-size: 1.35rem;
}

.commercial-change-form {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    margin-top: 0.85rem;
    scroll-margin-top: 1rem;
}

.commercial-change-form > div p:last-child {
    color: var(--muted);
    font-size: 0.78rem;
}

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

/* Public pricing */
.pricing-page .site-nav {
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.pricing-page .site-nav-links a[aria-current="page"] {
    color: #ffffff;
}

.pricing-hero {
    display: flex;
    min-height: 430px;
    align-items: end;
    padding: 128px 1rem 96px;
    background: var(--ink);
    color: #ffffff;
}

.pricing-hero-inner {
    display: grid;
    width: min(100%, 1320px);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
    margin: 0 auto;
}

.pricing-hero h1 {
    margin: 0.35rem 0 0.7rem;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 4.6rem;
    font-weight: 400;
    line-height: 0.94;
}

.pricing-hero p:not(.hero-signal) {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.95rem;
}

.pricing-cycle-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-small);
    background: #1d1d1d;
}

.pricing-cycle-toggle button {
    min-height: 48px;
    padding: 0.55rem 0.85rem;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    font-weight: 780;
}

.pricing-cycle-toggle button.is-active {
    background: #ffffff;
    color: #171717;
}

.pricing-cycle-toggle button span {
    display: block;
    margin-top: 0.1rem;
    color: var(--green);
    font-size: 0.58rem;
}

.pricing-content {
    position: relative;
    z-index: 2;
    width: min(100%, 1352px);
    margin: -58px auto 0;
    padding: 0 1rem 5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.pricing-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 540px;
    flex-direction: column;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-small);
}

.pricing-card.is-featured {
    border-top: 5px solid var(--red);
}

.pricing-card.is-current {
    border-color: var(--green);
}

.pricing-recommended {
    position: absolute;
    top: 0;
    right: 1.35rem;
    padding: 0.35rem 0.55rem;
    background: var(--red);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 850;
}

.pricing-card header {
    min-height: 142px;
    padding-right: 0.5rem;
}

.pricing-audience {
    color: var(--red);
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pricing-card h2,
.pricing-card h3 {
    margin: 0.35rem 0 0.45rem;
    color: var(--text);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 2.05rem;
    font-weight: 400;
    line-height: 1;
}

.pricing-card header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.pricing-price {
    display: flex;
    min-height: 74px;
    align-items: baseline;
    gap: 0.45rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pricing-price strong {
    color: var(--text);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 2.35rem;
    font-weight: 400;
    line-height: 1;
}

.pricing-price span {
    color: var(--muted);
    font-size: 0.68rem;
}

.pricing-card ul {
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    gap: 0.65rem;
    margin: 1rem 0 1.35rem;
    padding: 0;
    list-style: none;
}

.pricing-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.pricing-card li .icon {
    width: 15px;
    height: 15px;
    color: var(--green);
}

.pricing-card > .button-primary,
.pricing-card > .button-dark,
.pricing-current-button {
    width: 100%;
    min-height: 46px;
}

.pricing-commercial-note {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
    border-top: 1px solid #cfcec8;
    border-bottom: 1px solid #cfcec8;
}

.pricing-commercial-note > div {
    display: flex;
    min-width: 0;
    gap: 0.75rem;
    padding: 1.25rem;
    border-right: 1px solid #cfcec8;
}

.pricing-commercial-note > div:last-child {
    border-right: 0;
}

.pricing-commercial-note .icon {
    color: var(--red);
}

.pricing-commercial-note strong,
.pricing-commercial-note small {
    display: block;
}

.pricing-commercial-note strong {
    font-size: 0.78rem;
}

.pricing-commercial-note small {
    margin-top: 0.25rem;
    color: #74736e;
    font-size: 0.68rem;
}

.client-pricing-grid .pricing-card {
    min-height: 510px;
}

/* Custom domains and white label */
.domain-command-bar {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-small);
}

.domain-command-bar h2 {
    margin: 0.12rem 0 0.2rem;
    font-size: 1.25rem;
}

.domain-command-bar > div:first-child > span,
.domain-list-heading > span,
.domain-last-check {
    color: var(--muted);
    font-size: 0.69rem;
}

.domain-target {
    display: flex;
    min-width: min(100%, 390px);
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.68rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--panel-muted);
}

.domain-target > span {
    color: var(--muted);
    font-size: 0.61rem;
    font-weight: 800;
}

.domain-target code {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    font-size: 0.73rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-editor-grid,
.domain-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 0.85rem;
    align-items: stretch;
    margin-bottom: 0.85rem;
}

.domain-admin-grid {
    grid-template-columns: minmax(440px, 1.1fr) minmax(340px, 0.9fr);
}

.domain-form,
.domain-preview,
.domain-operations {
    min-width: 0;
    margin: 0;
}

.color-input {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.42rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    background: var(--panel);
}

.color-input input[type="color"] {
    width: 52px;
    min-height: 34px;
    padding: 0;
    border: 0;
}

.color-input code {
    color: var(--muted);
    font-size: 0.7rem;
}

.domain-preview {
    display: grid;
    min-height: 480px;
    grid-template-rows: auto 1fr;
    padding: 0;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--domain-primary) 42%, var(--line));
}

.domain-browser-bar {
    display: grid;
    grid-template-columns: repeat(3, 7px) minmax(0, 1fr);
    align-items: center;
    gap: 0.32rem;
    min-height: 45px;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--line);
    background: var(--panel-muted);
}

.domain-browser-bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
}

.domain-browser-bar i:first-child {
    background: var(--domain-primary);
}

.domain-browser-bar span {
    min-width: 0;
    margin-left: 0.45rem;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.61rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-preview-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--domain-accent);
    color: #ffffff;
    text-align: center;
    flex-direction: column;
}

.domain-preview-body > img,
.domain-preview-body > span {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    object-fit: contain;
    background: #ffffff;
    color: var(--domain-accent);
    font-size: 1.25rem;
    font-weight: 850;
}

.domain-preview-body small {
    color: var(--domain-primary);
    font-size: 0.63rem;
    font-weight: 850;
}

.domain-preview-body strong {
    margin-top: 0.45rem;
    font-size: 1.5rem;
}

.domain-preview-body p {
    max-width: 280px;
    margin: 0.7rem 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    line-height: 1.6;
}

.domain-upgrade-panel {
    display: flex;
    min-height: 120px;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--blue);
}

.domain-upgrade-panel > span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: var(--radius);
    background: rgba(20, 110, 245, 0.1);
    color: var(--blue);
}

.domain-upgrade-panel > div {
    flex: 1 1 auto;
}

.domain-upgrade-panel p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.domain-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.4rem 0 0.65rem;
}

.domain-list-heading h2 {
    margin: 0.14rem 0 0;
    font-size: 1.2rem;
}

.domain-list {
    display: grid;
    gap: 0.85rem;
}

.domain-card {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.domain-card > header,
.domain-card > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
}

.domain-card > header {
    border-top: 3px solid var(--line-strong);
    border-bottom: 1px solid var(--line);
}

.domain-card.status-active > header { border-top-color: var(--green); }
.domain-card.status-verified > header { border-top-color: var(--blue); }
.domain-card.status-failed > header { border-top-color: var(--red); }

.domain-card h3 {
    margin: 0.25rem 0 0.15rem;
    font-size: 1.02rem;
}

.domain-card header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
}

.domain-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.domain-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 3px rgba(237, 174, 32, 0.12);
}

.status-active .domain-status i,
.domain-badge.status-active::before { background: var(--green); }
.status-verified .domain-status i,
.domain-badge.status-verified::before { background: var(--blue); }
.status-failed .domain-status i,
.domain-badge.status-failed::before { background: var(--red); }
.status-disabled .domain-status i,
.domain-badge.status-disabled::before { background: var(--muted); }

.domain-dns-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.domain-dns-grid > div {
    display: grid;
    min-width: 0;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border-right: 1px solid var(--line);
}

.domain-dns-grid > div:last-child {
    border-right: 0;
}

.domain-dns-grid span,
.domain-records dt {
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 800;
}

.domain-dns-grid code,
.domain-records code {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.68rem;
}

.domain-error {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(237, 28, 36, 0.2);
    background: rgba(237, 28, 36, 0.06);
    color: var(--red);
    font-size: 0.7rem;
}

.domain-error .icon {
    flex: 0 0 auto;
}

.domain-card > footer {
    border-top: 1px solid var(--line);
    background: var(--panel-muted);
}

.domain-card > footer > span {
    color: var(--muted);
    font-size: 0.64rem;
}

.domain-card form,
.domain-operation-actions form {
    margin: 0;
}

.domain-stat-host {
    overflow: hidden;
    font-size: 1.1rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-operations {
    display: flex;
    flex-direction: column;
}

.domain-records {
    display: grid;
    margin: 0;
}

.domain-records > div {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--line);
}

.domain-records dt,
.domain-records dd {
    margin: 0;
}

.domain-records dd {
    min-width: 0;
    color: var(--text);
    font-size: 0.7rem;
    overflow-wrap: anywhere;
}

.domain-operation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.domain-last-check {
    margin: 0.75rem 0 0;
}

.domain-admin-list {
    min-width: 0;
}

.domain-badge {
    gap: 0.35rem;
}

.domain-badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    content: "";
}

.public-page::after {
    background: var(--public-primary, var(--red));
}

.public-brand-logo,
.public-brand-monogram {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    margin-bottom: 1.2rem;
    border: 1px solid #d8d7d1;
    border-radius: var(--radius);
    background: #ffffff;
}

.public-brand-logo img {
    width: 100%;
    height: 100%;
    padding: 0.35rem;
    object-fit: contain;
}

.public-brand-monogram {
    background: var(--public-primary, var(--red));
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 850;
}

.custom-domain-home > p:not(.eyebrow) {
    max-width: 430px;
    margin: 0.8rem 0 0;
    color: #706f6b;
    font-size: 0.82rem;
    line-height: 1.65;
}

.custom-domain-home > small {
    display: block;
    margin-top: 1.6rem;
    color: #8a8984;
    font-size: 0.62rem;
    font-weight: 750;
    text-transform: uppercase;
}

.loader-style-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.loader-style-option {
    position: relative;
    display: grid;
    min-height: 68px;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--paper);
    color: var(--muted);
    cursor: pointer;
}

.loader-style-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.loader-style-option:has(input:checked) {
    border-color: var(--red);
    box-shadow: inset 0 0 0 1px var(--red);
    color: var(--text);
}

.loader-style-option strong {
    min-width: 0;
    font-size: 0.68rem;
    line-height: 1.3;
}

.loader-style-sample {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
}

.loader-style-sample-spinner i {
    width: 19px;
    height: 19px;
    border: 2px solid rgba(237, 28, 36, 0.2);
    border-top-color: var(--red);
    border-radius: 50%;
}

.loader-style-sample-dots {
    grid-template-columns: repeat(3, 5px);
    gap: 4px;
}

.loader-style-sample-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
}

.loader-style-sample-bar i {
    width: 28px;
    height: 3px;
    background: var(--red);
}

.loader-style-sample-logo img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.image-landing-admin-preview {
    display: grid;
    gap: 0.55rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.image-landing-admin-preview > .micro-label {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

.image-landing-preview-device {
    position: relative;
    width: min(100%, 238px);
    aspect-ratio: 9 / 16;
    justify-self: center;
    overflow: hidden;
    border: 6px solid #050505;
    border-radius: 18px;
    background: var(--preview-bg, #F5F5F5);
    color: var(--preview-text, #111111);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.image-landing-preview-page {
    display: flex;
    height: 100%;
    flex-direction: column;
    background: var(--preview-bg, #F5F5F5);
}

.image-landing-preview-main {
    display: grid;
    min-height: 0;
    flex: 1;
    place-items: center;
    padding: 10px;
}

.image-landing-preview-frame {
    display: grid;
    width: 100%;
    min-height: 82px;
    max-height: 100%;
    place-items: center;
    overflow: hidden;
    padding: 7px;
    border-top: 3px solid var(--preview-accent, #ED1C24);
    border-radius: 5px;
    background: var(--preview-container, #FFFFFF);
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.1);
}

.image-landing-preview-frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.image-landing-preview-frame > span {
    display: grid;
    width: 76px;
    height: 96px;
    place-items: center;
    border: 1px dashed color-mix(in srgb, var(--preview-text, #111111) 28%, transparent);
    color: color-mix(in srgb, var(--preview-text, #111111) 54%, transparent);
    font-size: 0.55rem;
    font-weight: 800;
}

.qr-landing-preview-card {
    display: grid;
    width: 100%;
    gap: 8px;
    padding: 16px 13px;
    border-top: 3px solid var(--preview-accent, #ED1C24);
    border-radius: 5px;
    background: var(--preview-container, #FFFFFF);
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.1);
}

.qr-landing-preview-card > small {
    color: var(--preview-accent, #ED1C24);
    font-size: 0.48rem;
    font-weight: 850;
    text-transform: uppercase;
}

.qr-landing-preview-card > strong {
    color: var(--preview-text, #111111);
    font-size: 0.9rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.qr-landing-preview-card > span {
    display: -webkit-box;
    overflow: hidden;
    color: color-mix(in srgb, var(--preview-text, #111111) 62%, transparent);
    font-size: 0.55rem;
    font-style: normal;
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.qr-landing-preview-card > i {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    align-items: center;
    margin-top: 3px;
    padding: 5px 8px;
    border-radius: 4px;
    background: var(--preview-accent, #ED1C24);
    color: #ffffff;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 800;
}

.qr-landing-preview-disabled {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-content: center;
    gap: 4px;
    padding: 18px;
    background: rgba(17, 17, 17, 0.78);
    color: #ffffff;
    text-align: center;
}

.qr-landing-preview-disabled strong {
    font-size: 0.64rem;
}

.qr-landing-preview-disabled small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.52rem;
}

.image-landing-preview-footer {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px;
    background: var(--preview-footer, #111111);
    color: var(--preview-footer-text, #FFFFFF);
    font-size: 0.48rem;
}

.image-landing-preview-footer span {
    opacity: 0.72;
}

.image-landing-preview-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--preview-bg, #F5F5F5);
    color: var(--preview-text, #111111);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.image-landing-admin-preview.is-preview-loading .image-landing-preview-loader {
    opacity: 1;
}

.image-landing-preview-loader small {
    max-width: 180px;
    font-size: 0.56rem;
    line-height: 1.4;
}

.preview-loader-visual {
    display: none;
    min-width: 52px;
    min-height: 38px;
    place-items: center;
    justify-self: center;
    color: var(--preview-loader, #ED1C24);
}

.image-landing-preview-loader[data-loader-style="spinner"] [data-preview-loader-visual="spinner"],
.image-landing-preview-loader[data-loader-style="dots"] [data-preview-loader-visual="dots"],
.image-landing-preview-loader[data-loader-style="bar"] [data-preview-loader-visual="bar"],
.image-landing-preview-loader[data-loader-style="logo"] [data-preview-loader-visual="logo"] {
    display: grid;
}

.preview-loader-spinner i {
    width: 27px;
    height: 27px;
    border: 3px solid color-mix(in srgb, var(--preview-loader, #ED1C24) 22%, transparent);
    border-top-color: var(--preview-loader, #ED1C24);
    border-radius: 50%;
    animation: admin-image-loader-spin 760ms linear infinite;
}

.preview-loader-dots {
    grid-template-columns: repeat(3, 7px);
    gap: 6px;
}

.preview-loader-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--preview-loader, #ED1C24);
    animation: admin-image-loader-dot 900ms ease-in-out infinite;
}

.preview-loader-dots i:nth-child(2) {
    animation-delay: 120ms;
}

.preview-loader-dots i:nth-child(3) {
    animation-delay: 240ms;
}

.preview-loader-bar {
    width: 120px;
    min-height: 4px;
    overflow: hidden;
    background: color-mix(in srgb, var(--preview-loader, #ED1C24) 20%, transparent);
}

.preview-loader-bar i {
    width: 45%;
    height: 4px;
    background: var(--preview-loader, #ED1C24);
    animation: admin-image-loader-bar 1.1s ease-in-out infinite;
}

.preview-loader-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    animation: admin-image-loader-logo 1.25s ease-in-out infinite;
}

@keyframes admin-image-loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes admin-image-loader-dot {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

@keyframes admin-image-loader-bar {
    0% { transform: translateX(-125%); }
    100% { transform: translateX(225%); }
}

@keyframes admin-image-loader-logo {
    0%, 100% { opacity: 0.58; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1220px) {
    .qr-workbench {
        grid-template-columns: 165px minmax(390px, 1fr) 300px;
    }

    .home-workbench {
        grid-template-columns: 180px minmax(320px, 1fr) 310px;
    }

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

    .commercial-editor-grid {
        grid-template-columns: 1fr;
    }

    .domain-editor-grid,
    .domain-admin-grid {
        grid-template-columns: 1fr;
    }

    .domain-preview {
        min-height: 360px;
    }
}

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

    .qr-workbench {
        grid-template-columns: 1fr 310px;
    }

    .qr-type-panel {
        grid-column: 1 / -1;
        padding: 0.75rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .qr-type-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .qr-type-option {
        justify-content: center;
        text-align: center;
    }

    .qr-type-option .icon {
        display: none;
    }

    .home-workbench {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .home-preview {
        grid-column: 1 / -1;
        grid-template-columns: 240px minmax(0, 1fr);
        align-items: center;
        border-top: 1px solid #dddcd6;
        border-left: 0;
    }

    .home-preview-top,
    .home-preview-status {
        display: none;
    }

    .hero-heading h1 {
        font-size: 4.5rem;
    }

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

    .commercial-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .domain-dns-grid {
        grid-template-columns: 1fr;
    }

    .domain-dns-grid > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .domain-dns-grid > div:last-child {
        border-bottom: 0;
    }

    .commercial-quota-item:nth-child(2) {
        border-right: 0;
    }

    .commercial-quota-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 860px) {
    .admin-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(86vw, 300px);
        height: 100vh;
        transform: translateX(-105%);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.32);
        transition: transform 180ms ease;
    }

    body.is-menu-open .sidebar {
        transform: translateX(0);
    }

    body.is-menu-open::after {
        position: fixed;
        inset: 0;
        z-index: 30;
        background: rgba(0, 0, 0, 0.54);
        content: "";
    }

    .main-content {
        padding: 0 1rem 2rem;
    }

    .mobile-topbar {
        display: flex;
        min-height: 62px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--line);
        font-size: 0.72rem;
        font-weight: 800;
    }

    .mobile-topbar .icon-button {
        width: 36px;
        height: 36px;
        min-height: 36px;
    }

    .page-header {
        min-height: 92px;
    }

    .page-signal {
        display: none;
    }

    .page-header h1 {
        font-size: 1.7rem;
    }

    .panel-grid,
    .form-grid,
    .form-grid.compact {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .qr-workbench {
        display: block;
    }

    .qr-type-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qr-preview-panel {
        position: static;
        max-height: none;
        overflow: visible;
        border-top: 1px solid var(--line);
        border-left: 0;
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .qr-canvas {
        width: min(100%, 330px);
        justify-self: center;
    }

    .site-nav-links {
        display: none;
    }

    .hero-heading,
    .home-section-heading,
    .dynamic-inner {
        grid-template-columns: 1fr;
    }

    .hero-heading h1 {
        font-size: 3.7rem;
    }

    .home-section-heading h2,
    .dynamic-copy h2 {
        font-size: 2.6rem;
    }

    .pricing-hero-inner,
    .commercial-change-form {
        grid-template-columns: 1fr;
    }

    .pricing-cycle-toggle {
        width: min(100%, 360px);
    }

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

    .commercial-tabs a:nth-child(2) {
        border-right: 0;
    }

    .commercial-tabs a:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 650px) {
    .stats-grid,
    .media-grid,
    .field-grid,
    .home-color-row {
        grid-template-columns: 1fr;
    }

    .toolbar,
    .panel-header,
    .dashboard-command {
        align-items: stretch;
        flex-direction: column;
    }

    .filters,
    .toolbar-actions,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .filters input,
    .filters select,
    .filters button,
    .toolbar .button-primary,
    .toolbar .button-ghost {
        width: 100%;
        max-width: none;
    }

    .studio-progress {
        grid-template-columns: 1fr;
    }

    .progress-step {
        min-height: 46px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .progress-step:last-child {
        border-bottom: 0;
    }

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

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

    .qr-editor-panel {
        padding: 0 0.85rem;
    }

    .editor-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        margin: 0 -0.85rem;
        padding: 0.75rem 0.85rem;
    }

    .editor-actions > div,
    .editor-actions .button-primary,
    .editor-actions .button-ghost {
        width: 100%;
    }

    .login-page,
    .public-page {
        padding: 1rem;
    }

    .login-card,
    .public-card {
        padding: 1.35rem;
    }

    .site-nav {
        min-height: 68px;
    }

    .site-nav-actions .nav-login {
        display: none;
    }

    .site-nav .button-primary {
        padding: 0.55rem 0.68rem;
    }

    .home-hero {
        min-height: 0;
        padding-top: 98px;
    }

    .hero-heading {
        gap: 1rem;
    }

    .hero-heading h1 {
        font-size: 3.15rem;
    }

    .home-workbench {
        display: block;
    }

    .home-types {
        border-right: 0;
        border-bottom: 1px solid #dddcd6;
    }

    .home-type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-type-button {
        min-height: 62px;
        flex-direction: column;
        justify-content: center;
        gap: 0.3rem;
        padding: 0.45rem;
        text-align: center;
    }

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

    .home-preview-top {
        display: flex;
    }

    .home-preview-status {
        display: block;
    }

    .home-meta-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-band,
    .dynamic-band {
        padding-top: 3.6rem;
        padding-bottom: 3.6rem;
    }

    .home-section-heading h2,
    .dynamic-copy h2 {
        font-size: 2.25rem;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .use-case {
        min-height: 320px;
    }

    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer-links {
        flex-wrap: wrap;
    }

    .pricing-hero {
        min-height: 410px;
        padding-top: 104px;
        padding-bottom: 82px;
    }

    .pricing-hero h1 {
        font-size: 3.35rem;
    }

    .pricing-content {
        margin-top: -42px;
    }

    .pricing-grid,
    .pricing-commercial-note,
    .commercial-checks,
    .commercial-quota-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        min-height: 0;
    }

    .pricing-card header {
        min-height: 0;
    }

    .pricing-commercial-note > div,
    .commercial-quota-item,
    .commercial-quota-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .pricing-commercial-note > div:last-child,
    .commercial-quota-item:last-child {
        border-bottom: 0;
    }

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

    .commercial-plan-summary dl > div:nth-child(2) {
        border-right: 0;
    }

    .commercial-plan-summary dl > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .client-plan-command,
    .commercial-pending-request,
    .client-offers-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-plan-price {
        min-width: 0;
        text-align: left;
    }

    .commercial-cycle {
        grid-template-columns: 1fr;
    }

    .domain-command-bar,
    .domain-upgrade-panel,
    .domain-card > header,
    .domain-card > footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .domain-target {
        width: 100%;
        min-width: 0;
    }

    .domain-target > span {
        display: none;
    }

    .domain-card > footer .form-actions,
    .domain-operation-actions {
        width: 100%;
    }

    .domain-records > div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .commercial-plan-summary dl {
        grid-template-columns: 1fr;
    }

    .commercial-plan-summary dl > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .commercial-plan-summary dl > div:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
