@font-face{font-family:"Geist";font-weight:100 900;font-display:swap;src:url(assets/fonts/geist-vietnamese.woff2) format("woff2");unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:"Geist";font-weight:100 900;font-display:swap;src:url(assets/fonts/geist-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* Shared by the pricing page (index.html) and the admin (admin.html): colors, sizes, header and the parts both pages use.
   Change a part here and both pages follow. Page layouts live in pricing.css and styles.css. */
:root{color-scheme:light;
  --ink:#0b1220;--ink2:#3a4354;--mute:#5b6475;--line:#e4e7ec;--line2:#eceef2;--bd:#d5d9e1;
  /* Edges of fields people type into: dark enough to find (3:1 on white). */
  --bd-input:#8c95a5;
  --brand:#1f4fd6;--brand-dk:#163a9e;--navy:#030e24;--tint:#f1f5ff;--soft:#f8f9fb;
  --warn:#7a4504;--warn-bg:#fdf1dc;--ok:#1f5a3a;--ok-bg:#e8f4ec;--err:#ac3333;--err-bg:#fdf1f0;--err-line:#f0c4bf;
  /* Text and dividers on the navy header, quote bar and totals panel. */
  --on-dark:#b4c0d4;--on-dark-line:#2e3d5c;--scrim:#0b122066;
  --radius-sm:4px;--radius:6px;--radius-lg:8px;--ring:0 0 0 3px #1f4fd622;
  /* Control heights: finger size on phones, mouse size from 960px. */
  --h:44px;--h-sm:44px;--input-font:16px;
  --font:Geist,Inter,"Segoe UI",system-ui,-apple-system,sans-serif;--mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace}
@media(min-width:960px){:root{--h:36px;--h-sm:32px;--input-font:15px}}
*{box-sizing:border-box}
body{margin:0;min-width:320px;background:#fff;color:var(--ink);font:16px/1.5 var(--font);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
h1,h2,h3,h4,p{margin:0}
/* One weight for headings; everything else is 400 or 500. */
h1,h2,h3{font-weight:500}
button,input,select,textarea{font:inherit;color:inherit}
button,select,summary{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.45}
a{color:var(--brand)}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
code{font:14px var(--mono);letter-spacing:0;overflow-wrap:anywhere}
svg{display:block;flex:none;width:18px;height:18px}
.shell{max-width:1360px;margin:0 auto;padding-inline:16px}
@media(min-width:960px){.shell{padding-inline:32px}}

/* Header */
.top{background:var(--navy)}
.top-inner{height:56px;display:flex;align-items:center;gap:28px}
.top :focus-visible{outline-color:#fff}
.brand{display:flex;align-items:center;gap:8px}
.brand-mark{height:28px;width:auto}
.brand-wordmark{height:20px;width:auto;filter:invert(1)}
.top-label{margin-left:auto;color:var(--on-dark);font-size:15px}
@media(min-width:960px){.top-inner{height:64px}.brand-mark{height:32px}.brand-wordmark{height:24px}}

/* Buttons. Size: default, .btn-sm, .btn-icon (square, no border). */
.btn-primary,.btn-secondary,.btn-danger{min-height:var(--h);padding:0 14px;border:1px solid var(--bd);border-radius:var(--radius);background:#fff;color:var(--ink);font-size:15px;font-weight:500;line-height:1.2;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn-primary{border-color:var(--brand);background:var(--brand);color:#fff}
.btn-primary:hover:not(:disabled){border-color:var(--brand-dk);background:var(--brand-dk)}
.btn-secondary:hover:not(:disabled){border-color:var(--ink2);background:var(--soft)}
.btn-danger{border-color:var(--err-line);color:var(--err)}
.btn-danger:hover:not(:disabled){background:var(--err-bg)}
.btn-danger.solid{border-color:var(--err);background:var(--err);color:#fff}
.btn-sm{min-height:var(--h-sm);padding:0 12px;font-size:14px}
/* Pressed or open: one look for every toggle button. */
.btn-secondary:is([aria-pressed=true],[aria-expanded=true]),.btn-secondary:is([aria-pressed=true],[aria-expanded=true]):hover:not(:disabled){border-color:var(--navy);background:var(--navy);color:#fff}
.btn-sm svg{width:16px;height:16px}
.btn-icon{width:var(--h-sm);height:var(--h-sm);flex:none;padding:0;border:0;border-radius:var(--radius);background:none;color:var(--mute);display:inline-grid;place-items:center}
.btn-icon:hover:not(:disabled){background:var(--soft);color:var(--ink)}
.full{width:100%}

/* Inputs: text, search, password, select, textarea, and .unit-input (a number with its unit on the right). */
:is(input[type=text],input[type=search],input[type=password],select,textarea),.unit-input{height:var(--h);min-width:0;border:1px solid var(--bd-input);border-radius:var(--radius);background:#fff;font-size:var(--input-font)}
:is(input[type=text],input[type=search],input[type=password],select){padding:0 10px}
textarea{height:auto;padding:8px 10px;resize:vertical}
:is(input[type=text],input[type=search],input[type=password],select,textarea):focus-visible,.unit-input:focus-within{outline:none;border-color:var(--brand);box-shadow:var(--ring)}
[aria-invalid=true],.unit-input:has([aria-invalid=true],input:invalid){border-color:var(--err)}
.unit-input{display:flex;align-items:center;gap:8px;padding-right:10px}
.unit-input input{flex:1;width:100%;min-width:0;height:100%;padding:0 10px;border:0;background:none;font-size:var(--input-font);outline:none;appearance:textfield}
.unit-input input::-webkit-inner-spin-button,.unit-input input::-webkit-outer-spin-button{appearance:none;margin:0}
.unit-input span{font-size:13px;color:var(--mute);white-space:nowrap}
.unit-input:has(input:disabled){background:var(--soft)}

/* Badges: short status labels. */
.badge{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:var(--radius-sm);background:var(--soft);color:var(--ink2);font-size:13px;font-weight:500;white-space:nowrap}
.badge-ok{background:var(--ok-bg);color:var(--ok)}
.badge-warn{background:var(--warn-bg);color:var(--warn)}

/* Model name with its picture or vendor logo, and price cells. */
.model-identity{min-width:0;display:flex;align-items:center;gap:10px}
.model-identity>div{min-width:0}
.model-symbol{width:32px;height:32px;flex:none;overflow:hidden;border-radius:var(--radius);background:var(--line2);color:var(--ink2);font-size:14px;font-weight:600;display:grid;place-items:center}
.model-symbol img{width:20px;height:20px}
.model-symbol.has-img img{width:100%;height:100%}
.model-title{display:flex;align-items:center;gap:6px;min-width:0}
.model-title h3{font-size:15px;font-weight:500;overflow-wrap:anywhere}
.endpoint-meta{font-size:14px;color:var(--mute)}
.price-cell{min-width:0;display:flex;flex-direction:column}
.price-cell span,.price-cell small{font-size:13px;color:var(--mute)}
.price-cell strong{font-size:15px;font-weight:500}
.price-cell small{white-space:nowrap}
.price-floor strong{font-size:15px;font-weight:500;color:var(--ink2)}
.contact-cell{grid-column:1/-1;align-items:flex-start}
.info-tip{position:relative;width:18px;height:18px;flex:none;border:1px solid var(--bd);border-radius:50%;color:var(--mute);font-size:12px;font-weight:500;display:inline-grid;place-items:center;cursor:help}
.info-tip-text{display:none;position:absolute;z-index:4;top:calc(100% + 6px);left:50%;translate:-50% 0;width:min(260px,70vw);padding:8px 10px;border-radius:var(--radius);background:var(--ink);color:#fff;font-size:13px;font-weight:400;line-height:1.45}
.info-tip::before{content:"";position:absolute;inset:-13px} /* 44px to tap */
.info-tip:hover .info-tip-text,.info-tip:focus .info-tip-text{display:block}

/* Group tabs: a chip per group with its model count. Pages set the layout (scroll row, column). */
.category-tabs{display:flex;gap:8px}
/* More tabs off to the right: fade the edge so the row reads as scrollable. */
.category-tabs.more{mask-image:linear-gradient(90deg,#000 calc(100% - 72px),#0000);-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 72px),#0000)}
.category-tabs button{position:relative;flex:none;height:var(--h-sm);padding:0 12px;border:1px solid var(--bd);border-radius:var(--radius);background:#fff;font-size:15px;font-weight:500;display:flex;align-items:center;gap:6px}
.category-tabs button:hover{border-color:var(--ink2)}
.tab-copy{display:flex;align-items:center;gap:6px}
.tab-copy small{font-size:14px;color:var(--mute)}
.category-tabs [aria-selected=true]{border-color:var(--navy);background:var(--navy);color:#fff}
.category-tabs [aria-selected=true] small{color:var(--on-dark)}

/* Dialogs (native <dialog>): .mhead title row, a body, .mfoot actions row. Full screen on phones. */
.dialog{width:min(860px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:var(--radius-lg);background:#fff;color:var(--ink);box-shadow:0 24px 64px #0b122045}
.dialog[open],.dialog>form{display:flex;flex-direction:column;min-height:0}
.dialog[open]{animation:dialog-in .22s cubic-bezier(.2,.8,.2,1)}
.dialog>form{flex:1}
.dialog::backdrop{background:var(--scrim);animation:fade-in .2s ease-out}
@keyframes dialog-in{from{opacity:0;transform:translateY(12px) scale(.98)}}
@keyframes fade-in{from{opacity:0}}
.mhead{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line)}
.mhead h2{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:600}
.mhead small{display:block;margin-top:2px;color:var(--mute);font-size:13px;font-weight:400}
.mfoot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid var(--line);background:var(--soft)}
.dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.form-error{font-size:14px;font-weight:500;color:var(--err)}
@media(max-width:640px){
  .dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}
  .mhead{padding:14px}
  .mfoot{flex-wrap:wrap;padding:12px 14px}
}

/* Toast */
.toast{position:fixed;z-index:70;left:50%;bottom:24px;translate:-50% 0;width:max-content;max-width:calc(100% - 32px);padding:10px 14px;border-radius:var(--radius);background:var(--ink);color:#fff;font-size:15px;opacity:0;pointer-events:none;transition:opacity .2s}
.toast.show{opacity:1}
.toast.has-action{display:flex;align-items:center;gap:12px;pointer-events:auto}
.toast :focus-visible{outline-color:#fff}
.toast-action{min-height:36px;margin:-8px 0;padding:0 4px;border:0;background:none;color:#9db8ff;font-weight:500;white-space:nowrap}
.toast-action:hover{color:#fff}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
