/* Green Marine Fleet — brand bar + tab strip over one working column; the assistant gets a context rail on desktop. */
:root{
  --bg:#F2F5F2; --surface:#FFFFFF; --sunk:#E9EFEB; --ink:#10241F; --muted:#56685F; --line:#D8E1DB;
  --brand:#0F3128; --brand-2:#17402F; --on-brand:#EEF4F0; --on-brand-muted:#A9C2B6;
  --accent:#12805C; --accent-ink:#FFFFFF; --accent-soft:#DDEFE5; --navy:#1E3150; --on-navy:#FFFFFF;
  --good:#12805C; --warn:#9A5B0B; --warn-soft:#FBEBD2; --crit:#B42318; --crit-soft:#FADBD7; --gold:#F3C969; --on-gold:#2A1E05;
  --display:"Manrope","Segoe UI",system-ui,sans-serif; --body:"DM Sans","Segoe UI",system-ui,sans-serif; --r:10px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0E1F1A; --surface:#14302A; --sunk:#10271F; --ink:#E6EFEA; --muted:#9DB3A9; --line:#24463B;
  --brand:#0A231D; --brand-2:#123A30; --on-brand:#EEF4F0; --on-brand-muted:#8FAE9F;
  --accent:#4FD49A; --accent-ink:#0A231D; --accent-soft:#1B4537; --navy:#A9C0E4; --on-navy:#0E1F1A;
  --good:#4FD49A; --warn:#F0B864; --warn-soft:#3E3018; --crit:#FF8A7E; --crit-soft:#4A2320; color-scheme:dark}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.5}
h1,h2,h3{font-family:var(--display);text-wrap:balance;margin:0;line-height:1.2}
h1{font-size:26px;font-weight:800} h2{font-size:22px;font-weight:800} h3{font-size:16px;font-weight:700}
p{margin:0}
button{font:inherit;color:inherit;cursor:pointer}
a{color:var(--accent)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,tr:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
input,select,textarea{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px 12px;width:100%;min-height:44px}
textarea{min-height:72px;resize:vertical}
input[type=checkbox]{width:auto;min-height:0;width:20px;height:20px;flex:none;accent-color:var(--accent)}
[hidden]{display:none!important}
.wrap{max-width:1160px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.top{position:sticky;top:0;z-index:20;background:var(--brand);color:var(--on-brand);padding-top:env(safe-area-inset-top,0px)}
@media (max-width:720px){.top{position:static}.mark{flex-basis:100%}.topbtns .btn{flex:1}}
.top .wrap{display:flex;align-items:center;gap:10px;padding-block:7px;flex-wrap:wrap}
.mark{display:flex;align-items:center;gap:12px;margin-right:auto;min-width:0}
.brandtext{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.brandtext b{font-family:var(--display);font-weight:800;font-size:18px}
.brandtext span{font-family:var(--display);font-weight:600;font-size:13px;color:var(--on-brand-muted);text-transform:uppercase;letter-spacing:.12em}
.mark.customer .brandtext{flex-direction:column;align-items:flex-start;gap:0}
.mark.customer .brandtext b{font-size:17px;line-height:1.15}
.mark.customer .brandtext span{font-size:11px;text-transform:none;letter-spacing:.02em}
.logo{height:34px;max-width:200px;object-fit:contain;border-radius:6px;display:block}
.logo.plate{background:#fff;padding:4px 6px}
.mark.has-logo .brandtext b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mark.has-logo .brandtext span{font-size:12px;line-height:1.3;max-width:11.5em}
.top .wrap{min-width:0}
.acct{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}
.acct{font-size:13px;color:var(--on-brand-muted)}
.acct strong{color:var(--on-brand);font-weight:600}
.acct button{background:none;border:0;color:var(--on-brand-muted);text-decoration:underline;padding:0 0 0 6px;font-size:13px}
.topbtns{display:flex;gap:8px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:9px 14px;font-weight:600;font-size:14px;min-height:42px;text-decoration:none;color:var(--ink)}
.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn.urgent{background:var(--crit);color:#fff;border-color:var(--crit)}
.btn.ghost-on-brand{background:transparent;color:var(--on-brand);border-color:#3A6656}
.btn.call{background:var(--gold);color:var(--on-gold);border-color:var(--gold)}
.btn.small{min-height:34px;padding:5px 11px;font-size:13px}
.btn:disabled{opacity:.5;cursor:default}
.linkbtn{background:none;border:0;color:var(--accent);font-weight:600;padding:0;font-size:inherit;text-align:left}
.tabs{background:var(--brand-2)}
.navrow{display:flex;align-items:center;gap:10px}
.tabsrow{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}
.navrow .topbtns .btn{min-height:30px;padding:3px 12px;font-size:13px}
@media (max-width:720px){.navrow{flex-wrap:wrap}.navrow .topbtns{flex:1 1 100%;padding-bottom:8px}}
.tabs button{background:none;border:0;color:var(--on-brand-muted);padding:8px 12px;font-weight:600;font-size:14px;border-bottom:3px solid transparent;white-space:nowrap}
.tabs button:hover{color:var(--on-brand)}
.tabs button[aria-current="page"]{color:var(--on-brand);border-bottom-color:#4FD49A}
main .wrap{padding-block:22px 48px}
.pad{padding:24px 0}
.grid-assist{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
@media (max-width:880px){.grid-assist{grid-template-columns:minmax(0,1fr)}}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.chat{display:flex;flex-direction:column;min-height:60vh}
.chatlog{flex:1;display:flex;flex-direction:column;gap:16px;padding:18px 14px}
.msg,.typing{scroll-margin-bottom:200px}
.msg{max-width:min(660px,100%);min-width:0}
.msg.me{align-self:flex-end;background:var(--navy);color:var(--on-navy);padding:9px 14px;border-radius:14px 14px 4px 14px;white-space:pre-wrap}
.msg.ai{align-self:flex-start;display:flex;flex-direction:column;gap:10px;width:100%;max-width:min(980px,100%)}
.who{font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.body p+p,.body p+ul,.body ul+p{margin-top:8px}
.body ul{margin:6px 0 0;padding-left:20px}
.src{display:flex;flex-wrap:wrap;gap:6px;font-size:12px;color:var(--muted);align-items:center}
.src span{background:var(--sunk);border:1px solid var(--line);border-radius:999px;padding:2px 9px}
.thumbs{display:flex;gap:4px;margin-left:auto}
.thumbs button{background:none;border:1px solid var(--line);border-radius:6px;padding:1px 8px;font-size:12px;color:var(--muted)}
.thumbs button[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1px solid var(--accent);color:var(--accent);background:transparent;border-radius:999px;padding:7px 13px;font-size:13.5px;font-weight:600;min-height:36px}
.chip:hover{background:var(--accent-soft)}
.chip.on{background:var(--accent);color:var(--accent-ink)}
.chip.quiet{border-color:var(--line);color:var(--ink)}
.chip.quiet.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.chip[disabled]{opacity:.45;cursor:default}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px;display:flex;flex-direction:column;gap:12px}
.card.confirm{border:2px solid var(--accent)}
.card.done{border-color:var(--line);background:var(--sunk)}
.label{font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.rows{display:flex;flex-direction:column}
.row{display:flex;gap:12px;align-items:center;padding:9px 0;border-top:1px solid var(--line)}
.row:first-child{border-top:0}
.grow{flex:1;min-width:0}
.row small,.sm{display:block;color:var(--muted);font-size:12.5px}
.qty{display:flex;align-items:center;gap:6px}
.qty button{width:32px;height:32px;border-radius:6px;border:1px solid var(--line);background:var(--sunk);padding:0}
.qty output{min-width:24px;text-align:center;font-variant-numeric:tabular-nums}
.num{font-variant-numeric:tabular-nums}
.pill{display:inline-block;font-size:12px;font-weight:600;border-radius:999px;padding:2px 9px;white-space:nowrap}
.pill.good{background:var(--accent-soft);color:var(--good)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.crit{background:var(--crit-soft);color:var(--crit)}
.pill.info{background:var(--sunk);color:var(--muted);border:1px solid var(--line)}
.pill.uscg{background:var(--navy);color:var(--on-navy)}
.steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.safety{border-left:4px solid var(--crit);background:var(--crit-soft);padding:9px 12px;border-radius:6px;font-size:14px}
.notice{border-radius:8px;padding:10px 12px;background:var(--warn-soft);color:var(--warn);font-size:14px}
.notice.err{background:var(--crit-soft);color:var(--crit)}
.composer{position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));border-radius:0 0 var(--r) var(--r);display:flex;flex-direction:column;gap:10px}
.composer form,.inline{display:flex;gap:8px}
.typing{color:var(--muted);font-size:13px}
.rail{display:flex;flex-direction:column;gap:14px}
.rail .panel{padding:14px;display:flex;flex-direction:column;gap:10px}
.mini{display:flex;justify-content:space-between;gap:8px;font-size:14px}
.kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0 22px}
@media (max-width:820px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;text-align:left}
.kpi b{display:block;font-family:var(--display);font-size:26px;font-weight:800;font-variant-numeric:tabular-nums}
.kpi span{font-size:13px;color:var(--muted)}
.kpi.alert b{color:var(--warn)}
.vessels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width:720px){.vessels{grid-template-columns:minmax(0,1fr)}}
.vcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:10px}
.meta{font-size:13px;color:var(--muted)}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:13px}
.facts b{display:block;font-size:14px;color:var(--ink)}
.facts .uscg b{color:var(--navy)}
.ask{background:var(--accent-soft);border-radius:8px;padding:10px 12px;font-size:13.5px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.sub{color:var(--muted);font-size:14px;margin-top:4px}
.tablewrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
table{border-collapse:collapse;width:100%;font-size:14px}
th{font-size:11.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);text-align:left;font-weight:600;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top}
tr:last-child td{border-bottom:0}
tr.click{cursor:pointer}
tr.click:hover td{background:var(--sunk)}
.section{display:flex;flex-direction:column;gap:12px;margin-top:24px}
.section.first{margin-top:12px}
.back{background:none;border:0;color:var(--accent);font-weight:600;padding:0;margin-bottom:10px}
.overlay{position:fixed;inset:0;background:rgba(6,18,14,.55);z-index:40;display:flex;justify-content:flex-end}
.sheet{background:var(--bg);width:min(520px,100%);height:100%;overflow-y:auto;padding:calc(20px + env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) 18px;display:flex;flex-direction:column;gap:16px}
.sheet .x{align-self:flex-end;background:none;border:0;font-size:14px;font-weight:600;color:var(--muted);padding:6px}
.contactline{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.phone{font-family:var(--display);font-weight:700;font-size:18px;user-select:all}
.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.field>span.opt{font-weight:400;color:var(--muted)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:480px){.two{grid-template-columns:1fr}}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(20px + env(safe-area-inset-bottom,0px));background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:8px;font-size:14px;z-index:60;max-width:calc(100% - 32px)}
.empty{color:var(--muted);font-size:14px}
.tag{font-size:11.5px;color:var(--muted);border:1px dashed var(--line);border-radius:999px;padding:1px 8px}
.foot{margin-top:28px;font-size:13px;color:var(--muted);display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.photos{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.photos figure{margin:0;position:relative;width:72px;height:72px;border-radius:8px;overflow:hidden;border:1px solid var(--line)}
.photos img{width:100%;height:100%;object-fit:cover;display:block}
.photos figure button{position:absolute;top:2px;right:2px;background:rgba(0,0,0,.6);color:#fff;border:0;border-radius:999px;width:22px;height:22px;font-size:12px;padding:0;line-height:22px}
.filebtn{position:relative;overflow:hidden}
.filebtn input{position:absolute;inset:0;opacity:0;cursor:pointer;min-height:0}
.signin{max-width:440px;margin:40px auto;display:flex;flex-direction:column;gap:16px}
.signin .card{gap:14px}
.list{display:flex;flex-direction:column;gap:10px}
.item{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.item .grow p{font-size:14px}
.att{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:8px;background:var(--surface);border:1px solid var(--line)}
.att.crit{border-left:4px solid var(--crit)} .att.warn{border-left:4px solid var(--warn)}
.att p{flex:1;min-width:0;font-size:14px}
.dot{width:8px;height:8px;border-radius:999px;display:inline-block;background:var(--muted);margin-right:6px}
@media (prefers-reduced-motion:no-preference){.msg{animation:in .25s ease-out}@keyframes in{from{transform:translateY(4px)}to{transform:none}}}

.vstatus{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pill.stacked{background:var(--sunk);color:var(--muted);border:1px dashed var(--line)}
.lines{display:flex;flex-direction:column;gap:6px}
.lines .ln{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) 72px auto;gap:6px;align-items:center}
@media (max-width:560px){.lines .ln{grid-template-columns:minmax(0,1fr) 64px auto}.lines .ln .d{grid-column:1/-1;order:-1}}
.lines .ln input{min-height:38px;padding:7px 9px}
.bulk{display:flex;flex-direction:column;gap:8px;border:1px dashed var(--line);border-radius:8px;padding:10px}
.bulk textarea{min-height:64px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px}

/* Chats (13.2): list of saved chats beside the conversation */
.grid-chat{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;align-items:start}
.chatlist{padding:12px;display:flex;flex-direction:column;gap:6px;position:sticky;top:120px;max-height:calc(100vh - 140px);overflow-y:auto}
.newchat{width:100%;margin-bottom:6px}
.chatrow{display:flex;align-items:stretch;border-radius:8px}
.chatrow.on{background:var(--accent-soft)}
.chatlink{flex:1;min-width:0;text-align:left;background:none;border:0;padding:8px 8px;border-radius:8px;display:flex;flex-direction:column}
.chatlink span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.chatlink small{color:var(--muted);font-size:12px}
.chatlink:hover{background:var(--sunk)}
.chatx{background:none;border:0;color:var(--muted);padding:0 8px;font-size:16px;border-radius:8px;opacity:.6}
.chatx:hover{opacity:1;background:var(--sunk)}
.chatfoot{margin-top:12px;display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--line);padding-top:12px}
.chatbar{display:flex;gap:8px;justify-content:flex-end;padding:10px 14px;border-bottom:1px solid var(--line)}
.mobonly{display:none}
@media (max-width:880px){.grid-chat{grid-template-columns:minmax(0,1fr)}.grid-chat .chatlist{display:none}.mobonly{display:inline-flex}.chatbar{justify-content:space-between}}
/* Top bar search and ask */
.topsearch{position:relative;flex:1 1 360px;max-width:560px;min-width:0}
.topsearch form{display:flex;gap:6px}
.topsearch input{background:var(--brand-2);border-color:#2E5A4B;color:var(--on-brand);min-height:40px}
.topsearch input::placeholder{color:var(--on-brand-muted)}
.topsearch .btn{min-height:40px}
.results{position:absolute;left:0;right:0;top:calc(100% + 6px);background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.25);max-height:min(70vh,560px);overflow-y:auto;z-index:35;padding:6px}
.res{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;background:none;border:0;border-radius:8px;padding:8px 10px}
.res:hover,.res:focus-visible{background:var(--sunk)}
.res small{color:var(--muted);font-size:12px}
.pad-s{padding:6px 10px 2px}
@media (max-width:720px){.topsearch{flex-basis:100%;max-width:none;order:3}}
.vtable{display:flex;flex-direction:column;gap:12px}
.vtable td .meta{margin-top:2px}
.vmore{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
@media (max-width:720px){.vtable th:nth-child(3),.vtable td:nth-child(3),.vtable th:nth-child(n+5),.vtable td:nth-child(n+5){display:none}.vtable td:first-child{min-width:130px}}
.item.hist{width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}
.item.hist:hover{border-color:var(--accent)}
.rep-body{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px solid var(--line);border-top:0;border-radius:0 0 var(--r) var(--r);background:var(--surface)}
.rep-body p{white-space:pre-line;font-size:14px}
.asof{font-size:12.5px;color:var(--muted);margin-top:4px}
.totals{margin-top:10px;text-align:right}.totals p{margin:2px 0}
.item.hist.primary-way{border-color:var(--accent)}
.boardgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.card.board .head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
/* Systems (13.20) */
tr.sysrow th{background:var(--sunk);text-align:left;font-size:13px;font-weight:700;padding:8px 10px;color:var(--ink)}
tr.sysrow.sub th{background:transparent;font-weight:600;padding-left:22px}
tr.sysrow .n{font-weight:400;color:var(--muted)}
label.inline{align-items:center;margin:6px 0}
select.side{width:auto;flex:0 0 auto;max-width:55%}
.vstatus select{width:auto;max-width:100%}
/* Favorites (13.22) */
.pins{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.pincard{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit;color:var(--ink);cursor:pointer;min-height:76px}
.pincard.crit{border-left-color:var(--crit)} .pincard.warn{border-left-color:var(--warn)} .pincard.good{border-left-color:var(--good,#2e8b57)}
.pincard .ico{font-size:15px} .pincard .pt{font-weight:700;font-size:14px;line-height:1.3} .pincard .ps,.pincard .pe{font-size:12px;color:var(--muted)} .pincard .pl{font-size:13px}
.pincard.more{align-items:center;justify-content:center;font-weight:600;color:var(--muted)}
.btn.pin[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
.row .btn.pin{flex:none}
/* Installable app + weak signal (13.23) */
.offline{background:var(--warn-soft);color:var(--warn);border-bottom:1px solid var(--line);padding:8px 16px;font-size:13.5px;font-weight:600;text-align:center}
ol.steps{padding-left:20px;display:grid;gap:8px;font-size:15px}
.card.rep strong{font-size:16px}
/* Request tracking (13.28) */
ol.track{display:flex;list-style:none;padding:0;margin:10px 0 4px;gap:0;overflow-x:auto}
ol.track li{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11.5px;color:var(--muted);text-align:center;position:relative}
ol.track li::before{content:"";position:absolute;top:6px;left:-50%;width:100%;height:2px;background:var(--line);z-index:0}
ol.track li:first-child::before{display:none}
ol.track li.done{color:var(--ink);font-weight:600} ol.track li.done::before{background:var(--accent)}
ol.track .dot{width:14px;height:14px;border-radius:50%;background:var(--surface);border:2px solid var(--line);z-index:1}
ol.track li.done .dot{background:var(--accent);border-color:var(--accent)}
.card.req .head{align-items:flex-start}
ol.track li span:last-child{overflow-wrap:anywhere;line-height:1.2} .section > div > input[type=search]{margin-bottom:10px}
/* Spend (13.30) */
.bars{display:flex;align-items:flex-end;gap:4px;height:160px;padding-top:8px}
.bars .bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px;min-width:0}
.bars .b{display:block;width:100%;background:var(--accent);border-radius:3px 3px 0 0;min-height:1px}
.bars small{font-size:10.5px;color:var(--muted)}
.testbar{background:#F3C969;color:#2A1E05;text-align:center;font-weight:700;font-size:13px;padding:6px 12px;letter-spacing:.03em}
/* Tables: sort + filter (13.36) */
th.sortable{cursor:pointer;user-select:none;white-space:nowrap}
th.sortable::after{content:" ↕";opacity:.35;font-size:11px}
th.sortable[aria-sort=ascending]::after{content:" ↑";opacity:1} th.sortable[aria-sort=descending]::after{content:" ↓";opacity:1}
input.tfilter{margin:0 0 8px;max-width:360px}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 4px}
.filters select,.filters input{width:auto;flex:1 1 180px}

/* 13.40 nameplate camera button in the top search */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.camerabtn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; cursor: pointer; }
.camerabtn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* 13.42 Insights charts. Series: brand accent (validated vs surface) + gray prior period; status hues only with icon + label. */
:root{--viz-cur:#12805C;--viz-pri:#8FA39A;--viz-grid:#E3E9E5;--viz-axis:#56685F;--st-good:#0ca30c;--st-warn:#fab219;--st-crit:#d03b3b;--st-info:#B8C4BE}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--viz-cur:#259F6E;--viz-pri:#C2D2CA;--viz-grid:#24463B;--viz-axis:#9DB3A9;--st-info:#4A6157}}
.insights{display:grid;gap:4px;margin-bottom:8px}
.hero{display:grid;gap:2px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.heroval{font-family:var(--body);font-weight:700;font-size:48px;line-height:1.05;letter-spacing:-.01em}
.slabel{font-size:13px;color:var(--muted)} .ssub{font-size:13px;color:var(--muted)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:10px}
.stat{display:grid;gap:2px;align-content:start;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.sval{font-weight:700;font-size:26px;line-height:1.15}
.spark{width:120px;height:28px;margin-top:4px}.sline{fill:none;stroke:var(--viz-pri);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.sdot{fill:var(--viz-cur);stroke:var(--surface);stroke-width:2}
.chart{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:10px 8px 4px}
.viz{display:block;width:100%;height:auto;overflow:visible}
.vgrid{stroke:var(--viz-grid);stroke-width:1;vector-effect:non-scaling-stroke}
.vaxis{fill:var(--viz-axis);font-size:11px;font-family:var(--body);font-variant-numeric:tabular-nums}
.vbar{fill:var(--viz-cur)} .vprior{fill:none;stroke:var(--viz-pri);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.vcross{stroke:var(--viz-axis);stroke-width:1;vector-effect:non-scaling-stroke}
.vhit{fill:transparent;cursor:default;outline:none} .vhit:focus-visible{stroke:var(--accent);stroke-width:2}
.vtip{position:absolute;z-index:5;pointer-events:none;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:6px 10px;box-shadow:0 4px 14px rgba(0,0,0,.12);font-size:13px;white-space:nowrap}
.vrow{display:flex;align-items:center;gap:6px}.vrow span:last-child{color:var(--muted)}
.vkey{display:inline-block;width:12px;height:2px;border-radius:1px}.vkey.cur{background:var(--viz-cur);height:3px}.vkey.pri{background:var(--viz-pri)}
.vlegend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--muted);margin:4px 0 8px}
.vlegend>span{display:inline-flex;align-items:center;gap:6px}.vlegend strong{color:var(--ink)}
.vsw{display:inline-block;width:12px;height:12px;border-radius:3px}.vsw.cur{background:var(--viz-cur)}
.vline{display:inline-block;width:16px;height:2px;border-radius:1px}.vline.pri{background:var(--viz-pri)}
.vtable{margin-top:6px;font-size:13px}.vtable summary{cursor:pointer;color:var(--muted)}
.hbar{display:flex;gap:2px;height:22px;border-radius:6px;overflow:hidden;background:var(--surface)}.hbar.sm{height:12px;border-radius:4px}
.hseg{flex-basis:0;min-width:3px}.hseg.good{background:var(--st-good)}.hseg.warn{background:var(--st-warn)}.hseg.crit{background:var(--st-crit)}.hseg.info{background:var(--st-info)}
.hicon{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;font-size:11px;font-weight:800;color:#fff}
.hicon.good{background:var(--st-good)}.hicon.warn{background:var(--st-warn);color:#2A1E05}.hicon.crit{background:var(--st-crit)}.hicon.info{background:var(--st-info);color:var(--ink)}
.hrows{display:grid;gap:6px;margin-top:6px}
.hrow,.rrow{display:grid;grid-template-columns:minmax(90px,34%) 1fr auto;align-items:center;gap:10px;background:none;border:0;padding:4px 0;text-align:left;width:100%}
.hrow:hover .hname,.rrow:hover .rname{text-decoration:underline}
.hname,.rname{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hnum,.rval{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.rbars{display:grid;gap:4px}.rtrack{display:block;height:14px}.rbar{display:block;height:14px;max-width:100%;background:var(--viz-cur);border-radius:0 4px 4px 0}
.cal{position:relative;display:grid;gap:2px}
.calrow{display:grid;grid-template-columns:minmax(90px,26%) 1fr;align-items:center;gap:8px}
.calrow .hname{text-align:left;padding:0;font-size:13px;color:var(--ink)}
.cmark{fill:var(--viz-cur);stroke:var(--surface);stroke-width:2}.cmark.soon{fill:var(--st-crit)}
.vkeysvg{width:14px;height:14px;overflow:visible}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:0 16px}
.detailhead{margin:18px 0 6px}
.reloading{opacity:.55;transition:opacity .2s}
@media (max-width:600px){.calrow{grid-template-columns:1fr;gap:0}.calrow .hname:empty{display:none}.calrow .hname{margin-top:6px}}
.approvebar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 0}
.row input.qty{width:76px;flex:none;min-height:40px}

/* 13.49 super admin "View as" bar */
.viewas{background:var(--navy);color:var(--on-navy);font-size:13px}
.viewas .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding-block:5px}
.viewas label{display:inline-flex;align-items:center;gap:6px}
.viewas select{min-height:30px;padding:2px 8px;width:auto;max-width:220px;font-size:13px}
.viewas .sm{color:var(--on-navy);opacity:.85}

/* 13.50 sign-up page */
.joinpage .top .wrap{justify-content:space-between}
.event{font-family:var(--display);font-weight:800;font-size:13px;letter-spacing:.06em;text-transform:uppercase;background:var(--gold);color:var(--on-gold);padding:4px 10px;border-radius:999px}
.joinhero{padding:22px 0 8px;max-width:760px}.joinhero h1{font-size:clamp(24px,4.5vw,36px);font-weight:800;line-height:1.15}
.joinlist{margin:14px 0 0;padding-left:20px;display:grid;gap:6px;color:var(--muted)}
.joincard{max-width:760px;margin:12px 0 40px;padding:20px}.joincard h2{margin-bottom:4px}
.joinform{display:grid;gap:14px;margin-top:14px}.joinform .field{display:grid;gap:6px;margin:0}.joinform .field>span{font-weight:600}
.joinform .two{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media (max-width:620px){.joinform .two{grid-template-columns:1fr}}
.joinform .chip.on,.joinform .chip[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn.big{min-height:56px;font-size:18px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.thanks{text-align:center;padding:40px 20px}.thanks h2{font-size:28px;margin-bottom:10px}.thanks .chips{justify-content:center;margin-top:16px}
.kiosk .joinform input,.kiosk .joinform select,.kiosk .joinform textarea{font-size:18px;min-height:52px}.kiosk .chip{min-height:48px;font-size:16px}

/* 13.52 arrange the vessel page; quotes and orders box */
.arrangebar{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.ablock.moving{border:1px dashed var(--line);border-radius:var(--r);background:var(--surface);margin-top:8px}
.amove{display:flex;align-items:center;gap:8px;padding:10px 12px}.amove strong{flex:1}
.qgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
/* Team at scale (13.55): tabs, filters, one line per person */
.ptabs{margin:10px 0 6px}
.ptabs .chip.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.psum{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:6px 0 8px}
.plist{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);overflow:hidden}
.prow{border-top:1px solid var(--line)}
.prow:first-child{border-top:0}
.prow.open{background:var(--sunk)}
.phead{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1.3fr) minmax(0,1.5fr) minmax(0,1.6fr);gap:10px;align-items:center;width:100%;background:none;border:0;color:var(--ink);text-align:left;padding:10px 14px;font-size:14px;cursor:pointer}
.phead:hover{background:var(--accent-soft)}
.pname{display:flex;flex-direction:column;min-width:0}
.pname b,.pname small,.pwhere,.prole{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pname small,.prole small,.pwhere{color:var(--muted);font-size:12.5px}
.pstat{font-size:12.5px;font-weight:600}
.pstat.good{color:var(--good)}
.pstat.warn{color:var(--warn)}
.pmeta{padding:0 14px;color:var(--muted)}
.pedit{display:flex;flex-direction:column;gap:12px;padding:10px 14px 14px}
.plist .more{margin:10px 14px;align-self:flex-start}
@media (max-width:720px){.phead{grid-template-columns:1fr auto;row-gap:2px}.pwhere{grid-column:1}.prole{grid-column:2;grid-row:1;text-align:right}.pstate{grid-column:2;grid-row:2;text-align:right}}
.pfilters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:8px;margin:8px 0 4px}
.pfilters input,.pfilters select{min-width:0}
.pinvite{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:12px;align-items:start}
.tscroll{overflow-x:auto;max-width:100%}
.tscroll td{vertical-align:top}
@media (max-width:900px){.pfilters{grid-template-columns:1fr 1fr}.pfilters input{grid-column:1/-1}.pinvite{grid-template-columns:minmax(0,1fr)}}
.tscroll .pill{white-space:normal}
/* Home (13.57): How can we help? */
.home{display:flex;flex-direction:column;gap:16px}
.htiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.htile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px;color:var(--ink);min-height:92px;cursor:pointer}
.htile:hover,.htile:focus-visible{border-color:var(--accent);background:var(--accent-soft)}
.htile .hico{font-size:22px;line-height:1;margin-bottom:6px}
.htile b{font-size:15px}
.htile small{color:var(--muted);font-size:12.5px}
.hnow,.hup{display:flex;flex-direction:column;gap:6px}
.hlist{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}
.hlist small{color:var(--muted)}
.hup{border-top:1px solid var(--line);padding-top:12px}
.hurgent{color:var(--crit);font-weight:600}
.hmore{display:flex;flex-direction:column;gap:6px}
@media (max-width:720px){.htiles{grid-template-columns:repeat(2,minmax(0,1fr))}.htile{min-height:84px;padding:12px}}
/* Maintenance history (13.58) */
.mhist .mwho{font-size:12px;color:var(--muted);white-space:nowrap}
.mhist.gm{display:flex;flex-direction:column;gap:2px}
.mhist.gm .mwho{font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.04em}

/* Theme toggle (13.59): Auto follows the phone/computer; Light or Dark sticks for this device. */
:root[data-theme="dark"]{
  --bg:#0E1F1A; --surface:#14302A; --sunk:#10271F; --ink:#E6EFEA; --muted:#9DB3A9; --line:#24463B;
  --brand:#0A231D; --brand-2:#123A30; --on-brand:#EEF4F0; --on-brand-muted:#8FAE9F;
  --accent:#4FD49A; --accent-ink:#0A231D; --accent-soft:#1B4537; --navy:#A9C0E4; --on-navy:#0E1F1A;
  --good:#4FD49A; --warn:#F0B864; --warn-soft:#3E3018; --crit:#FF8A7E; --crit-soft:#4A2320; color-scheme:dark}
:root[data-theme="dark"]{--viz-cur:#259F6E;--viz-pri:#C2D2CA;--viz-grid:#24463B;--viz-axis:#9DB3A9;--st-info:#4A6157}
:root[data-theme="light"]{color-scheme:light}
.themebtn{background:none;border:1px solid var(--on-brand-muted);color:var(--on-brand);border-radius:999px;padding:2px 10px;font-size:12.5px;cursor:pointer}
.acct{display:flex;align-items:center;gap:6px;max-width:340px}
.acct>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.acct .themebtn{text-decoration:none;padding:2px 9px;flex:none}
.acct>button{flex:none}
/* Request a quote (13.60) */
.rfqform{max-width:980px}
.rfqlines input{min-height:38px;padding:6px 8px;font-size:14px}
.rfqlines td{padding:4px}
.rfqlines td:nth-child(4){width:110px}
.rfqlines td:nth-child(5){min-width:340px}.rfqlines td:nth-child(6){width:72px}.rfqlines td:nth-child(7){width:72px}   /* 13.754 the description gets the room */
/* A Green Marine person in the chat (13.61) */
.msg.staff{align-self:flex-start;max-width:min(640px,100%);background:var(--accent-soft);border:1px solid var(--accent);border-radius:14px 14px 14px 4px;padding:10px 14px;display:flex;flex-direction:column;gap:4px}
.msg.staff .who{font-size:12px;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.04em}
.rqbar{display:flex;gap:12px;align-items:center;font-size:13px;color:var(--on-brand-muted)}.rqbar .linkbtn{color:var(--on-brand)}
/* 13.70 Home spotlight (right column) + ⋮⋮⋮ menu */
.hmain{display:flex;flex-direction:column;gap:16px;min-width:0}
.hside{display:flex;flex-direction:column;gap:10px}
@media (min-width:1100px){.home{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:22px;align-items:start}.home .htiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1480px){.home .htiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
.spot{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);overflow:hidden}
.spot-img img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.spot-body{display:flex;flex-direction:column;gap:6px;padding:12px 14px 12px}
.spot-body b{font-size:15px;line-height:1.3}.spot-body p{margin:0}
.spot-kind{align-self:flex-start;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
.spot.k-month{border-color:var(--accent)}
.spot-fit{font-size:12.5px;color:var(--accent);font-weight:600;margin:0}
.spot-acts{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}
.spot-hide{color:var(--muted)}
.apps-wrap{position:relative;display:inline-flex}
.apps-btn{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;border:0;background:transparent;color:inherit;cursor:pointer}
.apps-btn:hover,.apps-btn[aria-expanded=true]{background:rgba(255,255,255,.14)}
.apps-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.apps-panel{position:absolute;right:0;top:46px;z-index:60;width:min(380px,calc(100vw - 24px));max-height:min(78vh,640px);overflow:auto;padding:12px;border-radius:16px;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 16px 44px rgba(0,0,0,.28);text-align:left}
.apps-panel input[type=search]{width:100%;min-height:42px;margin-bottom:4px}
.apps-h{margin:10px 4px 6px;font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.apps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.apps-item{display:grid;justify-items:center;gap:6px;padding:10px 4px;border:0;border-radius:12px;background:transparent;color:var(--ink);font-size:12.5px;line-height:1.25;text-align:center;cursor:pointer;min-height:80px}
.apps-item:hover,.apps-item:focus-visible{background:var(--accent-soft)}
.apps-ico{font-size:24px;line-height:1}
/* 13.76 fleet standings */
.vhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.stabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:12px;overflow-x:auto;scrollbar-width:none}
.stabs button{flex:1 0 auto;background:none;border:0;border-bottom:3px solid transparent;padding:10px 14px;font-weight:700;font-size:13.5px;color:var(--muted);white-space:nowrap;cursor:pointer}
.stabs button.on{color:var(--ink);border-bottom-color:var(--accent)}
.ssec{margin-bottom:18px}.ssec h4{font-family:var(--display);font-size:15px;font-weight:800;margin:6px 0 6px}
.swrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.stand{width:100%;border-collapse:collapse;font-size:14px;min-width:720px}
.stand th,.stand td{padding:9px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
.stand thead th{font-size:11.5px;font-weight:600;color:var(--muted);text-transform:none;letter-spacing:0;text-align:left}
.stand thead th.n{text-align:center}
.stand tbody tr:last-child th,.stand tbody tr:last-child td{border-bottom:0}
.stand tbody th{text-align:left;font-weight:600;position:sticky;left:0;background:var(--surface);z-index:1}
.stand td.n{text-align:center;font-variant-numeric:tabular-nums;color:var(--ink)}
.stand td.n.warn{color:var(--warn);font-weight:700}.stand td.n.crit{color:var(--crit);font-weight:700}.stand td.n.good{color:var(--good)}.stand td.n.none{color:var(--muted)}
.stand tr.click{cursor:pointer}.stand tr.click:hover th,.stand tr.click:hover td{background:var(--sunk)}
.stand tr.click:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.sdot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px;vertical-align:middle;background:var(--line)}
.sdot.good{background:var(--good)}.sdot.warn{background:var(--warn)}.sdot.crit{background:var(--crit)}.sdot.none{background:transparent;border:1px solid var(--line)}
.skey{color:var(--muted);margin-top:6px}
.stand tbody th,.stand tbody th .sname{text-transform:none;letter-spacing:0;font-size:14px;color:var(--ink)}

/* Order again (13.80) */
.oa{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.oa-list{display:flex;flex-direction:column;gap:2px}
.oa-row{display:flex;gap:10px;align-items:flex-start;padding:8px 6px;border-radius:8px;cursor:pointer;border-bottom:1px solid var(--line)}
.oa-row:hover{background:var(--hover, rgba(0,0,0,.04))}
.oa-row input{margin-top:3px;width:18px;height:18px;min-height:0;padding:0;flex:none}
.oa-row b{display:block;font-size:14px;line-height:1.3}
.oa-row small{color:var(--muted);font-size:12px}
.oa-row.regular b::after{content:'regular';margin-left:6px;font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ok, #12805C)}
.oa-acts{display:flex;gap:12px;align-items:center;flex-wrap:wrap}

/* Home on wide screens (13.82): chats | assistant | Order again + Green Marine cards, using the full width */
.pageside{display:none}
@media (min-width:1400px){
  body.wide-home .wrap{max-width:1600px}
  .grid-chat.has-side:has(.pageside .hside:not([hidden])){grid-template-columns:250px minmax(0,1fr) 320px}
  .grid-chat.has-side .pageside:has(.hside:not([hidden])){display:block;position:sticky;top:120px;max-height:calc(100vh - 140px);overflow-y:auto}
  .pageside .hside{padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
  .home.noside{display:flex;flex-direction:column}
  .home.noside .htiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .msg:has(.home.noside){max-width:100%}
}

/* Long answers fold (13.83) */
.msg.ai .body.fold{max-height:420px;overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,#000 78%,transparent);mask-image:linear-gradient(to bottom,#000 78%,transparent)}
.foldbtn{align-self:flex-start;font-weight:600;color:var(--accent);font-size:14px}

/* 13.90: the Green Marine G mark (from the tap card artwork); a customer's own logo takes its place */
.gm-mark{height:30px;width:auto;flex:none}.mark.has-logo .gm-mark{display:none}

/* 13.112 Catalog */
.catalog .sub { margin-top: 0; }
.catalog input[type=search] { width: 100%; margin: 8px 0 14px; }
.cat-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.cat-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; background: var(--brand); color: var(--on-brand); border-radius: 14px; padding: 6px 10px 10px; }
.cat-browse > summary { display: none; }
.cat-menu details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 8px; }
.cat-menu details > summary::-webkit-details-marker { display: none; }
.cat-menu details > summary::before { content: '▸'; font-size: 11px; color: var(--on-brand-muted); transition: transform .15s; }
.cat-menu details[open] > summary::before { transform: rotate(90deg); }
.cat-menu summary:hover, .cat-line:hover { background: var(--brand-2, rgba(255,255,255,.06)); }
.cat-menu summary > span:first-of-type { flex: 1; min-width: 0; }
.cat-menu .n { color: var(--on-brand-muted); font-size: 12px; font-weight: 400; margin-left: auto; }
.cat-sys > summary { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--on-brand-muted); font-weight: 600; }
.cat-ven > summary { font-weight: 600; color: var(--on-brand); }
.cat-ven { margin-left: 4px; } .cat-fam { margin-left: 14px; } .cat-fam > summary { font-size: 14px; color: var(--on-brand); }
.cat-ven > .cat-line { margin-left: 14px; } .cat-fam > .cat-line { margin-left: 18px; }
.cat-line { display: flex; gap: 8px; width: calc(100% - 18px); color: var(--on-brand); text-align: left; padding: 5px 6px; font-size: 14px; border-radius: 8px; text-decoration: none; }
.cat-line.on { color: var(--gold); font-weight: 600; background: var(--brand-2, rgba(255,255,255,.08)); }
.cat-book { display: block; color: var(--gold, #F3C969); font-size: 12px; font-weight: 400; }
.cat-main input[type=search] { margin-top: 0; }
@media (max-width: 800px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-side { position: static; max-height: none; }
  .cat-browse > summary { display: flex; font-weight: 600; padding: 8px 6px; }
}
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.catalog .cat-item { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px; }
.cat-grid { align-items: start; }
.cat-pic { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.cat-pic img { max-width: 92%; max-height: 92%; object-fit: contain; }
.cat-pic.none { background: var(--accent-soft, #DDEFE5); border-color: transparent; }
.cat-pic img.g { height: 38%; width: auto; opacity: .45; }
.cat-item .pn { display: block; font-size: 16px; }
.cat-item .desc { display: block; font-size: 14px; color: var(--muted); }
.cat-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin: 4px 0 12px; }
.cat-f { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.cat-f select { min-width: 120px; padding-top: 6px; padding-bottom: 6px; }
.cat-f.check { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); padding-bottom: 6px; }
.cat-tools > .sm { margin-left: auto; padding-bottom: 8px; }
.cat-docs { margin: 2px 0 14px; }
.cat-alldocs { font-size: 14px; font-weight: 600; padding: 4px 0; }
.doc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.doc-tile { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); color: var(--ink); cursor: pointer; font: inherit; }
.doc-tile:hover { border-color: var(--accent); }
.doc-thumb { flex: none; width: 40px; height: 52px; border-radius: 4px 12px 4px 4px; background: var(--accent-soft, #DDEFE5); display: grid; place-items: end center; padding-bottom: 6px; position: relative; }
.doc-thumb::before { content: ''; position: absolute; left: 8px; right: 8px; top: 10px; height: 18px; background: repeating-linear-gradient(var(--accent) 0 2px, transparent 2px 6px); opacity: .35; }
.doc-thumb span { font-size: 9px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.doc-thumb.t-manual { background: #E3E9F5; } .doc-thumb.t-manual span, .doc-thumb.t-manual::before { color: #2B4A8B; background-color: transparent; }
.doc-thumb.t-certificate { background: #FBF0D4; } .doc-thumb.t-certificate span { color: #7A5A0B; }
.doc-thumb.t-msds { background: #F7E1DC; } .doc-thumb.t-msds span { color: #8A2E1C; }
.doc-meta { min-width: 0; display: flex; flex-direction: column; }
.doc-meta strong { font-size: 14px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.doc-meta small { color: var(--muted); font-size: 12px; }
.sheet .doc-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cat-item .grow { min-width: 0; flex: 1; }
.cat-buy { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.cat-buy .qty { align-self: flex-start; }
.cat-buy .btn { width: 100%; }
.cat-buy .price strong { font-size: 17px; }
.cat-cart { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px; margin-top: 12px; box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
.cat-cart > span { margin-right: auto; }


/* 13.118 product details */
.cat-open { all: unset; cursor: zoom-in; display: block; } .cat-open:focus-visible { outline: 2px solid var(--accent); border-radius: 10px; }
.cat-pn { padding: 0; text-align: left; } .cat-pn .pn { color: var(--ink); } .cat-pn:hover .pn { color: var(--accent); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 700px) { .pd-grid { grid-template-columns: 1fr; } }
.pd-big { all: unset; display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: zoom-in; overflow: hidden; }
.pd-big img { max-width: 94%; max-height: 94%; object-fit: contain; } .pd-big img.g { height: 30%; opacity: .4; }
.pd-thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pd-thumbs button { all: unset; width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.pd-thumbs img { max-width: 90%; max-height: 90%; }
.pd-name { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.pd .price strong { font-size: 20px; }
.pd .cat-buy { margin: 10px 0 14px; }
.pd-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.pd-specs th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 10px 6px 0; width: 40%; border-top: 1px solid var(--line); vertical-align: top; }
.pd-specs td { padding: 6px 0; border-top: 1px solid var(--line); }
.pd-desc { font-size: 14px; } .pd-desc p { margin: 0 0 6px; } .pd-desc ul { margin: 0 0 8px; padding-left: 20px; }
.sheet:has(.pd) { width: min(920px, 100vw); }
.zoom { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 15, 12, .92); display: grid; place-items: center; cursor: zoom-out; }
.zoom img { max-width: 96vw; max-height: 94vh; object-fit: contain; background: #fff; border-radius: 8px; }
.cat-pic { position: relative; }
.cat-ribbon { position: absolute; top: 8px; left: 8px; background: var(--gold, #F3C969); color: #2A1E05; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.cat-item.mine { border-color: var(--gold, #F3C969); }
.cat-mine { margin: 6px 0 4px; font-weight: 600; width: 100%; }
.cat-ribbon.fits { background: var(--accent, #12805C); color: #fff; top: auto; bottom: 8px; }
.pd .notice.ok ul { margin: 4px 0 0; padding-left: 18px; }
.cat-facts { margin: 4px 0 0; font-size: 13px; color: var(--ink); }
.cat-repl { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.cat-item .desc { min-height: 2.6em; }
.cat-book-note { margin: 0 0 8px; color: var(--gold-ink, #8A6A12); }
.cat-pic img.g { height: 34%; }

/* 13.120 tighter header + catalog fly-out */
.topsearch input, #topq { min-height: 38px; }
.topsearch .btn, .top .btn { min-height: 38px; }
.tabs { position: relative; z-index: 19; }
.tabs .has-mega::after { content: ' ▾'; font-size: 10px; opacity: .7; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--brand); color: var(--on-brand); box-shadow: 0 18px 40px rgba(0,0,0,.28); border-top: 1px solid rgba(255,255,255,.08); }
.mega-in { display: grid; grid-template-columns: 200px minmax(0, 1fr) 240px; gap: 24px; padding-block: 18px 22px; max-height: min(70vh, 620px); }
.mega-h, .mega-fh { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-brand-muted); margin: 0 0 8px; }
.mega-fh { margin: 6px 0 4px; }
.mega .mega-s { min-height: 0; display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--on-brand-muted); padding: 9px 10px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.mega-s small { display: block; font-weight: 400; font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-s.on, .mega-s:hover { background: var(--brand-2); color: #fff; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 22px; overflow: auto; align-content: start; }
.mega-cols .mega-vh { grid-column: 1 / -1; margin-top: 6px; }
.mega-in { overflow: hidden; }
.mega-vh { font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 2px; } .mega-vh small { display: block; color: var(--gold); font-weight: 400; font-size: 12px; }
.mega .mega-line, .mega .mega-more { min-height: 0; line-height: 1.35; display: flex; gap: 8px; width: 100%; text-align: left; background: none; border: 0; color: var(--on-brand); padding: 4px 6px; margin-left: -6px; border-radius: 6px; font-size: 14px; }
.mega-line .n { margin-left: auto; color: var(--on-brand-muted); font-size: 12px; }
.mega-line:hover, .mega-more:hover { background: var(--brand-2); color: var(--gold); }
.mega-more { color: var(--gold); font-weight: 600; font-size: 13px; }
.mega-tile { display: flex; flex-direction: column; gap: 10px; }
.mega .mega-quick { white-space: normal; min-height: 0; text-align: left; background: var(--brand-2); border: 0; border-radius: 12px; padding: 12px 14px; color: var(--on-brand); }
.mega-quick b { display: block; color: #fff; font-size: 15px; } .mega-quick span { font-size: 13px; color: var(--on-brand-muted); }
.mega-quick:hover { outline: 2px solid var(--gold); }
@media (hover: none), (max-width: 899px) { .mega { display: none !important; } .tabs .has-mega::after { content: ''; } }
/* 13.121 quotes to approve first */
.section.act-first { background: var(--surface); border: 2px solid var(--accent); border-radius: 14px; padding: 14px 16px 6px; margin-bottom: 18px; }
.section.act-first h3 { color: var(--accent); margin-top: 0; }

/* 13.122 vendor price page */
.vq h1 { margin-bottom: 4px; } .vq h2 { margin: 22px 0 8px; font-size: 18px; }
.tablewrap { overflow-x: auto; }
.vq-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.vq-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vq-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vq-table input:not([type=checkbox]) { min-height: 34px; padding: 4px 8px; font-size: 14px; width: 100%; min-width: 90px; }
.vq-table input.num { min-width: 70px; max-width: 90px; }
.vq-table tr.need { background: var(--accent-soft); } .vq-table tr.expired td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.vq-table .ctr { text-align: center; }
.vq-save { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; padding: 12px 0; background: var(--bg); border-top: 1px solid var(--line); margin-top: 16px; }
.vq-save input { max-width: 240px; }
.vq-table td.vq-sm { font-size: 13px; color: var(--muted); white-space: nowrap; }
.vq-table td.vq-sm .chip { margin-left: 6px; }
.vq-table td:first-child { min-width: 150px; }

/* 13.123 brochure facts */
.pd-src { margin: 12px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pd-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; } .pd-links .sm { display: inline; margin-right: 4px; }
.pd-links .chip { cursor: pointer; }

/* 13.126 light for vessels */
.doc-tile { flex-direction: column; align-items: stretch; gap: 4px; }
.doc-tile .doc-open { all: unset; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.doc-tile .doc-mail { font-size: 13px; align-self: flex-start; margin-left: 52px; }

/* 13.127: Download CSV (Orders page, assistant) */
.btnrow{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.chip.csv{font-weight:600}
small.need{display:block}

/* 13.132 Account setup */
.setup-score{display:flex;flex-direction:column;gap:10px}
.setup-score .big{font-size:2rem;line-height:1}
.setup-bar{height:8px;border-radius:99px;background:var(--line);overflow:hidden;min-width:80px}
.setup-bar>span{display:block;height:100%;width:0;background:var(--accent,#1a7f5a);border-radius:99px}
.setup-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.setup-item:first-of-type{border-top:0}
.setup-item .grow{display:flex;flex-direction:column;gap:2px}
.setup-item small{color:var(--muted,#667)}
.setup-item.done strong{font-weight:500;opacity:.75}
.setup-tick{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);display:inline-flex;align-items:center;justify-content:center;font-size:13px;flex:none}
.setup-item.done .setup-tick{background:var(--accent,#1a7f5a);border-color:var(--accent,#1a7f5a);color:#fff}
.setup-v summary{display:grid;grid-template-columns:1fr auto 120px;gap:12px;align-items:center;cursor:pointer;list-style:none}
.setup-v summary::-webkit-details-marker{display:none}
.setup-v[open] summary{margin-bottom:6px}
.setup-vessels{display:flex;flex-direction:column;gap:10px}
@media (max-width:600px){.setup-v summary{grid-template-columns:1fr auto}.setup-v summary .setup-bar{grid-column:1/-1}.setup-item{flex-wrap:wrap}}

/* 13.137 vendor page: room at the edges; tables scroll inside their box, never the page */
.vq { padding: 0 16px 24px; max-width: 100%; overflow-x: hidden; }
.vq .tablewrap { max-width: 100%; }

/* 13.139 vendor page on a phone: each part is a card, every box on screen with its label; readable in dark mode */
@media (max-width: 700px) {
  .vq .tablewrap { overflow: visible; border: 0; background: none; }
  .vq-table, .vq-table tbody { display: block; border: 0; background: none; }
  .vq-table thead { display: none; }
  .vq-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .vq-table tr.need { background: var(--accent-soft); }
  .vq-table td { display: block; border: 0; padding: 0; min-width: 0 !important; white-space: normal; }
  .vq-table td:first-child { grid-column: 1 / -1; font-size: 15px; }
  .vq-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; }
  .vq-table td:first-child::before { display: none; }
  .vq-table td[colspan] { grid-column: 1 / -1; }
  .vq-table input:not([type=checkbox]) { min-width: 0; max-width: none; width: 100%; font-size: 16px; }
  .vq-table input.num { max-width: none; }
  .vq-table td.ctr { text-align: left; }
  .vq-save { flex-wrap: wrap; } .vq-save input { max-width: none; flex: 1 1 160px; }
}

/* 13.147 file viewer (PDF / photo) */
.overlay.viewer .sheet { width: min(1100px, 100vw); max-width: none; height: min(92vh, 100%); display: flex; flex-direction: column; }
.viewer-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.viewer-frame { flex: 1; width: 100%; min-height: 60vh; border: 0; border-radius: 10px; background: #fff; }
.viewer-img { max-width: 100%; max-height: 75vh; object-fit: contain; align-self: center; border-radius: 10px; background: #fff; }

/* 13.150 files page (go.greenmarine.com/x/…) */
.xf-note { white-space: pre-line; }
.xf-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 34px 16px; margin: 14px 0; border: 2px dashed var(--line-strong, #9fb3aa);
  border-radius: 16px; text-align: center; cursor: pointer; }
.xf-drop.over, .xf-drop:hover { border-color: var(--accent, #12805C); background: var(--accent-soft, rgba(18,128,92,.06)); }
.xf-drop span { color: var(--muted, #5B6770); font-size: 14px; }
.xf-list { list-style: none; padding: 0; margin: 10px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.xf-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line, #dfe6e2); border-radius: 12px; }
.xf-name { font-weight: 600; overflow-wrap: anywhere; } .xf-size { color: var(--muted, #5B6770); font-size: 13px; text-align: right; }
.xf-acts { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.xf-acts progress { flex: 1; min-width: 120px; height: 10px; }
.xf-ok { grid-column: 1 / -1; color: var(--accent, #12805C); font-weight: 700; } .xf-bad { color: #B42318; font-weight: 600; }
.xf-msg { margin-top: 12px; font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* 13.237 files for the assistant */
.clipbtn{flex:0 0 auto;min-width:44px;padding:0 10px;font-size:18px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.clipbtn input{display:none}
.filechip{display:flex;align-items:center;gap:8px;align-self:flex-start;max-width:100%;padding:6px 10px;border-radius:999px;background:var(--wash,rgba(0,0,0,.05));border:1px solid var(--line);font-size:14px}
.filechip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filechip button{border:0;background:none;font-size:18px;line-height:1;cursor:pointer;color:inherit}
.msgfile{font-weight:600;margin-bottom:4px;overflow-wrap:anywhere}
.cardfile{margin:0 0 6px}

/* 13.259 doing business first: My fleet menu, Needs you cards, four big buttons */
.tabs .fleetbtn{margin-left:auto}
.fleetmenu{position:absolute;z-index:60;min-width:210px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.18);padding:6px;display:grid}
.fleetmenu button{all:unset;cursor:pointer;padding:10px 12px;border-radius:8px;font-weight:600;font-size:15px}
.fleetmenu button:hover,.fleetmenu button:focus-visible{background:var(--sunk)}
.fleetmenu button[aria-current="page"]{color:var(--brand)}
.hneed{display:grid;gap:8px;margin:0 0 14px}
.hneed-card{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:var(--surface);min-height:56px}
.hneed-card b{font-size:16px}.hneed-card small{grid-column:1;color:var(--muted);font-size:13px}
.hneed-card .go{grid-row:1/3;grid-column:2;font-size:20px;color:var(--brand)}
.hneed-card.hot{border-color:var(--warn);background:var(--warn-soft)}
.hneed-card:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.htiles.big4{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:900px){.htiles.big4{grid-template-columns:repeat(4,minmax(0,1fr))}}
.htiles.big4 .htile{min-height:104px}
.htiles.big4 .htile b{font-size:17px}
/* 13.259 phone Home: one box — the search / ask box at the top; the chat box appears once a conversation starts */
@media (max-width:720px){.panel.chat.home-fresh .composer{display:none}}
/* 13.259 compact parts card: full-width part name, qty + remove under it; details folded */
.row.pline{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center}
.row.pline .grow{grid-column:1/-1;min-width:0}
.row.pline .grow strong{display:block;overflow-wrap:anywhere}
.row.pline .prm{justify-self:end}
.pmore{border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin:8px 0}
.pmore summary{cursor:pointer;list-style:none;display:flex;gap:6px;align-items:baseline;flex-wrap:wrap;min-height:28px}
.pmore summary::after{content:'Change ▾';margin-left:auto;font-size:13px;color:var(--brand);font-weight:600}
.pmore[open] summary::after{content:'Done ▴'}
/* 13.259 one pill: search · photo/document · voice (phone and web) */
.topsearch .tpill{display:flex;align-items:center;gap:2px;background:#fff;border:1px solid #c9d3cf;border-radius:999px;padding:3px 6px 3px 14px;min-height:46px}
.topsearch .tpill input{flex:1;min-width:0;border:0;background:transparent;color:#1f2933;min-height:38px;padding:0 6px;font-size:16px;box-shadow:none;outline:0}
.topsearch .tpill input::placeholder{color:#5b6770}
.topsearch .tpill:focus-within{box-shadow:0 0 0 3px rgba(79,212,154,.45)}
.topsearch .tico{display:grid;place-items:center;color:#1f2933}
.topsearch .tbtn{all:unset;cursor:pointer;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#1f2933;position:relative}
.topsearch .tbtn:hover,.topsearch .tbtn:focus-visible{background:#eef2f0}
.topsearch .tbtn input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
.topsearch .tbtn.on{background:#fde2e2;color:#b42318}
.topsearch .tgo{all:unset;cursor:pointer;padding:0 14px;height:36px;border-radius:999px;background:var(--brand);color:#fff;font-weight:700;font-size:14px;display:none;align-items:center}
.topsearch .tpill:has(input[type=search]:not(:placeholder-shown)) .tgo,.topsearch .tpill.has-file .tgo{display:flex}
.topsearch .tchip{margin-top:6px;font-size:13px;color:var(--on-brand);display:flex;gap:8px;align-items:center}
.topsearch .tchip .linkbtn{color:var(--on-brand)}
/* 13.259 phone bottom bar: Home · Orders · Ask · Cart · Menu (the top menu row hides on the phone) */
.bottombar{display:none}
@media (max-width:720px){
  body.has-bottombar{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  body.has-bottombar #nav{display:none}
  .bottombar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:50;background:var(--surface);border-top:1px solid var(--line);padding:4px 4px calc(4px + env(safe-area-inset-bottom));box-shadow:0 -4px 18px rgba(0,0,0,.08)}
  .bottombar button{all:unset;cursor:pointer;position:relative;display:grid;justify-items:center;gap:2px;padding:6px 0;font-size:11.5px;font-weight:600;color:var(--muted)}
  .bottombar button[aria-current="page"]{color:var(--brand)}
  .bottombar .bb-ask .bb-ico{width:46px;height:46px;margin-top:-18px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;box-shadow:0 4px 12px rgba(15,77,58,.35)}
  .bottombar .bb-n{position:absolute;top:2px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#E5484D;color:#fff;font:700 11px/18px sans-serif;font-style:normal;text-align:center}
  .bottombar button:focus-visible{outline:2px solid var(--brand);outline-offset:-2px;border-radius:10px}
}
/* 13.261 phone Home: chips and swipe rows */
.hrows{display:grid;gap:10px;margin:0 0 14px}
.hchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.hchips .hchip{flex:none;border-radius:999px;padding:8px 16px;font-weight:600;font-size:14px}
.hrow-h{display:flex;align-items:center;justify-content:space-between;margin-top:6px}
.hrow-h h3{margin:0;font-size:19px}.hrow-h .linkbtn{font-size:22px;padding:4px 8px}
.hrow{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 8px;scrollbar-width:none;align-items:stretch;max-width:calc(100vw - 48px)}
.hrow>.hcard{flex:0 0 158px;width:158px}
.hrow::-webkit-scrollbar,.hchips::-webkit-scrollbar{display:none}
.hcard{all:unset;box-sizing:border-box;scroll-snap-align:start;position:relative;display:grid;align-content:start;gap:4px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);min-height:110px;cursor:pointer}
.hcard b{font-size:15px;line-height:1.25}.hcard span{font-size:13px;color:var(--ink)}.hcard small{font-size:12px;color:var(--muted)}
.hcard.ord.hot{border-color:var(--warn);background:var(--warn-soft)}
.hcard.prod{cursor:default}
.hcard-pic{height:108px;display:grid;grid-template-rows:1fr auto;gap:2px;padding:8px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;border-radius:10px;background:var(--sunk);display:grid;place-items:center;color:var(--muted);overflow:hidden;margin-bottom:4px}
.hcard-pic img{width:100%;height:100%;object-fit:contain;background:#fff}
.hcard-add{all:unset;cursor:pointer;position:absolute;top:96px;right:14px;width:34px;height:34px;border-radius:50%;background:var(--brand);color:#fff;font-size:22px;font-weight:700;display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.hcard-add:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.hcard-pic:not(.ph){display:block;padding:0}
.hcard-pic.ph{place-items:center;color:var(--brand)}
.hcard-pic.ph span{color:var(--muted)}
/* the chips, rows and bottom bar cover the four buttons on a phone */
@media (max-width:720px){.hmain:has(.hrows) .htiles.big4{display:none}}
.hcard-add{top:auto;bottom:calc(100% - 118px)}
/* lean phone Home: the rows replace the stacked Needs you cards */
@media (max-width:720px){.hmain:has(.hrows .hrow) .hneed{display:none}}
/* lean phone Home: Chats / + New chat live in Menu and appear once a chat is going */
@media (max-width:720px){.panel.chat.home-fresh .chatbar{display:none}}
/* 13.264 invoices on a phone: cards */
.invcards{display:grid;gap:8px}.invcard{padding:12px 14px}.invcard .head{display:flex;justify-content:space-between;gap:8px}.invcard p{margin:2px 0}
/* 13.264 a sheet (approve, order card, menu) sits above the bottom bar and scrolls to its last button */
@media (max-width:720px){
  body:has(#layer .overlay) .bottombar{display:none}
  .sheet{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
}
/* 13.269 Cart on its own */
.cart-list { display: flex; flex-direction: column; gap: 8px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "what qty amt" "what x x"; gap: 6px 12px; align-items: center; padding: 12px; border: 1px solid var(--line, #dde3e0); border-radius: 12px; background: var(--surface); color: var(--ink); }   /* 13.419 was an unset --card: white in dark mode */
.cart-what { grid-area: what; display: flex; flex-direction: column; gap: 2px; min-width: 0; } .cart-what .sm { overflow-wrap: anywhere; }
.cart-qty { grid-area: qty; display: flex; align-items: center; gap: 6px; } .cart-qty .btn { min-width: 40px; min-height: 40px; padding: 0; font-size: 18px; }
.cart-n { min-width: 28px; text-align: center; font-weight: 700; } .cart-amt { grid-area: amt; white-space: nowrap; } .cart-x { grid-area: x; justify-self: end; }
@media (max-width: 560px) { .cart-line { grid-template-columns: 1fr auto; grid-template-areas: "what what" "qty amt" "x x"; } }
/* 13.269 the cart's action bar sits above the phone bottom bar, never under it */
@media (max-width:720px){ body.has-bottombar .cat-cart{bottom:calc(66px + env(safe-area-inset-bottom));z-index:40} }
/* 13.270 phone: compact request rows */
.req-row{display:grid;gap:6px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);cursor:pointer}
.req-row.warn{border-color:#e0a100}
.req-row:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.req-top{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}
.req-t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.3}
.req-top .pill{flex:none;font-size:12px;white-space:nowrap}
.req-meta{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.req-bar{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:3px}
.req-bar i{height:5px;border-radius:3px;background:var(--line)} .req-bar i.on{background:var(--brand)}
.req-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px}
@media (max-width:720px){ .track li span:last-child{font-size:10.5px;word-break:keep-all;overflow-wrap:normal;hyphens:none;line-height:1.2;letter-spacing:-.01em} }
/* 13.271 Vessel app (Green Marine Onboard): navy header, the boat's own Home and Receiving */
body.vessel-mode{--brand:#1E3150;--brand-2:#2C4672;--on-brand-muted:#C9D5EA}
.vh{display:grid;gap:14px}
.vh-recv{all:unset;cursor:pointer;display:flex;align-items:center;gap:12px;padding:14px;border:2px solid var(--brand);border-radius:16px;background:var(--surface)}
.vh-recv .grow{display:flex;flex-direction:column}.vh-recv strong{font-size:16px}
.vh-ic{flex:none;width:42px;height:42px;border-radius:12px;background:#E4EBF5;color:#1E3150;display:grid;place-items:center;font-weight:800;font-size:20px}
.vh-due{background:#0F3128;border-radius:18px;padding:14px;display:grid;gap:10px;color:#fff}
.vh-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.vh-h h2{margin:0;font-size:19px}.vh-h span{font-size:13px;color:#A9C2B6}
.vh-mine .vh-h span,.vh-mine .vh-h h2{color:inherit}
.vh-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.vh-tile{background:#fff;color:#10241F;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:4px;min-width:0}
.vh-tile strong{font-size:14px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vh-tile .sm{color:#56685F;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vh-tile .btn{margin-top:auto}
.vh-when{font-size:11px;font-weight:800;letter-spacing:.04em;color:#8A5300}
.vh-empty,.vh-note{margin:0;font-size:13px;color:#C9DDD3}
.vh-h2{margin:4px 0 8px;font-size:18px}
.vh-sys{all:unset;cursor:pointer;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:4px}
.vh-sys strong{font-size:15px}.vh-st{font-size:12px;font-weight:700}.vh-st.ok{color:var(--accent)}.vh-st.bad{color:#B42318}
.vh-sys:focus-visible,.vh-recv:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.rc-card{background:var(--surface);border:2px solid var(--brand);border-radius:16px;padding:14px;display:grid;gap:10px}
.rc-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.rc-top .pill{flex:none;white-space:nowrap}
.rc-lines{display:grid;gap:6px}.rc-line{display:flex;align-items:center;gap:10px;font-size:14px}
.rc-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rc-acts .btn{min-height:48px;font-size:15px}
.btn.danger-ghost{background:transparent;border:1px solid #B42318;color:#B42318}
.rc-done{display:grid;gap:0;padding:4px 14px}.rc-row{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}.rc-row:last-child{border-bottom:0}
.rc-row .bad{color:#B42318}
.vu-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:4px 0}
.vu-a{all:unset;cursor:pointer;display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.vu-a strong{font-size:16px}.vu-a span{font-size:12px;color:var(--muted)}
.vu-a.primary{background:var(--accent);border-color:var(--accent);color:#fff}.vu-a.primary span{color:#DDEFE5}
.vu-a.danger{border-color:#B42318;color:#B42318}
.vu-a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* 13.273 dark mode: the selected bottom-bar button stays visible (brand is near-black in dark) */
.bottombar button[aria-current="page"]{color:var(--accent)}
/* 13.273 phone Home: four-tile boxes */
.nb-box{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px;display:grid;gap:10px;min-width:0}
.nb-box.dark{background:#0F3128;border-color:#0F3128;color:#fff}
.nb-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.nb-h h3{margin:0;font-size:17px}.nb-h span{font-size:13px;color:var(--muted)}.nb-box.dark .nb-h span{color:#A9C2B6}
.nb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nb-grid.sm{gap:8px}
.nb-tile{all:unset;cursor:pointer;box-sizing:border-box;background:#fff;color:#10241F;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:4px;min-height:118px;min-width:0}
.nb-tile b{font-size:14px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nb-tile small{color:#56685F;font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nb-k{font-size:10.5px;font-weight:800;letter-spacing:.04em}.nb-k.amber{color:#8A5300}.nb-k.blue{color:#1E3150}.nb-k.red{color:#B42318}
.nb-go{margin-top:auto;font-size:13px;font-weight:700;color:#12805C}
.nb-tile:focus-visible,.nb-ord:focus-visible,.nb-ves:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.nb-all{justify-self:start;font-weight:700;font-size:13px}.nb-box.dark .nb-all{color:#4FD49A}
.nb-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nb-two.one{grid-template-columns:1fr}
.nb-prod{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0}
.nb-prod .hcard-pic{aspect-ratio:1;width:100%;height:auto;border-radius:10px}
.nb-prod b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nb-prod .hcard-add{width:28px;height:28px;font-size:18px;background:var(--accent);right:4px;top:auto;bottom:24px}
.nb-ord{all:unset;cursor:pointer;display:grid;gap:4px;min-width:0}.nb-ord b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nb-ord small{font-size:12px;color:var(--muted)}
.nb-ves{all:unset;cursor:pointer;box-sizing:border-box;background:var(--sunk);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:2px;min-width:0}
.nb-ves b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nb-ves small{font-size:12px;color:var(--muted)}
.nb-ves.warn{background:#FDF1E3}.nb-ves.warn small{color:#8A5300}.nb-ves.warn b{color:#10241F}
.bottombar .bb-ask .bb-ico{background:var(--accent);color:var(--accent-ink)}
.nb-box.dark{border-color:var(--line)}
/* 13.274 Vessel app Systems */
.vh-st.due{color:#8A5300}
.vs-list,.vh .list{display:grid;gap:10px}
.vs-card,.vs-unit{all:unset;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.vs-card .grow,.vs-unit .grow{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.vs-card strong{font-size:16px}.vs-unit strong{font-size:15px}
.vs-card .sm,.vs-unit .sm{overflow:hidden;text-overflow:ellipsis}
.vs-ic{flex:none;width:46px;height:46px;border-radius:12px;background:var(--sunk);display:grid;place-items:center;font:800 10.5px var(--display);color:var(--muted);overflow:hidden}
.vs-card:focus-visible,.vs-unit:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.vh-h3{margin:8px 0 6px;font-size:15px;color:var(--muted)}
.req-row.hot{border-color:#e0a100}
/* 13.274 amber text readable in dark mode */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .vh-st.due,:root:not([data-theme="light"]) .kpi.alert b{color:#F5B83D}}
:root[data-theme="dark"] .vh-st.due,:root[data-theme="dark"] .kpi.alert b{color:#F5B83D}

/* ── 13.281 Customer web app v2 (Richard, Nov 5): the portal's dark green, a left menu that never moves, Home v2 ── */
html{scrollbar-gutter:stable}
:root[data-theme="dark"]{--bg:#0F2B24;--surface:#15392F;--sunk:#12332A;--line:#28564A;--brand:#0B241E;--brand-2:#103329;--accent-soft:#1D4A3C}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--bg:#0F2B24;--surface:#15392F;--sunk:#12332A;--line:#28564A;--brand:#0B241E;--brand-2:#103329;--accent-soft:#1D4A3C}}
#view{transition:opacity .15s}
#view.is-loading{opacity:.55;pointer-events:none}
.top .wrap{min-height:58px}
/* Left menu (big screens) */
.side{display:none}
@media (min-width:1100px){
  body.has-side{padding-left:236px}
  body.has-side .side{display:flex;flex-direction:column;gap:2px;position:fixed;left:0;top:0;bottom:0;width:236px;background:var(--brand);color:var(--on-brand);padding:14px 10px;overflow-y:auto;z-index:25;border-right:1px solid var(--line)}
  body.has-side #nav{display:none}
  body.has-side .top .wrap,body.has-side main .wrap{max-width:1240px}
}
.side-brand{display:flex;align-items:center;gap:10px;padding:6px 10px 14px;font-family:var(--display);font-weight:700;font-size:14px;color:var(--on-brand-muted)}
.side-h{font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--on-brand-muted);padding:14px 10px 4px}
.side-i{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:40px;background:none;border:0;border-radius:8px;color:var(--on-brand);text-align:left;padding:0 10px;font-weight:600;font-size:14.5px}
.side-i:hover{background:var(--brand-2)}
.side-i[aria-current="page"]{background:var(--brand-2);box-shadow:inset 3px 0 0 #4FD49A}
.side-n{font-style:normal;background:var(--gold);color:var(--on-gold);border-radius:10px;padding:0 7px;font-size:12px;font-weight:800}
.side-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--brand-2);display:flex;flex-direction:column;gap:2px}
/* Home v2 */
.h2{display:flex;flex-direction:column;gap:18px;padding:22px 0 40px}
.h2-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.h2-head h1{font-size:30px;font-weight:800}
.h2-acts{display:flex;gap:8px;flex-wrap:wrap}
.h2-acts .btn{display:inline-flex;align-items:center;gap:8px}
.i2{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.i3{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.h2-msg{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:14px;padding:14px 16px}
.h2-msg .grow{flex:1;min-width:0}
.h2-msg strong{font-size:13px;color:var(--muted);display:block}
.h2-x{background:none;border:0;color:var(--muted);width:40px;height:40px;border-radius:10px;display:grid;place-items:center}
.h2-ask{background:var(--surface);border:2px solid var(--accent);border-radius:18px;padding:12px;display:flex;flex-direction:column;gap:10px}
.h2-ask-row{display:flex;gap:10px;align-items:flex-end}
.h2-ask-in{flex:1;border:0;background:transparent;font-size:17px;min-height:52px;resize:none;padding:10px 8px}
.h2-ask-in:focus-visible{outline:none}
.h2-ask-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.h2-chips{display:flex;gap:8px;flex-wrap:wrap}
.h2-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.h2-kpi{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 16px;text-align:left;display:flex;flex-direction:column;gap:2px;min-height:112px}
.h2-kpi:hover{border-color:var(--accent)}
.h2-kpi b{font-family:var(--display);font-size:32px;font-weight:800;line-height:1.1}
.h2-kpi-l{font-size:14px;font-weight:600;color:var(--muted)}
.h2-kpi.alert{border-color:var(--warn)}
.h2-kpi.alert b{color:var(--warn)}
.h2-scs{display:flex;gap:10px;flex-wrap:wrap}
.h2-sc{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;width:96px;padding:4px;font-size:13px;font-weight:600;text-align:center;color:var(--ink)}
.h2-sc-i{width:52px;height:52px;border-radius:50%;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;color:var(--accent)}
.h2-sc.mine .h2-sc-i{border-style:dashed}
.h2-sc:hover .h2-sc-i{border-color:var(--accent)}
.h2-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:14px;align-items:start}
@media (max-width:820px){.h2-grid{grid-template-columns:1fr}}
.h2-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
.h2-card.h2-wide{grid-column:1/-1}
.h2-card-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.h2-card-h h2{font-size:17px}
.h2-list{display:flex;flex-direction:column}
.h2-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line);background:none;border-left:0;border-right:0;border-bottom:0;text-align:left;width:100%;color:var(--ink)}
.h2-row:first-child{border-top:0}
.h2-row .grow{flex:1;min-width:0;display:flex;flex-direction:column}
.h2-row.link:hover strong{color:var(--accent)}
.h2-amt{font-weight:700;white-space:nowrap}
.h2-vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.h2-vessel{background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:12px;text-align:left;display:flex;flex-direction:column;gap:3px;color:var(--ink)}
.h2-vessel:hover{border-color:var(--accent)}
.h2-vpic{color:var(--accent);margin-bottom:4px}
.h2-vessel .st{font-size:13px;font-weight:700}
.st.ok{color:var(--good)} .st.due{color:var(--warn)} .st.bad{color:var(--crit)}
.h2-foot{display:flex;justify-content:center}
.chkrow{display:flex;align-items:center;gap:12px;min-height:44px;justify-content:flex-start}   /* 13.515 the label next to its box, not pushed to the far edge */
/* Book service calendar */
.cal-wrap{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:22px}
.cal{min-width:0}
@media (max-width:720px){.cal-wrap{grid-template-columns:1fr}}
.sheet .cal-wrap{grid-template-columns:minmax(0,1fr)}   /* 13.407 inside the side panel (max 520px) the calendar and the form stack: two columns ran off the edge on a computer */
.cal-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.cal-h .linkbtn{font-size:22px;min-width:44px;min-height:40px}
.cal-g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal-w{text-align:center;font-size:12px;color:var(--muted);font-weight:700;padding:4px 0}
.cal-d{position:relative;width:100%;min-width:0;height:44px;border-radius:9px;border:1px solid var(--line);background:var(--sunk);color:var(--ink);font-weight:600;display:grid;place-items:center;padding:0}
.cal-d.off{border:0;background:none}
.cal-d.wk{opacity:.8}
.cal-d:disabled{opacity:.35;cursor:default}
.cal-d.on{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.cal-d.uscg{border-color:var(--warn)}
.cal-d i{position:absolute;bottom:1px;left:0;right:0;font-style:normal;font-size:8px;font-weight:800;color:var(--warn);letter-spacing:.02em}
.cal-d.on i{color:var(--accent-ink)}
.cal-side{display:flex;flex-direction:column;gap:10px}
.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.slot{min-height:56px;border-radius:12px;border:1px solid var(--line);background:var(--sunk);display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:700;color:var(--ink)}
.slot small{font-weight:500;color:var(--muted)}
.slot[aria-pressed="true"]{border:2px solid var(--accent);background:var(--accent-soft)}
.cal-tips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.cal-tip{display:flex;flex-direction:column;text-align:left;gap:2px;border:1px dashed var(--warn);background:var(--warn-soft);border-radius:12px;padding:10px 12px;color:var(--ink)}
.chip[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}

/* ── 13.283 Throw a line + Messages (header) ── */
.ln{display:flex;align-items:center;gap:6px}
.ln-ring,.ln-msgs{position:relative;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.08);display:grid;place-items:center;color:var(--on-brand);padding:0}
.ln-ring:hover,.ln-msgs:hover{background:rgba(255,255,255,.16)}
.ln-ring svg{width:32px;height:32px}
.ln-msgs svg{width:22px;height:22px}
.ln-ring.stowed{opacity:.5}
.ln-ring:disabled{cursor:progress}
.ln-n{position:absolute;top:2px;right:0;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--gold);color:var(--on-gold);font-style:normal;font-size:11px;font-weight:800;display:grid;place-items:center}
.ln-fly{position:fixed;width:40px;height:40px;z-index:90;pointer-events:none;filter:drop-shadow(0 4px 6px rgba(0,0,0,.35))}
.ln-fly svg{width:40px;height:40px}
.ln-off{position:fixed;z-index:85;width:320px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:0 14px 34px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:8px}
.ln-row{display:flex;gap:8px}
.ln-panel{position:fixed;right:20px;bottom:20px;z-index:80;width:400px;max-width:calc(100vw - 24px);height:min(560px,calc(100vh - 110px));background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 44px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden}
.ln-ph{display:flex;align-items:center;gap:8px;padding:12px 14px;background:var(--brand);color:var(--on-brand)}
.ln-ph strong{flex:1}
.ln-x,.ln-back{background:none;border:0;color:inherit;font-size:22px;width:36px;height:36px;border-radius:8px}
.ln-list{overflow:auto;display:flex;flex-direction:column}
.ln-th{display:flex;align-items:center;gap:10px;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:12px 14px;color:var(--ink)}
.ln-th .grow{flex:1;min-width:0;display:flex;flex-direction:column}
.ln-th .sm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ln-th.unread strong::after{content:' •';color:var(--gold)}
.ln-open{font-size:12px;font-weight:800;color:var(--warn);white-space:nowrap}
.ln-empty{padding:16px}
.ln-msgs-list{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.ln-m{max-width:86%;padding:9px 12px;border-radius:12px;display:flex;flex-direction:column;gap:2px;white-space:pre-wrap;overflow-wrap:anywhere}
.ln-m small{font-size:11.5px;font-weight:700;color:var(--muted)}
.ln-m.me{align-self:flex-end;background:var(--accent);color:var(--accent-ink)}
.ln-m.ai{align-self:flex-start;background:var(--sunk);border:1px dashed var(--line)}
.ln-m.gm{align-self:flex-start;background:var(--sunk);border-left:3px solid var(--accent)}
.ln-in{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--line);align-items:flex-end}
.ln-in textarea{flex:1;min-height:44px}

/* ── 13.285 Display presets (same as the portal's Preferences). data-theme stays dark|light for older rules; data-scheme sets the colours. ── */
:root{--side-mark:#4FD49A}
:root[data-scheme="night"]{--bg:#0A1A2F;--surface:#12263F;--sunk:#0E2038;--ink:#FFFFFF;--muted:#A9B6C8;--line:#233F63;--brand:#071425;--brand-2:#183152;--on-brand:#FFFFFF;--on-brand-muted:#A9B6C8;
  --accent:#FC6A2B;--accent-ink:#0A1A2F;--accent-soft:#3A2A24;--navy:#A9C0E4;--good:#4FD49A;--side-mark:#FC6A2B;--viz-grid:#233F63;--viz-axis:#A9B6C8}
:root[data-scheme="navy"]{--bg:#0E1E33;--surface:#142A45;--sunk:#112540;--ink:#EEF2F8;--muted:#A9B7CB;--line:#23406A;--brand:#0A1728;--brand-2:#1A3354;--on-brand:#EEF2F8;--on-brand-muted:#A9B7CB;
  --accent:#49F2A7;--accent-ink:#061311;--accent-soft:#1A3F48;--navy:#A9C0E4;--side-mark:#49F2A7;--viz-grid:#23406A;--viz-axis:#A9B7CB}
:root[data-scheme="harbor"]{--bg:#F6F8FB;--surface:#FFFFFF;--sunk:#EEF2F7;--ink:#0F2238;--muted:#5A6B80;--line:#DCE3EC;--brand:#0B2A4A;--brand-2:#12375D;--on-brand:#FFFFFF;--on-brand-muted:#A8BBD0;
  --accent:#C2410C;--accent-ink:#FFFFFF;--accent-soft:#FFEDE1;--navy:#0B2A4A;--side-mark:#FC6A2B;--viz-grid:#DCE3EC;--viz-axis:#5A6B80}
:root[data-scheme="light"]{--bg:#F3F6F2;--surface:#FFFFFF;--sunk:#E9EFEB;--ink:#11241D;--muted:#4F6259;--line:#D3DED7;--accent:#0B7A4B;--accent-ink:#FFFFFF;--accent-soft:#DDF3E7}
:root[data-scheme="contrast"]{--bg:#000000;--surface:#0E0E0E;--sunk:#000000;--ink:#FFFFFF;--muted:#DADADA;--line:#6B6B6B;--brand:#000000;--brand-2:#1C1C1C;--on-brand:#FFFFFF;--on-brand-muted:#DADADA;
  --accent:#FFE14D;--accent-ink:#000000;--accent-soft:#2A2600;--navy:#FFFFFF;--good:#7CFFB2;--warn:#FFB020;--crit:#FF8080;--side-mark:#FFE14D;--viz-grid:#6B6B6B;--viz-axis:#DADADA}
:root[data-scheme="contrast"] a{text-decoration:underline}
:root[data-scheme="contrast"] .btn,:root[data-scheme="contrast"] input,:root[data-scheme="contrast"] select,:root[data-scheme="contrast"] textarea{border-width:2px}
/* Main colour: dark schemes get the bright shade, light schemes the deep one; the left menu (always dark) keeps the bright one */
:root[data-accent="mint"]{--accent:#49F2A7;--accent-ink:#061311;--side-mark:#49F2A7}
:root[data-accent="orange"]{--accent:#FC6A2B;--accent-ink:#0A1A2F;--side-mark:#FC6A2B}
:root[data-accent="blue"]{--accent:#5AA9FF;--accent-ink:#061311;--side-mark:#5AA9FF}
:root[data-accent="gold"]{--accent:#F2C94C;--accent-ink:#1A1400;--side-mark:#F2C94C}
:root[data-accent="navy"]{--accent:#FFFFFF;--accent-ink:#0A1A2F;--side-mark:#FFFFFF}
:root[data-theme="light"][data-accent="mint"]{--accent:#0B7A4B;--accent-ink:#FFFFFF}
:root[data-theme="light"][data-accent="orange"]{--accent:#C2410C;--accent-ink:#FFFFFF}
:root[data-theme="light"][data-accent="blue"]{--accent:#1D4ED8;--accent-ink:#FFFFFF}
:root[data-theme="light"][data-accent="gold"]{--accent:#8A5A00;--accent-ink:#FFFFFF}
:root[data-theme="light"][data-accent="navy"]{--accent:#0B2A4A;--accent-ink:#FFFFFF;--side-mark:#FFFFFF}
:root[data-accent]:not([data-accent="default"]){--accent-soft:color-mix(in srgb,var(--accent) 16%,var(--surface))}
:root[data-scheme="contrast"][data-accent]{--accent:#FFE14D;--accent-ink:#000000;--side-mark:#FFE14D}
.side-i[aria-current="page"]{box-shadow:inset 3px 0 0 var(--side-mark)}
/* Text size and font */
:root[data-text="large"] body{zoom:1.15}
:root[data-text="xl"] body{zoom:1.3}
:root[data-font="readable"]{--display:"Atkinson Hyperlegible","DM Sans",system-ui,sans-serif;--body:"Atkinson Hyperlegible","DM Sans",system-ui,sans-serif}
:root[data-font="readable"] body,:root[data-font="readable"] input,:root[data-font="readable"] button,:root[data-font="readable"] select,:root[data-font="readable"] textarea{font-family:"Atkinson Hyperlegible","DM Sans",system-ui,sans-serif;letter-spacing:.01em}
/* Spacing: compact tightens cards, lists and the menu (more on screen for older or smaller monitors) */
:root[data-density="compact"] main .wrap{padding-top:10px}
:root[data-density="compact"] .card,:root[data-density="compact"] .h2-card,:root[data-density="compact"] .h2-w{padding:10px 12px}
:root[data-density="compact"] .h2,:root[data-density="compact"] .h2-grid,:root[data-density="compact"] .list{gap:8px}
:root[data-density="compact"] .side-i{min-height:32px;font-size:13.5px}
:root[data-density="compact"] td,:root[data-density="compact"] th{padding-top:5px;padding-bottom:5px}
:root[data-density="compact"] .btn{min-height:34px}

/* ── The left menu: icons, and collapse to icons only (remembered per person) ── */
.side-ico{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.side-i{justify-content:flex-start}.side-i>span{flex:1}
.side-brand{position:relative}
.side-tog{margin-left:auto;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;border:1px solid var(--brand-2);background:none;color:var(--on-brand-muted);cursor:pointer;padding:0}
.side-tog:hover{background:var(--brand-2);color:var(--on-brand)}
.side-tog .side-ico{width:16px;height:16px;transition:transform .2s}
@media (min-width:1100px){
  body.has-side{transition:padding-left .2s}
  body.has-side .side{transition:width .2s}
  body.has-side.side-mini{padding-left:68px}
  body.has-side.side-mini .side{width:68px;padding-left:8px;padding-right:8px;overflow-x:hidden}
  body.side-mini .side-brand{flex-direction:column;gap:10px;padding:6px 0 12px}
  body.side-mini .side-brand>span,body.side-mini .side-i>span{display:none}
  body.side-mini .side-tog{margin:0}
  body.side-mini .side-tog .side-ico{transform:rotate(180deg)}
  body.side-mini .side-h{font-size:0;padding:8px 0 4px;margin:6px 8px 0;border-top:1px solid var(--brand-2)}
  body.side-mini .side-i{justify-content:center;padding:0;position:relative}
  body.side-mini .side-n{position:absolute;top:2px;right:2px;padding:0 5px;font-size:10.5px}
}
@media (prefers-reduced-motion:reduce){body.has-side,body.has-side .side,.side-tog .side-ico{transition:none}}

/* ── Display sheet ── */
.dsp-g h3{font-size:14px;margin:0 0 8px}
.dsp-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.dsp-opt{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:10px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-weight:600;font-size:13px;cursor:pointer}
.dsp-opt:hover{border-color:var(--muted)}
.dsp-opt[aria-pressed="true"]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.dsp-opt small{font-weight:400;color:var(--muted);font-size:11.5px}
.dsp-font[data-v="readable"]>span{font-family:"Atkinson Hyperlegible","DM Sans",sans-serif}
.dsp-sw{display:flex;width:100%;height:22px;border-radius:6px;overflow:hidden;border:1px solid var(--line)}.dsp-sw i{flex:1}
.dsw-green i:nth-child(1){background:#0B241E}.dsw-green i:nth-child(2){background:#15392F}.dsw-green i:nth-child(3){background:#4FD49A}
.dsw-night i:nth-child(1){background:#0A1A2F}.dsw-night i:nth-child(2){background:#12263F}.dsw-night i:nth-child(3){background:#FC6A2B}
.dsw-harbor i:nth-child(1){background:#0B2A4A}.dsw-harbor i:nth-child(2){background:#FFFFFF}.dsw-harbor i:nth-child(3){background:#C2410C}
.dsw-navy i:nth-child(1){background:#0A1728}.dsw-navy i:nth-child(2){background:#142A45}.dsw-navy i:nth-child(3){background:#49F2A7}
.dsw-light i:nth-child(1){background:#F3F6F2}.dsw-light i:nth-child(2){background:#FFFFFF}.dsw-light i:nth-child(3){background:#0B7A4B}
.dsw-contrast i:nth-child(1){background:#000000}.dsw-contrast i:nth-child(2){background:#FFFFFF}.dsw-contrast i:nth-child(3){background:#FFE14D}
.dsp-acc{width:22px;height:22px;border-radius:50%;border:1px solid var(--line)}
.dac-default{background:linear-gradient(135deg,#4FD49A 50%,#FC6A2B 50%)}.dac-mint{background:#49F2A7}.dac-orange{background:#FC6A2B}.dac-blue{background:#5AA9FF}.dac-gold{background:#F2C94C}.dac-navy{background:linear-gradient(135deg,#0B2A4A 50%,#FFFFFF 50%)}
.dsp-aa{font-family:var(--display);font-weight:800;line-height:1}.dsp-aa-normal{font-size:16px}.dsp-aa-large{font-size:20px}.dsp-aa-xl{font-size:24px}
.h2-read{flex:none}

/* 13.289 Price & delivery check */
.pc-lines{display:flex;flex-direction:column;gap:10px}
.pc-line{display:flex;flex-direction:column;gap:4px}
.pc-in{display:grid;grid-template-columns:minmax(90px,1fr) 2.2fr 72px auto;gap:6px;align-items:center}
.pc-in .qty{width:72px}
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sec-head h3{margin:0}

/* 13.331 request history on the card */
.req-last{margin:2px 0 0;color:var(--ink)}
.req-hist-box{margin-top:8px}
ol.req-hist{list-style:none;margin:6px 0 0;padding:0 0 0 10px;border-left:2px solid var(--line);display:grid;gap:6px}
ol.req-hist li{display:grid;grid-template-columns:minmax(4.5em,auto) 1fr;gap:10px;font-size:13.5px;line-height:1.35}
ol.req-hist .req-hist-by{color:var(--muted);font-size:12.5px}
ol.req-hist .req-hist-at{color:var(--muted)}
/* 13.394 Orders for 30–50 lines: Needs you, then one compact row per request / quote / order */
.ob-needs{border:2px solid var(--accent);border-radius:12px;padding:12px 16px;background:var(--surface)}
.ob-needs-head{display:flex;flex-wrap:wrap;gap:10px;align-items:baseline;margin-bottom:4px}
.ob-needs-head h3{margin:0}
.ob-need{display:grid;grid-template-columns:96px minmax(0,1.1fr) minmax(0,2fr) 110px auto;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.ob-acts{display:flex;gap:8px;justify-content:flex-end}
.ob-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:10px}
.ob-chips,.ob-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ob-find{min-width:240px}
.ob-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.ob-body{min-width:980px}
.ob-row{display:grid;grid-template-columns:84px 118px 140px minmax(0,2.4fr) 140px 120px 170px 120px;gap:12px;align-items:center;min-height:44px;padding:0 14px;border-bottom:1px solid var(--line);font-size:14.5px;cursor:pointer}
.ob-row:hover{background:var(--sunk)}
.ob-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.ob-row.ob-th{cursor:default;min-height:36px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);background:var(--sunk)}
.ob-row > span,.ob-row > b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ob-ref,.ob-ship{color:var(--muted)}
.ob-dots{display:flex;gap:4px;align-items:center}
.ob-dots i{width:9px;height:9px;border-radius:50%;border:1.5px solid var(--line);box-sizing:border-box}
.ob-dots i.on{background:var(--accent);border-color:var(--accent)}
.ob-dots i.now{width:12px;height:12px}
.ob-more{padding:10px 2px}
@media (max-width:720px){.ob-need{grid-template-columns:minmax(0,1fr) auto}.ob-need > span:not(.ob-acts),.ob-need > b.num{display:none}}
@media (max-width:720px){.ob-body{min-width:0}.ob-scroll{border:0;background:transparent;overflow:visible}}
.ob-filters select{width:auto;min-width:180px}
.ob-filters .ob-find{width:280px}
@media (max-width:720px){.ob-filters,.ob-filters select,.ob-filters .ob-find{width:100%}}
/* 13.395 the cart in the header, on every page */
.cartbtn{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:10px;border:1px solid var(--on-brand-muted,#A9C2B6);background:transparent;color:inherit;font-weight:700;cursor:pointer;margin-right:8px}
.cartbtn b{background:var(--accent);color:var(--accent-ink);border-radius:999px;padding:1px 8px;font-size:13px}
.cartbtn[hidden]{display:none}
/* 13.398 PDF pages drawn in the app (no browser PDF viewer) */
.viewer-pages{display:flex;flex-direction:column;gap:12px;align-items:center;max-height:75vh;overflow:auto;padding:4px}
.viewer-page{width:100%;max-width:1100px;height:auto;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.ob-more{display:flex;gap:14px;align-items:center;flex-wrap:wrap}

/* 13.419 Vessel page: every button sits with its heading on the left, not pushed to the far right (Richard) */
.vpage > .head{flex-direction:column;align-items:flex-start;justify-content:flex-start}
.vpage .section > .head{justify-content:flex-start;align-items:center}
.vpage .arrangebar{justify-content:flex-start}

/* 13.423 Orders: sortable column headings */
.ob-th .ob-sort{background:none;border:0;padding:0;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;text-align:left;cursor:pointer;white-space:nowrap}
.ob-th .ob-sort.on{color:var(--ink)} .ob-th .ob-sort:hover{color:var(--accent)}
.ob-at{color:var(--muted);font-size:13px}
/* 13.426 Catalog v3: visual home, filters on the left once a category or brand is picked, Quick order */
.cat-layout.home{grid-template-columns:minmax(0,1fr)}
.cat-layout.home .cat-side{display:none}
.cat-filters{display:flex;flex-direction:column;gap:2px;padding:6px 2px}
.cat-filters .cat-back{color:var(--on-brand);opacity:.85;text-align:left;padding:6px 6px;font-weight:600}
.cat-fh{font-weight:800;font-size:17px;padding:6px}
.cat-fl{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75;padding:12px 6px 4px}
.cat-ways{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:6px}
.cat-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.cat-tile{display:flex;flex-direction:column;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;padding:0;cursor:pointer;color:var(--ink);font:inherit}
.cat-tile:hover{border-color:var(--accent)}
.cat-tile-i{height:110px;display:grid;place-items:center;background:var(--sunk);color:var(--ink)}
.cat-tile-t{display:flex;flex-direction:column;gap:3px;padding:12px 14px 14px}
.cat-tile-t strong{font-size:16px}
.cat-tile-b{margin-top:4px}
.cat-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:16px;margin:18px 0}
.cat-mini{padding:16px;margin:0}
.cat-mini-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.cat-mini-h h3{margin:0}
.cat-rows{display:flex;flex-direction:column}
.cat-row{display:flex;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.cat-row .grow{display:flex;flex-direction:column;min-width:0}
.cat-row .grow .sm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cat-row-p{white-space:nowrap;font-weight:600}
.cat-brands{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.cat-brand{display:flex;gap:8px;align-items:baseline;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 16px;cursor:pointer;color:var(--ink);font:inherit}
.cat-brand:hover{border-color:var(--accent)}
.cat-cant{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;background:var(--brand);color:var(--on-brand);border-radius:16px;padding:18px 20px}
.cat-cant > div:first-child{display:flex;flex-direction:column;gap:4px}
.cat-cant .sm{color:inherit;opacity:.85}
.catalog .cat-back{text-align:left}
.qo-in{display:flex;flex-direction:column;gap:10px;padding:14px;max-width:560px}
.qo-paste{font:14px/1.5 ui-monospace,Menlo,monospace;padding:10px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.qo-table td.mono{font-family:ui-monospace,Menlo,monospace}
.qo-table tr.qo-look{background:var(--sunk)}
.qo-qty{width:72px}
.qo-table select{max-width:420px}
.cat-tile-i.photo{background:#fff;padding:0}.cat-tile-i.photo img{width:100%;height:100%;object-fit:contain}   /* 13.427 category photos */
.cat-tile-i{height:150px}
/* 13.428 Catalog: filters inside a category (white panel, checkboxes), types of part as chips, count and sort above the grid */
.cat-side:has(.cat-fbox){background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.cat-side:has(.cat-fbox) .cat-back{color:var(--accent)}
.cat-fbox{display:flex;flex-direction:column;gap:2px}
.cat-fhead{display:flex;justify-content:space-between;align-items:baseline;padding:10px 6px 2px}
.cat-fhead strong{font-size:17px}
.cat-fsec{display:flex;flex-direction:column;gap:2px}
.cat-fsec .cat-fl{color:var(--muted);opacity:1}
.cat-ck{display:flex;align-items:flex-start;gap:8px;padding:5px 6px;font-size:14px;line-height:1.3;cursor:pointer}
.cat-ck input{margin-top:2px;flex:none}
.cat-ck .n{margin-left:auto;color:var(--muted);font-size:12px}
.cat-fsec .cat-f{padding:2px 6px 6px;color:var(--ink);font-size:13px}
.cat-fsec .cat-f select{width:100%}
.cat-title{margin:0 0 4px}
.cat-types{margin:10px 0 14px;align-items:center}
.cat-more{width:auto}
.cat-bar{align-items:center;justify-content:space-between}
.cat-bar > .sm{margin-left:0;padding-bottom:0}
.cat-bar .cat-sort{flex-direction:row;align-items:center;gap:8px}
/* 13.431 featured products: on the catalog home and at the top of a category */
.cat-feat{margin:18px 0 0}
.cat-featrow{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin-bottom:18px}
/* 13.432 the white filter panel: its links (Yours → Ordered before / For my equipment) were white on white in the light theme */
.cat-side:has(.cat-fbox) .cat-line{color:var(--ink)}
.cat-side:has(.cat-fbox) .cat-line:hover{background:var(--sunk)}
.cat-side:has(.cat-fbox) .cat-line.on{color:var(--accent);background:var(--sunk)}
.cat-side:has(.cat-fbox) .cat-line .n{color:var(--muted)}
/* 13.511 Order tracker */
.trk-range{justify-content:flex-end}
.trk-v{margin:0 0 14px;padding:12px 14px}
.trk-v h3{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 8px}
.trk-n{font-size:13px;color:var(--muted);font-weight:600}
.trk-row{display:grid;grid-template-columns:minmax(200px,1fr) 2.4fr;gap:14px;align-items:center;padding:10px 6px;border-top:1px solid var(--line);cursor:pointer;border-radius:8px;overflow:hidden}
.trk-row:hover,.trk-row:focus-visible{background:var(--sunk)}
.trk-what{display:flex;flex-direction:column;gap:2px;min-width:0}
.trk-what b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trk-what small{color:var(--muted)}
.trk-act{align-self:flex-start;margin-top:3px;font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--warn-soft);color:var(--ink)}
.trk-act:empty{display:none}
.trk-wait{color:var(--warn)!important;font-weight:600}
.trk-steps{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px}
.trk-stage{display:none}
.trk-st{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;font-size:11.5px;color:var(--muted);padding-top:2px}
.trk-st::before{content:'';position:absolute;top:8px;left:-50%;right:50%;height:2px;background:var(--line)}
.trk-st:first-child::before{display:none}
.trk-st.done::before,.trk-st.part::before{background:var(--accent)}
.trk-dot{position:relative;z-index:1;width:14px;height:14px;border-radius:50%;border:2px solid var(--line);background:var(--surface);margin-bottom:4px}
.trk-st.done .trk-dot{background:var(--accent);border-color:var(--accent)}
.trk-st.part .trk-dot{background:linear-gradient(90deg,var(--accent) 50%,var(--surface) 50%);border-color:var(--accent)}
.trk-st.no .trk-dot{background:var(--crit);border-color:var(--crit)}
.trk-st.done .trk-lb,.trk-st.part .trk-lb{color:var(--ink);font-weight:600}
.trk-st small{font-size:10.5px}
.trk-list{margin:10px 0;padding-left:20px}.trk-list li{margin:4px 0;color:var(--muted)}.trk-list li.done,.trk-list li.part{color:var(--ink)}
.trk-lines{margin:6px 0 12px;padding-left:20px}
.trk-do{margin:12px 0;padding:12px}
@media (max-width:760px){.trk-stage{display:block;color:var(--accent)!important;font-weight:700}.trk-row{grid-template-columns:1fr;gap:8px}.trk-st small{display:none}.trk-st .trk-lb{visibility:hidden;height:0}.trk-steps{padding-bottom:4px}}
/* 13.516 tracker: the command center's flashing dot, vessels that fold up */
.trk-flash{display:inline-block;width:9px;height:9px;border-radius:50%;background:#ff5a4f;margin:0 8px 1px 0;vertical-align:middle;animation:trk-dot 1s ease-in-out infinite;flex:none}
@keyframes trk-dot{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(255,90,79,.6)}50%{opacity:.25;box-shadow:0 0 0 5px rgba(255,90,79,0)}}
@media (prefers-reduced-motion:reduce){.trk-flash{animation:none}}
.trk-v h3{cursor:pointer;gap:8px;justify-content:flex-start;align-items:center;user-select:none}
.trk-v h3 .trk-n{margin-left:auto}
.trk-v.empty h3{cursor:default;margin:0}
.trk-v.empty{padding:9px 14px;opacity:.75}
.trk-v.shut h3{margin:0}
.trk-chev{width:14px;color:var(--muted);font-size:13px}
.trk-seen{border-color:#ff5a4f!important}
/* 13.519 the order's lines, each with where it is */
.trk-lstat{list-style:none;padding-left:0}
.trk-lstat li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line,#e5e9ef)}
.trk-lstat li small{white-space:nowrap;color:var(--muted,#5b6b7d);font-weight:600}
.trk-lstat li.done small{color:var(--ok,#167a4a)}
@media (max-width:600px){.trk-lstat li{flex-direction:column;gap:2px}.trk-lstat li small{white-space:normal}}
/* 13.565 Lists */
.lst h1{margin:4px 0 6px}
.lst-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px;margin:14px 0}
.lst-card{flex-direction:row;align-items:center;gap:12px;text-align:left;cursor:pointer;font:inherit;color:inherit}
.lst-card:hover{border-color:var(--accent)}
.lst-card .grow{display:flex;flex-direction:column;gap:3px}
.lst-ico{font-size:26px;line-height:1;width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:var(--sunk);flex:none}
.lst-new{display:flex;gap:8px;max-width:560px}
.lst-new input{flex:1;min-width:0}
.lst-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.lst-bar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}
.lst-lines{display:flex;flex-direction:column;gap:8px}
.lst-line{flex-direction:row;align-items:center;gap:12px;padding:10px 14px}
.lst-line .grow{display:flex;flex-direction:column;gap:3px;min-width:0}
.lst-line .chip{align-self:flex-start;font-size:11px;padding:2px 8px;min-height:0}
.lst-line.own{border-left:3px solid var(--gold)}
.lst-also{color:var(--muted)}
.lst-act{display:flex;align-items:center;gap:10px;flex:none}
.lst-qty{width:76px}
.lst-btn{margin-top:6px}
.lst-picks{display:flex;flex-direction:column;gap:6px;margin:8px 0 12px}
.lst-pick{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:var(--r);cursor:pointer}
.lst-own{display:flex;flex-direction:column;gap:10px}
.lst-f{display:flex;flex-direction:column;gap:4px;font-size:14px}
.lst-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:640px){.lst-line{flex-direction:column;align-items:stretch}.lst-act{justify-content:space-between}.lst-row{grid-template-columns:1fr}}

/* 13.571 equipment spares lists */
.lst-eq{margin-top:26px}
.lst-eqsec{margin:18px 0}
.lst-line.eq .lst-keep{display:flex;flex-direction:column;align-items:flex-end;min-width:90px;text-align:right}
.lst-line.eq .lst-keep strong{font-size:1.25em}
.lst-tip{display:flex;flex-direction:column;gap:4px;padding:12px 14px;margin-top:14px;border-left:3px solid var(--accent)}

/* 13.576 lists: tick and add to the cart, photos, icons */
.lst-line .lst-sel{width:20px;height:20px;flex:none}
.lst-pic{width:56px;height:56px;flex:none;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--line,#e5e7eb)}
.lst-pic img{max-width:100%;max-height:100%;object-fit:contain}
.lst-pic.none img.g{width:28px;height:28px;opacity:.35}
.lst-pic-own{font-size:24px}
.lst-all{display:inline-flex;align-items:center;gap:6px;font-weight:600;margin-right:6px}
.lst-all input{width:18px;height:18px}
.lst-ico-btn{font:inherit;background:none;border:1px dashed transparent;border-radius:8px;cursor:pointer;padding:0 4px}
.lst-ico-btn:hover{border-color:var(--accent)}
.lst-icons{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:8px;margin:10px 0}
.lst-icon{font-size:26px;height:52px;border-radius:10px;border:1px solid var(--line,#e5e7eb);background:var(--card,#fff);cursor:pointer}
.lst-icon.on,.lst-icon:hover{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent) inset}
.cart-pic{width:48px;height:48px;flex:none;border-radius:6px;background:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center}
.cart-pic img{max-width:100%;max-height:100%;object-fit:contain}
.cart-line.has-pic{grid-template-columns:auto 1fr auto auto;grid-template-areas:"pic what qty amt" "pic what x x"}
.cart-line .cart-pic{grid-area:pic}
@media (max-width:560px){.cart-line.has-pic{grid-template-columns:auto 1fr auto;grid-template-areas:"pic what what" "pic qty amt" "x x x"}}
@media (max-width:560px){.lst-line{flex-wrap:wrap}.lst-line .grow{flex:1 1 60%}.lst-line .lst-act{width:100%;justify-content:flex-end}}
.lst-lines + p.sm{margin-top:10px}

/* 13.580 order tracker: the next step, in plain words */
.trk-next{display:block;margin-top:3px;font-size:12px;color:var(--muted,#5b6b66)}
.trk-next.you{align-self:flex-start;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--warn-soft);color:var(--ink)}
.trk-coach{padding:10px 12px;border-radius:10px;background:var(--surface-2,rgba(0,0,0,.04));margin:6px 0 10px}
.trk-coach.you{background:var(--warn-soft);font-weight:600}
.trk-list .trk-help{display:block;color:var(--muted,#5b6b66);font-size:12px;margin-top:2px}
.trk-st[title]{cursor:help}

/* 13.581 Place order asks for a PO */
.po-ask{border:1px solid var(--warn,#d97706);background:var(--warn-soft);border-radius:10px;padding:10px 12px;margin:8px 0}
.po-ask p{margin:0 0 8px}

/* 13.625 the public page that shows how a customer opts in to Order by text (/fleet/text-orders) */
.textproof .tp-wrap { max-width: 720px; padding-top: 24px; padding-bottom: 48px; }
.textproof h1 { margin: 0 0 8px; }
.textproof h2 { margin: 28px 0 6px; font-size: 19px; }
.textproof p, .textproof li { line-height: 1.55; }
.textproof .tp-shot { display: block; width: 100%; max-width: 405px; height: auto; border: 1px solid var(--line, #2c5548); border-radius: 12px; margin: 10px 0 4px; }
.h2-welcome{color:var(--muted);font-size:15px;margin-top:6px;max-width:60ch}

/* 13.669 terms and POs on the broker page */
.rq-terms, .rq-pos { margin: 18px 0; }
.rq-terms h2, .rq-pos h2 { font-size: 16px; margin: 0 0 6px; }
.rq-terms dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 6px; }
.rq-terms dt { color: var(--muted); } .rq-terms dd { margin: 0; }

/* 13.752 The page stays hidden until it knows where it is going (sign-in, or on to the Bid Board), so the old green page never flashes. */
body.boot { visibility: hidden; }

/* 13.754 The three ways to send a request, one shown at a time; Terms as a link. */
.rq-modes{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.rq-modes button{background:transparent;border:1px solid var(--line,#2c5a48);color:inherit;border-radius:999px;padding:8px 14px;cursor:pointer;font:inherit}
.rq-modes button[aria-selected=true]{background:#4cd5a0;color:#0b2b20;border-color:#4cd5a0;font-weight:700}
.rq-terms>summary{cursor:pointer;list-style:none;display:inline-block;text-decoration:underline;color:#4cd5a0;margin:8px 0}
.rq-terms>summary::-webkit-details-marker{display:none}
.rq-terms[open]>summary{margin-bottom:4px}

/* 13.755 My RFQs: find and filter; one request opened. */
.rq-filter{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}
.rq-filter input[type=search]{min-width:16rem}
.rq-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:6px 18px;margin:12px 0}
.rq-placeform{margin-top:14px;display:flex;flex-direction:column;gap:10px}.rq-newplace{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.rq-sent{white-space:pre-wrap;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px;max-height:20rem;overflow:auto;font:inherit}
th[aria-sort] .linkbtn{font:inherit;font-weight:700}
/* 13.757 the Bid Board home: big buttons */
.rq-home{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:14px;margin:18px 0}
.rq-big{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;padding:22px 20px;min-height:7.5rem;border-radius:14px;border:1px solid rgba(127,140,150,.4);background:rgba(28,174,128,.12);color:inherit;font:inherit;cursor:pointer}
.rq-big b{font-size:1.25rem}
.rq-big:hover,.rq-big:focus-visible{background:rgba(28,174,128,.22);outline:2px solid rgba(28,174,128,.7)}
