
:root{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#181818;background:#f7f6f2;color-scheme:light;font-synthesis:none;line-height:1.48;--ink:#181818;--muted:#505a66;--accent:#294c7a;--line:#dfdfda;--paper:#fff;--subtle:#f4f6fa}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.58;cursor:wait}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #7aa6e4;outline-offset:3px}
h1,h2,h3,p,ul{margin:0}
a{color:var(--accent)}
.topbar{height:68px;padding:0 max(22px,calc((100vw - 1160px)/2));background:#181818;color:white;display:flex;align-items:center;justify-content:space-between;gap:12px}
.wordmark{display:flex;align-items:center;gap:12px;font-weight:790;letter-spacing:-.055em;font-size:25px}
.logo{height:34px;width:34px;display:grid;place-items:center;background:#fff;color:#181818;border-radius:10px;font:22px/1 system-ui}
.environment{color:#dfdfdf;font-size:13px;border:1px solid #535353;padding:4px 9px;border-radius:99px;white-space:nowrap}
.page{max-width:1120px;padding:34px 20px 55px;margin:auto}
.card{border:1px solid var(--line);background:var(--paper);border-radius:16px;padding:22px;box-shadow:0 3px 12px #1818180a;min-width:0}
.card.compact{max-width:460px;margin:35px auto 0;padding:26px}
.card h1,.page-head h1{font-size:clamp(25px,4vw,35px);letter-spacing:-.047em;line-height:1.15}
.card h2{font-size:19px;letter-spacing:-.025em;margin-bottom:12px}
.card h3{font-size:16px;letter-spacing:-.018em}
.summary,.hint{color:var(--muted);font-size:14px}
.summary{margin-top:8px}
.form{display:grid;gap:14px;margin-top:19px}
.form label{display:grid;gap:5px;font-size:14px;font-weight:650}
.form input,.form select{width:100%;min-width:0;border:1px solid #cccfd4;border-radius:9px;background:#fff;color:var(--ink);min-height:43px;padding:9px 11px}
.form fieldset{padding:0;margin:0;border:0;display:grid;gap:14px;min-inline-size:0}
.button{border:1px solid var(--line);background:white;border-radius:9px;padding:8px 13px;min-height:41px;color:#273444;font-weight:675;font-size:14px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;white-space:normal}
.button:hover{background:#eff3f9}
.primary{background:var(--accent);color:white;border-color:var(--accent)}
.primary:hover{background:#203c62}
.page-head{padding:4px 0 19px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.portal-tabs{margin-bottom:16px;display:flex;gap:7px;flex-wrap:wrap}
.portal-tabs button[aria-current=true]{background:#eaf0f8;border-color:#c8d5e6;color:#203e64}
.panel-grid{display:grid;gap:15px;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);align-items:start}
.list{list-style:none;padding:0;margin-top:8px}
.list li{padding:12px 0;border-top:1px solid #ecece8;display:flex;gap:9px;align-items:center;justify-content:space-between}
.list li:first-child{border-top:0}
.badge{background:#e8eef6;color:#274369;border-radius:100px;padding:3px 8px;font-size:12px;font-weight:700;white-space:nowrap}
.badge.suspended{background:#f8e8e8;color:#8b3535}
.spacer{margin-top:13px}
.error,.success{margin-top:13px;padding:10px 12px;border-radius:9px;font-size:14px}
.error{background:#fbeaea;color:#812b2f}
.success{background:#e7f3ed;color:#1e6145}
.factor{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--subtle);display:grid;gap:9px;margin-top:16px}
.factor img{display:block;margin:auto;width:176px;height:176px;background:#fff}
.factor code{display:block;font-size:13px;overflow-wrap:anywhere}
.filler{padding:11px 0;color:var(--muted);font-size:14px}
@media (max-width:760px){.panel-grid{grid-template-columns:minmax(0,1fr)}.page{padding:21px 12px 34px}.card{padding:17px}.card.compact{margin-top:14px}.page-head{align-items:flex-start}}
@media (max-width:385px){.topbar{padding:0 12px}.page-head{flex-direction:column}}


:root {
  color-scheme: light;
  --ink:#181818;
  --muted:#565f69;
  --canvas:#f7f6f2;
  --surface:#fff;
  --paper:#faf9f7;
  --border:#e5e4df;
  --accent:#294c7a;
  --accent-dark:#203d64;
  --sidebar:#181818;
  --good:#176044;
  --good-bg:#e7f4ec;
  --warn:#79501b;
  --warn-bg:#faf1dc;
  --bad:#9c3338;
  --bad-bg:#fbeceb;
  --neutral:#4b596a;
  --neutral-bg:#edf0f4;
  --radius:14px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-synthesis:none;
  line-height:1.45;
  font-size:16px;
}
*,*::before,*::after {box-sizing:border-box}
body {margin:0;background:var(--canvas);color:var(--ink)}
button,input,select,textarea {font:inherit}
button {cursor:pointer}
button:disabled {opacity:.55;cursor:not-allowed}
a {color:var(--accent)}
h1,h2,h3,p {margin:0}
small {font-size:.82rem}
:focus-visible {outline:3px solid #709ce0;outline-offset:3px}
.skip-link {position:fixed;top:-80px;left:14px;z-index:8;background:white;padding:10px}
.skip-link:focus {top:12px}
.shell {min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr)}
.sidebar {background:var(--sidebar);color:white;padding:27px 17px 20px;display:flex;flex-direction:column;gap:38px;position:sticky;top:0;min-height:100vh;height:100vh}
.brand {display:flex;align-items:center;gap:12px;padding:0 7px}
.brand-symbol {width:37px;height:37px;display:grid;place-items:center;background:#fff;color:#181818;border-radius:11px;flex:none}
.brand strong {display:block;font-size:1.36rem;letter-spacing:-.06em;line-height:1.02}
.brand small {display:block;color:#b7b7b7;margin-top:5px;font-size:.73rem}
.nav {display:grid;gap:5px}
.nav button {display:flex;align-items:center;gap:11px;border:1px solid transparent;color:#c8c8c8;background:transparent;text-align:left;border-radius:9px;padding:11px 10px;font-size:.87rem;min-height:43px;font-weight:600}
.nav button:hover {background:#292929;color:white}
.nav button[aria-current="page"] {color:white;background:#294c7a;border-color:#43638d}
.nav svg,.btn svg {flex:none}
.sidebar-footer {margin-top:auto;display:grid;gap:8px;padding:13px 7px 0;border-top:1px solid #383838;font-size:.77rem;color:#bbb}
.sidebar-footer a {color:#e5e9f0;width:fit-content}
.main {padding:0 34px 38px;min-width:0}
.topline {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;border-bottom:1px solid var(--border);min-height:68px;color:var(--muted)}
.topline span:first-child {font-size:.84rem}
.content {max-width:1310px;margin:0 auto}
.page-heading {padding:30px 0 23px;display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.page-heading h1 {font-size:clamp(1.7rem,4vw,2.38rem);letter-spacing:-.052em;line-height:1.09}
.page-heading p {color:var(--muted);font-size:.89rem;margin-top:8px}
.page-actions,.actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.btn {border:1px solid var(--border);border-radius:9px;text-decoration:none;padding:9px 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:.85rem;font-weight:650;min-height:40px;color:#263243;background:#fff;white-space:nowrap}
.btn:hover {background:#f0f4f9;border-color:#cbd8e8}
.btn.primary {background:var(--accent);border-color:var(--accent);color:#fff}
.btn.primary:hover {background:var(--accent-dark);border-color:var(--accent-dark)}
.btn.danger {background:#fff7f7;border-color:#f0d4d4;color:#85272e}
.btn.compact {min-height:33px;font-size:.8rem;padding:5px 9px}
.btn.link {color:var(--accent);background:transparent;border-color:transparent;padding-left:3px;padding-right:3px}
.btn.link:hover {text-decoration:underline}
.stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:19px}
.stat,.card {background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 2px 4px #211d1110}
.stat {padding:15px 16px 17px;min-width:0}
.stat-top {display:flex;align-items:center;justify-content:space-between;gap:6px;color:#455160;font-size:.81rem;font-weight:650}
.stat-icon {width:33px;height:33px;border-radius:9px;background:#edf1f7;color:var(--accent);display:grid;place-items:center;flex:none}
.stat strong {display:block;margin-top:9px;font-size:clamp(1.28rem,2.5vw,1.9rem);line-height:1.1;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.stat small {display:block;margin-top:7px;color:var(--muted)}
.dashboard-grid {display:grid;grid-template-columns:minmax(0,2.25fr) minmax(230px,1fr);gap:17px;align-items:start}
.stack {display:grid;grid-template-columns:minmax(0,1fr);gap:17px;min-width:0}
.card-head {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 17px 14px}
.card-head h2 {font-size:1.04rem;letter-spacing:-.019em}
.card-head p {font-size:.82rem;color:var(--muted);margin-top:4px}
.card-body {padding:0 17px 17px}
.card {min-width:0}
.table-scroll {overflow:auto;max-width:100%}
table {border-collapse:collapse;width:100%;text-align:left;font-size:.86rem}
th {font-size:.74rem;color:#4d5967;font-weight:700;background:#f5f5f2;white-space:nowrap}
td,th {padding:11px 14px;border-bottom:1px solid #eeede8;vertical-align:middle}
td:first-child,th:first-child {padding-left:17px}
td:last-child,th:last-child {padding-right:17px}
tr:last-child td {border-bottom:0}
tbody tr:hover td {background:#fcfcfa}
td strong {font-weight:650}
td small {display:block;color:var(--muted);margin-top:4px}
.num {white-space:nowrap;font-variant-numeric:tabular-nums}
.right {text-align:right}
.badge {display:inline-flex;align-items:center;border-radius:20px;padding:4px 8px;font-size:.72rem;line-height:1.2;font-weight:750;white-space:nowrap;background:var(--neutral-bg);color:var(--neutral)}
.badge.good {background:var(--good-bg);color:var(--good)}
.badge.warn {background:var(--warn-bg);color:var(--warn)}
.badge.bad {background:var(--bad-bg);color:var(--bad)}
.inline {display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}
.card-foot {border-top:1px solid var(--border);padding:11px 17px;color:var(--muted);font-size:.82rem}
.bar-row {padding:13px 0;border-top:1px solid #eeede8}
.bar-row:first-child {border:0;padding-top:2px}
.bar-row:last-child {padding-bottom:0}
.bar-row > div:first-child {display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.83rem;font-weight:650}
.bar {height:6px;background:#edf0f5;border-radius:10px;margin-top:8px;overflow:hidden}
.bar > span {display:block;background:#5376a7;height:100%;border-radius:inherit}
.empty {padding:27px 17px;color:var(--muted);font-size:.88rem}
.filters {display:flex;gap:10px;flex-wrap:wrap;padding:0 17px 14px}
.filters input,.filters select {width:auto;min-width:145px}
.filters .grow {flex:1 1 220px}
input:not([type=checkbox]),select,textarea {border:1px solid #d5d8dd;padding:8px 10px;border-radius:8px;min-height:38px;background:white;color:#242b34;width:100%}
input[type=checkbox] {width:17px;height:17px;accent-color:var(--accent);flex:none}
label {font-size:.83rem;font-weight:650;display:grid;gap:5px;color:#344153}
label small,.hint {font-size:.8rem;font-weight:400;color:var(--muted)}
.form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.form-wide {grid-column:1/-1}
.check {display:flex;align-items:center;gap:8px;font-size:.88rem;font-weight:500}
.detail-meta {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.detail-meta dt {color:var(--muted);font-size:.76rem;font-weight:650}
.detail-meta dd {margin:4px 0 0;font-size:.92rem;overflow-wrap:anywhere}
.section-gap {margin-top:16px}
.back {margin-bottom:10px}
dialog {border:1px solid var(--border);border-radius:17px;padding:0;width:min(560px,calc(100vw - 25px));max-height:calc(100dvh - 25px);color:var(--ink);box-shadow:0 25px 90px #1818184a}
dialog::backdrop {background:#10203565}
.dialog-head {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 19px;border-bottom:1px solid var(--border)}
.dialog-head h2 {font-size:1.19rem;letter-spacing:-.032em}
.close {border:0;background:transparent;font-size:1.25rem;width:35px;height:35px;border-radius:7px;color:#344153}
.close:hover {background:var(--neutral-bg)}
.dialog-body {padding:17px 19px;max-height:67dvh;overflow:auto;display:grid;gap:13px}
.dialog-foot {display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:13px 19px;border-top:1px solid var(--border)}
.form-error {color:var(--bad);font-size:.83rem;font-weight:650}
.invoice-preview {border:1px solid var(--border);border-radius:10px;background:var(--paper);padding:10px 12px;display:grid;gap:8px}
.preview-row {display:flex;justify-content:space-between;gap:8px;font-size:.84rem}
.preview-row + .total {padding-top:6px;border-top:1px solid var(--border)}
#toast {position:fixed;bottom:18px;right:18px;max-width:min(370px,calc(100vw - 36px));z-index:5;font-size:.88rem}
.toast-card {background:#192d45;color:white;padding:12px 16px;border-radius:10px;box-shadow:0 4px 18px #16263835}
.toast-card.error {background:#893138}
@media(max-width:1050px) {
  .shell {grid-template-columns:185px minmax(0,1fr)}
  .main {padding-left:21px;padding-right:21px}
  .stats {grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:680px) {
  .shell {display:block}
  .sidebar {height:auto;min-height:0;position:static;padding:13px;gap:12px}
  .nav {display:flex;overflow:auto;padding:2px 2px 5px}
  .nav button {white-space:nowrap;padding:7px 9px;font-size:.78rem;min-height:35px}
  .nav svg {display:none}
  .sidebar-footer {display:none}
  .main {padding:0 12px 26px}
  .topline {min-height:46px;padding:10px 0}
  .page-heading {padding-top:17px;align-items:flex-start;flex-direction:column;gap:12px}
  .detail-meta {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:370px) {.form-grid {grid-template-columns:minmax(0,1fr)}}

[hidden]{display:none!important}
.shell .card{padding:0}
.shell .card-head h2{margin:0}
.shell .card-body .list{margin-top:6px}
.shell .topline .toolbar{justify-content:flex-end}
.shell .filters select{width:auto}
.central-form{margin:0}
.central-form fieldset{display:block}
.central-form .dialog-body{gap:14px}
.central-form .dialog-body .error{margin:0}
.central-form .dialog-body #dialog-notice:empty{display:none}
.shell .content > #notice:not(:empty){margin-top:14px}
.shell .shop-access .card-body .form{margin-top:12px}
.customer-card{padding:0}
.customer-card .card-head h2{margin:0}

.team-record { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; }
.team-record small { display: block; }



.signing-in { background:#181818; color:#fff; }
.signing-in #auth-header { display:none; }
.signing-in #app.page { width:100%; max-width:none; margin:0; padding:0; }
.fade-login {
  display:grid; grid-template-rows:auto 1fr; gap:clamp(1.5rem,5vw,5rem); min-height:100dvh;
  padding:clamp(1.2rem,4vw,3.5rem) max(6vw,calc((100% - 78rem) / 2));
  background:
    radial-gradient(ellipse at 68% 29%,#152637 0%,transparent 52%),
    linear-gradient(155deg,#1c1d1f 7%,#181818 65%,#1b2129);
}
.fade-login-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.fade-login-mark { display:inline-flex; align-items:center; gap:.75rem; font-size:1.7rem; letter-spacing:-.06em; }
.fade-login-icon { display:block; width:2.35rem; height:2.35rem; border-radius:.62rem; }
.fade-login-environment { color:#d6e0ed; border:1px solid #64738a; padding:.42rem .65rem; border-radius:99rem; font-size:.8rem; }
.fade-login-content {
  position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:clamp(1rem,5.6vw,6rem); align-items:center; max-width:72rem; width:100%; margin:0 auto clamp(1rem,6vw,5rem);
}
.fade-login-identity { position:relative; padding:2.75rem 0 4rem; }
.fade-login-identity::before {
  content:""; z-index:-1; position:absolute; inset:-2rem 14% -2.4rem -11%;
  border-left:1px solid #436284; border-bottom:1px solid #314356; border-bottom-left-radius:3.3rem;
  transform:skew(-15deg,-4deg);
}
.fade-login-label { margin:0 0 .85rem; color:#a9c4e8; font-size:.93rem; font-weight:750; }
.fade-login-display { margin:0; font-size:clamp(2.8rem,6.7vw,7rem); font-weight:850;
  line-height:.98; letter-spacing:-.081em; color:#f6f7fc; }
.fade-login-display span { color:#85aada; }
.fade-login-intro { max-width:27rem; margin:1.45rem 0 0; color:#c6d3e2; font-size:clamp(1.03rem,1.55vw,1.27rem); line-height:1.53; }
.fade-login-card {
  width:100%; color:#22262d; background:#f9f7f2; border:1px solid #faf9f7; border-radius:1.4rem;
  padding:clamp(1.4rem,4.2vw,3.5rem); box-shadow:0 24px 65px #060d1694;
}
.fade-login-card h1 { margin:0; color:#161d27; font-size:clamp(1.9rem,3.5vw,3rem); letter-spacing:-.06em; line-height:1.05; }
.fade-auth-description { margin:.8rem 0 1.6rem; color:#455468; font-size:1.05rem; }
.fade-auth-form { display:grid; gap:.8rem; }
.fade-auth-form > label { margin:0; }
.fade-auth-form input { min-height:3.25rem; border:1px solid #a3b4c7; border-radius:.72rem; background:white; color:#182333; }
.fade-auth-form input::placeholder { color:#69798d; }
.fade-auth-form input:focus-visible,.fade-auth-form button:focus-visible,.fade-auth-help summary:focus-visible { outline:2px solid #315b8c; outline-offset:3px; }
.fade-auth-form .primary { background:#294c7a; border-color:#294c7a; color:#fff; min-height:3.45rem;
  margin-top:.4rem; justify-content:center; text-align:center; font-size:1.05rem; }
.fade-auth-form .primary:hover { background:#203f67; }
.fade-auth-password { position:relative; }
.fade-auth-password input { width:100%; padding-right:5.1rem; }
.fade-auth-password button { position:absolute; inset:.5rem .62rem .5rem auto; background:transparent;
  border:0; border-radius:.3rem; color:#294c7a; cursor:pointer; font:inherit; font-size:.84rem; }
.fade-auth-help { color:#294c7a; font-size:.95rem; }
.fade-auth-help summary { cursor:pointer; }
.fade-auth-help p { color:#455468; margin:.55rem 0 0; line-height:1.45; }
@media(max-width:740px) {
  .fade-login { padding:1.1rem max(1rem,5.5vw) 2rem; gap:1.6rem; }
  .fade-login-content { display:grid; grid-template-columns:minmax(0,1fr); gap:1.35rem; max-width:33rem; margin-bottom:auto; }
  .fade-login-identity { padding:.3rem 0 .8rem; }
  .fade-login-identity::before { display:none; }
  .fade-login-label { margin:0 0 .55rem; font-size:.83rem; }
  .fade-login-display { font-size:clamp(2.4rem,9vw,4rem); }
  .fade-login-display br { display:none; }
  .fade-login-display br::after { content:" "; }
  .fade-login-intro { margin:.7rem 0 0; font-size:.96rem; }
}

.shop-plan summary { color:#294c7a; font-weight:650; cursor:pointer; }
.shop-plan p { margin:.6rem 0 0; }

#auth-header img.logo { object-fit:contain; background:#0d0d0d; }

.fade-access-watermark {
  position:absolute; z-index:-1; right:0; bottom:-3.35rem; width:57%; height:auto;
  opacity:.16; filter:brightness(0) invert(1); pointer-events:none; user-select:none;
}
@media(max-width:740px) {
  .fade-access-watermark { width:min(46%,10.5rem); top:-2.25rem; right:0; bottom:auto; opacity:.12; }
}

.staff-top-actions { flex-wrap:wrap; }
.staff-top-actions > strong { color:#244367; }
.staff-support { display:inline-flex; align-items:center; justify-content:center; padding:.6rem .7rem; }
