/* HQ v2 — Round 3 design system: an extension of thepublicsafetystore.com.
   Colors and type taken from the live PSS theme (2026-11-15):
   nav blue #0061A0, yellow #FFC30D (search button, Add to cart, active nav), ink #353636,
   price red #871818, Oswald headings, Roboto body, Roboto Condensed nav, charcoal footer.
   The agency appears as its uploaded LOGO; agency colors are not used. */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Roboto:wght@400;500;700&family=Roboto+Condensed:wght@400;500;700&display=swap');

:root {
  --blue: #0061A0;  --blue-2: #004f83;
  --yellow: #FFC30D; --yellow-2: #f0b400;
  --navy: #13294F;  --navy-2: #0c1c38;
  --ink: #353636;   --ink-2: #4a4b4b;  --muted: #666666;
  --line: #c4c4c4;  --line-2: #e2e2e2;
  --band: #eeeeee;  --well: #f5f5f5;
  --price: #871818;
  --ok: #17663a; --warn: #8a4b00; --bad: #a3221b;
  --msg-bg: #fff7dc;
  --font: 'Roboto', Arial, Helvetica, sans-serif;
  --head: 'Oswald', Arial, Helvetica, sans-serif;
  --cond: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  --max: 1680px;
  --r: 3px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0; color: var(--ink); }
