/* CosmeBiz — template from BizTools. Generated, do not edit. */

:root {
  --navy: #0F2335;          
  --navy-soft: #1B3247;
  --orange: #F26F2F;        
  --orange-hot: #F97216;
  --orange-soft: #FDEEE5;
  --gold: #F26F2F;          
  --ink: #17233a;
  --muted: #6b7890;
  --line: #dbe3ee;
  --bg: #edf1f6;          
  --card: #ffffff;
  --field: #f2f6fc;       
  --field-line: #c3d0e2;  
  --head-bg: #e6ecf5;     
  --hover: #f7fafe;       
  --ok: #1e7c3a;
  --ok-bg: #e6f4ea;
  --no: #b3261e;
  --no-bg: #fdeaea;
  --wait: #9a6300;
  --wait-bg: #fff4e0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15,35,53,.06), 0 8px 24px rgba(15,35,53,.07);
  --t-hero: 30px;     
  --t-big:  21px;     
  --t-h1:   22px;     
  --t-body: 15px;     
  --t-sub:  13px;     
  --t-tiny: 11.5px;   
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Prompt", "Sarabun", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.6;
  min-height: 100dvh; -webkit-text-size-adjust: 100%;
}
a { color: var(--navy); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 64px; }
header.top {
  background: var(--navy); color: #fff;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  position: sticky; top: 0; z-index: 20;
}
header.top .inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
header.top .brand { font-weight: 700; font-size: 18px; letter-spacing: .5px; text-decoration: none; color: #fff; }
header.top .tag { font-size: 10.5px; opacity: .7; letter-spacing: .6px; text-transform: uppercase; }
header.top .sp { flex: 1; }
header.top .who { font-size: 13px; opacity: .85; }
header.top form { display: inline; }
.btn-plain {
  background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 10px;
  padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.btn-plain:hover { background: rgba(255,255,255,.22); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--navy); color: #fff; border: 0; border-radius: 10px;
  padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  min-height: 42px;
}
.btn:hover { background: #123252; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.ghost:hover { background: #eef2f8; }
.btn.gold { background: var(--orange); color: var(--navy); }
.btn.gold:hover { background: #FB8A3C; }
.btn.danger { background: #fff; color: var(--no); border: 1px solid #f2cfcd; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { padding: 6px 12px; min-height: 34px; font-size: 13.5px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tool { padding: 18px; text-decoration: none; color: inherit; display: block; transition: transform .12s, box-shadow .12s; }
.tool:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(15,35,64,.12); }
.tool .ic { font-size: 26px; }
.tool h3 { margin: 8px 0 4px; font-size: 16px; }
.tool p { margin: 0; color: var(--muted); font-size: 13.5px; }
.tool.soon { opacity: .62; }
.tool .badge {
  display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 600;
  background: #eef2f8; color: var(--muted); padding: 2px 9px; border-radius: 10px;
}
h1.page { font-size: 22px; margin: 26px 0 4px; }
p.lead { color: var(--muted); margin: 0 0 18px; }
h2.section { font-size: 16px; margin: 30px 0 12px; display: flex; align-items: center; gap: 10px; }
h2.section:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.proj { padding: 14px 16px; display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.proj:hover { background: #f9fbfe; }
.proj .ic { font-size: 24px; }
.proj .m { flex: 1; min-width: 0; }
.proj .n { font-weight: 600; }
.proj .s { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; background: #eef2f8; border-radius: 6px; overflow: hidden; width: 108px; flex: none; }
.bar i { display: block; height: 100%; background: var(--orange); }
.pct { font-size: 12px; color: var(--muted); width: 40px; text-align: right; flex: none; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; }
.tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 15px;
  font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; color: var(--ink);
}
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs button .c { font-size: 11.5px; opacity: .7; margin-left: 4px; }
fieldset.sec { border: 0; margin: 0 0 6px; padding: 0; }
fieldset.sec > legend {
  font-weight: 700; font-size: 15px; color: var(--navy); padding: 0;
  border-left: 3px solid var(--orange); padding-left: 9px; margin: 22px 0 10px;
}
fieldset.sec > legend span { font-weight: 400; color: var(--muted); font-size: 13px; }
.row { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row label.k { display: block; font-weight: 600; font-size: 14px; }
.row label.k .en { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.row .note { color: var(--muted); font-size: 12px; margin-top: 2px; }
.row input[type=text], .row textarea, .row select {
  width: 100%; margin-top: 7px; padding: 9px 11px; font: inherit; font-size: 15px;
  border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); color: var(--ink);
}
.row input[type=text]:hover, .row textarea:hover, .row select:hover { border-color: #a8bad2; }
.row textarea { resize: vertical; min-height: 62px; }
.row textarea.big { min-height: 130px; }
.row input:focus, .row textarea:focus, .row select:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); background: #fff; }
.row .listline { display: flex; gap: 8px; align-items: center; margin-top: 7px; }
.row .listline .no { color: var(--muted); font-size: 12.5px; width: 16px; flex: none; }
.filled { background: #fcfdff; }
.stickybar {
  position: sticky; bottom: 0; z-index: 10; margin-top: 16px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.stickybar .st { color: var(--muted); font-size: 13px; flex: 1; min-width: 120px; }
.stickybar .st.ok { color: var(--ok); }
.mask { position: fixed; inset: 0; background: rgba(15,35,64,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; padding: 0; }
.modal { background: #fff; border-radius: 14px 14px 0 0; width: 100%; max-width: 720px; max-height: 92dvh; overflow: auto; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) {
  .mask { align-items: center; padding: 20px; }
  .modal { border-radius: 14px; }
}
.modal h3 { margin: 0 0 4px; font-size: 18px; }
.modal .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.modal label.f { display: block; font-weight: 600; font-size: 14px; margin-top: 14px; }
.modal input[type=text], .modal textarea, .modal select {
  width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-size: 15px;
  border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); color: var(--ink);
}
.modal input[type=text]:focus, .modal textarea:focus, .modal select:focus {
  outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); background: #fff;
}
.modal textarea { min-height: 180px; resize: vertical; }
.modal .acts { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.modal .acts .sp { flex: 1; }
.sug { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.sug.new { border-left: 3px solid var(--ok); }
.sug.over { border-left: 3px solid var(--wait); }
.sug .h { display: flex; gap: 8px; align-items: flex-start; }
.sug .h input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.sug .lb { font-weight: 600; font-size: 14px; }
.sug .val { white-space: pre-wrap; margin-top: 4px; font-size: 14px; }
.sug .cur { color: var(--muted); font-size: 12.5px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.sug .ev { color: var(--muted); font-size: 12px; font-style: italic; margin-top: 4px; }
.chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 10px; }
.chip.new { background: var(--ok-bg); color: var(--ok); }
.chip.over { background: var(--wait-bg); color: var(--wait); }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.err { background: var(--no-bg); color: var(--no); padding: 10px 14px; border-radius: 10px; margin: 12px 0; font-size: 14px; }
.hint { background: #eef4ff; color: #234; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin: 12px 0; }
body.login { display: flex; align-items: center; justify-content: center; min-height: 100dvh; background: var(--navy); padding: 20px; }
.loginbox { background: #fff; border-radius: 14px; padding: 32px 26px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.loginbox .b { font-size: 24px; font-weight: 700; color: var(--navy); }
.loginbox .t { font-size: 10.5px; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.loginbox label { display: block; font-weight: 600; font-size: 14px; margin-top: 14px; }
.loginbox input { width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; }
.loginbox .btn { width: 100%; margin-top: 22px; }
.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 4px; padding: 11px 14px; min-height: 46px;
  border: 1px solid #dadce0; border-radius: 10px; background: #fff; color: #3c4043;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.gbtn:hover { background: #f7f8fa; border-color: #c9cdd3; }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0 2px; color: var(--muted); font-size: 12.5px; }
.or:before, .or:after { content: ""; flex: 1; height: 1px; background: var(--line); }
header.top .logo { width: 30px; height: 30px; border-radius: 50%; background: #fff; flex: none; }
header.top .brand { display: flex; align-items: center; gap: 9px; }
.hero {
  background: var(--navy); color: #fff; border-radius: 14px; padding: 26px 26px 24px;
  margin: 22px 0 8px; position: relative; overflow: hidden;
}
.hero:after {
  content: ""; position: absolute; top: -20%; right: -8%; width: 40%; height: 150%;
  background: var(--orange); transform: skewX(-12deg); opacity: .92;
}
@media (max-width: 640px) { .hero:after { width: 62%; right: -30%; } }
.hero .in { position: relative; z-index: 1; max-width: 30rem; }
.hero h2 { margin: 0 0 6px; font-size: 21px; font-weight: 700; color: #fff; }
.hero h2:after { display: none; }
.hero p { margin: 0 0 18px; font-size: 14.5px; opacity: .85; }
.hero .btn { background: #fff; color: var(--navy); font-size: 16px; padding: 13px 22px; min-height: 50px; }
.hero .btn:hover { background: #f0f3f8; }
.wiz { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
@media (max-width: 820px) { .wiz { grid-template-columns: 1fr; } }
.rail {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; position: sticky; top: 74px; box-shadow: var(--shadow);
}
@media (max-width: 820px) {
  .rail { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
  .rail .step { white-space: nowrap; flex: none; }
}
.rail .step {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px;
  cursor: pointer; border: 0; background: none; width: 100%; text-align: left;
  font: inherit; font-size: 14px; color: var(--ink);
}
.rail .step:hover { background: var(--bg); }
.rail .step.on { background: var(--navy); color: #fff; }
.rail .step .n {
  width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; background: var(--bg); color: var(--muted);
}
.rail .step.on .n { background: rgba(255,255,255,.2); color: #fff; }
.rail .step.done .n { background: var(--ok-bg); color: var(--ok); }
.rail .step.on.done .n { background: var(--orange); color: var(--navy); }
.rail .step .t { flex: 1; min-width: 0; }
.rail .step .c { font-size: 11.5px; opacity: .65; font-variant-numeric: tabular-nums; }
.stepnav { display: flex; gap: 10px; align-items: center; padding: 14px 16px 4px; }
.stepnav .sp { flex: 1; }
.savehint { font-size: 12.5px; color: var(--muted); }
.savehint.ok { color: var(--ok); }
.costgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .costgrid { grid-template-columns: minmax(0, 1fr); } }
.summary {
  position: sticky; top: 74px; padding: 20px 22px;
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 2px 6px rgba(15,35,53,.18), 0 14px 36px rgba(15,35,53,.22);
}
@media (max-width: 900px) { .summary { position: static; } }
.summary h3 {
  margin: 0 0 12px; font-size: var(--t-sub); color: #fff; font-weight: 600;
  letter-spacing: 0; text-transform: none;
}
.summary h3 + .sumrow { border-top: 0 }
.sumrow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: var(--t-sub); color: #aebbcd;
}
.sumrow:last-child { border-bottom: 0; }
.sumrow b { font-variant-numeric: tabular-nums; font-size: var(--t-body); color: #fff; font-weight: 600; }
.sumrow.big {
  display: block; margin: 14px -22px; padding: 16px 22px;
  background: var(--orange-hot); border-bottom: 0; color: var(--navy); font-weight: 600;
}
.sumrow.big:last-child { margin-bottom: -20px; padding-bottom: 20px; border-radius: 0 0 var(--radius) var(--radius); }
.sumrow.big b { display: block; color: var(--navy); font-size: var(--t-hero); font-weight: 700; line-height: 1.1; white-space: nowrap; margin-top: 2px; }
.sumrow.big .qmark { color: rgba(15,35,53,.6); }
.sumrow.big .u { color: rgba(15,35,53,.74); }
.sumrow.big .qmark:hover, .sumrow.big .qmark[aria-expanded="true"] { color: var(--navy); }
.sumrow.big ~ .sumrow.big {
  display: flex; margin: 0; padding: 9px 0; background: none; color: #aebbcd;
  border-bottom: 1px solid rgba(255,255,255,.14); border-radius: 0;
}
.sumrow.big ~ .sumrow.big b { display: inline; color: var(--orange); font-size: var(--t-big); margin-top: 0; }
.sumrow.big b .u { font-size: var(--t-sub); color: rgba(15,35,53,.72); font-weight: 500; }
.sumrow .u { color: #8fa0b6; font-size: var(--t-tiny); font-weight: 400; }
.sumrow.big ~ .sumrow.big b .u { color: #8fa0b6; }
.summary .card, .summary .hintline, .summary .note { color: #cbd6e4; }
.summary .ok, .summary .pill.ok { background: rgba(255,255,255,.12); color: #d6ffe2; border-color: transparent; }
.summary a { color: #ffb27a; }
table.cost { width: 100%; border-collapse: collapse; font-size: 14px; }
table.cost th { text-align: left; font-size: var(--t-sub); color: var(--navy); font-weight: 600; padding: 9px 10px; background: var(--head-bg); }
table.cost th:first-child { border-radius: 8px 0 0 8px; }
table.cost th:last-child { border-radius: 0 8px 8px 0; }
table.cost th.n, table.cost td.n { text-align: right; }
table.cost td { padding: 5px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
table.cost tr:hover td:not(.lot-best) { background: var(--hover); }
table.cost input { width: 100%; padding: 8px 10px; font: inherit; font-size: 14px; border: 1px solid var(--field-line); border-radius: 9px; background: var(--field); color: var(--ink); }
table.cost input:hover { border-color: #a8bad2; }
table.cost input.num { text-align: right; font-variant-numeric: tabular-nums; }
table.cost input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); background: #fff; }
table.cost td.calc { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
table.cost td.calc b { color: var(--ink); font-size: 15px; }
table.cost tr.total td { border-top: 2px solid var(--navy); font-weight: 700; background: var(--bg); }
table.cost tr.total td.calc b { font-size: 16.5px; }
table.cost .rowlab { display: none; }
table.cost .del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 4px; }
table.cost .del:hover { color: var(--no); }
.pct { width: 74px !important; }
.hintline { padding: 8px 16px 12px; color: var(--muted); font-size: 12.5px; }
.hintline.warn { color: var(--no); }
.note .warn { color: var(--no); font-weight: 600; }
.qtyline { display: flex; align-items: center; gap: 5px; justify-content: flex-end; margin-top: 4px; }
.qtyline span { font-size: var(--t-tiny); color: var(--muted); }
.moqline { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: var(--t-tiny); color: var(--muted); }
input.mini { font-size: var(--t-sub); padding: 4px 7px; max-width: 82px; }
.unitpair { display: flex; gap: 6px; align-items: center; }
.unitpair input { flex: 1; min-width: 0; }
.cardsync { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cardsync .unitpair { align-items: stretch; }
.cardsync .unitpair input { flex: 1; }
select.unitsel {
  flex: none; padding: 8px 6px; border: 1px solid var(--field-line); border-radius: 9px;
  background: var(--field); font: inherit; color: inherit;
}
.stockhead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--navy); color: #fff; padding: 16px 20px;
}
.stockhead .stockart {
  flex: none; width: 128px; height: auto; background: #fff;
  border-radius: 10px; padding: 6px;
}
@media (max-width: 560px) { .stockhead { flex-wrap: wrap } .stockhead .stockart { width: 96px } }
.stockhead .sub { color: #9FB4CC; font-size: var(--t-tiny); margin-top: 3px; }
.stockhead .v { font-size: var(--t-big); font-weight: 700; color: var(--orange); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stockhead .v span { font-size: var(--t-sub); font-weight: 500; color: #9FB4CC; }
.stocklist { display: flex; flex-direction: column; }
.stockrow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 20px; border-top: 1px solid var(--line); color: inherit; text-decoration: none;
}
.stockrow:hover { background: var(--hover); }
.stockrow .sub { color: var(--muted); font-size: var(--t-tiny); margin-top: 2px; }
.stockrow .u { color: var(--muted); font-family: monospace; font-size: var(--t-tiny); }
.stockrow .n { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sendone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 4px 0 }
.sendone .bl { font-size: 12.5px; color: var(--muted) }
.sendone .btn-quiet { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: #fff; font-size: 13px; text-decoration: none }
.sendone .btn-quiet:hover { border-color: var(--orange); color: var(--orange) }
.bulkbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 10px 16px 4px; margin-bottom: 2px;
}
.bulkbar .bl { font-size: 12.5px; color: var(--muted); margin-right: 4px }
.bulkbar .btn-quiet { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: #fff; font-size: 13px }
.bulkbar .btn-quiet:hover { border-color: var(--orange); color: var(--orange) }
.bulkbar .undo:not(:empty) { margin-left: auto }
.bulkbar .undo .btn-quiet { border-color: var(--orange); color: var(--orange) }
.ovrow { margin-top: 10px }
.ovhead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px }
.ovhead .nm { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 15px }
.ovhead .nm:hover { color: var(--orange) }
.nodecode { font-family: ui-monospace, monospace; font-size: 11.5px; font-weight: 400; color: var(--muted); letter-spacing: .04em; white-space: nowrap; margin-left: 6px }
.ovhead .code { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--muted); letter-spacing: .04em }
.ovhead .prog { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 2px 9px }
.ovhead .prog.full { background: var(--ok-bg); color: var(--ok) }
.ovhead .who { font-size: 12px; color: var(--muted) }
.ovchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0 }
.ovchip { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: #fff }
.ovchip.on { border-color: var(--ok); color: var(--ok); background: var(--ok-bg) }
.ovsum { font-size: 12px; color: var(--muted); margin-top: 5px }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); white-space: nowrap }
.benchpick input[type="search"] {
  flex: 1 1 280px; min-width: 0; padding: 8px 11px; font: inherit; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit;
}
.pactions .btn { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pactions .btn .sum { font-size: 11.5px; font-weight: 500; opacity: .85; letter-spacing: 0 }
.pactions .btn.ghost.done { border-color: var(--ok); color: var(--ok) }
.pactions .btn.ghost.done .sum { color: var(--muted) }
#params, #fixed, #variable, #channel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  table.cost { min-width: 520px; }
  table.cost input { min-width: 72px; }
  table.cost td:first-child input { min-width: 150px; }
  table.cost.rows { min-width: 0; }
  table.cost.rows td:first-child { width: auto !important; }
  table.cost.rows input,
  table.cost.rows td:first-child input { min-width: 0; }
  table.cost.rows select { max-width: 100%; }
  table.cost.cmp td:first-child, table.cost.cmp th:first-child { min-width: 130px !important; }
  .summary { margin-top: 16px; }
}
@media (max-width: 560px) {
  table.cost.rows, table.cost.rows tbody, table.cost.rows tr, table.cost.rows td { display: block; width: auto }
  table.cost.rows tr { padding: 10px 0; border-bottom: 1px solid var(--line) }
  table.cost.rows tr:last-child { border-bottom: 0 }
  table.cost.rows td { padding: 0; border: 0 }
  table.cost.rows td { width: auto !important }
  table.cost.rows.cardlab thead { display: none }
  table.cost.rows .rowlab { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin: 9px 0 3px }
  table.cost.rows td.calc .rowlab { display: inline; margin: 0 6px 0 0 }
  table.cost.rows td:first-child { margin-bottom: 6px; font-weight: 500 }
  table.cost.rows td .note { font-weight: 400 }
  table.cost.rows td:nth-child(2) { max-width: 100% }
  table.cost.rows input.num, table.cost.rows input[type="text"] { width: 100%; text-align: left }
  table.cost.rows .unitpair { display: flex; gap: 8px }
  table.cost.rows .unitpair input { flex: 1 }
  table.cost.rows td.calc { color: var(--muted); font-size: 12.5px; margin-top: 4px }
  table.cost.rows tr.total td.calc, table.cost.rows tr.total td.n { font-size: 15px; color: var(--ink) }
  tr.twowaynote td { padding: 0 0 6px }
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.chip-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; min-height: 40px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left;
  transition: background .12s, border-color .12s;
}
.chip-opt:hover { background: var(--bg); border-color: #c3cddc; }
.chip-opt .i { font-size: 15px; line-height: 1; }
.chip-opt.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-opt.on:hover { background: #123252; }
.chip-opt:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
input.otherin {
  width: 100%; margin-top: 9px; padding: 8px 11px; font: inherit; font-size: 14px;
  border: 1px dashed var(--field-line); border-radius: 10px; background: var(--field); color: var(--ink);
}
input.otherin:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-style: solid; border-color: var(--orange); background: #fff; }
.otherbox { margin-top: 9px; }
.otherlab { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.otherlink {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; min-height: 40px;
  border: 1px dashed #c3cddc; border-radius: 999px; background: #fff;
  font: inherit; font-size: 14px; color: var(--slate, var(--muted));
  cursor: pointer; text-decoration: none;
}
.otherlink:hover { color: var(--orange); border-color: var(--orange); background: var(--bg); }
.otherlink:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.chips[data-single] .chip-opt { border-radius: 9px; }
.bench { background: #f7f9fc; border-top: 1px solid var(--line); padding: 12px 16px 14px }
.benchhead { font-size: 13px; color: var(--muted); margin-bottom: 8px }
.benchpick { display: flex; gap: 8px; flex-wrap: wrap }
.benchpick select {
  flex: 1 1 200px; width: 100%; min-width: 0; padding: 8px 10px; font: inherit; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit;
}
.benchout:not(:empty) { margin-top: 10px }
.benchbar { font-size: 14px; line-height: 1.7 }
.benchbar b { color: var(--navy); font-size: 15px }
.benchbar .benchmeta { display: block; font-size: 12px; color: var(--muted) }
.benchout .btn { margin-top: 8px }
@media (max-width: 640px) { .benchpick select { flex: 1 1 100% } }
fieldset { min-width: 0 }
.scrollx { overflow-x: auto; max-width: 100% }
fieldset { min-width: 0 }
table.cost.cmp th:first-child,
table.cost.cmp td:first-child {
  position: sticky; left: 0; z-index: 1;
  background: var(--card);
  box-shadow: 1px 0 0 var(--line);
}
table.cost.cmp th:first-child { background: var(--head-bg); }
table.cost.cmp tr.total td:first-child { background: var(--bg); }
table.cost.cmp td + td, table.cost.cmp th + th { border-left: 1px solid var(--line); }
table.cost.cmp tr:hover td:first-child { background: var(--hover); }
.adminrow { display: flex; gap: 8px; flex-wrap: wrap }
.pill {
  display: inline-block; font-size: 13px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid transparent;
}
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe3c9 }
.pill.no { background: var(--wait-bg); color: var(--wait); border-color: #f0d9a8 }
.note { color: var(--muted); font-size: 13px; line-height: 1.7 }
.note code { background: #eef2f7; padding: 1px 5px; border-radius: 6px; font-size: 12.5px }
.adminstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px }
.adminstats > div {
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.adminstats b { display: block; font-size: 24px; color: var(--navy); line-height: 1.2 }
.adminstats span { font-size: 12.5px; color: var(--muted) }
.adminlist { margin: 14px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.9 }
#params, #fixed, #variable, #channel, #pane, #rates { overflow-x: auto }
@media (max-width: 640px) {
  table.cost { font-size: 13.5px }
  table.cost td { padding: 5px 7px }
  table.cost th { padding: 10px 7px 6px }
  table.cost input { padding: 7px 8px }
  .bench { margin-top: 2px }
}
.tabs button.addround {
  border-style: dashed; color: var(--orange); border-color: var(--orange);
  background: var(--orange-soft);
}
.tabs button.addround:disabled { opacity: .5 }
.tabs button .x { margin-left: 7px; opacity: .55; font-size: 12px; padding: 0 2px }
.tabs button .x:hover { opacity: 1; color: var(--no) }
.helptabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap }
.helptabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 13px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted);
}
.helptabs button.on { background: var(--navy); color: #fff; border-color: var(--navy) }
.benchpick input[type="text"] {
  flex: 2 1 220px; width: 100%; min-width: 0; padding: 8px 10px; font: inherit; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.zlist { max-height: 210px; overflow-y: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff }
.zlist:empty { display: none }
.zitem {
  display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line);
  background: none; padding: 9px 12px; font: inherit; cursor: pointer; color: var(--ink);
}
.zitem:last-child { border-bottom: 0 }
.zitem:hover { background: var(--orange-soft) }
.zitem.on { background: var(--navy); color: #fff }
.zitem .zn { display: block; font-size: 14px }
.zitem .zm { display: block; font-size: 12px; color: var(--muted) }
.zitem.on .zm { color: #cdd8e6 }
.zlist .note { padding: 10px 12px }
table.moq { border-collapse: collapse; margin: 8px 0; font-size: 13px }
table.moq td { padding: 3px 14px 3px 0; color: var(--muted) }
table.moq td.n { text-align: right; font-variant-numeric: tabular-nums }
table.moq tr.on td { color: var(--navy); font-weight: 600 }
table.moq tr.on td:first-child::after { content: " ←"; color: var(--orange) }
.pkgspec { border-top: 1px solid var(--line); background: #f7f9fc; padding: 12px 16px 14px }
.speclist { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 14px; margin: 0; font-size: 13.5px }
.speclist dt { color: var(--muted); white-space: nowrap }
.speclist dd { margin: 0; color: var(--ink) }
@media (max-width: 640px) { .speclist { grid-template-columns: minmax(0, 1fr); gap: 0 }
  .speclist dt { margin-top: 8px; font-size: 12px }
}
.chip-opt .i.pic { display: inline-flex; align-items: center; width: 22px; height: 22px; margin-right: 2px }
.chip-opt .i.pic svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.chip-opt .i.pic svg circle, .chip-opt .i.pic svg ellipse, .chip-opt .i.pic svg rect { fill: none }
.mic {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 6px 13px 6px 10px; font: inherit; font-size: 13px;
}
.mic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.mic:hover { border-color: var(--orange); color: var(--orange) }
.mic.rec { background: var(--orange); border-color: var(--orange); color: var(--navy) }
.mic.rec svg { animation: micpulse 1.1s ease-in-out infinite }
@keyframes micpulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .mic.rec svg { animation: none } }
.micbar { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap }
.micbar .hint { font-size: 12.5px; color: var(--muted) }
.micwrap { position: relative }
.micwrap textarea { width: 100% }
.micwrap .mic { margin-top: 6px }
.worklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 8px }
.workcard {
  display: flex; align-items: flex-start; gap: 14px; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; font: inherit; color: inherit; box-shadow: var(--shadow);
}
.workcard:hover { border-color: var(--orange) }
.workcard .ic { font-size: 26px; line-height: 1 }
.workcard .tx { flex: 1; min-width: 0 }
.workcard .tx b { display: block; font-size: 16px }
.workcard .sb { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.55 }
.workcard .mt { display: block; font-size: 12px; color: var(--orange); margin-top: 7px }
.workcard .go { color: var(--muted); font-size: 18px }
.crumb { margin: 16px 0 6px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.crumb a { color: var(--muted); text-decoration: none }
.crumb a:hover { color: var(--orange) }
.crumb b { color: var(--ink) }
.crumb .sep { opacity: .5 }
.pactions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px }
.pactions .btn { text-decoration: none }
.kids { margin-top: 30px }
.sechead { font-size: 17px; margin: 0 0 10px; font-weight: 700 }
.sechead span { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px }
.kidrow {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.kidrow:last-child { border-bottom: 0 }
.kidrow:hover { background: var(--orange-soft) }
.kidrow .nm { flex: 1; min-width: 0; font-size: 14.5px }
.kidrow .pg { font-size: 12.5px; color: var(--muted); white-space: nowrap }
.pickbox { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px }
.pickbox:empty { display: none }
.pickrow {
  display: flex; width: 100%; gap: 12px; align-items: center; text-align: left; cursor: pointer;
  border: 0; border-bottom: 1px solid var(--line); background: none; padding: 11px 14px; font: inherit; color: inherit;
}
.pickrow:last-child { border-bottom: 0 }
.pickrow:hover { background: var(--orange-soft) }
.pickrow .nm { flex: 1; min-width: 0 }
.pickrow .pg { font-size: 12px; color: var(--muted) }
.pickhead {
  padding: 9px 14px 5px; font-size: 12.5px; font-weight: 600; color: var(--navy);
  background: #f7f9fc; border-bottom: 1px solid var(--line);
}
.pickhead .u { font-weight: 400; font-size: 11.5px }
.pickrow input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--orange) }
.pickrow.extrow { background: repeating-linear-gradient(135deg, #fff, #fff 8px, #fbfcfe 8px, #fbfcfe 16px) }
.pickrow.extrow .zm { color: var(--orange) }
.pickrow > span { flex: 1; min-width: 0 }
.linkbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin: 12px 0 0;
}
.linkbar.ok { background: #eef2f7; color: var(--muted) }
.linkbar.ok b { color: var(--ink) }
.linkbar.warn { background: var(--wait-bg); color: var(--wait) }
.linkbar.good { background: var(--ok-bg); color: var(--ok) }
.linkbar.good b { color: var(--ok) }
.linkbar .lk {
  border: 1px solid currentColor; background: none; color: inherit; cursor: pointer;
  border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 12.5px; opacity: .75;
}
.linkbar .lk:hover { opacity: 1 }
.linkbar .lk.go { background: var(--orange); border-color: var(--orange); color: var(--navy); opacity: 1; padding: 5px 14px }
.loosehead {
  padding: 12px 16px 6px; font-size: 12.5px; color: var(--wait);
  background: var(--wait-bg); border-top: 1px solid var(--line);
}
.chip-opt .i.photo { display: inline-flex; width: 26px; height: 26px; margin: -2px 2px -2px -4px }
.chip-opt .i.photo img { width: 26px; height: 26px; object-fit: cover; border-radius: 6px; display: block }
.chip-opt.on .i.photo img { box-shadow: 0 0 0 1px rgba(255,255,255,.5) }
.imgbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 18px }
.imgbar select, .imgbar input[type="text"] {
  padding: 8px 11px; font: inherit; font-size: 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); min-width: 0;
}
.imgbar input[type="text"] { flex: 1 1 200px }
.imgbar .chk { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted) }
.imgbar .cnt { font-size: 13px; color: var(--muted) }
.imggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 12px; margin-bottom: 24px }
.imgcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; display: flex; flex-direction: column; gap: 8px; text-align: center;
}
.imgcard .pv {
  aspect-ratio: 1; background: #f4f7fa; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.imgcard .pv img { width: 100%; height: 100%; object-fit: cover; display: block }
.imgcard .pv .dw svg { width: 42px; height: 42px; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .55 }
.imgcard .pv .em { font-size: 30px; opacity: .55 }
.imgcard .lb { font-size: 12.5px; line-height: 1.4; min-height: 2.8em; color: var(--ink) }
.imgcard .ac { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap }
.imgcard .mini {
  border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
  border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12px;
}
.imgcard .mini:hover { border-color: var(--orange); color: var(--orange) }
.imgcard .mini.del { color: var(--no) }
.imgcard .mini:disabled { opacity: .5; cursor: default }
.chips.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px }
.chips.cards .chip-opt {
  flex-direction: column; align-items: stretch; gap: 0; text-align: center;
  border-radius: 12px; padding: 8px 8px 10px; white-space: normal; line-height: 1.35;
}
.chips.cards .chip-opt .i {
  width: 100%; height: auto; aspect-ratio: 1 / 1; margin: 0 0 7px;
  border-radius: 10px; overflow: hidden; background: #f4f7fa;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.chips.cards .chip-opt .i.photo img { width: 100%; height: 100%; border-radius: 0 }
.chips.cards .chip-opt .i.pic svg { width: 46px; height: 46px }
.chips.cards .chip-opt > span:last-child { font-size: 12.5px; display: block }
.chips.cards .chip-opt.on .i { background: rgba(255,255,255,.16) }
@media (max-width: 420px) { .chips.cards { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px } }
.btn-quiet {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px;
}
.btn-quiet:hover { color: var(--no) }
.railhead { font-size: 12px; color: var(--muted); padding: 2px 4px 8px; letter-spacing: .02em }
@media (max-width: 820px) {
  .rail { align-items: center }
  .railhead { padding: 0 10px 0 4px; white-space: nowrap; flex: none; border-right: 1px solid var(--line); margin-right: 4px }
}
.tabs, .rail { scrollbar-width: thin }
.tabwrap { position: relative }
.tabwrap::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 10px; width: 34px; pointer-events: none;
  background: linear-gradient(to right, rgba(245,247,250,0), var(--bg));
}
@media (max-width: 560px) {
  .top .inner { gap: 6px }
  .top .tag { display: none }
  .top .btn-plain { padding: 6px 9px; font-size: 13px }
  .top .who { display: none }
}
@media (max-width: 560px) {
  .crumb { margin: 12px 0 2px; font-size: 12.5px }
  h1.page { font-size: 26px; margin-top: 6px }
  .lead { margin-top: 2px; font-size: 14px }
  .linkbar { margin-top: 10px; padding: 8px 12px; font-size: 13px }
  .pactions { gap: 8px; margin: 10px 0 14px }
  .pactions .btn { padding: 9px 14px; font-size: 14px }
  .pactions .btn-quiet { padding: 6px 2px }
  .tabs { padding-bottom: 8px }
  .tabs button { padding: 7px 13px; font-size: 13.5px }
}
#doccode:empty { display: none }
.doccode {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: .06em; cursor: pointer;
  border: 1px dashed var(--line); background: #fff; color: var(--muted);
  border-radius: 6px; padding: 4px 10px; margin-bottom: 8px;
}
.doccode:hover { border-color: var(--orange); color: var(--orange) }
.doccode.copied { border-style: solid; border-color: var(--ok); color: var(--ok) }
.synthwrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.mic.synth { border-color: var(--orange); color: var(--orange) }
.mic.synth.ghost { border-color: var(--line); color: var(--muted) }
.mic.synth:hover { background: var(--orange-soft) }
.mic.synth:disabled { opacity: .6; cursor: default }
.synthwrap .hint { font-size: 12.5px; color: var(--muted); flex: 1 1 100% }
#variable table.cost td, #fixed table.cost td { vertical-align: top; padding-top: 9px; padding-bottom: 9px }
#variable table.cost td > .note, #fixed table.cost td > .note { margin-top: 4px }
#variable table.cost input.num, #fixed table.cost input.num { min-width: 82px }
#variable table.cost input, #variable table.cost select,
#fixed table.cost input, #fixed table.cost select { height: 38px; box-sizing: border-box }
#variable table.cost td.calc, #fixed table.cost td.calc { padding-top: 17px }
#variable table.cost tr.total td, #fixed table.cost tr.total td { vertical-align: middle; padding-top: 10px }
.mixbar {
  display: flex; height: 14px; border-radius: 7px; overflow: hidden;
  background: var(--line); margin: 6px 0 8px;
}
.mixbar span { display: block; height: 100% }
.mixlegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px }
.mixlegend span { display: flex; align-items: center; gap: 5px; white-space: nowrap }
.mixlegend i { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto }
.mixlegend .u { font-size: 11.5px }
.bomic {
  display: inline-flex; width: 26px; height: 26px; margin-right: 7px; vertical-align: middle;
  align-items: center; justify-content: center; flex: 0 0 auto;
  border-radius: 8px; background: var(--orange-soft); color: var(--orange);
}
.bomic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round }
td:has(> .bomic) { display: flex; flex-wrap: wrap; align-items: center }
td:has(> .bomic) input[type="text"] { flex: 1 1 90px; width: auto; min-width: 90px }
tr.twoway { background: linear-gradient(90deg, var(--orange-soft), transparent 70%) }
tr.twoway td:first-child { box-shadow: inset 3px 0 0 var(--orange) }
tr.twoway input.num { border-color: var(--orange); background: #fff }
tr.twoway input.num:focus { outline: 2px solid var(--orange); outline-offset: 1px }
tr.twowaynote td {
  padding: 2px 16px 10px; font-size: 12px; color: var(--orange);
  background: linear-gradient(90deg, var(--orange-soft), transparent 70%); border: 0;
}
tr.constrow td:first-child { font-weight: 600 }
tr.constrow { background: #f7f9fc }
.editedtag {
  font-size: 11px; color: var(--orange); background: var(--orange-soft);
  border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.wasval { margin-top: 3px }
.svcpick.resetp { margin: 4px 0 0 6px; white-space: nowrap }
.svcpick {
  display: inline-block; margin-top: 5px; border: 1px dashed var(--line); background: none;
  color: var(--muted); cursor: pointer; border-radius: 999px; padding: 2px 10px;
  font: inherit; font-size: 11.5px;
}
.svcpick:hover { border-color: var(--orange); color: var(--orange) }
.pickrow .zm { font-size: 11.5px; color: var(--muted); margin-top: 2px }
.byco { font-size: 10.5px; letter-spacing: .05em; border-radius: 6px; padding: 1px 6px; margin-right: 5px; vertical-align: 1px }
.byco.TIBD { background: var(--navy); color: #fff }
.byco.VISBIO { background: var(--orange-soft); color: #A8420F }
.card.warn { border-color: var(--orange); background: var(--orange-soft); }
.qmark {
  border: 0; background: none; cursor: pointer; padding: 0 2px; margin-left: 5px;
  font: inherit; font-size: 13px; line-height: 1; color: var(--muted); vertical-align: middle;
}
.qmark:hover, .qmark[aria-expanded="true"] { color: var(--orange) }
.qmark:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 999px }
.explain {
  position: absolute; z-index: 60; max-width: 340px; width: max-content;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px -14px rgba(15,35,53,.42), 0 2px 6px rgba(15,35,53,.08);
  padding: 0; overflow: hidden;
}
.explain h4 {
  margin: 0; font-size: 14px; color: #fff; font-weight: 600;
  background: var(--navy); padding: 11px 16px 10px; position: relative;
}
.explain h4::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 34%;
  background: var(--orange-hot); opacity: .18;
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
}
.explain p { margin: 0; padding: 12px 16px 0; font-size: 13.5px; line-height: 1.7; color: var(--ink) }
.explain .calcline {
  background: var(--orange-soft, #FDEDE4); border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0; padding: 9px 13px; font-size: 12.5px;
  line-height: 1.6; color: #7A3008; margin: 11px 16px 0;
}
.explain .calcline b { color: #A8420F; }
.explain .why {
  color: var(--muted); font-size: 12.5px; line-height: 1.65;
  margin: 11px 0 0; padding: 11px 16px 14px; border-top: 1px solid var(--line);
  background: var(--field);
}
.explain p:last-child { padding-bottom: 14px }
.explain .calcline:last-child { margin-bottom: 14px }
@media (max-width: 560px) { .explain { max-width: min(320px, calc(100vw - 28px)) } }
.savebar {
  position: sticky; bottom: 0; z-index: 10; margin-top: 16px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.savebar .inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.savebar .sp { flex: 1 }
.savebar .st { color: var(--muted); font-size: 13px; min-width: 120px }
.savebar .st.ok { color: var(--ok) }
.cmp td.lot-best, .cmp th.lot-best { background: var(--orange-soft); }
.cmp th.lot-best { color: var(--orange); border-bottom: 2px solid var(--orange); }
.cmp td.lot-best.calc b { color: var(--orange); }
.cmp tr.total td.lot-best { background: #FBE3D4; }
.cmp td.lot-gap, .cmp th.lot-gap { opacity: .5; }
.cmp th.lot-gap .note { color: var(--no); opacity: 1 }
.pagehead { display: flex; align-items: center; gap: 22px; }
.pagehead > div { flex: 1 1 auto; min-width: 0; }
.pagehead .pageart { width: 230px; max-width: 32%; height: auto; flex: none; }
@media (max-width: 760px) { .pagehead .pageart { display: none; } }
.empty .art { width: 260px; max-width: 70%; height: auto; display: block; margin: 0 auto 10px; }
.tabs button .chi { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
.tabs button.on .chi { filter: brightness(0) invert(1); }
.share {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.share.mine { background: #eaeff6; color: #4b5b72; border-color: #d3dce8; }
.share.team { background: var(--orange-soft); color: #b4491a; border-color: #f6cdb4; }
.share .who2 { font-weight: 400; opacity: .8; }
.share.sm { font-size: 11.5px; padding: 1px 8px; }
.sharenote { font-size: 12.5px; color: var(--muted); }
#sharebar { margin: 10px 0 4px; }
.daymark {
  font-size: 12.5px; color: var(--muted); font-weight: 600;
  padding: 16px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px;
}
.daymark:first-child { padding-top: 0; }
.act {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: baseline;
  padding: 9px 0; border-top: 1px solid #eef2f7;
}
.act:first-of-type { border-top: 0; }
.act .t { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.act .d { font-size: 14px; line-height: 1.6; }
.act .d b { color: var(--navy); }
.act .d a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.act .d a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.act .verb { color: var(--muted); }
.act .badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--bg); color: var(--muted); white-space: nowrap;
  font-family: ui-monospace, monospace; letter-spacing: .03em;
}
.act .badge.new { background: var(--ok-bg); color: var(--ok); font-family: inherit; letter-spacing: 0; }
@media (max-width: 560px) {
  .act { grid-template-columns: 54px 1fr; }
  .act .badge { grid-column: 2; justify-self: start; }
}
.summary .qmark { color: #8fa0b6; }
.summary .qmark:hover, .summary .qmark[aria-expanded="true"] { color: #ffb27a; }
.summary .linkbar { background: rgba(255,255,255,.1); color: #dbe4ef; }
.summary .linkbar b { color: #fff; }
.summary .linkbar.good { background: rgba(107,224,148,.16); color: #b7f2cb; }
.summary .linkbar.good b { color: #d8ffe6; }
.summary .linkbar.warn { background: rgba(255,196,90,.16); color: #ffdda3; }
.summary .hintline.warn, .summary .warn { color: #ff9c8a; }
.summary .hintline.ok, .summary .ok { color: #8fe3ac; }
.pagehead {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  border-radius: 16px; padding: 22px 26px; margin-bottom: 18px;
}
.pagehead::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 34%;
  background: var(--orange-hot); clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .16; pointer-events: none;
}
.pagehead > div { position: relative; z-index: 1; }
.pagehead h1.page { color: #fff; margin-top: 0; }
.pagehead h1.page em { font-style: normal; color: var(--orange); }
.pagehead .lead { color: #b9c6d6; }
.pagehead .lead a { color: #ffb27a; }
.pagehead .pageart {
  position: relative; z-index: 1;
  background: #fff; border-radius: 14px; padding: 10px;
}
table.cost.cmp:not(:has(input)) th { background: var(--navy); color: #fff; }
table.cost.cmp:not(:has(input)) th:first-child { background: var(--navy); }
table.cost.cmp:not(:has(input)) th.lot-best { background: var(--orange-hot); color: var(--navy); border-bottom-color: #fff; }
table.cost.cmp:not(:has(input)) th .note { color: #b9c6d6; }
table.cost.cmp:not(:has(input)) th.lot-best .note { color: #ffe2ce; }
.btn.gold { background: var(--orange-hot); color: var(--navy); font-weight: 600; }
.btn.gold:hover { background: #FB8A3C; }
.btn.ghost { border-color: #c3d0e2; color: var(--navy); font-weight: 600; }
.btn.ghost:hover { background: #eef2f8; border-color: var(--navy); }
.pagehead.noart::after { width: 22%; }
#fbbtn .c {
  display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px;
  background: var(--orange-hot); color: var(--navy); border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 8px 28px rgba(15,35,53,.28); max-width: 92vw;
}
.cogline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.cogline .u { font-weight: 500; }
.cogin {
  width: 132px; height: 38px; text-align: right; font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--orange); border-radius: 10px; padding: 0 10px;
  background: #fff; color: var(--navy);
}
.cogin::placeholder { font-weight: 500; color: var(--muted); }
.cogin:focus { outline: none; box-shadow: 0 0 0 3px rgba(240,110,40,.18); }
@media (max-width: 560px) { .cogin { width: 100%; } }
.pickrow .zm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note.warn { color: var(--no); font-weight: 600; }
.note.pending { color: var(--wait); font-weight: 600; }
td .ok { color: var(--ok); font-weight: 600; font-size: 13.5px; }
.modal input[type=date], .modal input[type=number], .modal input[type=search] {
  width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-size: 15px;
  border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); color: var(--ink);
}
.modal input[type=date]:focus, .modal input[type=number]:focus, .modal input[type=search]:focus {
  outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); background: #fff;
}
.modal .mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 14px; }
.modal .mrow { display: block; }
.modal .mrow .ml { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.modal .mrow .mh { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 3px; }
.modal .mhead { font-size: 14px; margin: 20px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.modal .mrow textarea { min-height: 72px; }
.modal .mact { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.modal .mact .sp { flex: 1; }
@media (max-width: 640px) { table.cost.matlist { min-width: 860px } }
table.cost.matlist td { vertical-align: top; padding-top: 9px; padding-bottom: 9px }
table.cost.matlist .sup { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.modal .sitelinks { display: flex; flex-wrap: wrap; gap: 8px; }
.modal .docslots { display: grid; gap: 10px; }
.modal .docslot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; align-items: start; }
.modal .docslot .dl b { display: block; font-size: 14px; }
.modal .docslot .dl .note { display: block; font-size: 12.5px; line-height: 1.45; }
.modal .docslot .df { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.modal .dfile { display: flex; gap: 8px; align-items: center; max-width: 100%; }
.modal .dfile a { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .modal .docslot { grid-template-columns: 1fr; } }
input.srch {
  padding: 10px 12px; font: inherit; font-size: 15px;
  border: 1px solid var(--field-line); border-radius: 10px;
  background: var(--field); color: var(--ink);
}
input.srch:focus {
  outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); background: #fff;
}
#bulkreport { margin-top: 12px }
.bulkline { font-size: 14px; line-height: 1.6 }
.bulkbad { margin-top: 8px; font-size: 13px; line-height: 1.6; color: #9a3412; background: #fff5ed; border: 1px solid #f6d7bd; border-radius: 8px; padding: 8px 10px }
.bfcard { border-color: var(--orange); }
.bfhead { font-weight: 600; margin-bottom: 8px; }
.bfline { margin: 0 0 6px; font-size: 15px; }
.bfcell { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 9px; background: #fff; }
.bfname { font-weight: 600; margin-bottom: 6px; }
.bfname span { font-weight: 400; color: var(--muted); font-size: 13px; }
.bfrow { display: flex; gap: 10px; font-size: 13.5px; padding: 3px 0; align-items: baseline; }
.bfrow .k { flex: 0 0 104px; color: var(--muted); }
.bfrow i { color: var(--muted); font-style: normal; }
.bfwarn { margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: var(--orange-soft, #fff4ea); border: 1px solid var(--orange); }
.bfwarn .k { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.bfwarn p { margin: 2px 0; font-size: 12.5px; }
@media (max-width: 640px) { .bfrow { display: block; } .bfrow .k { display: block; } }
.modal:focus { outline: none; }
