@font-face {
  font-family: "Funnel Sans";
  src: url("/assets/fonts/FunnelSans-Variable.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Display";
  src: url("/assets/fonts/FunnelDisplay-Variable.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --eggplant: #3c1e37;
  --blue: #669eff;
  --orange: #fe6030;
  --soft: #c7b5f1;
  --clear: #9dcdff;
  --light-orange: #fe9c7d;
  --muted: #705c6c;
  --line: #dfd7dd;
  --surface: #f7f4f8;
  font-family: "Funnel Sans", system-ui, sans-serif;
  color: var(--eggplant);
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: var(--eggplant); text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
.site-header, main, .site-footer { width: min(100%, 1380px); margin-inline: auto; padding-inline: 48px; }
.site-header { min-height: 112px; padding-block: 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 36px; flex-shrink: 0; text-decoration: none; }
.brand img { display: block; width: 160px; height: auto; }
.product-name { border-left: 1px solid var(--line); padding-left: 24px; font-size: 15px; font-weight: 600; }
#account { display: flex; align-items: center; justify-content: flex-end; gap: 20px; min-width: 0; }
.account-details { display: flex; flex-direction: column; gap: 2px; text-align: right; min-width: 0; }
.account-details strong { font-size: 14px; overflow-wrap: anywhere; }
.account-details span { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
main { padding-block: 52px 72px; min-height: calc(100vh - 200px); }
h1, h2, h3 { font-family: "Funnel Display", "Funnel Sans", sans-serif; font-weight: 600; }
h1 { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 20px; }
h2 { margin: 0 0 22px; font-size: 27px; line-height: 1.15; letter-spacing: -.025em; }
h3 { font-size: 21px; margin: 0 0 8px; line-height: 1.2; }
p { line-height: 1.6; margin: 0 0 16px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.eyebrow::before { content: ""; display: block; width: 10px; height: 10px; background: var(--orange); flex-shrink: 0; }
.intro { margin-bottom: 40px; }
.intro > .muted { max-width: 730px; font-size: 17px; margin-bottom: 0; }
.muted { color: var(--muted); font-size: 14px; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); align-items: start; gap: clamp(40px, 7vw, 104px); padding-block: 8px 48px; }
.login-layout .intro { padding-top: 18px; margin-bottom: 0; }
.login-layout h1 { font-size: clamp(48px, 5.8vw, 78px); max-width: 680px; line-height: 1.02; margin-bottom: 28px; }
.login-layout h1 span { display: block; }
.login-layout .intro > .muted { max-width: 490px; font-size: 18px; }
.brand-art { display: flex; align-items: center; gap: 32px; margin-top: 40px; }
.pixel-composition { width: 184px; display: grid; grid-template-columns: repeat(4, 46px); grid-template-rows: repeat(3, 46px); flex-shrink: 0; }
.pixel-composition span:nth-child(1) { background: var(--blue); grid-area: 1 / 1 / 3 / 3; }
.pixel-composition span:nth-child(2) { background: var(--soft); grid-area: 2 / 3 / 4 / 5; }
.pixel-composition span:nth-child(3) { background: var(--orange); grid-area: 3 / 2 / 4 / 3; }
.pixel-composition span:nth-child(4) { background: var(--eggplant); grid-area: 1 / 4 / 2 / 5; }
.art-note { max-width: 170px; font-family: "Funnel Display", sans-serif; font-size: 23px; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.card { border: 1px solid var(--line); background: #fff; padding: 28px; min-width: 0; }
.login { background: var(--surface); border: 0; border-top: 10px solid var(--blue); padding: 34px; }
.login h2 { font-size: 32px; margin-bottom: 12px; }
.login .form-description { margin-bottom: 26px; }
.login .eyebrow { margin-bottom: 20px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 18px 0 8px; }
input { width: 100%; min-width: 0; border: 1px solid #a48e9f; border-radius: 0; padding: 13px 14px; background: #fff; color: var(--eggplant); line-height: 1.3; }
input::placeholder { color: #806d7b; opacity: 1; }
input:hover { border-color: var(--eggplant); }
input:focus { border-color: var(--eggplant); }
input:disabled { background: #ebe5ec; cursor: not-allowed; }
input[name="code"] { font-variant-numeric: tabular-nums; letter-spacing: .2em; }
button, .button { border: 1px solid var(--eggplant); border-radius: 0; padding: 12px 17px; min-height: 46px; max-width: 100%; overflow-wrap: anywhere; text-align: center; font-weight: 600; line-height: 1.25; cursor: pointer; color: #fff; background: var(--eggplant); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
button:hover { background: #542b4c; border-color: #542b4c; }
button.secondary { background: transparent; color: var(--eggplant); border-color: #b6a7b2; }
button.secondary:hover { background: #ece5ef; border-color: var(--eggplant); }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, #app:focus-visible { outline: 3px solid var(--eggplant); outline-offset: 4px; box-shadow: 0 0 0 4px var(--clear); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.login .actions > button { width: 100%; }
.code-section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 4px; }
.login-note { font-size: 12px; line-height: 1.5; margin: 18px 0 26px; }
.admin-entry { padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; margin: 0; }
.admin-entry a { display: inline-block; margin-top: 8px; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 30px; gap: 40px; }
.step-number { font-size: 12px; font-weight: 600; letter-spacing: .08em; display: inline-block; background: var(--clear); padding: 8px; margin-bottom: 15px; }
.step:nth-child(2) .step-number { background: var(--soft); }
.step:nth-child(3) .step-number { background: var(--light-orange); }
.step h2 { font-size: 21px; margin-bottom: 8px; }
.step p { font-size: 14px; max-width: 310px; color: var(--muted); margin-bottom: 0; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.workspace-heading .intro { margin-bottom: 0; min-width: 0; max-width: 100%; }
.workspace-heading .intro > p { max-width: 710px; }
.summary { display: flex; gap: 24px; flex-shrink: 0; padding-bottom: 2px; }
.summary-item { min-width: 92px; border-left: 3px solid var(--blue); padding-left: 14px; }
.summary-item:last-child { border-color: var(--orange); }
.summary-item strong { display: block; font-family: "Funnel Display", sans-serif; font-size: 34px; line-height: 1.1; font-weight: 600; }
.summary-item span { font-size: 12px; color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(280px, .88fr) minmax(0, 1.8fr); align-items: start; gap: 32px; }
.form-panel { background: var(--surface); border: 0; border-top: 8px solid var(--soft); }
.form-panel .eyebrow { font-size: 11px; margin-bottom: 20px; }
.form-panel .eyebrow::before { background: var(--eggplant); }
.form-panel .actions > button { width: 100%; }
.form-panel .form-hint { margin-top: 18px; font-size: 13px; margin-bottom: 0; }
.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.section-heading h2 { font-size: 22px; margin-bottom: 0; }
.section-heading .count { display: inline-flex; min-width: 30px; min-height: 30px; background: var(--clear); align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.link-list { display: grid; gap: 20px; }
.link-card { display: grid; grid-template-columns: minmax(0, 1fr) 208px; gap: 24px; padding: 24px; }
.link-card label { margin-top: 14px; font-size: 13px; }
.link-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.link-header h3 { margin: 0; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--clear); color: var(--eggplant); padding: 5px 8px; font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.badge::before { content: ""; width: 5px; height: 5px; background: var(--eggplant); }
.badge.off { background: var(--light-orange); }
.shortlink { background: var(--surface); border-left: 3px solid var(--blue); padding: 12px 14px; margin-top: 18px; }
.shortlink span { display: block; color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 6px; }
.shortlink a { font-size: 13px; font-weight: 500; }
.link-actions { margin-top: 14px; }
.link-actions button { font-size: 12px; padding: 10px 12px; min-height: 42px; }
.qr { text-align: center; background: #e8f2ff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 12px; min-width: 0; }
.qr-heading { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 14px; }
.qr canvas { width: 180px; max-width: 100%; height: auto; display: block; background: #fff; }
.qr .actions { justify-content: center; gap: 8px; margin-top: 14px; }
.qr .actions button { min-height: 42px; padding: 9px 13px; font-size: 12px; background: #fff; }
.qr-note { color: var(--muted); font-size: 11px; line-height: 1.4; margin: 12px 0 0; max-width: 160px; }
.empty-state { background: var(--surface); padding: 42px 32px; border-bottom: 6px solid var(--clear); }
.empty-state .empty-square { width: 42px; height: 42px; background: var(--blue); margin-bottom: 26px; }
.empty-state h3 { font-size: 25px; }
.empty-state p { max-width: 400px; color: var(--muted); font-size: 15px; margin-bottom: 0; }
.customer-list { display: grid; gap: 12px; }
.customer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; border-left: 4px solid var(--blue); }
.customer-row.inactive { border-left-color: var(--light-orange); }
.customer-details { min-width: 0; }
.customer-details strong { font-family: "Funnel Display", sans-serif; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.customer-row p { margin: 6px 0 12px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.customer-row button { flex-shrink: 0; font-size: 13px; }
.admin-maintenance { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.admin-maintenance p { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.admin-maintenance button { font-size: 12px; }
#status:not(:empty) { padding: 16px 20px; background: #e8f2ff; border-left: 5px solid var(--blue); margin-bottom: 30px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
#status.error { background: #fff0e9; border-color: var(--orange); color: var(--eggplant); }
.site-footer { border-top: 1px solid var(--line); padding-block: 24px; display: flex; justify-content: space-between; gap: 24px; font-size: 12px; color: var(--muted); }
.site-footer > span:first-child { display: flex; align-items: center; gap: 10px; }
.footer-square { display: inline-block; width: 8px; height: 8px; background: var(--orange); flex-shrink: 0; }
.skip-link { position: absolute; left: 24px; top: -100px; z-index: 5; background: var(--eggplant); color: white; padding: 12px 16px; }
.skip-link:focus { top: 10px; }
.loading { padding-block: 70px; color: var(--muted); }
[hidden] { display: none !important; }
@media (min-width: 1180px) { .form-panel { position: sticky; top: 28px; } }
@media (max-width: 1100px) {
  .site-header, main, .site-footer { padding-inline: 32px; }
  .login-layout { gap: 40px; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); }
  .login-layout h1 { font-size: 62px; }
  .workspace { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr); gap: 24px; }
  .link-card { grid-template-columns: minmax(0, 1fr); }
  .qr { flex-direction: row; flex-wrap: wrap; gap: 14px 22px; padding: 16px; }
  .qr-heading { width: 100%; margin: 0; }
  .qr canvas { width: 160px; }
  .qr .actions { margin: 0; }
  .qr-note { width: 100%; max-width: none; margin: 0; }
  .summary { gap: 14px; }
}
@media (max-width: 820px) {
  .site-header { gap: 20px; }
  .brand { gap: 30px; }
  .brand img { width: 132px; }
  .product-name { padding-left: 18px; font-size: 13px; }
  .account-details { display: none; }
  .workspace-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .workspace { grid-template-columns: 1fr; }
  .form-panel { padding: 26px; }
  .link-card { grid-template-columns: minmax(0, 1fr) 208px; }
  .qr { flex-direction: column; gap: 0; padding: 16px 12px; }
  .qr-heading { margin-bottom: 14px; }
  .qr canvas { width: 180px; }
  .qr .actions { margin-top: 14px; }
  .qr-note { margin-top: 12px; max-width: 160px; }
  .login-layout { grid-template-columns: 1fr; gap: 34px; padding-bottom: 38px; }
  .login-layout .intro { padding-top: 0; }
  .login-layout h1 { font-size: clamp(48px, 8vw, 64px); }
  .brand-art { margin-top: 30px; }
  .login { max-width: 560px; }
  .steps { gap: 24px; }
}
@media (max-width: 560px) {
  .site-header, main, .site-footer { padding-inline: 24px; }
  .site-header { min-height: 96px; padding-block: 28px; gap: 16px; flex-wrap: wrap; }
  .brand { gap: 28px; }
  .brand img { width: 124px; }
  .product-name { font-size: 12px; padding-left: 16px; }
  #account { width: 100%; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); }
  #account:empty { display: none; }
  .account-details { display: flex; text-align: left; }
  #account button { font-size: 12px; min-height: 42px; }
  main { padding-block: 32px 46px; }
  h1 { font-size: 40px; }
  .eyebrow { font-size: 10px; margin-bottom: 18px; }
  .login-layout h1 { font-size: 49px; }
  .login-layout .intro > .muted { font-size: 16px; }
  .brand-art { gap: 24px; }
  .pixel-composition { width: 144px; grid-template-columns: repeat(4, 36px); grid-template-rows: repeat(3, 36px); }
  .art-note { font-size: 21px; max-width: 140px; }
  .login { padding: 26px 24px; }
  .login h2 { font-size: 29px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .step-number { grid-row: span 2; align-self: start; text-align: center; margin: 0; }
  .step h2 { font-size: 20px; }
  .step p { max-width: none; }
  .workspace-heading .intro > .muted { font-size: 15px; }
  .workspace-heading { margin-bottom: 30px; }
  .summary { gap: 24px; }
  .summary-item strong { font-size: 30px; }
  .form-panel { padding: 24px; }
  .form-panel h2 { font-size: 25px; }
  .link-card { grid-template-columns: 1fr; padding: 20px; gap: 22px; }
  .link-header { flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .link-card .actions > button[type="submit"] { width: 100%; }
  .link-actions { gap: 8px; }
  .link-actions button { flex: 1; }
  .qr { padding: 20px 16px; }
  .qr canvas { width: 200px; }
  .qr-note { max-width: 200px; }
  .customer-row { align-items: flex-start; flex-direction: column; gap: 18px; padding: 20px; }
  .customer-row button { width: 100%; }
  .empty-state { padding: 30px 24px; }
  .site-footer { flex-direction: column; gap: 12px; padding-block: 24px; font-size: 11px; }
}
@media (max-width: 350px) {
  .site-header, main, .site-footer { padding-inline: 20px; }
  .brand { gap: 24px; }
  .brand img { width: 112px; }
  .product-name { font-size: 11px; padding-left: 12px; }
  h1 { font-size: 32px; }
  .login-layout h1 { font-size: 42px; }
  .brand-art { gap: 16px; }
  .art-note { font-size: 18px; }
  .login { padding: 24px 20px; }
}
@media (prefers-reduced-motion: no-preference) { button { transition: background-color .15s, border-color .15s; } }