h1 { font-size: 34px; } h2 { font-size: 24px; } h3 { font-size: 18px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* utility bar (PSS top strip) */
.util { background: var(--navy); color: #d7deea; font-size: 13px; }
.util .wrap { display: flex; align-items: center; gap: 20px; height: 34px; }
.util b { color: #fff; font-family: var(--head); font-weight: 600; letter-spacing: .04em; }
.util .r { margin-left: auto; display: flex; gap: 20px; }
.util a { color: #fff; text-decoration: none; }

/* header */
.top { background: #fff; }
.top .wrap { display: flex; align-items: center; gap: 40px; height: 92px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 68px; height: 68px; }
.brand b { display: block; font: 700 24px/1.05 var(--head); text-transform: uppercase; letter-spacing: .01em; }
.brand small { display: block; font: 500 13px var(--cond); color: var(--blue); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.search { flex: 1; display: flex; max-width: 760px; }
.search input { flex: 1; min-width: 0; height: 46px; border: 0; background: #ececec; border-radius: var(--r) 0 0 var(--r); padding: 0 16px; font: inherit; }
.search button { width: 56px; border: 0; border-radius: 0 var(--r) var(--r) 0; background: var(--yellow); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.search button .ico { width: 24px; height: 24px; stroke-width: 2.4; }
.acct { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.acct a { color: var(--blue); text-decoration: none; display: flex; flex-direction: column; align-items: center; font: 500 12px var(--cond); gap: 2px; position: relative; }
.acct a .ico { width: 26px; height: 26px; }
.acct a.who { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font: 400 14px var(--font); }
.acct .who b { display: block; font-weight: 700; }
.acct .who span span { display: block; color: var(--muted); font-size: 13px; }
.cart .count { position: absolute; top: -6px; right: -10px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--yellow); color: var(--ink); font: 700 12px/20px var(--font); text-align: center; padding: 0 5px; }

.nav { background: var(--blue); }
.nav .wrap { display: flex; align-items: stretch; height: 50px; }
.nav a { color: #fff; text-decoration: none; font: 500 16px var(--cond); display: flex; align-items: center; padding: 0 18px; }
.nav a:first-child { padding-left: 0; }
.nav a:hover, .nav a[aria-current] { color: var(--yellow); }
.nav .right { margin-left: auto; display: flex; }
.nav .right a { background: var(--blue-2); padding: 0 20px; }

/* ordering-for-a-member strip (coordinator placing an order for someone) */
.proxy-bar { background: var(--yellow); color: var(--ink); }
.proxy-bar .wrap { display: flex; align-items: center; gap: 14px; min-height: 48px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.proxy-bar b { font: 700 18px var(--head); text-transform: uppercase; letter-spacing: .02em; }
.proxy-bar .pb-ic .ico { width: 24px; height: 24px; }
.proxy-bar a { color: var(--ink); font-weight: 700; } .proxy-bar a:first-of-type { margin-left: auto; }
.nav-count { display: inline-block; min-width: 20px; height: 20px; border-radius: 10px; background: var(--yellow); color: var(--ink); font: 700 12px/20px var(--font); text-align: center; margin-left: 6px; padding: 0 5px; }

/* allotment bar: strong contrast, always visible */
.allot { background: var(--navy); color: #fff; border-top: 1px solid rgba(255,255,255,.12); }
.allot .wrap { display: flex; align-items: stretch; height: 62px; }
.allot .cell { display: flex; flex-direction: column; justify-content: center; padding: 0 26px; border-left: 1px solid rgba(255,255,255,.16); }
.allot .cell:first-child { padding-left: 0; border-left: 0; }
.allot .lbl { font: 500 12px var(--cond); text-transform: uppercase; letter-spacing: .12em; color: #b8c3d6; }
.allot .val { font: 600 20px/1.15 var(--head); letter-spacing: .02em; }
.allot .cell.avail .lbl { color: var(--yellow); }
.allot .cell.avail .val { color: var(--yellow); font-size: 27px; }
.allot .meter { flex: 1; display: flex; align-items: center; padding: 0 26px; border-left: 1px solid rgba(255,255,255,.16); min-width: 160px; }
.allot .bar { flex: 1; height: 8px; background: rgba(255,255,255,.18); border-radius: 4px; overflow: hidden; display: flex; }
.allot .bar span { display: block; height: 100%; }
.allot .bar .u { background: #fff; } .allot .bar .c { background: #8fb4d9; }
.allot a { align-self: center; color: var(--ink); background: var(--yellow); font: 700 14px var(--cond); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: 9px 16px; border-radius: var(--r); margin-left: 18px; white-space: nowrap; }

/* configurable page message (agency writes it in Store setup > Messages) */
.msg { background: var(--msg-bg); border-bottom: 1px solid #f0dfa0; }
.msg .wrap { display: flex; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.msg .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; flex: none; }
.msg .ic .ico { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; }
.msg p { margin: 0; flex: 1; }
.msg b { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-right: 6px; }
.msg .x { background: none; border: 0; font: 500 14px var(--font); color: var(--blue); cursor: pointer; }
.msg .cfg { font: 500 11px var(--cond); text-transform: uppercase; letter-spacing: .1em; color: var(--warn); border: 1px dashed var(--warn); padding: 2px 6px; border-radius: 2px; white-space: nowrap; }

/* a value that comes from a setting (mock-up marker) */
.cfgv { border-bottom: 2px dotted var(--warn); font-weight: 700; cursor: help; }

/* common */
main { display: block; }
.band { background: var(--band); }
.sec { padding: 44px 0; }
.sec-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-title h2 { font-size: 26px; text-transform: uppercase; letter-spacing: .02em; position: relative; padding-bottom: 10px; }
.sec-title h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--yellow); }
.sec-title a, .sec-title .muted { font: 500 15px var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.crumbs { font-size: 13px; color: var(--muted); padding: 14px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--navy); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--r); font: 700 15px var(--cond); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; cursor: pointer; border: 2px solid transparent; white-space: nowrap; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { height: 56px; font: 700 22px var(--head); letter-spacing: .03em; }
.btn-block { width: 100%; }
.btn[disabled] { background: #e4e4e4; border-color: #e4e4e4; color: var(--muted); cursor: not-allowed; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.status.ok { color: var(--ok); } .status.warn { color: var(--warn); } .status.bad { color: var(--bad); } .status.neutral { color: var(--muted); }
.status .ico { width: 16px; height: 16px; stroke-width: 2.2; }

/* product tiles (PSS card style) */
.pgrid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ptile { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 14px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.ptile:hover { border-color: var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ptile .img { aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; }
.ptile .img img { width: 100%; height: 100%; object-fit: contain; }
.ptile .brandname { font: 500 12px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 2px; }
.ptile .name { font-weight: 500; line-height: 1.3; }
.ptile .price { margin-top: 6px; font-weight: 700; color: var(--price); font-size: 18px; }
.ptile .meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.ptile .spacer { flex: 1; min-height: 12px; }
.dots { display: flex; gap: 5px; margin-top: 8px; align-items: center; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.3); display: block; }
.dots small { font-size: 13px; color: var(--muted); margin-left: 4px; }
.flag-line { font-size: 13px; font-weight: 700; margin-top: 6px; }
.flag-line.warn { color: var(--warn); } .flag-line.neutral { color: var(--muted); }

/* footer (PSS: blue band + charcoal) */
.foot-band { background: var(--blue); color: #fff; }
.foot-band .wrap { display: flex; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.foot-band b { font: 700 22px var(--head); text-transform: uppercase; color: var(--yellow); }
.foot-band span { color: #dce9f5; }
.foot-band .btn { margin-left: auto; }
.foot { background: var(--ink); color: #cfcfcf; font-size: 14px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 36px; padding-bottom: 28px; }
.foot h4 { margin: 0 0 10px; font: 600 15px var(--head); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.foot a { color: #cfcfcf; text-decoration: none; display: block; padding: 2px 0; }
.foot a:hover { color: var(--yellow); }
.foot .lock img { width: 150px; height: auto; background: #fff; border-radius: 4px; padding: 6px 10px; margin-bottom: 10px; }
.foot .bottom { grid-column: 1 / -1; border-top: 1px solid #4a4b4b; padding-top: 16px; font-size: 13px; color: #9a9a9a; display: flex; justify-content: space-between; }

/* embellishment logo: hover preview, click = details window */
  .art { width: 72px; height: 72px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--well); display: grid; place-items: center; padding: 6px; cursor: zoom-in; position: relative; }
  .art:hover, .art:focus-visible { border-color: var(--blue); }
  .art img { width: 100%; height: 100%; object-fit: contain; }
  .art .name-art { width: 100%; height: 100%; background: var(--garment, #1f2a3d); color: #fff; display: grid; place-items: center; text-align: center; font: 700 9px/1.25 var(--font); letter-spacing: .05em; text-transform: uppercase; border-radius: 2px; }
  .art .pop { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.2); padding: 12px; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .12s; }
  .art:hover .pop, .art:focus-visible .pop { opacity: 1; }
  .art .pop .pimg { height: 180px; display: grid; place-items: center; background: var(--well); border-radius: 3px; padding: 10px; }
  .art .pop .pimg .name-art { font-size: 18px; }
  .art .pop small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; }
.art.sm { width: 48px; height: 48px; padding: 4px; }
.art.sm .name-art { font-size: 6.5px; }
@media (max-width: 1000px) { .art { width: 60px; height: 60px; } .art.sm { width: 44px; height: 44px; } .art .pop { display: none; } }

/* modal */
dialog.modal { border: 0; padding: 0; border-radius: 6px; width: min(760px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(0,0,0,.35); color: var(--ink); }
dialog.modal::backdrop { background: rgba(15, 20, 30, .62); }
.modal-head { display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: #fff; padding: 10px 12px 10px 22px; }
.modal-head h2 { color: #fff; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.modal-x { background: none; border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.modal-x:hover { background: rgba(255,255,255,.14); }
.modal-x .ico { width: 24px; height: 24px; stroke-width: 2.2; }
.modal-body { display: grid; grid-template-columns: 320px 1fr; gap: 28px; padding: 24px; }
.modal-art { background: var(--well); border-radius: 4px; display: grid; place-items: center; padding: 24px; aspect-ratio: 1; }
.modal-art img { width: 100%; height: 100%; object-fit: contain; }
.modal-body dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; align-content: start; }
.modal-body dt { color: var(--muted); }
.modal-body dd { margin: 0; font-weight: 500; }
.modal-foot { padding: 0 24px 22px; display: flex; justify-content: flex-end; }

/* phone */
@media (max-width: 1000px) {
  .wrap { padding: 0 16px; }
  .util .r .hide-sm { display: none; }
  .top .wrap { height: 72px; gap: 12px; }
  .brand img { width: 48px; height: 48px; } .brand b { font-size: 18px; }
  .search, .acct a.who, .nav .right { display: none; }
  .nav .wrap { overflow-x: auto; } .nav a { white-space: nowrap; }
  .allot .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  .allot .cell { padding: 0 14px; } .allot .meter, .allot .cell.opt { display: none; }
  .allot a { margin-left: auto; }
  .msg .wrap { align-items: flex-start; gap: 10px; } .msg .cfg { display: none; } .msg .ic { width: 30px; height: 30px; }
  .msg p { font-size: 15px; } .msg b { display: block; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot-band .wrap { flex-wrap: wrap; gap: 8px 16px; } .foot-band b { white-space: nowrap; } .foot-band .btn { margin-left: 0; }
  .modal-body { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
}

/* shared panels + order summary (cart, checkout, order pages) */
.page-title { padding: 6px 0 22px; }
.page-title h1 { font-size: 34px; text-transform: uppercase; letter-spacing: .02em; position: relative; padding-bottom: 10px; display: inline-block; }
.page-title h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--yellow); }
.page-title p { margin: 8px 0 0; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; padding-bottom: 56px; }
.panel { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 3px solid var(--blue); }
.panel-head h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.panel-head a, .panel-head .muted { font: 500 14px var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.panel-body { padding: 18px 20px; }
.summary { position: sticky; top: 16px; }
.summary .panel-head { background: var(--navy); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.summary .panel-head h2 { color: #fff; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.sum-row.total { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 17px; }
.sum-row.al b { color: var(--ok); }
.sum-row.you b { font: 700 22px var(--font); color: var(--price); }
.sum-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.after { background: var(--well); border-left: 4px solid var(--yellow); padding: 10px 14px; margin-top: 14px; font-size: 14px; }
.after b { font: 700 18px var(--head); display: block; }
/* item rows */
.item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.item:last-child { border-bottom: 0; }
.item .ph { width: 96px; height: 116px; border: 1px solid var(--line-2); border-radius: var(--r); display: grid; place-items: center; padding: 6px; }
.item .ph img { max-height: 100%; object-fit: contain; }
.item .brandname { font: 500 12px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.item .nm { font-weight: 700; font-size: 17px; }
.item .op { font-size: 14px; color: var(--muted); margin-top: 2px; }
.item .amt { text-align: right; font-weight: 700; color: var(--price); font-size: 18px; white-space: nowrap; }
.embs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.embs li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.embs li b { font: 700 13px var(--cond); text-transform: uppercase; letter-spacing: .05em; min-width: 92px; }
.embs .add { color: var(--muted); }
.item-acts { display: flex; gap: 16px; align-items: center; margin-top: 12px; font-size: 14px; }
.qty-s { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); height: 38px; }
.qty-s button { width: 34px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty-s input { width: 34px; border: 0; text-align: center; font: 700 15px var(--font); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); font-size: 15px; }
.callout.warn { background: #fff4e0; border-left: 4px solid var(--warn); }
.callout.ok { background: #e6f2ea; border-left: 4px solid var(--ok); }
.callout b { display: block; }
@media (max-width: 1000px) {
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .summary { position: static; }
  .item { grid-template-columns: 72px minmax(0, 1fr); padding: 14px; } .item .ph { width: 72px; height: 88px; }
  .item .amt { grid-column: 2; text-align: left; }
  .page-title h1 { font-size: 26px; }
}

/* ===== Store setup / admin (Round 3 batch 2) ===== */
.setup { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; padding: 26px 0 56px; }
.snav { border: 1px solid var(--line-2); border-radius: var(--r); position: sticky; top: 16px; background: #fff; }
.snav h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .05em; padding: 12px 16px; background: var(--navy); color: #fff; border-radius: var(--r) var(--r) 0 0; }
.snav a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 16px; border-left: 4px solid transparent; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.snav a:last-child { border-bottom: 0; }
.snav a b { font: 500 15px var(--cond); }
.snav a small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.3; }
.snav a:hover { background: var(--well); }
.snav a[aria-current] { border-left-color: var(--yellow); background: #f4f6fa; }
.snav a[aria-current] b { font-weight: 700; color: var(--navy); }
.snav .sep { padding: 8px 16px 4px; font: 700 11px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--well); border-bottom: 1px solid var(--line-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; align-self: center; background: var(--ok); }
.dot.warn { background: #d88a00; } .dot.bad { background: var(--bad); } .dot.off { background: #bbb; }
.pill { display: inline-block; font: 700 12px/1.6 var(--cond); text-transform: uppercase; letter-spacing: .05em; padding: 1px 8px; border-radius: 2px; white-space: nowrap; background: #eee; color: var(--muted); }
.pill.ok { background: #e6f2ea; color: var(--ok); } .pill.warn { background: #fff4e0; color: var(--warn); } .pill.bad { background: #fdeceb; color: var(--bad); }
.pill.blue { background: #e8f0f8; color: var(--blue); } .pill.navy { background: #e9ebf1; color: var(--navy); }
.ty { display: inline-block; font: 700 11px var(--cond); text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 2px; white-space: nowrap; }
.ty.credit { background: #e6f2ea; color: var(--ok); } .ty.charge { background: #fdeceb; color: var(--bad); } .ty.hold { background: #fff4e0; color: var(--warn); }
.ty.adj { background: #e8f0f8; color: var(--blue); } .ty.dept { background: #e9ebf1; color: var(--navy); } .ty.memo { background: #eee; color: var(--muted); } .ty.refund { background: #e6f2ea; color: var(--ok); }
/* settings rows */
.set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 440px); gap: 24px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); align-items: start; }
.set:last-child { border-bottom: 0; }
.set h3 { font: 700 17px var(--font); }
.set p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.set .ctl { display: grid; gap: 8px; }
.fld label, .lbl-s { display: block; font: 700 13px var(--cond); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.fld input, .fld select, .fld textarea, .set select, .set input[type=text], .set input[type=number] { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 12px; font: inherit; background: #fff; color: var(--ink); }
.fld textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.fld .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.err { border: 2px solid var(--bad) !important; background: #fdf1f0 !important; }
.errmsg { color: var(--bad); font-size: 13px; font-weight: 700; margin-top: 4px; }
.err-sum { background: #fdf1f0; border-left: 4px solid var(--bad); padding: 12px 16px; margin-bottom: 16px; color: var(--bad); font-weight: 700; }
.err-sum ul { margin: 6px 0 0; padding-left: 18px; font-weight: 400; color: var(--ink); }
.unit { display: flex; align-items: center; gap: 10px; } .unit input { max-width: 110px; }
/* on/off switch */
.sw { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; position: relative; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw .tr { width: 52px; height: 30px; border-radius: 15px; background: #9a9a9a; position: relative; flex: none; transition: background .15s; }
.sw .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.sw input:checked + .tr { background: var(--ok); }
.sw input:checked + .tr::after { left: 25px; }
.sw input:focus-visible + .tr { outline: 3px solid var(--blue); outline-offset: 2px; }
.sw .st::before { content: "Off"; color: var(--muted); } .sw input:checked ~ span .st::before, .sw input:checked ~ .st::before { content: "On"; color: var(--ok); }
.locked { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; background: var(--well); border-left: 4px solid var(--navy); padding: 10px 12px; }
.locked .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; }
/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font: 700 13px var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 14px; border-bottom: 1px solid var(--line-2); background: var(--well); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl small { display: block; color: var(--muted); font-size: 13px; }
.tbl .r { text-align: right; } .tbl .c { text-align: center; }
.tbl select { height: 40px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 10px; font: inherit; background: #fff; max-width: 100%; }
.tbl input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue); }
.tbl-wrap { overflow-x: auto; }
/* save bar + history */
.savebar { position: sticky; bottom: 0; z-index: 5; background: var(--navy); color: #fff; border-radius: var(--r); padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.savebar span { flex: 1 1 260px; font-size: 14px; color: #d7deea; } .savebar b { color: #fff; }
.hist { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.hist li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 9px 20px; border-bottom: 1px solid var(--line-2); }
.hist li:last-child { border-bottom: 0; }
.hist time { color: var(--muted); }
.hist s { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 15px; padding: 3px 6px 3px 12px; font-size: 14px; background: #fff; }
.chip button { border: 0; background: #eee; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 20px; padding: 0; color: var(--ink); }
.chip.add { border-style: dashed; color: var(--blue); padding-right: 12px; cursor: pointer; font: inherit; font-size: 14px; }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.box { border: 1px solid var(--line-2); border-top: 4px solid var(--blue); border-radius: var(--r); padding: 12px 16px; background: #fff; }
.box span { display: block; font: 700 12px var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.box b { display: block; font: 700 24px var(--head); margin-top: 2px; }
.box small { color: var(--muted); font-size: 13px; }
.box.hero { background: var(--navy); border-top-color: var(--yellow); } .box.hero span, .box.hero small { color: #c9d3e4; } .box.hero b { color: var(--yellow); }
.pss-bar { background: var(--price); color: #fff; } .pss-bar .wrap { display: flex; gap: 12px; align-items: center; min-height: 40px; font-size: 14px; flex-wrap: wrap; } .pss-bar b { font: 700 15px var(--head); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 1000px) {
  .setup { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .snav { position: static; } .snav a small { display: none; }
  .set { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .hist li { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 9px 14px; }
  .tbl th, .tbl td { padding: 9px 10px; }
}

.snav-t { all: unset; display: flex; width: 100%; justify-content: space-between; align-items: center; cursor: default; }
.snav-t span { display: none; font: 500 13px var(--cond); color: var(--yellow); letter-spacing: .06em; }
@media (max-width: 1000px) {
  .snav-t { cursor: pointer; } .snav-t span { display: inline; } .snav-t span::after { content: " \25BE"; }
  .snav.open .snav-t span::after { content: " \25B4"; }
  .snav:not(.open) a:not([aria-current]), .snav:not(.open) .sep { display: none; }
  .savebar { position: static; padding: 12px 14px; } .savebar span { flex-basis: 100%; }
}

/* ===== PSS libraries: thread colors + fonts (synced with VAS) ===== */
.sync { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #e6f2ea; border-left: 4px solid var(--ok); padding: 10px 16px; font-size: 15px; margin-bottom: 20px; }
.sync .ico { width: 18px; height: 18px; color: var(--ok); }
.sync span { flex: 1 1 320px; }
.libbar { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line-2); align-items: center; }
.libbar input, .libbar select { height: 42px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 10px; font: inherit; background: #fff; }
.libbar input[type=search] { flex: 1 1 260px; }
.libbar .btn { height: 42px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); box-shadow: inset 0 -6px 10px rgba(0,0,0,.18), inset 0 4px 6px rgba(255,255,255,.35); display: inline-block; vertical-align: middle; }
.code { font: 700 15px var(--cond); color: var(--navy); }
tr.retired td { opacity: .5; }
dialog.edlg { width: min(720px, calc(100vw - 32px)); border: 0; border-radius: var(--r); padding: 0; box-shadow: 0 20px 60px rgba(0,0,0,.35); color: var(--ink); }
dialog.edlg::backdrop { background: rgba(19,41,79,.55); }
.edlg .eh { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; padding: 12px 20px; }
.edlg .eh h2 { color: #fff; font-size: 20px; text-transform: uppercase; }
.edlg .eh button { background: none; border: 0; color: #fff; width: 36px; height: 36px; cursor: pointer; display: grid; place-items: center; }
.edlg .eb { padding: 18px 20px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.edlg .eb .full { grid-column: 1 / -1; }
.edlg .ef { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.edlg .ef .left { margin-right: auto; }
.edlg input[type=color] { width: 56px; height: 44px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.big-sw { display: flex; gap: 14px; align-items: center; }
.big-sw .swatch { width: 64px; height: 64px; }
@media (max-width: 1000px) { .edlg .eb { grid-template-columns: minmax(0, 1fr); } .libbar { padding: 12px 14px; } }
