/* Shared styles for all mock screens. */
:root{
  --bg:#FFFFFF;--sub:#F4F6F8;--line:#DDE3EA;--line-2:#C5CFDB;--line-3:#8493A8;
  --ink:#12354E;--ink-2:#3A4A63;--ink-3:#51607A;
  /* colours of the logo: navy for the main colour, sky for accents, the pale blue for backgrounds and what is selected or unread */
  --navy:#124565;--navy-tint:#EAF5F9;--sky:#39AACB;--sel:#D5ECF4;
  --yellow:#8A5300;--yellow-tint:#FEF3C7;--page:#F4F6F8;
  --red:#B91C1C;--red-tint:#FDE8E8;--blue:#1D4ED8;
  --font:'Noto Sans JP','Yu Gothic UI','Meiryo',system-ui,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 var(--font)}
a{color:var(--navy)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
/* whatever can be pressed fades to 70% under the pointer, and nothing else changes (no frame, colour or size);
   a box to type in shows focus by the colour of its own border, and the thin line above is for the keyboard only */
:is(a[href],button,summary,select,label:has(>input[type=radio]),label:has(>input[type=checkbox]),.up-pick,.msel-box):not(:disabled):not(.go):not(.pen):not(.msel-pop label):hover{opacity:.7}
:is(input:not([type=radio]):not([type=checkbox]),select,textarea):focus-visible{outline:0}
:is(input:not([type=radio]):not([type=checkbox]),select,textarea):focus{border-color:var(--navy)}
label.btn:has(:focus-visible){outline:2px solid var(--navy);outline-offset:2px}
input[type=radio],input[type=checkbox]{accent-color:var(--navy)}
svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
svg.i{width:18px;height:18px}
p{margin:0}
img{max-width:100%}
[hidden]{display:none!important}
/* words for screen readers only; pinned to the top left of their box, so one inside a strip that scrolls sideways never widens the page (10th review) */
.sr{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* role switch for the Paramount side: .adm = administrator only, .sal = sales only (ui.js sets html.sales) */
html.sales .adm,html:not(.sales) .sal{display:none!important}

/* frame */
:root{--side-w:220px;--panel-w:540px}
/* the app fits the window and the page itself never scrolls: the menu, the main area, a list, the panel and a chat each scroll on their own (10th review) */
html:has(body>.app),html:has(body>.app)>body{height:100%;overflow:hidden}
.app{display:grid;grid-template-columns:var(--side-w) minmax(0,1fr);height:100vh;height:100dvh}
.side{display:flex;flex-direction:column;gap:28px;min-height:0;padding:20px 12px;background:var(--navy-tint);color:var(--ink);border-right:1px solid var(--line);overflow:hidden}
.side>.nav{flex:1 1 auto;min-height:0;margin:0 -4px;padding:2px 4px;overflow-y:auto}
.brand{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:700;line-height:1.35;white-space:nowrap;color:var(--ink)}
.brand img{display:block;width:168px;height:auto;margin:4px 12px 0}
.brand span{padding:0 12px}
.nav{display:flex;flex-direction:column;gap:2px}
.nav a{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:6px;text-decoration:none;color:var(--ink);font-weight:400}
.nav a[aria-current=page]{background:#fff;color:var(--navy);font-weight:700;box-shadow:0 1px 3px rgba(18,53,78,.16)}
.nav svg{width:20px;height:20px}
.nav hr{width:calc(100% - 24px);margin:8px 12px;border:0;border-top:1px solid var(--line-2)}
.badge{flex:none;white-space:nowrap;margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--red);color:#fff;font-size:14px;font-weight:700;line-height:22px;text-align:center}
/* who is logged in and the logout button are one group, set apart from the menu by a line */
.me{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:16px;border-top:1px solid var(--line-2)}
.me p{padding:0 12px;font-size:14px;line-height:1.5}
.me p>*{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.me b{font-size:15px}
/* logging out is done at every visit: a white button of its own, not one more menu entry */
.me .nav a{justify-content:center;border:1px solid var(--line-2);background:#fff;color:var(--navy);font-weight:700}
.main{min-width:0;min-height:0;display:flex;flex-direction:column;overflow-y:auto}
.page{display:flex;flex-direction:column;gap:32px;padding:24px 32px 48px}

/* type */
h1{margin:0;font-size:26px;line-height:1.3}
h2{margin:0;font-size:18px;line-height:1.4}
h3{margin:0;font-size:16px;line-height:1.4}
.muted{color:var(--ink-3)}
.small{font-size:14px}
.nw{white-space:nowrap}
.sec-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding-bottom:8px;border-bottom:2px solid var(--ink)}
.sec-h .end{margin-left:auto}
.head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 24px}
.head .end{margin-left:auto}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.cols{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start}
.stack{display:flex;flex-direction:column;gap:32px}
.bc a{color:var(--ink-3)}

/* parts */
.tag{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border:1px solid transparent;border-radius:4px;font-size:14px;font-weight:700;line-height:1.6;white-space:nowrap}
.s-todo{color:var(--ink-2);background-color:var(--bg);border-color:var(--line-3)}
.s-doing{color:var(--navy);background-color:var(--navy-tint);border-color:var(--navy-tint)}
.s-done{color:var(--ink-3);background-color:var(--sub);border-color:var(--sub)}
.s-hold{color:var(--ink-2);background-color:var(--sub);border-color:var(--line-3);border-style:dashed}
.s-skip{color:var(--ink-3);background-color:var(--bg);border-color:var(--line);text-decoration:line-through}
.t-info{color:var(--navy);background:var(--navy-tint)}
.t-plain{color:var(--ink-2);border-color:var(--line-2)}
/* due dates: red on the day and after it (the words tell which), yellow within 7 days, nothing earlier or once done */
.t-over,.t-today{color:var(--red);background:var(--red-tint)}
.t-soon{color:var(--yellow);background:var(--yellow-tint)}
.t-date{color:var(--ink-2);font-weight:500;padding-left:0;padding-right:0}
select.st{min-height:44px;padding:0 30px 0 10px;border:1px solid;border-radius:6px;font-weight:700;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351607A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;background-size:16px}
select.st.s-doing,select.st.s-done,select.st.s-hold{border-color:var(--line-3)}
/* a state that can be changed is a white box with its arrow on any row; the colour of its words still says the state */
select.st,select.st.s-todo,select.st.s-doing,select.st.s-done,select.st.s-hold,select.st.s-skip{background-color:var(--bg);cursor:pointer}
select.st option{color:var(--ink);background:var(--bg)}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--red);flex:none}
.unread{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--red);white-space:nowrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--navy);border-radius:6px;background:var(--bg);color:var(--navy);font-weight:700;text-decoration:none;white-space:nowrap}
.btn:disabled{border-color:var(--line-2);background:var(--sub);color:var(--ink-3);cursor:not-allowed}
.btn-p{background:var(--navy);border-color:var(--navy);color:#fff}
.btn-n{background:var(--navy);color:#fff}
.btn-q{border-color:transparent;background:transparent;padding:0 8px;font-size:16px}
.dl{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 8px;border:0;background:transparent;color:var(--navy);font-weight:700;text-decoration:none;white-space:nowrap}
.seg{display:inline-flex;width:fit-content;border:1px solid var(--line-2);border-radius:6px;overflow:hidden}
.seg button{min-height:44px;padding:0 14px;border:0;background:var(--bg);color:var(--ink-2);font-weight:500;white-space:nowrap}
.seg button+button{border-left:1px solid var(--line-2)}
.seg button[aria-pressed=true]{background:var(--navy);color:#fff;font-weight:700}
/* people: a white circle with a coloured ring; red for the viewer's own organisation, blue for the other one */
.av{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--bg);box-shadow:inset 0 0 0 1.5px currentColor;font-size:14px;font-weight:700;flex:none}
.av-h,[data-side=pb] .av-p{color:var(--red)}
.av-p,[data-side=pb] .av-h{color:var(--blue)}
.who{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.who .org{font-size:14px;color:var(--ink-3)}
.whos{display:flex;flex-wrap:wrap;gap:4px 12px}
.whos.col{flex-direction:column;gap:4px}
.lock{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--ink-3)}
.list{margin:0;padding:0;list-style:none}
.list>li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:52px;padding:8px 0;border-bottom:1px solid var(--line)}
.list .grow{flex:1 1 220px;min-width:0}
.list a.grow{text-decoration:none}
.input{min-height:44px;padding:0 12px;border:1px solid var(--line-3);border-radius:6px;background:var(--bg)}
textarea.input{padding:10px 12px;resize:vertical}
input[type=search].input{padding-left:38px;background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351607A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m16.5 16.5 4.5 4.5'/%3E%3C/svg%3E") 12px 50%/18px no-repeat}
.note{font-size:14px;color:var(--ink-3)}
.box{border:1px solid var(--line);border-radius:6px;padding:16px 20px}
.memo{background:var(--sub);padding:14px 18px}
.check{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.check input{width:20px;height:20px}
.chip{display:inline-flex;align-items:center;min-height:26px;padding:0 8px;border:1px solid var(--line-2);border-radius:4px;background:var(--bg);font-size:14px;color:var(--ink-2);white-space:nowrap}
button.chip{position:relative;min-height:32px;border-style:dashed;color:var(--navy)}
button.chip::after,.readers::after,.pin::after{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
.switch{width:52px;height:30px;padding:3px;border:0;border-radius:15px;background:var(--line-3);display:inline-flex}
.switch::before{content:"";width:24px;height:24px;border-radius:50%;background:#fff}
.switch[aria-checked=true]{background:var(--navy);justify-content:flex-end}

/* table */
.tbl{width:100%;border-collapse:collapse}
.tbl th{padding:10px 12px;border-bottom:1px solid var(--line-2);background:var(--sub);font-size:14px;font-weight:500;color:var(--ink-3);text-align:left;white-space:nowrap}
.tbl td{padding:8px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
.tbl tbody th{background:none;font-size:16px;color:var(--ink);font-weight:700;border-bottom:1px solid var(--line)}
.tbl .num{text-align:right;white-space:nowrap}
/* the name of an item in a list: two lines at most, cut with …; NEW stays beside it and never wraps. A line under it: two lines at most, close together */
.ttl{display:flex;align-items:flex-start;gap:8px;min-width:0;font-weight:700;color:var(--navy)}
.tx{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;min-width:0}
.ttl .fresh{flex:none;margin:2px 0 0}
.desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:4px;font-size:14px;line-height:1.45;color:var(--ink-3)}
/* the arrow at the end of a row is the one way to open the detail: a 44px target that turns pale blue under the pointer */
a.go{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:var(--ink-3);vertical-align:middle;transition:background-color .12s,color .12s}
a.go svg.i{width:24px;height:24px;stroke-width:2}
a.go:hover{background:var(--sel);color:var(--navy)}
.scroll{overflow-x:auto}

/* flow: five cells, the first stage in progress sits in the second one; chips under a cell show its length (1 chip = 1 month) */
.flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:0;list-style:none}
.flow li{display:flex;flex-direction:column;gap:8px;min-width:0}
.flow li+li{margin-left:-14px}
/* above the list: the stages keep their width however many there are, and the strip scrolls sideways inside itself */
.flow-wrap{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:start;gap:4px}
.flow-nav{margin-top:14px}
.flow-nav:disabled{opacity:.3;cursor:default}
.flow-sc{overflow-x:auto;scrollbar-width:thin;padding-bottom:6px}
.flow-wrap.more-r .flow-sc{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 48px),transparent)}
.flow-wrap.more-l .flow-sc{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 48px),transparent)}
.flow-wrap.more-l.more-r .flow-sc{-webkit-mask-image:linear-gradient(to right,transparent,#000 48px,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(to right,transparent,#000 48px,#000 calc(100% - 48px),transparent)}
.flow-sc .flow{display:flex;width:max-content}
.flow-sc .flow li{flex:0 0 236px}
.flow .cell{display:flex;flex-direction:column;justify-content:center;min-height:72px;padding:8px 26px 8px 34px;background:var(--sub);color:var(--ink-2);line-height:1.4;clip-path:polygon(0 0,calc(100% - 18px) 0,100% 50%,calc(100% - 18px) 100%,0 100%,18px 50%)}
.flow .first .cell{padding-left:18px;clip-path:polygon(0 0,calc(100% - 18px) 0,100% 50%,calc(100% - 18px) 100%,0 100%)}
.flow .cell span{font-size:14px;white-space:nowrap}
.flow .cell b{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.flow .f-done .cell{background:#DCE2EA;color:var(--ink-3)}
.flow .f-doing .cell{background:var(--navy);color:#fff}
.flow .f-doing .cell b{font-size:20px}
.flow .f-hold .cell{background:#E9EDF2;color:var(--ink-2)}
.flow .f-skip .cell b{text-decoration:line-through}
/* above the list the stages are buttons: the picked one is filled navy, the ones in progress pale blue */
.flow button.cell{width:100%;min-height:60px;border:0;font:inherit;text-align:left;cursor:pointer}
.flow[data-pick] .f-doing .cell{background:var(--sel);color:var(--navy)}
.flow[data-pick] .f-doing .cell b{font-size:17px}
.flow[data-pick] .cell[aria-pressed=true]{background:var(--navy);color:#fff}
.flow .cell:focus-visible{outline-offset:-6px}
.h-sm{font-size:14px;font-weight:700;color:var(--ink-3)}
.tools2{gap:8px 24px}
.tools2 .input{min-width:160px}
.tips{display:flex;align-items:center;gap:4px;padding-left:34px;font-size:14px;color:var(--ink-3);white-space:nowrap}
.flow .first .tips{padding-left:18px}
.tips i{width:24px;height:8px;background:var(--line-2)}
.tips{flex-wrap:wrap;row-gap:6px}
.tips>span{flex-basis:100%}
.f-done .tips i{background:var(--line-3)}
.f-doing .tips i{background:var(--navy)}
.f-doing .tips{color:var(--ink);font-weight:700}

/* task tree */
.tree td{height:52px}
.tree .ph td{background:var(--sub);padding:0}
.tree .ph button{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:0 12px;border:0;background:transparent;text-align:left}
.tree .divider th{padding:28px 12px 8px;border-bottom:1px solid var(--line-2);background:none;font-size:14px;font-weight:700;color:var(--ink-3)}
.tree .ttl{align-items:center;gap:2px 8px}
.tree .unread{margin-right:6px}
.tree .tg,.gantt .tg{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:-12px;border:0;border-radius:6px;background:transparent}
.tree .tg-sp,.gantt .tg-sp{width:32px;flex:none}
.tree .tgl{display:inline-flex;align-items:center;min-height:44px;margin-left:-12px;padding:0 10px 0 0;border:0;border-radius:6px;background:none;font:inherit;font-weight:700;color:var(--ink);text-align:left}
.tree .tgl>.chev{box-sizing:content-box;padding:0 13px;margin-right:2px}
.tree .chev,.gantt .chev{transition:transform .15s}
.tree [aria-expanded=true] .chev,.gantt [aria-expanded=true] .chev{transform:rotate(90deg)}
.tree td a:not(.go){display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-decoration:none}
.tree .sub .ttl{color:var(--navy);font-weight:500;min-height:28px}
.tree .go-sp{display:inline-block;width:44px;vertical-align:middle}
.tree .sub td:first-child{padding-left:56px}
.tree tbody.flat .sub td:first-child{padding-left:12px}
/* an item is the tinted heading of its detail items, folded or not, whatever its state; its detail items are white */
.tree tr.grp td{background:#EDF2F6}
.tree tr.grp .tgl,.tree tr.grp b{font-size:16px}
.tree tr[aria-current] td{background:var(--navy-tint)}
.tree .off .ttl,.tree .off .who{color:var(--ink-3)}
.from{font-size:14px;color:var(--ink-3)}
.doc{display:inline-flex;align-items:center;gap:6px;font-size:14px;white-space:nowrap}
.req{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;font-weight:700;line-height:1.45;color:var(--navy)}
.due{min-height:44px;padding:0 8px;border:1px solid var(--line-3);border-radius:6px;background:var(--bg);color:var(--ink);font:inherit}
/* the date, then the tag: the date takes the width of the date box, so the tags of items and detail items line up */
.due-v{display:inline-block;width:132px;padding-left:9px;color:var(--ink-2);font-weight:500;white-space:nowrap;vertical-align:middle}
.dfield.due{width:132px}
.dfield.due+.due-v+.tag,.due-v+.tag{margin-left:8px}
.acts{white-space:nowrap;text-align:right}
.tree td.acts{padding-left:0}
.ic{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:6px;background:none;color:var(--navy);vertical-align:middle}
.ic.add svg{width:22px;height:22px}
.sec-h .ic{align-self:center;margin:-12px 0}
.fresh{display:inline-block;margin-left:8px;padding:0 6px;border:1px solid var(--red);border-radius:4px;color:var(--red);font-size:12px;font-weight:700;line-height:1.5;vertical-align:middle;white-space:nowrap}
.ic.del{color:var(--ink-3)}
.ic.talk{position:relative}
.ic.talk .badge{position:absolute;top:2px;right:0;min-width:18px;height:18px;padding:0 5px;border-radius:9px;font-size:12px;line-height:18px}
.sort{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin:-10px -8px;padding:0 8px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit}
.sort[aria-pressed=true]{background:var(--navy);color:#fff;font-weight:700}

/* gantt */
.gantt{--g-lab:320px;position:relative;border:1px solid var(--line);overflow-x:auto}
.g-in{position:relative;min-width:880px}
.g-row{position:relative;display:grid;grid-template-columns:var(--g-lab) minmax(0,1fr);min-height:44px;border-bottom:1px solid #EEF1F5}
.g-row:last-child{border-bottom:0}
.g-lab{display:flex;flex-direction:column;justify-content:center;padding:4px 12px;line-height:1.4;background:var(--bg);border-right:1px solid var(--line);position:relative;z-index:2}
.g-lab small{font-size:14px;color:var(--ink-3)}
.g-trk{position:relative}
.g-heads{position:sticky;top:0;z-index:3}
.g-head{background:var(--sub)}
.g-heads{border-bottom:1px solid var(--line-2)}
.g-ym{height:32px;min-height:32px}
.g-ym .g-hc>div{align-items:flex-start;padding-left:8px;font-weight:700;color:var(--ink)}
.g-day{min-height:44px}
.g-head .g-lab{background:var(--sub);font-size:14px;color:var(--ink-3)}
.g-cols{position:absolute;top:32px;bottom:0;left:var(--g-lab);right:0;display:flex;pointer-events:none}
.g-cols div{border-left:1px solid #EEF1F5;min-width:0}
.g-cols .m1,.g-hc .m1{border-left-color:var(--line-2)}
/* Saturday framed in blue, Sunday in red, from the row of days to the foot (not the row of months) */
.g-cols .sat,.g-hc .sat{box-shadow:inset 0 0 0 1px rgba(29,78,216,.55);background:rgba(29,78,216,.05)}
.g-cols .sun,.g-hc .sun{box-shadow:inset 0 0 0 1px rgba(185,28,28,.55);background:rgba(185,28,28,.05)}
.g-hc .sat{color:var(--blue)}
.g-hc .sun{color:var(--red)}
.g-hc{display:flex;height:100%}
.g-hc div{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;font-size:14px;line-height:1.2;color:var(--ink-2);border-left:1px solid #EEF1F5;overflow:hidden}
/* today: the whole column, its date included, is tinted pale navy under the bars, and framed in navy on top (10th review) */
.g-cols .td,.g-hc .td{background:rgba(18,69,101,.09)}
.g-hc .td{color:var(--navy);font-weight:700}
.g-bar{position:absolute;top:50%;height:16px;margin-top:-8px;border-radius:8px;z-index:1}
/* bars take the colour of their due date, in calm tones: red on the day and after, yellow within 7 days, blue before that; finished ones grey */
.b-red{background:#D77F7F}
.b-yel{background:#E3BC5E}
.b-navy{background:#7097B8}
.b-fin{background:#D3DAE3}
.b-ph{height:8px;margin-top:-4px;border-radius:4px;background:var(--line-2)}
.b-ph.now{background:#7FC3D8}
.g-ph .g-lab{background:var(--sub);font-weight:700}
.g-t{flex-direction:row;align-items:center;justify-content:flex-start}
.g-t>div{display:flex;flex-direction:column;min-width:0}
.g-grp .g-lab span{font-weight:700}
.g-sub{min-height:40px}
.g-sub .g-lab{padding-left:68px}
.g-sub .g-bar{height:10px;margin-top:-5px;border-radius:5px}
/* today: its column framed in navy, one line of one width from the row of days to the foot */
.g-today{position:absolute;top:32px;bottom:0;box-shadow:inset 0 0 0 2px var(--navy);z-index:4;pointer-events:none}

/* task board (one task) */
.meta{display:flex;flex-wrap:wrap;gap:8px 32px;margin:0}
.meta div{display:flex;align-items:center;gap:10px}
.meta dt{font-size:14px;color:var(--ink-3)}
.meta dd{margin:0}
.meta.col{flex-direction:column}
.meta.col dt{min-width:9em}
.code{font:700 20px/1.4 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.04em}
/* task page with its chat open: the task on the left, the thread on the right */
/* the list with the detail of one item beside it; the panel stays on screen while the list scrolls */
.work{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
/* the detail opens in a panel fixed to the right edge, as high as the window; the main area stays on the left (10th review) */
.panel-side{position:fixed;z-index:20;top:0;right:0;bottom:0;width:var(--panel-w);display:flex;flex-direction:column;background:var(--bg);border-left:1px solid var(--line-2);box-shadow:-6px 0 20px rgba(18,53,78,.1)}
.app:has(.work.has-panel)>.main{margin-right:var(--panel-w)}
.panel-side .thread{position:static;flex:1 1 auto;min-height:0;height:auto;border:0;border-radius:0}
.work-main{min-width:0}
.thread{position:sticky;top:16px;display:flex;flex-direction:column;height:calc(100vh - 32px);border:1px solid var(--line-2);border-radius:8px;background:var(--sub);overflow:hidden}
.thread-h{display:flex;align-items:center;gap:8px;min-height:52px;padding:4px 4px 4px 16px;background:var(--navy);color:#fff}
.thread-h h2{display:flex;align-items:center;gap:8px;min-width:0;margin:0;font-size:16px}
.thread-h h2 span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thread-h .ic{margin-left:auto;color:#fff}
.thread-h :focus-visible{outline-color:#fff;outline-offset:-3px}
.thread-b{flex:1;min-height:0;display:flex;flex-direction:column;gap:14px;padding:16px;overflow-y:auto;overflow-x:hidden}
/* a block is never squeezed to fit (that cut the requested documents off): the body scrolls instead, under the fixed title and tabs */
.thread-b>*{flex-shrink:0}
.thread-b.info{gap:14px;background:var(--sub)}
.thread-b.info h3{font-size:15px}
.thread-b.info .meta.col dt{min-width:4.5em}
.thread-b.info .sec-h{border-bottom-width:1px}
.tabs{display:flex;background:var(--bg);border-bottom:1px solid var(--line-2)}
.tabs button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border:0;border-bottom:3px solid transparent;background:none;color:var(--ink-2);font-weight:500}
.tabs button[aria-selected=true]{border-bottom-color:var(--navy);color:var(--navy);font-weight:700}
.tabs .badge{margin:0}
.open-chat{display:block;padding:0 16px 12px;background:var(--bg)}
/* with the panel open the list keeps the name, the state and the due date; the people and the date box are in the panel */
.due-t{display:none}
.work.has-panel .tree th:nth-child(2),.work.has-panel .tree td:nth-child(2):not([colspan]),.work.has-panel .tree .due{display:none}
.work.has-panel .tree .due-t{display:inline-flex;margin:0}
/* and the date and its count of days sit one above the other, so the name keeps its room beside the wider panel (10th review) */
.work.has-panel .tree .due-v{display:block;width:auto;padding-left:0}
.work.has-panel .tree .due-v+.tag{margin:4px 0 0}
.newline{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:var(--red)}
.newline::after{content:"";flex:1;border-top:1px solid var(--red)}
.ask{display:flex;flex-direction:column;gap:8px;padding:14px 0;border-bottom:1px solid var(--line)}
.ans{padding:10px 14px;background:var(--sub)}
.log{margin:0;padding:0;list-style:none;font-size:14px;color:var(--ink-2)}
.log li{padding:6px 0;border-bottom:1px solid var(--line)}

/* chat */
.main:has(>.chatwrap){overflow:hidden}
.chatwrap{display:grid;grid-template-columns:320px minmax(0,1fr);flex:1 1 auto;min-height:0}
/* the list: its title, search and switch stay; only the chats under them scroll */
.chatwrap .rooms{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding-bottom:0}
.chatwrap #rooms{flex:1 1 auto;min-height:0;padding-bottom:16px;overflow-y:auto}
.chatwrap .page{min-height:0;gap:0;padding:12px 32px 16px;overflow:hidden}
/* the head of a chat: its kind and name on the left, the actions on the same row, low, so the messages lead (10th review) */
.chat-h{display:flex;align-items:center;gap:4px 12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.chat-t{flex:1;min-width:0}
.chat-t p{line-height:1.4}
.chat-t h2{font-size:24px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-t .lock{margin-top:2px}
.chat-back{display:none}
.copied{color:var(--ink-3);white-space:nowrap}
.chatwrap .chat-b{padding-top:16px}
.chatwrap .chat{flex:1;min-height:0;gap:0}
.chat-b{flex:1;min-height:0;display:flex;flex-direction:column;gap:18px;padding-bottom:16px;overflow-y:auto}
.chat{display:flex;flex-direction:column;gap:18px}
.day{align-self:center;font-size:14px;color:var(--ink-3)}
.msg{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;max-width:640px}
.msg .av{width:36px;height:36px}
.msg .meta{display:block;font-size:14px;color:var(--ink-3)}
.msg .meta b{color:var(--ink);font-size:15px;margin-right:6px}
.bubble{display:inline-block;margin-top:2px;padding:10px 14px;border:1px solid var(--line);border-radius:4px 12px 12px 12px;background:var(--bg)}
.msg.mine{align-self:flex-end;grid-template-columns:minmax(0,1fr) 36px}
.msg.mine .av{order:2}
.msg.mine>div{text-align:right}
.msg.mine .bubble{border-color:transparent;border-radius:12px 4px 12px 12px;background:var(--navy-tint);text-align:left}
.at{padding:0 4px;border-radius:3px;background:var(--sel);color:var(--navy);font-weight:700}
.readers{position:relative;min-height:28px;padding:0;border:0;background:none;font-size:14px;color:var(--ink-3);text-decoration:underline dotted;text-underline-offset:3px}
.readers .tip{display:none;position:absolute;z-index:5;bottom:100%;left:0;padding:6px 10px;border-radius:4px;background:var(--ink);color:#fff;white-space:nowrap}
.msg.mine .readers .tip{left:auto;right:0}
.readers:hover .tip,.readers:focus .tip{display:block}
.pin{position:relative;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin-left:4px;padding:0;border:0;border-radius:4px;background:none;color:var(--line-3);vertical-align:middle}
.pin[aria-pressed=true]{color:var(--navy)}
.pin[aria-pressed=true] svg,.pinline svg{fill:currentColor}
/* pinned messages come first, set apart from the rest by a line */
.pinned{display:flex;flex-direction:column;gap:18px;padding-bottom:16px;border-bottom:1px solid var(--line-2)}
.card{display:flex;flex-direction:column;gap:4px;margin-top:8px;min-width:240px}
.composer{display:flex;flex-direction:column;gap:8px;padding:12px 16px;background:var(--bg)}
.chatwrap .composer{padding:12px 0 0}
.cbox{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line-2);border-radius:12px;background:var(--bg)}
.cbox:focus-within{border-color:var(--navy)}
.cbox textarea{min-height:28px;max-height:200px;padding:0;border:0;outline:0;background:transparent;resize:none;line-height:1.6}
.cbar{display:flex;align-items:center;gap:4px;margin-left:-9px}
.cbar .ic{width:40px;height:40px;color:var(--ink-3)}
.cbar .ic svg{width:22px;height:22px}
.send{margin-left:auto;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:0;border-radius:8px;background:var(--navy);color:#fff;font-weight:700}
.send svg{width:18px;height:18px}
.cnote{font-size:13px;color:var(--ink-3)}
.rooms{border-right:1px solid var(--line);padding-bottom:16px}
.rooms-top{display:flex;flex-direction:column;gap:10px;padding:20px 16px 8px}
.rooms-top .seg{width:100%}
.rooms-top .seg button{flex:1}
.rooms details{margin-top:6px}
.rooms summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;font-size:14px;font-weight:700;color:var(--ink-3);cursor:pointer;list-style:none}
.rooms summary::-webkit-details-marker{display:none}
.rooms summary::before{content:"";width:7px;height:7px;margin-right:2px;border-right:2px solid;border-bottom:2px solid;transform:rotate(-45deg);transition:transform .15s}
.rooms details[open] summary::before{transform:rotate(45deg)}
.rooms summary .badge{margin-left:auto}
.rooms ul{margin:0;padding:0 8px;list-style:none}
.rooms a{display:flex;flex-direction:column;gap:2px;min-height:60px;padding:8px 10px;border-radius:8px;text-decoration:none;color:var(--ink)}
.rooms a[aria-current=page]{background:var(--sel)}
.rooms .r1{display:flex;align-items:center;gap:8px}
.rooms .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rooms a.un .nm{font-weight:700}
.rooms .tm{font-size:13px;color:var(--ink-3);white-space:nowrap}
.rooms .r2{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink-3)}
.rooms .pv{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rooms .r2 .badge{margin:0}
.rooms .lk svg{width:15px;height:15px;margin-right:4px;vertical-align:-2px}
.rooms li.more,.rooms li.none{padding:4px 10px;font-size:14px;color:var(--ink-3)}
.lock svg{width:16px;height:16px}

/* notices */
/* notices: an icon for the kind, the title and what it is about, the time, and an arrow; unread ones are pale blue and bold */
.nday{display:flex;flex-direction:column;gap:8px}
.notice{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.notice .nrow{display:grid;grid-template-columns:40px minmax(0,1fr) auto 44px;align-items:center;gap:4px 14px;min-height:64px;padding:10px 6px 10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink)}
.notice .new .nrow{border-color:var(--sel);background:var(--navy-tint)}
.notice .ni{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--sub);color:var(--navy)}
.notice .new .ni{background:var(--bg)}
.notice .ni svg{width:20px;height:20px}
.notice .nb{display:flex;flex-direction:column;min-width:0}
.notice b{font-weight:400}
.notice .new b{font-weight:700}
.notice .nb .tag{margin-left:6px;vertical-align:1px}
.notice .nt{font-size:14px;color:var(--ink-3);white-space:nowrap}

/* files (drive-like) */
.fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.fgrid a{display:flex;align-items:center;gap:10px;height:68px;padding:0 14px;border:1px solid var(--line);border-radius:6px;background:var(--sub);text-decoration:none;color:var(--ink);font-weight:500;line-height:1.4}
.fgrid .fn{flex:1;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.fgrid .n{flex:none;font-size:14px;font-weight:400;color:var(--ink-3)}
.file{display:flex;align-items:center;gap:10px;min-width:0}
/* a name or a folder too long for its column is cut with … */
.fname,.fold{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fold{display:block}
.files td{overflow-wrap:normal}
.back{display:inline-flex;align-items:center;gap:4px;width:fit-content;min-height:44px;color:var(--navy);font-weight:700;text-decoration:none}
.list.files>li{border-bottom:0;min-height:0;padding:4px 0}
.list.files .fchip{width:100%}
/* the kind of a file in its icon: colour and letters (PDF red, Excel green, CSV yellow, Word blue, others grey); the name beside it keeps its own look */
.fi{--fi:#8D96A3;position:relative;display:inline-flex;align-items:flex-end;justify-content:center;flex:none;width:22px;height:28px;padding-bottom:5px;border-radius:3px;background:var(--fi);color:#fff;font:800 7.5px/1 system-ui,sans-serif;letter-spacing:.02em;clip-path:polygon(0 0,calc(100% - 7px) 0,100% 7px,100% 100%,0 100%)}
.fi::before{content:"";position:absolute;top:0;right:0;width:7px;height:7px;background:rgba(255,255,255,.5)}
.fi-pdf{--fi:#D0524C}.fi-xls{--fi:#3E9A5F}.fi-csv{--fi:#D3A136}.fi-doc{--fi:#4775C9}.fi-ppt{--fi:#D9692B}
.file .fi{width:26px;height:32px;font-size:8.5px}
/* the file viewer: the file's name on the left and download and 閉じる on the right, the tools under it by how often they are used,
   the pages as large as the room allows, upright or sideways (10th review) */
dialog.modal.pv{width:min(1120px,calc(100vw - 32px));height:calc(100vh - 32px);height:calc(100dvh - 32px);max-height:none;overflow:hidden}
dialog.modal.pv[open]{display:flex;flex-direction:column}
dialog.modal.pv::backdrop{background:rgba(20,35,58,.62)}
dialog.modal.pv:fullscreen{width:100vw;height:100vh;border-radius:0}
.pv-h{display:flex;align-items:center;gap:12px;min-height:56px;padding:6px 8px 6px 20px;border-bottom:1px solid var(--line)}
.pv-h h2{flex:1;min-width:0;font-size:17px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pv-bar{display:flex;flex-wrap:wrap;align-items:center;gap:2px 16px;padding:2px 8px;border-bottom:1px solid var(--line)}
.pv-g{display:flex;align-items:center;gap:2px}
.pv-end{margin-left:auto}
.pv-page{width:64px;padding:0 6px;text-align:center}
.pv-of{padding:0 4px;color:var(--ink-3);white-space:nowrap}
.pv-zoom{min-width:136px}
.pv-g .ic:disabled{color:var(--line-2);cursor:default}
.pv-g .ic[aria-pressed=true],.pv-g .ic[aria-expanded=true]{background:var(--sel)}
dialog.pv.is-img .pv-pdf,dialog.pv.is-img [data-pv=find]{display:none}
.pv-find{display:flex;align-items:center;gap:8px;padding:4px 8px 4px 16px;border-bottom:1px solid var(--line)}
.pv-find .input{width:min(320px,100%)}
.pv-b:focus-visible{outline-offset:-2px}
.pv-b{position:relative;flex:1 1 auto;min-height:0;padding:16px;overflow:auto;scrollbar-gutter:stable;background:#E3E8EE}
.pv-pg{position:relative;margin:0 auto 16px;background:#fff;box-shadow:0 1px 4px rgba(18,53,78,.25)}
.pv-pg:last-child{margin-bottom:0}
.pv-pg canvas{position:absolute;inset:0;width:100%;height:100%}
.pv-pg img{position:absolute;left:50%;top:50%;max-width:none}
.pv-msg{display:flex;flex-direction:column;align-items:center;gap:12px;padding-top:80px;color:var(--ink-2);text-align:center}
/* the text of a page, invisible over its picture, for search and selection (from PDF.js) */
.textLayer{position:absolute;inset:0;overflow:hidden;line-height:1;text-align:initial;-webkit-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}
.textLayer :is(span,br){position:absolute;color:transparent;white-space:pre;cursor:text;transform-origin:0 0}
.textLayer span.markedContent{top:0;height:0}
.textLayer ::selection{background:rgba(57,170,203,.3)}
.textLayer .hl{border-radius:2px;background:rgba(57,170,203,.35)}
.textLayer .hl.cur{background:rgba(234,150,0,.55)}
.x{min-height:44px;padding:0 10px;border:0;background:none;color:var(--navy);font-weight:700}

/* dialog */
dialog.modal{width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:0;border-radius:6px;box-shadow:0 12px 40px rgba(20,35,58,.3);color:var(--ink)}
dialog.modal::backdrop{background:rgba(20,35,58,.5)}
.modal form{display:flex;flex-direction:column;gap:18px;padding:24px}
.modal h2{font-size:20px}
.field{display:flex;flex-direction:column;gap:6px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field>span:not([class]),.field>legend{padding:0;font-size:14px;font-weight:700}
fieldset.field{margin:0;padding:0;border:0}
.caution{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-radius:6px;background:var(--yellow-tint);font-size:15px}
.actions{display:flex;justify-content:flex-end;gap:8px}
dialog.modal.wide{width:min(680px,calc(100vw - 32px))}
fieldset.plain{display:flex;flex-direction:column;gap:18px;min-width:0;margin:0;padding:0;border:0}
.types{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.type{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:0 12px;min-height:72px;padding:12px 14px;border:1px solid var(--line-2);border-radius:10px;cursor:pointer}
.type input{position:absolute;opacity:0;pointer-events:none}
.type svg{grid-row:span 2;width:28px;height:28px;color:var(--navy)}
.type span{font-size:14px;color:var(--ink-3);line-height:1.4}
.type:has(input:checked){border-color:var(--navy);background:var(--navy-tint);box-shadow:inset 0 0 0 1px var(--navy)}
.type:has(input:focus-visible){outline:2px solid var(--navy);outline-offset:2px}
/* 詳細事項あり: a name and its bin on the right, framed like an entry of a list */
.mrow{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:8px;align-items:center;padding:10px 8px 10px 10px;border:1px solid var(--line);border-radius:8px}
dialog.modal.wide:has(#sub-many:not([hidden])){width:min(880px,calc(100vw - 32px))}

/* news */
.news{margin:0;padding:0;list-style:none;border-top:2px solid var(--ink)}
.news a{display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px;padding:16px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}
.news img{display:block;width:200px;height:112px;object-fit:cover}
.news .nb{display:flex;flex-direction:column;gap:4px}
.news b{font-size:18px;color:var(--navy);text-decoration:underline}
.mail{width:100%;max-width:680px;border:1px solid var(--line);background:var(--bg)}
.mail .mhead{padding:12px 36px;background:var(--navy);color:#fff;font-weight:700}
.mail .two,.editor .two{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;align-items:center}
.mail .two.rev,.editor .two.rev{grid-template-columns:minmax(0,1fr) 260px}
.mail .two img{display:block;width:260px;height:auto}
.mail .two h2{margin-bottom:8px}
.mail .cover,.editor .cover{display:block;width:100%;height:auto}
.mail .body{display:flex;flex-direction:column;gap:18px;padding:28px 36px 32px}
.mail h1{font-size:24px}
.mail h2{padding-bottom:6px;border-bottom:2px solid var(--ink)}
.mail .cta{align-self:center;min-width:240px}
.mail .foot{padding:16px 36px;background:var(--sub);font-size:14px;color:var(--ink-3)}
.editor{position:relative;width:100%;max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.editor .title{width:100%;padding:4px 0;border:0;border-bottom:2px solid transparent;font-size:30px;font-weight:700;line-height:1.4}
.editor .title::placeholder{color:var(--line-3)}
.editor .body{min-height:280px;font-size:17px;line-height:1.9}
.editor .body:focus-visible{outline:0}
.editor .body h2{margin:1.2em 0 .4em;font-size:21px}
.editor .body p{margin:0 0 1em}
.editor .body img{display:block;width:100%;height:auto;margin:0 0 1em}
.editor .body .two,.editor .body table{margin:0 0 1em}
.editor .body .two img{width:260px;margin:0}
.editor .body .two h2{margin:0 0 8px}
.editor .body .two p{margin:0}
.editor .body .cta{display:flex;width:fit-content;min-width:240px;margin:0 auto 1em}
.toolbar{display:flex;flex-wrap:wrap;gap:2px;width:fit-content;padding:4px;border:1px solid var(--line-2);border-radius:6px;background:var(--bg)}
.toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 10px;border:0;border-radius:4px;background:none;font-weight:700;color:var(--ink-2)}
.toolbar.float{position:absolute;z-index:5;border-color:var(--ink);background:var(--ink)}
.toolbar.float button{color:#fff}

/* login */
.login{min-height:100vh;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr)}
.login .lead{display:flex;flex-direction:column;justify-content:center;gap:16px;padding:48px;background:var(--navy-tint);color:var(--ink)}
.login .lead .brand{gap:20px;font-size:30px}
.login .lead .brand img{width:340px;margin:0}
.login .lead .brand span{padding:0}
.login form{align-self:center;justify-self:center;width:100%;max-width:400px;display:flex;flex-direction:column;gap:20px;padding:32px}
/* the password and showing it are one group */
.login .pw{display:flex;flex-direction:column;gap:2px}

/* one set of widths for every screen (10th review: PC, iPad sideways, iPad upright). New screens follow it as they are:
   1280px and wider (PC, a large iPad sideways): menu, main area and panel side by side, as before.
   1024-1279px (iPad sideways): the menu becomes a narrow column of icons with short names under them; the panel and the chat list get narrower.
   up to 1023px (iPad upright): the panel covers the main area (close returns to the list); the chat list and a chat take turns.
   Everything that can be pressed stays 44px or more, nothing needs a pointer to hover, and the page itself never scrolls at any width. */
@media (max-width:1279px){
  :root{--side-w:88px;--panel-w:460px}
  .side{gap:14px;padding:12px 6px}
  .brand img{width:72px;margin:2px auto 0}
  .brand span{display:none}
  .side .nav a{position:relative;flex-direction:column;justify-content:center;gap:2px;min-height:58px;padding:6px 2px;font-size:11.5px;line-height:1.25;text-align:center;white-space:normal}
  .side .nav svg{width:22px;height:22px}
  .side .nav .badge{position:absolute;top:3px;right:6px;margin:0;min-width:18px;height:18px;padding:0 5px;border-radius:9px;font-size:11px;line-height:18px}
  .side .nav hr{width:calc(100% - 12px);margin:6px}
  .me{gap:6px;padding-top:10px}
  .me p{padding:0;text-align:center}
  .me p span{display:none}
  .me b{font-size:13px}
  .page{padding:20px 24px 40px}
  .chatwrap{grid-template-columns:272px minmax(0,1fr)}
  .chatwrap .page{padding:10px 20px 12px}
}
@media (max-width:1023px){
  :root{--panel-w:calc(100vw - var(--side-w))}
  .app:has(.work.has-panel)>.main{margin-right:0}
  .chatwrap{grid-template-columns:minmax(0,1fr)}
  .chatwrap:not(.picked) .page{display:none}
  .chatwrap.picked .rooms{display:none}
  .chat-back{display:inline-flex;margin-left:-8px}
  .chatwrap .page{padding:8px 16px 12px}
  .gantt{--g-lab:200px}
  .tree .due{display:none}
  .tree .due-v{display:block;width:auto;padding-left:0}
  .tree .due-v+.tag{margin:4px 0 0}
  .page{padding:16px 20px 32px}
}
.readers.on .tip{display:block}
@media print{.side,.seg,.btn{display:none}.app{display:block;height:auto}html,body,.main{height:auto!important;overflow:visible!important}}

/* screens made of groups (the home screens): a grey page with white sheets, so that each group reads on its own */
.page.tint{flex:1;gap:24px;background:var(--page)}
.page.tint .cols,.page.tint .stack{gap:24px}
.sheet{padding:20px 24px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.sheet>.sec-h{margin-bottom:4px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.sheet h1{font-size:22px}
.sheet .list>li:last-child,.sheet .tbl tbody tr:last-child td,.sheet .tbl tbody tr:last-child th{border-bottom:0}
/* what the viewer has to do stands out a little from the rest */
.sheet.key{border-color:var(--sky);box-shadow:0 2px 10px rgba(57,170,203,.16)}
.sheet.key h2{font-size:20px;color:var(--navy)}
/* ten a page: the range and the total, then first / previous / numbers / next / last, in the middle under the list (10th review) */
.pager{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:20px}
.pg-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px}
.pg{min-width:44px;min-height:44px;padding:0 10px;border:0;border-radius:6px;background:none;color:var(--navy);font-weight:500;white-space:nowrap}
.pg[aria-current=page]{background:var(--navy);color:#fff;font-weight:700}
.pg:disabled{color:var(--line-2);cursor:default}
.pg-gap{min-width:20px;text-align:center;color:var(--ink-3)}
.tbl.fix{table-layout:fixed}
.tbl.fix td{overflow-wrap:anywhere}
.tbl.fix .who{flex-wrap:wrap;row-gap:0;white-space:normal}
.tbl.fix .who .org{flex-basis:100%;margin-left:34px;line-height:1.3}
/* the arrow at the end of a row (a.go) is the link; the row itself is not */
.tbl td.go{padding:0 4px;text-align:right}
.list>li>.grow+.nw{align-self:flex-start;padding-top:2px}

/* row actions folded into a menu (…) */
.kebab{position:relative;display:inline-block}
.menu{position:absolute;right:0;top:calc(100% + 4px);z-index:10;min-width:200px;padding:6px;border:1px solid var(--line-2);border-radius:8px;background:var(--bg);box-shadow:0 8px 24px rgba(18,53,78,.16)}
.menu button{display:flex;align-items:center;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:6px;background:none;text-align:left;white-space:nowrap}
.menu button:disabled{color:var(--ink-3);cursor:not-allowed}
.menu .danger{color:var(--red)}
.menu hr{margin:6px 0;border:0;border-top:1px solid var(--line)}
.me-tag{margin-left:8px;padding:0 6px;border:1px solid var(--line-2);border-radius:4px;font-size:12px;font-weight:700;color:var(--ink-3);vertical-align:2px}
/* the temporary password: one pale group, hidden until asked for, with copy beside it */
.ttl-ok{display:flex;align-items:center;gap:10px}
.ttl-ok svg{width:26px;height:26px;color:#15803D}
.pass{display:flex;flex-direction:column;gap:12px;padding:16px 18px;border-radius:8px;background:var(--navy-tint)}
.pass dl{display:grid;grid-template-columns:7em minmax(0,1fr);align-items:center;gap:10px 12px;margin:0}
.pass dt{font-size:14px;color:var(--ink-3)}
.pass dd{display:flex;align-items:center;gap:4px;margin:0}
.pass .code{min-width:9em}
.who-list{display:flex;flex-wrap:wrap;gap:0 16px;padding:4px 0 0 28px}
/* figures across the top of a home screen; each leads to the list behind it */
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.kpi{display:flex;flex-direction:column;gap:2px;min-height:96px;padding:16px 20px;border:1px solid var(--line);border-radius:10px;background:var(--bg);text-decoration:none;color:var(--ink)}
.kpi span{font-size:14px;color:var(--ink-3)}
.kpi b{font-size:30px;line-height:1.3}
.kpi b small{margin-left:4px;font-size:15px;font-weight:500;color:var(--ink-3)}
.kpi.bad b{color:var(--red)}
.kpi.warn b{color:var(--yellow)}
.u-off{color:var(--ink-3);background:var(--sub);border-color:var(--line)}
.late-day{color:var(--red);font-weight:700}
.tbl td.num a.tag{text-decoration:none}
/* the news editor: a column of blocks; actions show beside the block under the pointer */
.editor .body .blk{position:relative;margin:0 0 1em;border-radius:6px;outline:1px dashed transparent;outline-offset:6px}
.editor .body .blk>*{margin:0}
.editor .body .blk.dragging{opacity:.4}
.editor .body hr,.mail hr{margin:8px 0;border:0;border-top:1px solid var(--line-2)}
.blk-acts{position:absolute;left:-58px;display:flex;flex-direction:column;gap:2px;padding:2px;border:1px solid var(--line-2);border-radius:8px;background:var(--bg);box-shadow:0 4px 12px rgba(18,53,78,.1)}
.blk-acts .ic{width:44px;height:36px;min-height:36px}
.blk-acts .grip{cursor:grab}
.cta-set{margin-top:10px;display:grid;grid-template-columns:1fr 1.4fr;gap:12px;padding:12px 14px;border:1px solid var(--line-2);border-radius:8px;background:var(--navy-tint)}
.mail .blk{margin:0 0 1em}
.mail .cta{display:flex;width:fit-content;min-width:240px;margin:0 auto}
.mail .two.rev>img,.editor .two.rev>img{order:2}
.check .lk svg{width:16px;height:16px;margin-right:2px;vertical-align:-3px;color:var(--ink-3)}

/* the panel: three blocks - what the item is, what the asking side added in words, and what is asked for; all white with the same frame */
.pblk{display:flex;flex-direction:column;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.pblk h3{font-size:15px}
.pblk p{white-space:pre-line}
.dent{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.dent-h{display:flex;align-items:center;gap:8px}
.dent-h b{flex:1;min-width:0;white-space:pre-line}
.dent-h .ic.del{margin:-10px -10px -10px 0}
/* something else to do: a round box on the left of each entry, white with a green tick when done (never filled) */
.rchk{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;margin:-1px 0;padding:0;border:2px solid var(--line-3);border-radius:50%;background:var(--bg);color:transparent}
.rchk svg.i{width:16px;height:16px;stroke-width:3}
.rchk[aria-checked=true]{border-color:#15803D;color:#15803D}
button.rchk::after{content:"";position:absolute;inset:-9px}
.dent-h:has(.rchk[aria-checked=true]) b{color:var(--ink-3)}
/* the pencil beside an answer: a pale blue circle and navy under the pointer, like the arrow to a detail */
.ic.pen{width:40px;height:40px;margin:-8px 0;border-radius:50%;color:var(--ink-3);transition:background-color .12s,color .12s}
.ic.pen:hover{background:var(--sel);color:var(--navy)}
.flab{font-size:13px;color:var(--ink-3)}
.fchip{display:flex;align-items:center;gap:8px;width:100%;min-width:0;min-height:44px;padding:0 12px;border:1px solid var(--line-2);border-radius:6px;background:var(--bg);color:var(--ink);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
/* a long file name is cut before its extension, so the kind of file stays in sight */
.fnm{display:flex;min-width:0;white-space:nowrap}
.fnm>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.fchip .fnm{flex:1}
.fchip svg:last-child{color:var(--ink-3)}
.t-yes{color:var(--navy);background:var(--navy-tint)}
.t-no{color:var(--red);background:var(--red-tint)}
.cm{display:flex;flex-direction:column;gap:2px;padding:8px 12px;background:var(--sub);border-radius:6px}
/* approving and not approving: the check and the cross without a circle, white, 22px, line 2.5 */
.btn.ok-yes{background:#12445D;border-color:#12445D;color:#fff}
.btn.ok-no{background:#C93636;border-color:#C93636;color:#fff}
.ok-yes svg.i,.ok-no svg.i{width:22px;height:22px;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.addent{display:flex;flex-direction:column;gap:8px;padding-top:4px}
.btn-d{background:var(--red);border-color:var(--red);color:#fff}
/* the file box (ui.js PB.up): a dashed area with the upload icon, for a click or a drop; a file in it is a solid row with its icon, name, state and x.
   Compact in a row of a list (as tall as the text box beside it), large in a dialog of its own */
.up{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:15px;font-weight:400}
.up-pick{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;padding:0 12px;border:1px dashed var(--line-3);border-radius:6px;background:var(--bg);color:var(--ink-2);cursor:pointer;text-align:center}
.up-pick svg{color:var(--ink-3)}
.up-pick>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.up:focus-within .up-pick,.up.over .up-pick{border-color:var(--navy)}
.up.over .up-pick{background:var(--navy-tint)}
.up.has:not(.up-l):not(.up-m) .up-pick{display:none}
.up-l .up-pick{flex-direction:column;gap:6px;min-height:132px;padding:16px;font-size:14px;color:var(--ink-3);line-height:1.7}
.up-l .up-pick>span{white-space:normal}
.up-l .up-pick svg{width:28px;height:28px}
.up-l .up-pick b{font-size:16px;font-weight:500;color:var(--ink)}
.up-files{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.up-f{display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;padding:2px 2px 2px 12px;border:1px solid var(--line-2);border-radius:6px;background:var(--bg)}
.up-l .up-f{min-height:60px}
.up-nm{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.35}
.up-nm b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.up-nm small{font-size:13px;color:var(--ink-3)}
.up:not(.up-l) .up-f.is-done small{display:none}
.up-files:empty{display:none}
.up-bar{display:none;height:3px;margin-top:4px;border-radius:2px;background:var(--line);overflow:hidden}
.up-bar i{display:block;width:0;height:100%;background:var(--navy);animation:up-go .6s linear forwards}
@keyframes up-go{to{width:100%}}
.up-f.is-busy .up-bar{display:block}
.up-f.is-err{border-color:var(--red);background:var(--red-tint)}
.up-f.is-err small{color:var(--red);font-weight:700}
.up-f .ic{width:36px;height:36px;color:var(--ink-3)}
/* the entries of a list: what is asked (one line at first, it grows), its files to refer to below it, the bin on the right.
   Close together inside an entry, more space between entries */
.ibox{display:flex;flex-direction:column;gap:12px}
.ients{display:flex;flex-direction:column;gap:14px}
.ient{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:6px 8px;align-items:start;padding:10px 8px 10px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.ient>[data-main]{grid-column:1;min-height:44px;field-sizing:content;max-height:200px;resize:none}
.ient>.up{grid-column:1}
.ient>.ic.del{grid-column:2;grid-row:1;width:36px;height:44px}
.addent .ient{grid-template-columns:minmax(0,1fr)}
.grip{display:inline-flex;align-items:center;justify-content:center;width:28px;height:44px;padding:0;border:0;border-radius:6px;background:none;color:var(--ink-3);cursor:grab}
/* who does it: several people, shown as tags with x in the box; the list of people opens under it */
.msel{position:relative;font-size:16px;font-weight:400}
.msel-box{display:flex;align-items:center;gap:6px;min-height:44px;padding:5px 4px 5px 8px;border:1px solid var(--line-3);border-radius:6px;background:var(--bg);cursor:pointer}
.msel.open .msel-box{border-color:var(--navy)}
.msel.err .msel-box{border-color:var(--red)}
.msel-tags{display:flex;flex-wrap:wrap;flex:1;gap:6px;min-width:0}
.msel-ph{display:none;padding-left:4px}
.msel.err .msel-ph{display:inline;color:var(--red);font-weight:700}
.mtag{display:inline-flex;align-items:center;height:30px;padding:0 0 0 10px;border-radius:15px;background:var(--navy-tint);color:var(--navy);font-size:14px;font-weight:700;white-space:nowrap}
.mtag button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:none;color:inherit}
.mtag svg{width:14px;height:14px}
.msel-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;padding:0;border:0;background:none;color:var(--ink-3)}
.msel-pop{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);max-height:240px;overflow-y:auto;padding:6px 12px;border:1px solid var(--line-2);border-radius:8px;background:var(--bg);box-shadow:0 8px 24px rgba(18,53,78,.16)}
/* an option: one line, cut with … however long the name; pale blue under the pointer */
.msel-pop{padding:6px}
.msel-pop .check{display:flex;min-width:0;padding:0 8px;border-radius:6px}
.msel-pop .check>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msel-pop .check:hover{background:var(--navy-tint)}
/* the filter of statuses: the statuses ticked, in words */
.sfil{min-width:220px}
.sfil .msel-tags{display:block;padding-left:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* a date field: 期限 until it is set, then 12/8（火）; the browser's calendar opens on a click */
.dfield{position:relative;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.field>.dfield,.mrow-a>.dfield{display:flex}
.dfield input[type=date]{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.dfield svg.i{margin-left:auto;color:var(--ink-3)}
.dfield.empty .dv{color:var(--ink-3)}
.dfield:focus-within{border-color:var(--navy)}
/* すべて表示 / 閉じる under a list: a line above, the words in the middle of the block, no frame; only the words react to the pointer */
.foot{display:flex;justify-content:center;margin-top:4px;padding-top:6px;border-top:1px solid var(--line)}
.foot:empty{display:none}
.more-b{min-height:44px;padding:0 16px;border:0;border-radius:6px;background:none;color:var(--navy);font-weight:700}
.more-b:focus:not(:focus-visible){outline:0}


/* Moved from the style= of the HTML pages (React version, 12/2026). Same values; named <screen>-<role>. Kept last so they win as the style= did */
.login-submit{min-height:52px}
.login-help{padding-top:16px;border-top:1px solid var(--line)}
.index-page{max-width:1120px;margin:0 auto;padding-top:48px}
.index-cols{grid-template-columns:1fr 1fr}
.news-page{gap:20px;max-width:960px}
.news-meta{gap:8px}
.article-page{gap:24px;align-items:center}
.article-back{align-self:flex-start;margin-left:-8px}
.article-table{width:auto}
.article-comments{gap:16px;width:100%;max-width:680px}
.article-composer{padding:12px 0 0}
.parts-page{gap:24px;max-width:1120px}
.parts-sec{gap:12px}
.parts-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.parts-nav{flex-direction:row;flex-wrap:wrap;gap:8px;max-width:640px}
.parts-ups{align-items:flex-start}
.parts-ups>.up{flex:1 1 280px}
/* the schedule: its least width and the column of today follow the days shown (were computed into style=) */
.task-gin{min-width:calc(var(--g-lab) + var(--g-n) * 25px)}
.task-today{left:calc(var(--g-lab) + (100% - var(--g-lab)) * var(--g-at));width:calc((100% - var(--g-lab)) / var(--g-n))}
.task-page{gap:20px}
.task-flow{gap:10px}
.task-vseg{margin-left:auto}
.task-subrows{gap:8px}
.panel-memo{margin-top:12px}
.panel-memo-by{margin-top:6px}
.panel-memo-action{margin-top:4px}
.page.tint .home-flow{gap:14px}
.home-col-status{width:120px}
.home-col-due{width:200px}
.home-col-go{width:56px}
.docs-page{gap:28px}
.docs-folder-head{gap:12px}
.docs-pick-folder{width:30%}
.docs-action{width:150px}
.docs-col-folder{width:22%}
.docs-col-stage{width:130px}
.docs-col-date{width:120px}
.docs-q{width:280px}
.chat-heading{font-size:22px}
.chat-new{margin-left:auto}
.notice-page{gap:20px;max-width:1040px}
.notice-tools{gap:12px 24px}
.users-page{gap:20px}
.users-search{width:320px}
.users-table-members{min-width:820px}
.users-table-staff{min-width:960px}
.users-table-accounts{min-width:900px}
.pb-home-admin-sales-stack{gap:24px}
.pb-home-staff-table{min-width:760px}
.pb-home-staff-area{font-weight:400;margin-left:8px}
.pb-home-paired-sections{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.pb-home-hospital-column{width:30%}
.pb-home-person-column{width:72px}
.pb-home-deadline-column{width:96px}
.pb-home-action-column{width:44px}
.pb-home-hospital-filter{width:280px}
.pb-home-item-column{width:32%}
.pb-home-date-column{width:136px}
.pb-home-wait-count-column{width:64px}
.pb-home-compact-action-column{width:36px}
.pb-projects-page-stack{gap:20px}
.pb-projects-case-table{min-width:1040px}
.pb-projects-assignee-option{margin-right:16px}
.project-flow{gap:14px}
.project-end{margin-left:auto}
.project-cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
dialog.modal.project-phase{width:min(880px,calc(100vw - 32px))}
.project-phase-name{width:100%;min-width:150px}
.page .roi-score-layout{align-items:flex-start;gap:24px 40px;margin-top:16px}
.page .roi-score-summary{flex:0 0 auto;line-height:1.1}
.page .roi-rank{font-size:56px;font-weight:700;color:var(--navy)}
.page .roi-score{font-size:20px;font-weight:700;margin-left:8px}
.page .roi-score-table{flex:1 1 560px;width:auto}
.page .roi-score-input{width:72px;text-align:right}
.page .roi-score-note{margin-top:8px}
.page .roi-estimate-layout{align-items:stretch;gap:32px;margin-top:16px}
.page .roi-estimate-form{flex:1 1 340px;display:flex;flex-direction:column;gap:12px}
.page .roi-estimate-row{flex-wrap:nowrap}
.page .roi-estimate-label{flex:1 1 auto}
.page .roi-estimate-input{width:104px;text-align:right}
.page .roi-estimate-unit{flex:0 0 44px}
.page .roi-contract-start{flex-wrap:nowrap;padding-top:12px;border-top:1px solid var(--line)}
.page .roi-estimate-results{flex:999 1 420px;display:flex;flex-direction:column;gap:16px;padding-left:32px;border-left:1px solid var(--line)}
.page .roi-chart-heading{justify-content:space-between}
.page .roi-chart-track{display:block;height:18px;margin-top:4px;background:var(--sub)}
.page .roi-chart-effect{display:block;width:0;height:18px;background:var(--navy)}
.page .roi-chart-cost{display:block;width:0;height:18px;background:#8493A8}
.page .roi-totals{margin:0;padding-top:16px;border-top:1px solid var(--line);gap:16px 32px}
.page .roi-hours-value{margin:0;font-size:22px;font-weight:700;line-height:1.3}
.page .roi-result-value{margin:0;font-size:28px;font-weight:700;line-height:1.3}
.page .roi-result-note{margin:0}
.page .roi-result-actions{margin-top:auto}
.page.newsnew-page-stack{gap:20px}
.page .newsnew-metadata-row{gap:8px}
.page .newsnew-category-field{width:220px}
.page .newsnew-block-table{width:auto}
.page .newsnew-preview-section{gap:16px;align-items:center}
.page .newsnew-preview-body{display:contents}
.page .newsnew-publish-form{gap:22px;max-width:640px;margin:0 auto}
.page .newsnew-publish-title{font-size:22px}
.page .newsnew-publish-choice{margin-right:20px}
.newsnew-table{width:auto}
