/* Alexine OS look: friendly, Rubik, one blue (#175CD3), colour that means something.
   Loaded last in index.html, after alexine-base.css and after the styles screens add.
   Built 1 Nov 2026 from the previews Yann approved and three audit rounds. */

/* Rubik, Hebrew and Latin as one family, self-hosted (SIL OFL, fonts/LICENSE-OFL-RUBIK.txt).
   One variable file per script covers 400 to 600. */
@font-face{font-family:"Rubik";font-style:normal;font-weight:400 600;font-display:swap;
  src:url(fonts/rubik-hebrew.woff2) format("woff2");
  unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Rubik";font-style:normal;font-weight:400 600;font-display:swap;
  src:url(fonts/rubik-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Rubik";font-style:normal;font-weight:400 600;font-display:swap;
  src:url(fonts/rubik-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}


:root{
  --font:"Rubik","Segoe UI",Arial,sans-serif;
  --fs-0:12.5px; --fs-1:13.5px; --fs-2:15px; --fs-3:18px; --fs-4:28px;

  --bg:#F2F5FA; --side:#FFFFFF; --panel:#FFFFFF;
  --line:#E0E6EF; --line2:#EDF1F7; --soft:#EEF3FA; --hover:#F6F9FD;
  --ink:#172033; --muted:#596579; --faint:#5F6B7E;
  --link:#175CD3; --link-bg:#EAF1FD; --accent:#175CD3; --accent-dk:#1249AA;

  --ok:#067647; --ok-bg:#E5F6EC; --ok-dot:#17B26A;
  --warn:#A64B00; --warn-bg:#FFF1DE; --warn-dot:#F79009;
  --risk:#C0261B; --risk-bg:#FDEBE9; --risk-dot:#F04438;
  --violet:#6B3FC0; --violet-bg:#F1EAFD;
  --teal:#0D7A66; --teal-bg:#E2F5F0;

  --r-panel:16px; --r-ctl:10px;
  --shadow:0 1px 2px rgba(23,32,51,.04), 0 6px 20px rgba(23,32,51,.04);
}

/* ---------- type ---------- */
body,html[dir="rtl"] body{font:var(--fs-2)/1.6 var(--font); color:var(--ink); background:var(--bg)}
button,input,select,textarea{font-family:var(--font)}
.search kbd{font-family:var(--font)}

/* ---------- shell ---------- */
aside{width:244px; background:var(--side); padding:20px 14px;
  border-inline-end:1px solid var(--line)}
.brand{padding:2px 8px 22px; gap:10px}
.brand .mark{background:var(--accent); border-radius:11px; width:34px; height:34px; font-size:15px}
.brand .t b{font-size:16px; font-weight:600}
.brand .t span{color:var(--muted)}
nav a{padding:10px 14px; border-radius:12px; margin-bottom:3px; color:var(--muted); font-weight:500}
nav a:hover{background:var(--soft); color:var(--ink)}
nav a.on{background:var(--link-bg); color:var(--accent); font-weight:600; box-shadow:none}
nav a.on svg{color:var(--accent)}
.side-foot{border-top-color:var(--line2)}
.side-foot .u .av{background:var(--link-bg); color:var(--accent); font-weight:600}
.lang button{border-color:var(--line); padding:6px 0}
.lang button.on{background:var(--accent); border-color:var(--accent); color:#fff}
.lang button:first-child{border-start-start-radius:10px; border-end-start-radius:10px}
.lang button:last-child{border-start-end-radius:10px; border-end-end-radius:10px}
.demo-chip{border-radius:999px}

.topbar{background:transparent; height:68px; padding:0 44px}
.crumbs{color:var(--muted)}
.crumbs a{color:var(--accent); text-decoration:none}
.search input{border-radius:999px; padding:10px 40px; width:300px; border-color:var(--line);
  background:var(--panel)}
.search input:focus{border-color:var(--accent); box-shadow:0 0 0 4px var(--link-bg)}

.content{padding:28px 44px 72px; max-width:1260px}
.page-head{margin:0 0 26px}
.page-head h1{font-size:var(--fs-4); font-weight:600; letter-spacing:-.015em; line-height:1.15}
.page-head .sub{color:var(--muted); font-size:var(--fs-1); margin-top:6px}

/* ---------- panels: big radius for a panel, small for what sits in it ---------- */
.panel{border-radius:var(--r-panel); border:1px solid var(--line); box-shadow:var(--shadow);
  overflow:hidden}
.panel .p-head{padding:18px 22px; border-bottom:1px solid var(--line2)}
.panel .p-head h2{font-size:var(--fs-3); font-weight:600}
.panel .p-body{padding:20px 22px}
.panel+.panel,.panel+details.panel,details.panel+.panel,details.panel+details.panel{margin-top:22px}
.tbl{border-radius:0}
.fold>summary:hover{background:var(--hover)}
.fold>summary .caret{display:inline-grid; place-items:center; width:20px; height:20px;
  background:transparent; color:var(--muted); font-size:14px; line-height:1}

/* section heading with its count as a soft pill */
.td-group>h2,.panel .p-head h2{display:flex; align-items:center; gap:8px}
.td-group>h2 .n,.p-head h2 .tag,.p-head .tag{background:var(--soft); color:var(--muted);
  border-radius:999px; padding:1px 10px; font-size:var(--fs-1); font-weight:500}
.td-group>h2{font-size:calc(var(--fs-3) + 2px); font-weight:600; margin:30px 0 12px}

/* ---------- tables: rows of about 46px, the whole row is the link ---------- */
th{font-size:var(--fs-1); font-weight:500; color:var(--muted); padding:12px 18px;
  background:var(--hover); border-bottom:1px solid var(--line)}
td{padding:13px 18px; border-bottom:1px solid var(--line2)}
tr:last-child>td{border-bottom:0}
tr.rowlink{cursor:pointer}
tr.rowlink:hover td{background:var(--hover)}
.lnk{text-decoration:none; color:var(--ink); font-weight:500}
.lnk:hover,tr.rowlink:hover .lnk{color:var(--accent)}
td .lnk{font-weight:500}

/* ---------- My Work rows ---------- */
.td-list{background:var(--panel); border:1px solid var(--line); border-radius:var(--r-panel);
  box-shadow:var(--shadow); overflow:hidden}
.td-item,.td-row{padding:15px 22px; border-bottom:1px solid var(--line2)}
.td-item:last-child{border-bottom:0}
.td-item:hover{background:var(--hover)}
.td-what{font-size:var(--fs-2)}
.td-sub{color:var(--muted); font-size:var(--fs-1)}

/* ---------- pills: status is a word in a soft colour ---------- */
.tag{border:0; border-radius:999px; padding:3px 11px; font-weight:500; font-size:var(--fs-1);
  background:var(--soft); color:var(--muted); line-height:1.5}
.tag.warn{background:var(--warn-bg); color:var(--warn)}
.tag.risk{background:var(--risk-bg); color:var(--risk)}
.tag.ok{background:var(--ok-bg); color:var(--ok)}
.tag.live{background:var(--link-bg); color:var(--accent)}
.tag.pj-production{background:var(--warn-bg); color:var(--warn)}
.tag.pj-sample{background:var(--violet-bg); color:var(--violet)}
.tag.pj-shipped{background:var(--teal-bg); color:var(--teal)}
.td-when.risk,.td-when.overdue{display:inline-block; background:var(--risk-bg); color:var(--risk);
  border-radius:999px; padding:3px 12px; font-weight:500; white-space:nowrap}
.td-when{color:var(--muted); white-space:nowrap}
.td-when:not(.risk):not(.overdue){display:inline-block; background:var(--soft); color:var(--ink);
  border-radius:999px; padding:3px 12px; font-weight:500}
.overdue{color:var(--risk); font-weight:600}

/* ---------- buttons ---------- */
.btn{background:var(--accent); border:1px solid var(--accent); color:#fff;
  border-radius:var(--r-ctl); padding:9px 18px; min-height:40px; font-weight:500}
.btn:hover{background:var(--accent-dk); border-color:var(--accent-dk)}
.btn.sec{background:var(--panel); color:var(--ink); border-color:var(--line)}
.btn.sec:hover{background:var(--hover); border-color:#C7D2E2}
.btn.small,.action-row .btn.sec,.td-act .btn{padding:5px 14px; min-height:34px; font-size:var(--fs-1);
  border-radius:999px}
.td-act .btn.sec,.td-act .btn{background:var(--link-bg); color:var(--accent); border-color:transparent}
.td-act .btn:hover{background:#DCE8FC}

/* ---------- boxes you fill in ---------- */
:where(select, textarea, input:not([type=checkbox],[type=radio],[type=file],[type=hidden])){
  border-radius:var(--r-ctl); border-color:var(--line); padding:9px 12px; font-size:var(--fs-1)}
:where(select, textarea, input):focus{border-color:var(--accent); box-shadow:0 0 0 4px var(--link-bg)}

/* ---------- project: facts and the stage track ---------- */
.facts .l{color:var(--muted); font-size:var(--fs-1)}
.facts .v{font-size:var(--fs-2); font-weight:500; margin-top:3px}
.rail{padding:22px 6px 10px}
.rstage{font-size:var(--fs-0); color:var(--muted)}
.rstage::before{height:4px !important; top:3px !important; background:var(--line) !important; border:0 !important}
.rstage .dot{width:11px; height:11px; border:2px solid var(--line); background:#fff}
.rstage.past .dot{background:var(--accent); border-color:var(--accent)}
.rstage.past::before,.rstage.cur::before{background:var(--accent) !important}
.rstage.past{color:var(--ink)}
.rstage.cur .dot{background:#fff; border:3px solid var(--accent); box-shadow:0 0 0 5px var(--link-bg);
  width:13px; height:13px}
.rstage.cur{color:var(--accent); font-weight:600}

/* ---------- pricing sheet: stays a tight grid ---------- */
.pg-tabs{gap:6px; background:transparent; border:0; padding:0}
.pg-tabs a,.pg-tabs button{border-radius:999px !important; border:1px solid var(--line) !important;
  background:var(--panel); padding:7px 16px; color:var(--muted)}
.pg-tabs a.on,.pg-tabs button.on,.pg-tabs .on{background:var(--accent) !important; color:#fff !important;
  border-color:var(--accent) !important}
.pg-wrap,.pg{border-radius:12px}
.pg td,.pg th{padding:6px 10px; font-size:var(--fs-1); border-color:var(--line2)}
.pg th{background:var(--hover)}
/* the totals line is the answer: a soft card with bigger numbers; the working line under it is quieter */
.pb-sum{margin-top:14px; padding:12px 16px; background:var(--panel); border:1px solid var(--line);
  border-radius:12px; font-size:var(--fs-2); color:var(--muted); gap:6px 12px}
.pb-sum b{font-size:20px; font-weight:600; color:var(--ink)}
.pb-params{margin-top:8px; font-size:13px; color:var(--muted)}
.pb-params b{font-weight:500}

/* fixes after the first look */
.td-row{border-bottom:0; padding:0}
th,th:first-child,.tbl table thead th,.tbl table thead th:first-child{background:var(--hover)}
@media (min-width:761px){aside{min-height:100vh; height:auto; align-self:stretch}}
.pg-bar,.pg-tabs{background:transparent !important; box-shadow:none !important; border:0 !important}

/* fixes from the preview audit, 1 Nov */
:root{--ctl-line:#8A94A6; --teal:#0B6E5C}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
:where(select, textarea, input:not([type=checkbox],[type=radio],[type=file],[type=hidden])),.btn.sec{border-color:var(--ctl-line)}
.td-item{padding:11px 20px}
.td-act .btn,.td-act .btn.sec{border-radius:var(--r-ctl); border:1px solid #B9CDF3; min-height:34px}
.tag.pj-production{background:var(--link-bg); color:var(--accent)}
.facts a.lnk,.pj-note a.lnk,.feed a.lnk,.pj-items a.pj-supname{color:var(--accent); text-decoration:underline;
  text-decoration-color:rgba(23,92,211,.35); text-underline-offset:3px}
.facts a.lnk:hover,.pj-note a.lnk:hover,.feed a.lnk:hover,.pj-items a.pj-supname:hover{text-decoration-color:currentColor}
.pg-tabs a,.pg-tabs button{border-color:transparent !important; background:transparent}
.pg-tabs a.on,.pg-tabs button.on,.pg-tabs .on{background:var(--link-bg) !important; color:var(--accent) !important; border-color:transparent !important}
.pg-tabs .on *{color:inherit; opacity:1}
.pg td,.pg th{padding:6px 8px; font-variant-numeric:tabular-nums}
.rstage .nm,.rstage{unicode-bidi:plaintext}
.fold>summary{cursor:pointer}
.info .tip{text-align:start}

@media (max-width:760px){
  .panel{overflow:visible}
  .wide-note{display:block}
  .td-item{flex-wrap:wrap; padding:12px 16px}
  .td-item>.td-act,.td-item>.td-when{flex-basis:auto}
  .topbar{flex-wrap:wrap; height:auto; padding:10px 16px; gap:8px}
  .search{width:100%}
  .search input{width:100%}
  .content{padding:16px 16px 48px}
}
/* My Work rows: the flex row is .td-row, so the padding lives there */
.td-item{padding:0 !important; border-bottom:0; border-top:1px solid var(--line2)}
.td-item:first-child{border-top:0}
.td-row{padding:11px 20px !important; min-height:0; border:0}
@media (max-width:760px){
  .td-row{padding:12px 16px !important; gap:8px 10px}
  .td-what{flex:1 1 100%}
}

/* ---------- fixes from round 1 of the look audit ---------- */

/* My Work on a desktop: the task and its pill and button stay within reach of each other */
.td-group,.td-group ~ details.fold{max-width:860px}
.td-row{gap:12px 16px}
@media (min-width:761px){
  /* the button column has a fixed width, so the red pills line up whether a row has a button or not */
  .td-list .td-act{width:180px; justify-content:flex-start}
  .td-row>.td-when:last-child{margin-inline-end:196px}
}

/* My Work tables: no colour stripe on the row (the client dot already says who);
   the project leads, the client is quieter */
.td-group .tbl td.acc{border-inline-start:0 !important; box-shadow:none !important; padding-inline-start:18px}
.td-group .tbl td:nth-child(2) .lnk{font-weight:400; color:var(--muted)}
/* the home screen title is enough; no breadcrumb repeating it */
.app:has(nav a.on[href="#/mine"]) .topbar .crumbs{visibility:hidden}

/* Project header: Finances is a second button, same shape as Start pricing */
.page-head .actions{display:flex; gap:8px; align-items:center}
.page-head .actions a.lnk{display:inline-flex; align-items:center; min-height:40px; padding:0 18px;
  border:1px solid var(--ctl-line); border-radius:var(--r-ctl); background:var(--panel);
  color:var(--ink); text-decoration:none; font-weight:500}
.page-head .actions a.lnk:hover{background:var(--hover)}

/* Project facts: a line to type on, shown only when filled, hovered or focused */
.pj-facts .v input.pj-in{border:0; border-bottom:1px dashed var(--ctl-line); border-radius:0;
  background:transparent; min-height:30px; width:100%; padding-inline:2px}
.pj-facts .v input.pj-in[value=""]:not(:focus){border-bottom-color:transparent}
.pj-facts .v input.pj-in:hover{border-bottom-color:var(--accent)}
/* a dropdown hugs its value, so the arrow sits next to it */
.pj-facts .v select.pj-in{width:auto; min-width:min(140px,100%); max-width:100%}
/* Next action reads like the other facts: from the start edge, normal weight */
.pj-facts .v textarea.pj-in{text-align:start; unicode-bidi:plaintext; font-weight:500; border:0;
  border-bottom:1px dashed var(--ctl-line); border-radius:0; background:transparent; padding-inline:2px; width:100%}
.pj-facts .v input.pj-in:focus{border-bottom:1px solid var(--accent); box-shadow:none}

/* Stage track: all stages fit in the card, labels wrap between words only */
.rail.pj-rail{overflow:visible}
/* equal slots, but never narrower than the longest word, so no word is cut */
.pj-rail .rstage{flex:1 1 0; min-width:min-content; max-width:none; padding-inline:2px}
.pj-rail .rstage,.pj-rail .rstage .nm{overflow-wrap:normal; word-break:normal; hyphens:none; line-height:1.3}

/* Items table: dates fit, group rows read as headings, empty date hints show only on hover */
.pj-items .pj-tp,.pj-items .pj-ready{width:76px}
@media (min-width:761px){
  /* the mostly empty tech pack column gives up width to the item names */
  .pj-items .pj-item{min-width:90px}
  .pj-items .pj-tp{width:64px}
  .pj-items th{white-space:normal}
}
/* Notes: three lines each, the rest opens on hover or focus */
@media (min-width:761px){.pj-feed .keeplines{display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden}
.pj-feed li:hover .keeplines,.pj-feed li:focus-within .keeplines{display:block; -webkit-line-clamp:unset}}
/* a phone has no hover, so there every note shows in full */
.pj-items .pj-cell.pj-date{min-width:0; white-space:nowrap; font-size:var(--fs-1)}
.pj-items .pj-date::placeholder{color:transparent}
.pj-items tr:hover .pj-date::placeholder,.pj-items .pj-date:focus::placeholder{color:var(--faint)}
.pj-items th{white-space:nowrap; padding-inline:6px}
.pj-items .pj-item{overflow-wrap:normal; word-break:normal}
.pj-group td{background:var(--soft); font-size:var(--fs-1); font-weight:500; color:var(--ink);
  padding-block:10px; padding-inline:20px !important}

/* Pricing sheet: use the full width, narrow the empty size columns so the line total shows */
.content:has(.pg-wrap){max-width:none}
.pg th:nth-child(n+7):nth-child(-n+12),.pg td:nth-child(n+7):nth-child(-n+12){width:44px; min-width:44px; padding-inline:4px}
table.pb td:nth-child(n+7):nth-child(-n+12) input{width:100%; min-width:0; padding-inline:4px}
.pg td.nm{max-width:180px}
table.pb td.in.nm input{min-width:0; text-overflow:ellipsis}
/* the line total is the answer: never clipped, never touching the edge */
.pg td:last-child,.pg th:last-child{padding-inline-end:12px; white-space:nowrap; max-width:none}
/* typed cells are white, worked-out cells are tinted, so it is clear where to type */
.pg td.n{background:var(--bg)}
.pg td.in{background:#fff}
.pg td.in:focus-within{box-shadow:inset 0 0 0 2px var(--accent)}
/* numbers line up on one side; codes and names start where the text starts */
table.pb td.in input{direction:ltr; text-align:right; font-variant-numeric:tabular-nums}
table.pg td.rf,table.pg td.n.rf,table.pg td.n.nm,table.pb td.in.rf input,table.pb td.in.nm input{text-align:start}
.pg-wrap[dir=rtl] table.pb td.in.rf input,.pg-wrap[dir=rtl] table.pb td.in.nm input{direction:rtl}
/* an empty cost cell shows no lone currency sign until you type in it */
table.pb td.in .cur:has(+ input[value=""]){visibility:hidden}
table.pb td.in:focus-within .cur{visibility:visible}
/* the totals line shows totals only, no row of dashes */
table.pb tr.tot .muted.dash{color:transparent}
table.pb tr.tot td{font-weight:600; background:var(--hover)}
/* one blue Save, the rest quiet */
.pg-bar .btn.sec,.pg-bar .pg-more>summary.btn.sec{border-color:var(--line); min-height:38px; padding:0 14px}
.pg-bar .btn.sec:hover,.pg-bar .pg-more>summary.btn.sec:hover{border-color:var(--ctl-line)}

@media (max-width:760px){
  /* the menu is a full-width strip that scrolls sideways, not a small box */
  aside{width:auto; min-height:0; padding:10px 16px; border-inline-end:0; border-bottom:1px solid var(--line)}
  aside nav{scrollbar-width:none}
  /* the far edge fades, so it is clear the menu goes on */
  html[dir=rtl] aside nav{-webkit-mask-image:linear-gradient(to left,transparent 0,#000 28px);
    mask-image:linear-gradient(to left,transparent 0,#000 28px)}
  html:not([dir=rtl]) aside nav{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 28px);
    mask-image:linear-gradient(to right,transparent 0,#000 28px)}
  aside nav a{margin:0; padding:8px 12px; flex:0 0 auto}

  /* My Work tables: drop the stage column (it is on the project page), keep the due date in view */
  .td-group .tbl{overflow-x:auto; -webkit-overflow-scrolling:touch}
  /* drop the stage only; who it waits on stays, Shirly reads it on her phone */
  .td-group .tbl th:nth-child(3),.td-group .tbl td:nth-child(3){display:none}
  .td-group .tbl td,.td-group .tbl th{padding:10px 6px; font-size:14px; line-height:1.35}
  .td-group .tbl td.acc{min-width:140px}
  .td-group .tbl td:nth-child(2) .lnk.nw{white-space:normal}
  .td-group .tbl td:nth-child(n+4){white-space:nowrap}
  /* pill and button sit together under the task */
  .td-act{width:auto; justify-content:flex-start}
  .td-row{align-items:center}

  /* Project items: fits the screen; keep picture, item, supplier, status and ready */
  .pj-items{min-width:0}
  .pj-items th:nth-child(2),.pj-items td:nth-child(2),.pj-items th:nth-child(4),.pj-items td:nth-child(4),
  .pj-items th:nth-child(6),.pj-items td:nth-child(6),.pj-items th:nth-child(7),.pj-items td:nth-child(7),
  .pj-items th:nth-child(9),.pj-items td:nth-child(9){display:none}
  .pj-items .pj-item{white-space:normal; overflow-wrap:normal; word-break:normal}
  .pj-group td{white-space:normal}
  /* Stage track: the last stage done, the current one and what is ahead */
  .rail.pj-rail{overflow:hidden}
  .pj-rail .rstage.past:has(+ .rstage.past){display:none}
  .pj-rail .rstage{flex:1 1 0; min-width:0}
}

/* ---------- My Work, round 2 ---------- */
/* the build badge is for the builder, not for the people using the app */
.demo-chip{display:none !important}
/* a fold reads as clickable: a full-size chevron by its title */
.fold>summary .caret{width:28px; height:28px; font-size:20px; color:var(--ink); border-radius:8px; background:var(--soft)}
@media (min-width:761px){
  /* pills and buttons sit in two straight columns, whatever the button says */
  #view .td-list .td-act{width:200px; justify-content:flex-end}
  #view .td-list .td-act .btn{max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
  #view .td-row>.td-when:last-child{margin-inline-end:216px}
}
#view .td-sub bdi{white-space:nowrap}
/* the morning message switch is a small quiet button under the list, its meaning behind the (i) */
#view>.td-foot:has(>[data-mw-digest-on]){max-width:860px; margin-top:22px; display:flex; align-items:center; gap:8px}
#view>.td-foot>[data-mw-digest-on]{font:inherit; font-size:var(--fs-1); font-weight:500; color:var(--ink); background:var(--panel);
  border:1px solid var(--line); border-radius:var(--r-ctl); padding:5px 12px; cursor:pointer; text-decoration:none}
#view>.td-foot>[data-mw-digest-on]:hover{background:var(--hover)}

/* ---------- My Work, round 3 ---------- */
/* Long overdue: a closed line under To do, its rows the same cards */
#mw-stale{max-width:860px; margin-top:12px}
#mw-stale>.td-list{border:0; box-shadow:none; border-top:1px solid var(--line2); border-radius:0}
/* My items opens like a section: its heading outside the card, the table in the card */
.mw-items{max-width:860px}
.mw-items>details.fold{background:transparent; border:0; box-shadow:none; overflow:visible}
.mw-items>details.fold>summary.p-head{padding:0; margin:30px 0 12px; border:0; background:transparent;
  display:flex; align-items:center; gap:8px}
.mw-items>details.fold>summary.p-head:hover{background:transparent}
.mw-items>details.fold>summary h2{font-size:calc(var(--fs-3) + 2px); font-weight:600}
.mw-items>details.fold>summary .tag{padding:1px 10px}
.mw-items>details.fold>.tbl{background:var(--panel); border:1px solid var(--line); border-radius:var(--r-panel);
  box-shadow:var(--shadow); overflow:hidden}
@media (max-width:760px){
  .mw-items>details.fold>.tbl{overflow-x:auto}
}

/* ---------- phone header, round 3 ---------- */
@media (max-width:760px){
  /* the menu strip fades over a wider edge and leaves room at its end, so it reads as scrolling */
  html[dir=rtl] aside nav{-webkit-mask-image:linear-gradient(to left,transparent 0,#000 56px);
    mask-image:linear-gradient(to left,transparent 0,#000 56px)}
  html:not([dir=rtl]) aside nav{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 56px);
    mask-image:linear-gradient(to right,transparent 0,#000 56px)}
  aside nav{padding-inline-end:40px}
  /* the language switch shows only the other language, as one small button away from the edge */
  aside .side-foot{gap:12px}
  aside .lang{margin-inline-start:4px}
  aside .lang button.on{display:none}
  aside .lang button:not(.on){flex:none; padding:6px 12px; border-radius:10px !important;
    background:transparent; color:var(--muted)}
}

/* sign-in (port/web/app.js signIn) */
.signin-gate{min-height:100vh; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:20px; padding:16px; background:var(--bg, #f6f7fb);
  font-family:inherit; text-align:center}
.signin-gate .brand{display:flex; align-items:center; gap:10px; font-size:20px}
.signin-gate p{max-width:360px; margin:0}
#me.signed{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
#me.signed .lnk{background:none; border:0; padding:0; cursor:pointer; font:inherit; color:var(--muted)}
/* a row of tab links drawn as tags (Finance, Supplier invoices): the open one is marked */
a.tag.on{background:var(--link-bg); color:var(--accent); border-color:#B2CCFF; font-weight:600}
/* a screen not open to this seat: one line in a full-width panel */
.panel.not-open,.panel.not-found{padding:18px 20px; margin-top:8px}
