/* PWCC ERP — one stylesheet, nothing loaded from outside (the typeface is served from /public/fonts).
   White paper, warm grey rules, and what is pressed is ink. Colour comes from the five flags of the PWCC logo:
   each part of the menu carries one in its icons (blue workspace, orange approvals, pink sales and events,
   teal pricing, green assets and HR; administration is grey), and a page takes its part's colour as --tone
   (the line under its tab). The blue is a lighter one than the logo's; the logo's own five stay in the strip
   on top of every page. Orange is still what waits for your decision, pink what is unread.
   The only other loud colours are the verdict colours (pass / CEO / not compliant).
   Korean is set in Pretendard (fetched only where Korean is shown), everything else in Figtree. */
@font-face { font-family: "Pretendard"; font-style: normal; font-weight: 45 920; font-display: swap;
  src: url(/public/fonts/pretendard-variable.woff2) format("woff2");
  unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/public/fonts/figtree-latin-wght-normal.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; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/public/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #fff; --surface: #fff; --tint: #f6f4f0; --tint-2: #eeebe5; --ink: #1d1c1a; --ink-2: #403e3a; --mute: #716e68; --icon: #96928a; --line: #e5e2db; --line-soft: #efece6;
  --rail-bg: #f6f4f0; --field: #f4f2ee; --tile: 0 1px 2px rgba(29, 28, 26, .1), 0 0 0 1px rgba(29, 28, 26, .04);
  --b-blue: #00529c; --b-teal: #32bcad; --b-green: #8dc63f; --b-orange: #fbb040; --b-pink: #ec008c;
  --f-blue: #1b6ef3; --f-orange: #e8890c; --f-pink: #e0007f; --f-teal: #12a091; --f-green: #6aa329; --f-grey: #86827a; --tone: var(--accent); --focus: #1b6ef3; --link: #1560e0;
  --nav: #003a70; --nav-ink: #c9dbee; --nav-hi: #fff;
  --accent: #1d232c; --accent-dark: #0b0f15; --accent-soft: #ebe9e4;
  --ok: #1b7a43; --ok-bg: #e8f4ec; --mid: #8f5400; --mid-bg: #fdf1d7; --bad: #c0261d; --bad-bg: #fcebe9; --info: #1b6ef3; --info-bg: #e8f1fe; --none: #625f59; --none-bg: #eceae5;
  --st-in: #1f9d55; --st-outside: #f2a900; --st-leave: #d93a2f; --st-off: #b9b9b9;
  --r: 8px; --r-lg: 14px; --r-ctl: 9px; --line-strong: #d0ccc3; --ring: 0 0 0 3px rgba(27, 110, 243, .22);
  --font: "Figtree", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans Tamil", "Tamil Sangam MN", "Nirmala UI", "Latha", sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
/* the text size a person chose in their profile: everything set in rem follows, frames set in px stay */
html[data-size="1"] { font-size: 16.5px; } html[data-size="2"] { font-size: 18px; } html[data-size="3"] { font-size: 19.5px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
:lang(ta) body, body:lang(ta) { line-height: 1.7; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0; font-weight: 750; letter-spacing: -.012em; }
h2 { font-size: 1rem; margin: 2.2rem 0 .6rem; font-weight: 700; }
h3 { font-size: .95rem; margin: 1.2rem 0 .4rem; font-weight: 700; }
p { margin: .5rem 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }
.ic { flex: none; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--mute); font-size: .88rem; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.mono-num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pre { white-space: pre-wrap; max-width: 76ch; }

/* ---------- shell: white frame (menu on the left, bar on top) around a lightly tinted work area ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--rail-bg); border-right: 1px solid transparent; padding: 0 .75rem 2rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.brand { display: block; padding: 1.1rem .55rem 1rem; }
.brand .logo { display: block; width: 150px; height: auto; }
/* the two marks side by side: the PWCC logo, a thin rule, the round mark of the company that manages the centre */
.brand-pair { display: inline-flex; align-items: center; gap: .7rem; }
.brand-pair > i { align-self: stretch; margin: .3rem 0; border-left: 1px solid var(--line-strong); }
.brand-pair .km { display: block; flex: none; width: 34px; height: 34px; }
.flags { display: flex; height: 4px; }
.flags i { flex: 1; }
.flags i:nth-child(1) { background: var(--b-blue); } .flags i:nth-child(2) { background: var(--b-teal); } .flags i:nth-child(3) { background: var(--b-green); }
.flags i:nth-child(4) { background: var(--b-orange); } .flags i:nth-child(5) { background: var(--b-pink); }
.nav-group { padding: .7rem 0 .5rem; }
.nav-group + .nav-group { border-top: 1px solid var(--line-soft); }
.nav-title { margin: 0 .6rem .35rem; font-size: .78rem; color: var(--mute); font-weight: 600; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.side li a { position: relative; display: flex; align-items: center; gap: .65rem; padding: .42rem .6rem; border-radius: var(--r); color: var(--ink-2); line-height: 1.3; }
/* each part of the menu in its flag colour; a page takes the colour of its part */
.nav-group[data-tone="blue"] { --g: var(--f-blue); } .nav-group[data-tone="orange"] { --g: var(--f-orange); } .nav-group[data-tone="pink"] { --g: var(--f-pink); }
.nav-group[data-tone="teal"] { --g: var(--f-teal); } .nav-group[data-tone="green"] { --g: var(--f-green); }
html:has(.nav-group[data-tone="blue"] :is(a[aria-current], .nav-fold.here)) { --tone: var(--f-blue); } html:has(.nav-group[data-tone="orange"] :is(a[aria-current], .nav-fold.here)) { --tone: var(--f-orange); }
html:has(.nav-group[data-tone="pink"] :is(a[aria-current], .nav-fold.here)) { --tone: var(--f-pink); } html:has(.nav-group[data-tone="teal"] :is(a[aria-current], .nav-fold.here)) { --tone: var(--f-teal); }
html:has(.nav-group[data-tone="green"] :is(a[aria-current], .nav-fold.here)) { --tone: var(--f-green); }
.side li a .ic { color: var(--g, var(--f-grey)); }
.nav-label { flex: 1; min-width: 0; }
.side li a:hover { color: var(--ink); background: var(--tint-2); text-decoration: none; }
.side li a:hover .ic { color: var(--g, var(--f-grey)); }
/* the page you are on: a white tile on the tinted column */
.side li a[aria-current] { color: var(--ink); background: var(--surface); box-shadow: var(--tile); font-weight: 650; }
.side li a[aria-current] .ic { color: var(--g, var(--f-grey)); }
.count { background: #d9007f; color: #fff; border-radius: 99px; font-size: .72rem; font-weight: 700; padding: 0 .45rem; min-width: 1.3rem; text-align: center; line-height: 1.3rem; font-variant-numeric: tabular-nums; }
.side .count { background: var(--line-soft); color: var(--mute); }
.side .count-inbox { background: var(--b-orange); color: #4a2c00; }
.side .count-mail { background: var(--accent-soft); color: var(--accent-dark); }
/* a group that is one row: pressed, its entries come down under it (it stands open on the group's own pages) */
.nav-rule { display: none; }
.nav-sum { position: relative; display: flex; align-items: center; gap: .65rem; padding: .42rem .6rem; border-radius: var(--r); color: var(--ink-2); line-height: 1.3; cursor: pointer; list-style: none; user-select: none; }
.nav-sum::-webkit-details-marker { display: none; }
.nav-sum .ic { color: var(--icon); }
.nav-sum > .ic:first-child, .nav-sum:hover > .ic:first-child { color: var(--g, var(--f-grey)); }
.nav-sum:hover { color: var(--ink); background: var(--tint-2); }
.nav-sum .chev { flex: none; opacity: .6; }
.nav-fold[open] > .nav-sum .chev { transform: rotate(180deg); }
.nav-fold[open] > .nav-sum .count { display: none; }                /* open, the row of the box itself has the number */
.nav-fold.here:not([open]) > .nav-sum { color: var(--ink); background: var(--surface); box-shadow: var(--tile); font-weight: 650; }
.nav-fold > ul { margin-top: 1px; }
.nav-fold > ul a { padding-left: 1.5rem; }

/* ---------- the menu as a rail: icons only, until the pointer (or the keyboard) is on it — then it opens beside the page and moves it right ---------- */
@media (hover: hover) and (min-width: 901px) {
  .shell { --rail: 62px; --side-open: 252px; grid-template-columns: var(--rail) minmax(0, 1fr); }
  .side { width: var(--rail); z-index: 30; overflow-x: hidden; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side > * { width: calc(var(--side-open) - 1.5rem - 1px); }       /* laid out once at full width: opening only uncovers it, nothing reflows */
  .side:hover, .side:focus-within { width: var(--side-open); }
  .shell:has(.side:is(:hover, :focus-within)) { grid-template-columns: var(--side-open) minmax(0, 1fr); }
  .shell:lang(ms), .shell:lang(ta) { --side-open: 324px; }
  /* with a second language: closed, the rail keeps its one-line rows; opened, the second language comes in
     under the first and the rows grow by that line */
  .shell:has(.side .ko2) { --side-open: 286px; }
  .side li a .ko2, .nav-sum .ko2 { max-height: 0; overflow: hidden; line-height: 1.2; }
  .side:hover li a .ko2, .side:focus-within li a .ko2, .side:hover .nav-sum .ko2, .side:focus-within .nav-sum .ko2 { max-height: 1.4em; }
  .side:hover li a:has(.ko2), .side:focus-within li a:has(.ko2), .side:hover .nav-sum:has(.ko2), .side:focus-within .nav-sum:has(.ko2) { padding-top: .24rem; padding-bottom: .24rem; }
  /* room below the last row, so the list can be moved to keep the row under the pointer where it was (public/app.js) */
  .side:hover nav:has(.ko2) { padding-bottom: 9rem; }
  .brand { padding-bottom: .35rem; }
  /* a group is told apart by a short line; opened, its name takes the place of the line */
  .nav-group, .nav-group + .nav-group { padding: 0; border-top: 0; }
  .nav-title { position: relative; display: flex; align-items: center; height: 1.75rem; margin: 0; padding: 0 .6rem; color: transparent; }
  .nav-group + .nav-group .nav-title::before { content: ""; position: absolute; left: .35rem; width: 1.7rem; top: 50%; border-top: 1px solid var(--line); }
  .side:hover .nav-title, .side:focus-within .nav-title { color: var(--mute); }
  .side:hover .nav-title::before, .side:focus-within .nav-title::before { opacity: 0; }
  /* a group that is one row has no name above it: its line stays, and runs the width of the opened menu */
  .side:hover .nav-rule::before, .side:focus-within .nav-rule::before { opacity: 1; width: calc(100% - .7rem); }
  /* closed, its entries stand in the column of the other icons; opened, they step in under the row */
  .nav-fold > ul a { padding-left: .6rem; }
  .side:hover .nav-fold > ul a, .side:focus-within .nav-fold > ul a { padding-left: 1.5rem; }
  .nav-sum .chev { opacity: 0; }
  .side:hover .nav-sum .chev, .side:focus-within .nav-sum .chev { opacity: .6; }
  /* words wait just left of their place */
  .nav-label, .side .count { opacity: 0; transform: translateX(-8px); }
  .side:hover :is(.nav-label, .count), .side:focus-within :is(.nav-label, .count) { opacity: 1; transform: none; }
  /* the highlight is a pill around the icon that grows into the full row */
  .side li a, .side li a:hover, .side li a[aria-current] { background: none; box-shadow: none; isolation: isolate; }
  .side li a::after { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 2.4rem; border-radius: var(--r); }
  .side li a:hover::after { background: var(--tint-2); }
  .side li a[aria-current]::after { background: var(--surface); box-shadow: var(--tile); }
  .side:hover li a::after, .side:focus-within li a::after { width: 100%; }
  .side .nav-sum, .side .nav-sum:hover, .side .nav-fold.here:not([open]) > .nav-sum { background: none; box-shadow: none; isolation: isolate; }
  .nav-sum::after { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 2.4rem; border-radius: var(--r); }
  .nav-sum:hover::after { background: var(--tint-2); }
  .nav-fold.here:not([open]) > .nav-sum::after { background: var(--surface); box-shadow: var(--tile); }
  .side:hover .nav-sum::after, .side:focus-within .nav-sum::after { width: 100%; }
  /* closed: only the mark of the logo; a dot on the icon says a decision is waiting */
  .brand .logo { clip-path: inset(0 70% 0 0); transform: translateX(-12px); }
  .side:hover .brand .logo, .side:focus-within .brand .logo { clip-path: inset(0); transform: none; }
  .side .brand-pair > i, .side .brand-pair .km { opacity: 0; }
  .side:hover .brand-pair > i, .side:hover .brand-pair .km, .side:focus-within .brand-pair > i, .side:focus-within .brand-pair .km { opacity: 1; }
  .side li:has(.count-inbox) { position: relative; }
  .side li:has(.count-inbox)::before { content: ""; position: absolute; z-index: 1; left: 1.55rem; top: .3rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--b-orange); box-shadow: 0 0 0 2px var(--surface); }
  .side:hover li:has(.count-inbox)::before, .side:focus-within li:has(.count-inbox)::before { opacity: 0; }
  .nav-sum:has(.count-inbox)::before { content: ""; position: absolute; z-index: 1; left: 1.55rem; top: .3rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--b-orange); box-shadow: 0 0 0 2px var(--surface); }
  .nav-fold[open] > .nav-sum::before, .side:hover .nav-sum::before, .side:focus-within .nav-sum::before { opacity: 0; }
}
@media (hover: hover) and (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  /* closing: quick and together */
  .side { transition: width .2s cubic-bezier(.4, 0, .6, 1); }
  .shell { transition: grid-template-columns .2s cubic-bezier(.4, 0, .6, 1); }
  .shell:has(.side:is(:hover, :focus-within)) { transition: grid-template-columns .28s cubic-bezier(.2, .8, .2, 1) .07s; }
  .nav-label, .side .count { transition: opacity .1s, transform .2s; }
  .side li a, .side li a .ko2 { transition: max-height .2s cubic-bezier(.4, 0, .6, 1), padding .2s cubic-bezier(.4, 0, .6, 1), background-color .12s; }
  .side:hover li a, .side:hover li a .ko2, .side:focus-within li a, .side:focus-within li a .ko2 { transition: max-height .28s cubic-bezier(.2, .8, .2, 1) .07s, padding .28s cubic-bezier(.2, .8, .2, 1) .07s, background-color .12s; }
  .nav-title { transition: color .1s; }
  .nav-title::before { transition: opacity .15s .1s; }
  .side li a::after { transition: width .2s cubic-bezier(.4, 0, .6, 1), background-color .12s; }
  .nav-sum, .nav-sum .ko2 { transition: max-height .2s cubic-bezier(.4, 0, .6, 1), padding .2s cubic-bezier(.4, 0, .6, 1), background-color .12s; }
  .side:hover .nav-sum, .side:hover .nav-sum .ko2, .side:focus-within .nav-sum, .side:focus-within .nav-sum .ko2 { transition: max-height .28s cubic-bezier(.2, .8, .2, 1) .07s, padding .28s cubic-bezier(.2, .8, .2, 1) .07s, background-color .12s; }
  .nav-sum::after { transition: width .2s cubic-bezier(.4, 0, .6, 1), background-color .12s; }
  .nav-sum .chev { transition: opacity .1s, transform .22s cubic-bezier(.2, .8, .2, 1); }
  .nav-sum::before { transition: opacity .12s .12s; }
  .nav-rule::before { transition: opacity .15s .1s, width .2s cubic-bezier(.4, 0, .6, 1); }
  .brand .logo { transition: clip-path .2s, transform .2s; }
  .side .brand-pair > i, .side .brand-pair .km { transition: opacity .2s; }
  .side li:has(.count-inbox)::before { transition: opacity .12s .12s; }
  /* opening: a short wait so a passing pointer does not trigger it, then the panel, then the words */
  .side:hover, .side:focus-within { transition: width .28s cubic-bezier(.2, .8, .2, 1) .07s; }
  .side:hover :is(.nav-label, .count), .side:focus-within :is(.nav-label, .count) { transition: opacity .2s .15s, transform .28s cubic-bezier(.2, .8, .2, 1) .12s; }
  .side:hover .nav-title, .side:focus-within .nav-title { transition: color .2s .15s; }
  .side:hover .nav-title::before, .side:focus-within .nav-title::before { transition: opacity .1s .07s; }
  .side:hover li a::after, .side:focus-within li a::after { transition: width .28s cubic-bezier(.2, .8, .2, 1) .07s, background-color .12s; }
  .side:hover .brand .logo, .side:focus-within .brand .logo { transition: clip-path .28s cubic-bezier(.2, .8, .2, 1) .07s, transform .28s cubic-bezier(.2, .8, .2, 1) .07s; }
  .side:hover li:has(.count-inbox)::before, .side:focus-within li:has(.count-inbox)::before { transition: opacity .1s; }
}
.col { display: flex; flex-direction: column; min-width: 0; }
/* the colour stripe takes the top 3px, so the row is centred in what is left under it */
.top { display: flex; align-items: center; gap: .5rem; min-height: 58px; padding: calc(.4rem + 3px) 1.6rem .4rem; background: var(--surface); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 5; }
.top-spacer { flex: 1; }
/* the free part of the bar carries one line of encouragement (Admin → Settings); it gives way before the tools do */
/* the five flag colours along the top edge of a bar, each running a short way into the next. The band is two bars long and
   carries the row twice, so it can drift by exactly one row and start again unseen */
.flow { position: absolute; inset: 0 0 auto; height: 3px; overflow: hidden; pointer-events: none; }
.flow::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 200%;
  background: repeating-linear-gradient(to right, var(--b-blue) 0 8%, var(--b-teal) 10% 18%, var(--b-green) 20% 28%, var(--b-orange) 30% 38%, var(--b-pink) 40% 48%, var(--b-blue) 50%); }
.top-note { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0; padding: 0 1.2rem; color: var(--mute); font-size: .9rem; font-weight: 400; }
.top-note > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-note .flap { display: inline-block; text-align: center; white-space: pre; }      /* one letter of the line while it turns over (app.js) */
.top-msg { margin-top: 2.6rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.top-msg td:first-child { width: 44%; } .top-msg td { vertical-align: middle; }
.top-ai { margin: .5rem 0 .8rem; padding-left: 1.15rem; columns: 2 22rem; column-gap: 2.4rem; color: var(--ink-2); font-size: .92rem; line-height: 1.7; }      /* the day's lines written by Claude */
.top-ai li { break-inside: avoid; } .top-ai-renew { margin-bottom: 1.6rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: .45rem .5rem; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px 0; }
/* the right end of the bar: language, notifications, the person — three buttons of one height and one manner,
   each opening a panel below itself */
.top-tools { display: flex; align-items: center; gap: .2rem; }
.top-sep { width: 1px; height: 1.5rem; margin: 0 .6rem; background: var(--line); }
.top .pop > summary { display: inline-flex; align-items: center; gap: .5rem; height: 2.6rem; padding: 0 .75rem; border: 0; border-radius: var(--r-ctl); background: none; color: var(--ink-2); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.top .pop > summary:hover { background: var(--tint); color: var(--ink); }
.top .pop[open]:not(.closing) > summary { background: var(--accent-soft); color: var(--accent-dark); }
.top .pop > summary.bell { position: relative; width: 2.6rem; padding: 0; justify-content: center; }
.bell .count { position: absolute; top: .2rem; right: .15rem; min-width: 1.15rem; padding: 0 .3rem; font-size: .66rem; line-height: 1.15rem; box-shadow: 0 0 0 2px var(--surface); }
.top .pop > summary.who { gap: .6rem; padding: 0 .7rem 0 .35rem; line-height: 1.2; }
.avatar { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--f-blue); color: #fff; display: grid; place-items: center; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.avatar > img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; background: var(--surface); }
.who-text { min-width: 0; text-align: left; }
.top .who > .who-text { max-width: 13rem; }
.top .who > .who-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-name { display: block; font-weight: 650; font-size: .9rem; color: var(--ink); }
.who-title { display: block; font-size: .76rem; font-weight: 400; color: var(--mute); }

/* a panel that opens below its button (language, notifications, the person): it comes down out of the button and goes back the same way */
.pop { position: relative; }
.pop > summary { list-style: none; cursor: pointer; user-select: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop .chev { flex: none; opacity: .6; }
.pop[open]:not(.closing) > summary .chev { transform: rotate(180deg); }
.pop-panel { position: absolute; right: 0; top: calc(100% + .55rem); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .18), 0 3px 8px rgba(0, 0, 0, .04); transform-origin: calc(100% - 1.3rem) 0; }
@media (prefers-reduced-motion: no-preference) {
  .pop .chev { transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
  .top .pop > summary { transition: background-color .14s, color .14s; }
  .pop[open] > .pop-panel { animation: menu-in .24s cubic-bezier(.2, .8, .2, 1); }
  .pop.closing > .pop-panel { animation: menu-out .14s cubic-bezier(.4, 0, 1, 1) forwards; }
  /* the rows follow the panel, one a moment after the other */
  .pop[open] .note-list li, .pop[open] .note-empty { animation: menu-row .3s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(.05s + var(--i, 0) * .028s); }
  .note-list li:nth-child(2) { --i: 1; } .note-list li:nth-child(3) { --i: 2; } .note-list li:nth-child(4) { --i: 3; } .note-list li:nth-child(5) { --i: 4; } .note-list li:nth-child(n+6) { --i: 5; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes menu-row { from { opacity: 0; transform: translateY(-6px); } }

/* notifications under the bell */
.note-panel { width: min(23.5rem, calc(100vw - 2rem)); overflow: hidden; font-weight: 400; white-space: normal; }
.note-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem .75rem; border-bottom: 1px solid var(--line-soft); }
.note-head h2 { margin: 0; font-size: 1rem; }
.link-btn { all: unset; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--link); border-radius: 4px; }
.link-btn:hover { text-decoration: underline; }
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.note-list { list-style: none; margin: 0; padding: .35rem; max-height: min(25rem, calc(100vh - 12rem)); overflow-y: auto; overscroll-behavior: contain; }
.note-list a { display: flex; align-items: flex-start; gap: .8rem; padding: .6rem .75rem; border-radius: var(--r); color: var(--ink); }
.note-list a:hover { background: var(--tint); text-decoration: none; }
.note-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.note-ic { flex: none; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-top: .05rem; color: var(--icon); }
.note-ic.tone-wait { color: #c27800; } .note-ic.tone-info { color: var(--f-blue); } .note-ic.tone-mid { color: var(--mid); }
.note-ic.tone-ok { color: var(--ok); } .note-ic.tone-bad { color: var(--bad); }
.note-text { flex: 1; min-width: 0; }
.note-title { display: block; font-size: .9rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.note-title .ko2 { display: block; margin-left: 0; }
.note-time { display: block; margin-top: .2rem; font-size: .76rem; color: var(--mute); }
.note-list .read .note-title { font-weight: 400; color: var(--ink-2); }
.note-list .unread a::after { content: ""; flex: none; align-self: center; width: .5rem; height: .5rem; border-radius: 50%; background: var(--b-pink); }
.note-empty { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: 0; padding: 2.2rem 1rem 2rem; color: var(--mute); font-size: .9rem; }
.note-empty .ic { color: var(--icon); }
.note-all { display: block; padding: .7rem; border-top: 1px solid var(--line-soft); text-align: center; font-size: .86rem; font-weight: 600; }
.note-all:hover { background: var(--tint); text-decoration: none; }

/* the person: who is signed in, then the two things to do about it */
.user-panel { min-width: 15rem; padding: .35rem; font-weight: 400; }
.user-card { display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem .8rem; margin-bottom: .35rem; border-bottom: 1px solid var(--line-soft); line-height: 1.25; }
.user-card .avatar { width: 2.4rem; height: 2.4rem; font-size: .84rem; }
.user-card .who-title { overflow-wrap: anywhere; white-space: normal; }
.menu-item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: .75rem; width: 100%; padding: .55rem .7rem; border-radius: var(--r); cursor: pointer; font-size: .92rem; color: var(--ink); }
.menu-item .ic { color: var(--icon); }
.menu-item:hover, .menu-item:focus-visible { background: var(--tint); text-decoration: none; }
.menu-item:hover .ic { color: var(--accent); }
.menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* where somebody is right now: a dot in the colour of the state, the word beside it (green in the office, yellow working outside, red on leave, grey gone or not in) */
.st { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.st > i { flex: none; width: .62rem; height: .62rem; border-radius: 50%; background: currentColor; color: var(--st-off); }
.st-in > i { color: var(--st-in); } .st-outside > i { color: var(--st-outside); } .st-leave > i { color: var(--st-leave); }
.st-in > i, .st-outside > i, .st-leave > i { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.st-left, .st-none { font-weight: 500; color: var(--mute); }
.st-word { white-space: nowrap; }
.st-note { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--mute); }
/* one's own, left of one's name; behind it the way to say "working outside" */
.top .pop.statemenu > summary { gap: .55rem; padding: 0 .65rem; }
.statemenu > summary .st { font-size: .9rem; color: var(--ink); }
.state-panel { display: grid; gap: .7rem; width: 17.5rem; padding: 1rem; font-weight: 400; }
.state-panel h2 { margin: 0; font-size: .78rem; font-weight: 600; color: var(--mute); }
.state-now { margin: 0 0 .15rem; }
.state-now .st { font-size: 1.02rem; color: var(--ink); }
.state-now .st > i { width: .72rem; height: .72rem; }
.state-panel input { width: 100%; }
.state-panel .btn > span > .ko2 { display: block; }
/* every page is laid out as the home page is: one width, the title at the left edge with what can be done at the right,
   then sections under a rule. Nothing sits in a box of its own. */
main { padding: 1.8rem 2rem 3rem; max-width: calc(1400px + 4rem); width: 100%; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin: .3rem 0 1.5rem; }
.page-head h1 { letter-spacing: -.02em; }
.page-head h1 .ko2 { margin-left: .2em; font-size: .56em; font-weight: 500; }
.page-sub { color: var(--mute); margin: .35rem 0 0; font-size: .95rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: inherit; font-size: .92rem; font-weight: 600; padding: .45rem .95rem; border-radius: var(--r-ctl); border: 1px solid transparent; background: var(--tint-2); color: var(--ink); cursor: pointer; min-height: 2.4rem; text-decoration: none; }
.btn:hover { background: var(--line); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #145a32; }
.btn-bad { color: var(--bad); background: var(--bad-bg); }
.btn-bad:hover { background: #f7d9d5; }
.btn-quiet { border-color: transparent; background: none; color: var(--mute); }
.btn-quiet:hover { background: var(--none-bg); color: var(--ink); }
.btn-small { min-height: 1.8rem; padding: .15rem .6rem; font-size: .82rem; }
.btn-lg { min-height: 2.75rem; padding: .5rem 1.15rem .5rem .95rem; font-size: 1rem; }
.btn-block { width: 100%; }
form.inline { display: inline; }
input, select, textarea, .sel-btn { font: inherit; color: inherit; background-color: var(--field); border: 1px solid transparent; border-radius: var(--r-ctl); padding: .45rem .7rem; width: 100%; min-height: 2.4rem; }
input:hover, select:hover, textarea:hover, .sel-btn:hover { border-color: var(--line-strong); }
input:focus-visible, select:focus-visible, textarea:focus-visible, .sel-btn:focus-visible, .sel-btn[aria-expanded="true"] { outline: 0; background-color: var(--surface); border-color: var(--focus); box-shadow: var(--ring); }
::placeholder { color: var(--icon); opacity: 1; }
/* a drop-down list before the script has dressed it (or without scripts): the same box, the same arrow */
select { appearance: none; -webkit-appearance: none; padding-right: 2.1rem; background-repeat: no-repeat; background-position: right .65rem center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f838c' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
textarea { resize: vertical; line-height: 1.45; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; padding: 0; margin: 0 .35rem 0 0; accent-color: var(--accent); }
input[type=file] { border-style: dashed; border-color: var(--line-strong); background-color: var(--surface); }
.in-num { max-width: 6.5rem; text-align: right; }
.in-money { max-width: 10rem; text-align: right; font-variant-numeric: tabular-nums; }
.in-date { max-width: 10.5rem; }
.f { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.f-wide { grid-column: 1 / -1; }
/* the mark for a required field stays next to the label's first line; a second language goes below */
.f-label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .2rem; font-size: .86rem; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.f-label .req { order: 1; margin-left: 0; }
.f-label .ko2 { order: 2; flex-basis: 100%; }
.f-hint { font-size: .8rem; color: var(--mute); line-height: 1.4; }
.req { color: var(--bad); margin-left: .15rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem 1rem; margin: .6rem 0 1rem; }
.stack { display: flex; flex-direction: column; gap: .8rem; max-width: 640px; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .6rem 0; }
.row > select, .row > input, .row > .sel { width: auto; }
.grow { flex: 1; min-width: 12rem; }
.actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: 1.2rem 0; }
/* the bar that stays in view: a white strip floating just above the bottom edge (the second shadow hides what scrolls below it) */
.actions.sticky { position: sticky; bottom: .9rem; z-index: 4; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .6rem .7rem; box-shadow: 0 12px 28px -16px rgba(0, 0, 0, .27), 0 .95rem 0 0 var(--bg); }
.bar-hint { flex: 1; min-width: 0; }
.bar-status { margin-left: auto; }
.cb, .rb { display: inline-flex; align-items: center; margin-right: 1rem; font-size: .92rem; white-space: nowrap; }
fieldset.opt { border: 0; border-top: 1px solid var(--line); padding: .7rem 0 .8rem; margin: .8rem 0; }
fieldset.opt legend { float: left; width: 100%; margin-bottom: .5rem; padding: 0; font-size: .86rem; font-weight: 700; }
fieldset.opt legend + * { clear: both; }
/* language menu: a bordered pill where it stands alone (sign-in), one of the quiet buttons in the top bar */
.langmenu { font-size: .9rem; }
.langmenu > summary { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .7rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font-weight: 600; white-space: nowrap; }
.langmenu > summary:hover { border-color: var(--icon); }
.langmenu-list { min-width: 12.5rem; padding: .35rem; display: flex; flex-direction: column; gap: 1px; }
.langmenu-list button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .7rem .5rem 2rem; border-radius: var(--r); cursor: pointer; font: inherit; color: var(--ink); position: relative; }
.langmenu-list button:hover, .langmenu-list button:focus-visible { background: var(--accent-soft); }
.langmenu-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.langmenu-list button[aria-current] { font-weight: 700; color: var(--accent-dark); }
.langmenu-list button[aria-current]::before { content: ""; position: absolute; left: .75rem; top: 50%; width: .6rem; height: .32rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(-45deg); }

/* bilingual mode: the second language sits next to the first, slightly smaller and lighter */
/* It travels in one piece: beside the first language while it fits on that line, otherwise as a whole on the
   next one (the space before it, written by the server, then disappears) — a line never breaks inside it
   unless it is longer than a line. A sentence (`ko2-s`, or anything in a note or hint) always goes below. */
.ko2 { display: inline-block; max-width: 100%; font-size: .84em; font-weight: 400; opacity: .72; letter-spacing: 0; }
.ko2, :lang(ko) { word-break: keep-all; }                 /* Korean breaks between words, not inside them */
.ko2-s, .note > .ko2, .page-sub > .ko2, .f-hint > .ko2, .warn > .ko2, .rule > .ko2, .flash > .ko2, .flash li > .ko2, .lead > .ko2 { display: block; margin-top: .12em; }
h1 .ko2, h2 .ko2 { font-size: .68em; }
.btn .ko2, .badge .ko2, .tag .ko2, .stamp-mark .ko2 { opacity: .85; }
.nav-title .ko2, .rb > .ko2, .cb > .ko2, .tbd > .ko2 { margin-left: .4em; }      /* a flex row drops the space */
.side li a .ko2, .nav-sum .ko2, .f-label .ko2, .stamp-role .ko2, .stamp-mark .ko2, thead th .ko2, .form-pick .ko2, .tag .ko2, .rows .row-title .ko2, .who .ko2 { display: block; margin-left: 0; }
.side li a .ko2, .nav-sum .ko2 { font-size: .8em; line-height: 1.25; }
.stamp-mark { flex-direction: column; }
.verdict .ko2 { display: block; margin: .25rem 0 0; font-size: .86em; opacity: .85; }
.note { font-size: .86rem; color: var(--mute); max-width: 84ch; }
.flash { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 1.2rem; padding: 0 0 .8rem; border-bottom: 1px solid var(--line); font-weight: 600; }
.flash::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.flash ul { margin: 0; padding-left: 1.1rem; }
.flash-ok { color: var(--ok); }
.flash-error { color: var(--bad); }
.warn { padding: 0; margin: .6rem 0; font-size: .92rem; font-weight: 600; color: var(--mid); }

/* ---------- tables ---------- */
.tw { overflow-x: auto; margin: .5rem 0 1.4rem; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: .6rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
th.num, td.num { text-align: right; }
thead th { padding-top: .2rem; padding-bottom: .55rem; font-size: .8rem; font-weight: 500; color: var(--mute); background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: bottom; }
table.list tbody tr:hover { background: var(--tint); }
/* the reason a document was rejected: two lines at most, the whole text in the title */
table.list td.reason { min-width: 12rem; max-width: 26rem; }
table.list td.reason > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
tr.unread td { font-weight: 600; }
tr.empty td, li.empty { color: var(--mute); text-align: left; padding: .9rem .7rem; }
table.list tbody tr.empty:hover { background: none; }
table.dense th, table.dense td { padding: .3rem .6rem; }
table.narrow { max-width: 560px; }
.lines input, .lines select, .lines .sel-btn, .grid-edit input, .grid-edit select, .grid-edit .sel-btn { min-height: 2.2rem; padding: .28rem .55rem; }
.lines select, .grid-edit select { padding-right: 1.9rem; }
.grid-edit td { padding: .25rem .3rem; min-width: 5.5rem; }
.x { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 0; background: none; color: var(--icon); cursor: pointer; padding: 0; border-radius: var(--r-ctl); }
.x:hover { background: var(--bad-bg); color: var(--bad); }
.unit { display: inline-block; min-width: 3.4rem; margin-left: .45rem; text-align: left; color: var(--mute); font-size: .82rem; }
.sub { display: block; font-size: .8rem; color: var(--mute); font-weight: 400; }
.sub-inline { font-size: .8rem; color: var(--mute); }
tr.grp td { padding-top: 1.1rem; border-bottom-color: var(--line); font-weight: 700; font-size: .86rem; }
tr.row-bad td:first-child { box-shadow: inset 3px 0 0 var(--bad); } tr.row-mid td:first-child { box-shadow: inset 3px 0 0 #d39a1e; }
tr.ans-no td:first-child { box-shadow: inset 3px 0 0 var(--bad); } tr.mismatch td { box-shadow: inset 3px 0 0 var(--bad); }
tr.sum td { font-weight: 700; border-top: 2px solid var(--line); }
tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong); border-bottom: 0; }
.okc { color: var(--ok); font-weight: 600; } .badc { color: var(--bad); font-weight: 700; }
.rule { display: block; font-size: .86rem; color: var(--ink-2); margin-top: .15rem; max-width: 80ch; }
.xref { font-size: .8rem; }
.ans-y { color: var(--ok); font-weight: 600; } .ans-n { color: var(--bad); font-weight: 700; } .ans-na { color: var(--mute); } .ans-missing { color: var(--bad); }
.auto-ceo { margin: .6rem 0 0; font-size: .84rem; line-height: 1.45; }
.auto { font-weight: 600; } .auto-ok { color: var(--ok); } .auto-bad { color: var(--bad); } .auto-mid { color: var(--mid); } .auto-none { color: var(--mute); }
/* the reason of an extra discount on a package sale: there once the answer is yes */
.memo-why { display: none !important; margin-top: .4rem; }
.ans-cell:has(input[value="y"]:checked) .memo-why { display: flex !important; }
.badge, .tag { display: inline-block; padding: 0; background: none; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.tag { white-space: normal; }
.badge::before, .tag::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .4rem; border-radius: 50%; background: currentColor; vertical-align: .08em; }
.badge-ok, .tag-ok { color: var(--ok); } .badge-mid, .tag-mid { color: var(--mid); } .badge-bad, .tag-bad { color: var(--bad); } .badge-info { color: var(--info); } .badge-none { color: var(--none); }
.badge-none::before { background: var(--st-off); }

/* ---------- verdict: the one loud element — a band that says what it is, the reasons listed under it ---------- */
.verdict { margin: .6rem 0 1rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); overflow: hidden; line-height: 1.4; }
.v-head { margin: 0; padding: .55rem .9rem; font-size: 1.05rem; font-weight: 700; color: #fff; background: var(--none); }
.v-why { margin: 0; padding: .55rem .9rem .65rem 2rem; font-size: .9rem; }
.v-why li + li { margin-top: .2rem; }
.v-why a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.v-why a:hover { color: var(--accent); text-decoration-color: currentColor; }
p.verdict { padding: .65rem .9rem; font-weight: 600; }
.verdict > b { display: block; padding: .55rem .9rem 0; }
.verdict > .sub { padding: .2rem .9rem .6rem; }
.verdict-ok { border-color: var(--ok); } .verdict-ok .v-head { background: var(--ok); }
.verdict-mid { border-color: #b06a00; } .verdict-mid .v-head { background: #b06a00; }
.verdict-bad { border-color: var(--bad); } .verdict-bad .v-head { background: var(--bad); }
.verdict-none .v-head { background: var(--tint-2); color: var(--ink); border-bottom: 1px solid var(--line); }
/* a numbered part of a sheet: an open ring, filled while it is being worked on, ticked when it is done */
.step { display: flex; align-items: center; gap: .6rem; }
.stepn { position: relative; flex: none; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--mute); font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.is-current > .stepn { border-color: var(--accent); background: var(--accent); color: #fff; }
.is-done > .stepn { border-color: var(--ok); background: var(--ok); color: transparent; }
.is-done > .stepn::after { content: ""; position: absolute; left: 50%; top: 45%; width: .56rem; height: .28rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- approval line: signature boxes, as on a paper approval form ---------- */
.stamps { list-style: none; display: flex; flex-wrap: wrap; margin: .5rem 0; padding: 0; }
.stamp { width: 132px; min-height: 124px; border: 1.5px solid #9a9a9a; margin: 0 -1.5px -1.5px 0; background: var(--surface); display: grid; grid-template-rows: auto 1fr auto auto auto; text-align: center; }
.stamp-role { font-size: .76rem; font-weight: 700; background: var(--tint-2); border-bottom: 1.5px solid #9a9a9a; padding: .15rem .3rem; }
.stamp-mark { align-self: center; justify-self: center; margin: .45rem 0 .3rem; font-size: .78rem; font-weight: 800; padding: .25rem .5rem; border-radius: 50%; min-width: 3.4rem; min-height: 3.4rem; display: inline-flex; align-items: center; justify-content: center; border: 2px solid transparent; line-height: 1.15; }
.stamp-ok .stamp-mark { color: var(--bad); border-color: var(--bad); transform: rotate(-8deg); }   /* red seal ink */
.stamp-bad .stamp-mark { color: #fff; background: var(--bad); border-color: var(--bad); }
.stamp-mid .stamp-mark { color: var(--mid); border-color: #c98f14; border-style: dashed; }
.stamp-info .stamp-mark { color: var(--info); border-color: var(--info); border-style: dotted; }
.stamp-none .stamp-mark { color: var(--mute); font-weight: 600; }
.stamp-name { font-weight: 700; font-size: .88rem; padding: 0 .3rem; }
.stamp-title { font-size: .72rem; color: var(--mute); padding: 0 .3rem; line-height: 1.25; }
.stamp-when { font-size: .7rem; color: var(--mute); padding: .15rem .3rem .3rem; font-variant-numeric: tabular-nums; min-height: 1.2rem; }
.stamp-current { box-shadow: inset 0 0 0 2px var(--accent); position: relative; z-index: 1; }
.stamp-parallel .stamp-role { background: var(--accent-soft); }
.line-cc { font-size: .9rem; margin: .4rem 0; }
.comments, .history, .files, .forms { list-style: none; margin: .5rem 0; padding: 0; }
.comments li { border-left: 3px solid var(--line); padding: .2rem .8rem; margin: .5rem 0; }
.comments p, .quote { margin: .2rem 0 0; white-space: pre-wrap; }
.quote { display: block; color: var(--ink-2); border-left: 3px solid var(--line); padding-left: .6rem; }
.history li { display: grid; grid-template-columns: 9.5rem 1fr; gap: .8rem; padding: .35rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.history time { color: var(--mute); font-size: .84rem; font-variant-numeric: tabular-nums; }
.files li { padding: .3rem 0; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.rounds summary { cursor: pointer; color: var(--mute); margin: .5rem 0; }
.act { margin: 1.8rem 0 1.4rem; padding: .1rem 0 0; border-top: 2px solid var(--accent); }
.doc-body, .attach { margin-top: 1rem; }

/* ---------- the head of an approval document, laid out as on the paper form: what the document is on the left,
   the approval line on the right (a row of boxes for approval, a row for agreement), then reference and title ---------- */
.dochead { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: .4rem 0 1rem; border: 1px solid #9a9a9a; background: var(--surface); }
.dh-info, .dh-more { display: grid; margin: 0; }
.dh-info { grid-auto-rows: 1fr; border-right: 1px solid #9a9a9a; }
.dh-more { grid-column: 1 / -1; border-top: 1px solid #9a9a9a; }
.dh-info > div, .dh-more > div { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); min-height: 2.3rem; border-bottom: 1px solid var(--line-strong); }
.dh-info > div:last-child, .dh-more > div:last-child { border-bottom: 0; }
.dochead dt { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .3rem .5rem; border-right: 1px solid var(--line-strong); background: var(--tint); font-size: .86rem; font-weight: 600; line-height: 1.25; text-align: center; }
.dochead dd { align-self: center; min-width: 0; margin: 0; padding: .3rem .75rem; overflow-wrap: anywhere; }
.lg { display: grid; align-content: start; width: fit-content; max-width: 100%; }
.dochead > .lg { align-content: stretch; }
:not(.dochead) > .lg { margin: .5rem 0; border: 1px solid #9a9a9a; background: var(--surface); }
.lg-row { display: grid; grid-template-columns: 5.4rem auto; }
.lg-row + .lg-row { border-top: 1px solid #9a9a9a; }
.lg-kind { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .3rem; border-right: 1px solid var(--line-strong); background: var(--tint); font-size: .84rem; font-weight: 600; line-height: 1.25; text-align: center; }
.lg-boxes { display: grid; grid-template-columns: repeat(4, 6.7rem); list-style: none; margin: 0; padding: 0; }
.lg-box { display: grid; grid-template-rows: auto 4.1rem auto auto; min-width: 0; border-right: 1px solid var(--line-strong); text-align: center; }
.lg-boxes > .lg-box:nth-child(4n) { border-right: 0; }
.lg-boxes > .lg-box:nth-child(n+5) { border-top: 1px solid var(--line-strong); }
.lg-pos { min-height: 1.75rem; padding: .25rem .3rem; border-bottom: 1px solid var(--line-strong); background: var(--tint); font-size: .76rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-lock { position: absolute; right: .35rem; top: .2rem; font-style: normal; font-size: .5rem; color: var(--accent); }
.lg-sign { position: relative; display: grid; place-items: center; padding: .2rem; }
.lg-no { position: absolute; left: .3rem; top: .3rem; display: grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .2rem; border-radius: 999px; background: var(--ink); color: #fff; font-style: normal; font-size: .68rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.lg-box.is-now .lg-no { background: var(--f-orange); }
.lg-sign small { position: absolute; left: 0; right: 0; bottom: 0; font-size: .62rem; line-height: 1.1; color: var(--mid); }
.lg-when { min-height: 1.05rem; font-size: .72rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.lg-name { min-height: 1.4rem; padding: 0 .25rem .3rem; font-size: .8rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.lg-box.is-now { box-shadow: inset 0 0 0 2px var(--accent); }
.lg-mark { padding: .12rem .45rem; border-radius: 3px; font-size: .76rem; font-weight: 700; line-height: 1.3; }
.lg-info { background: var(--accent-soft); color: var(--accent); } .lg-mid { background: var(--mid-bg); color: var(--mid); } .lg-bad { background: var(--bad); color: #fff; }
/* a signature: the image a person uploaded, or a round seal with the name in seal-ink red */
.seal { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 3.3rem; height: 3.3rem; border: 2px solid #c8231c; border-radius: 50%; color: #c8231c; font-size: .72rem; font-weight: 700; line-height: 1.05; overflow: hidden; transform: rotate(-6deg); }
.seal-m { font-size: .6rem; } .seal-s { font-size: .5rem; }
.sig { display: block; max-width: 5.7rem; max-height: 3.5rem; object-fit: contain; }
/* the title of a draft: one more row of the head, with the field in it */
.dh-stack { margin: .4rem 0 1rem; }
.dh-stack .dochead { margin: 0; }
.dh-title { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); border: 1px solid #9a9a9a; border-top: 0; background: var(--surface); }
.dh-title > span { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .3rem .5rem; border-right: 1px solid var(--line-strong); background: var(--tint); font-size: .86rem; font-weight: 600; line-height: 1.25; text-align: center; }
.dh-title .req { position: absolute; top: .25rem; right: .45rem; margin: 0; }
.dh-title input { min-height: 2.7rem; border: 0; border-radius: 0; font-weight: 600; }
.dh-title input:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.doc-hint { margin: 1rem 0 0; } .doc-hint:empty { display: none; }

/* ---------- a document in a window of its own: a bar with what can be done, the sheet below on a grey desk ---------- */
body.docwin { background: var(--tint-2); }
.dw-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; padding: .5rem 1.4rem; background: var(--surface); border-bottom: 1px solid var(--line-strong); }
.dw-brand .logo { display: block; width: auto; height: 34px; }
.dw-brand .km { width: 28px; height: 28px; }
.dw-brand:hover { text-decoration: none; }
.dw-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .45rem; }
.dw-tools form.inline { display: contents; }
.btn:disabled { opacity: .45; cursor: default; }
main.dw-paper { width: calc(100% - 2.4rem); max-width: 1040px; margin: 1.3rem auto 3rem; padding: 2.1rem 2.4rem 2.6rem; background: var(--surface); border: 1px solid var(--line-strong); }
main.dw-paper.dw-wide { max-width: 1400px; }
/* on the paper a field is white with a line, as on a printed form */
main.dw-paper :is(input, select, textarea, .sel-btn) { background-color: var(--surface); border-color: var(--line-strong); }
main.dw-paper :is(input, select, textarea, .sel-btn):focus-visible { border-color: var(--focus); }
.dw-title { margin: 0 0 1.3rem; text-align: center; }
.dw-title h1 { font-size: 1.6rem; }
.dw-title h1 .ko2 { display: block; margin: .25rem 0 0; }
.dw-title p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin: .55rem 0 0; }
.dw-title p:empty { display: none; }

/* ---------- a dialog over the page ---------- */
dialog.dlg { width: min(74rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100vh - 2rem); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .4); }
dialog.dlg[open] { display: flex; flex-direction: column; }
dialog.dlg::backdrop { background: rgba(28, 28, 28, .4); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem .7rem 1.3rem; border-bottom: 1px solid var(--line); }
.dlg-head h2 { margin: 0; font-size: 1.1rem; }
.dlg-head .x:hover { background: var(--tint-2); color: var(--ink); }
.dlg-body { flex: 1; min-height: 0; }
.dlg-foot { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem .7rem 1.3rem; border-top: 1px solid var(--line); }
.dlg-foot .note { flex: 1; max-width: none; margin: 0; font-size: .8rem; line-height: 1.35; }
/* setting the approval line: the organisation, the people of the unit that is open, the line as it stands */
.lp { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr) 25rem; height: min(36rem, calc(100vh - 10.5rem)); }
.lp > * { min-width: 0; min-height: 0; }
.lp ul { list-style: none; margin: 0; padding: 0; }
.lp [hidden] { display: none !important; }
.lp-org { overflow: auto; padding: .6rem .5rem; border-right: 1px solid var(--line); background: var(--tint); }
.lp-org ul ul { margin-left: .75rem; padding-left: .3rem; border-left: 1px solid var(--line); }
.ot-unit { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; width: 100%; padding: .34rem .55rem; border: 0; border-radius: var(--r-ctl); background: none; font: inherit; font-size: .9rem; line-height: 1.3; text-align: left; color: var(--ink); cursor: pointer; }
.ot-unit:hover { background: var(--tint-2); }
.ot-unit[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }
.ot-unit .ko2 { display: block; margin-left: 0; }
.ot-unit i { font-style: normal; font-size: .76rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.ot-unit[aria-pressed="true"] i { color: inherit; opacity: .8; }
.lp-people, .lp-line { display: flex; flex-direction: column; }
.lp-people { border-right: 1px solid var(--line); }
.lp-find { width: calc(100% - 1.8rem); margin: .8rem .9rem .5rem; }
.lp-bar { display: flex; align-items: center; justify-content: space-between; padding: .2rem .9rem .55rem 1rem; font-size: .86rem; color: var(--mute); }
.lp-bar .cb { margin: 0; font-size: inherit; cursor: pointer; } .lp-bar .cb input { margin-right: .7rem; }
.lp-n b { color: var(--ink); font-variant-numeric: tabular-nums; }
.lp-rows, .lp-scroll { flex: 1; min-height: 0; overflow: auto; }
.lp-rows { border-top: 1px solid var(--line); }
.lp-group, .lp-role h4 { margin: 0; padding: .32rem 1rem; background: var(--tint); font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.lp-group { position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--line-soft); }
.lp-rows [data-person] { display: flex; align-items: center; gap: .7rem; padding: .42rem 1rem; border-bottom: 1px solid var(--line-soft); cursor: pointer; user-select: none; -webkit-user-select: none; }
.lp-rows [data-person]:hover { background: var(--tint); }
.lp-rows [data-person].is-on { background: var(--accent-soft); }
.lp-rows [data-person] input { flex: none; margin: 0; }
.lp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.lp-who b { font-size: .92rem; font-weight: 600; }
.lp-who small { font-size: .8rem; color: var(--mute); }
.lp-as { flex: none; font-size: .76rem; font-weight: 700; color: var(--accent); white-space: nowrap; } .lp-as:empty { display: none; }
.lp-as .ko2 { margin-left: .25rem; }
.lp-none { padding: 2rem 1rem; text-align: center; color: var(--mute); }
.lp-put { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; padding: .65rem .9rem; border-top: 1px solid var(--line); }
.lp-put .btn { padding-left: .3rem; padding-right: .3rem; }
.lp-put .btn:not(:disabled) { border-color: var(--accent); color: var(--accent-dark); }
.lp-put .btn:not(:disabled):hover { background: var(--accent-soft); }
.lp-line h3 { margin: 0; padding: .95rem 1rem .8rem; font-size: 1rem; }
.lp-line .lp-scroll { border-top: 1px solid var(--line); }
.lp-role h4 .ko2 { margin-left: .3rem; font-size: 1em; }
.lp-role li { display: flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .3rem .4rem .3rem 1rem; border-bottom: 1px solid var(--line-soft); }
.lp-role ul:empty { display: none; }
.lp-role:not(:has(li)) { display: none; }
.lp-rule { flex: none; padding-right: .6rem; font-size: .74rem; color: var(--mute); white-space: nowrap; }
.lp-sec h4 { margin: 0; padding: .32rem 1rem; background: var(--tint); font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.lp-sec h4 .ko2 { margin-left: .3rem; font-size: 1em; }
.lp-order { list-style: none; margin: 0; padding: 0; }
/* the line in its order: a number, a handle (or a lock where the rules fix the step), the part, the person */
.lp-step { display: flex; align-items: center; gap: .55rem; min-height: 3.1rem; padding: .35rem .45rem .35rem .75rem; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.lp-no { flex: none; display: grid; place-items: center; min-width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-no:empty { display: none; }
.lp-drafter { background: var(--tint); }
.lp-drafter .lp-no { background: var(--mute); }
.lp-drafter .lp-part { background: var(--surface); color: var(--ink-2); }
.lp-grip { flex: none; display: grid; place-items: center; width: 1rem; color: var(--mute); }
.lp-cc .lp-grip:empty { display: none; }
.lp-part { flex: none; min-width: 3.4rem; padding: .18rem .55rem; border: 0; border-radius: 999px; background: var(--accent-soft); font: inherit; font-size: .76rem; font-weight: 700; line-height: 1.3; text-align: center; color: var(--accent-dark); white-space: nowrap; }
.lp-part .ko2 { margin-left: .25rem; }
.lp-step[data-part="agree"] .lp-part { background: var(--mid-bg); color: var(--mid); }
.lp-step[data-part="cc"] .lp-part { background: var(--tint-2); color: var(--ink-2); }
button.lp-part { cursor: pointer; } button.lp-part:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.lp-step[data-move] { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.lp-step[data-move]:hover { background: var(--tint); }
.lp-step[data-move]:hover .lp-grip { color: var(--ink); }
.lp-step[data-move]:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.lp-step.is-dragging { position: relative; z-index: 2; background: var(--surface); box-shadow: 0 8px 22px rgba(0, 0, 0, .16); }
.linedlg.is-sorting, .linedlg.is-sorting * { cursor: grabbing !important; }
.lp-cc:not(:has(li)) { display: none; }
.lp-tagno { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; margin-right: .35rem; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: .72rem; font-variant-numeric: tabular-nums; }
.lp-line fieldset.opt { margin: 0; padding: 0; border: 0; border-radius: 0; }
.lp-line fieldset.opt legend { float: left; width: 100%; padding: .32rem 1rem; background: var(--tint); font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.lp-line fieldset.opt legend .ko2 { margin-left: .3rem; font-size: 1em; }
.lp-line .cb { clear: both; display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; padding: .55rem 1rem; border-bottom: 1px solid var(--line-soft); font-size: .88rem; line-height: 1.35; white-space: normal; cursor: pointer; }
.lp-line .cb input { margin: .2rem .6rem 0 0; } .lp-line .cb .ko2 { grid-column: 2; margin-left: 0; }
.lp-line .note { margin: .8rem 1rem 1rem; font-size: .8rem; line-height: 1.4; }
.dlg-foot { justify-content: flex-end; }
/* reference documents and attachments at the foot of a document */
.refs li { justify-content: flex-start; }
.refs .x { margin-left: auto; }
.btn-file { cursor: pointer; }
.btn-file:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.attach .row form { display: contents; }
.rp { display: flex; flex-direction: column; max-height: min(30rem, calc(100vh - 12rem)); }
.rp .lp-scroll { border-top: 1px solid var(--line); }
.rp thead th { position: sticky; top: 0; z-index: 1; }
.rp td { padding: .45rem .7rem; vertical-align: middle; }
.rp tr[data-row] { cursor: pointer; }
.rp tr[data-row]:hover { background: var(--tint); }
.rp tr[data-row]:has(input:checked) { background: var(--accent-soft); }
.lp-cb { width: 2.3rem; } .lp-cb input { display: block; margin: 0; }
.rp .lp-none td { padding: 1.8rem .7rem; text-align: center; color: var(--mute); }
.dlg-foot .lp-n { margin-right: auto; font-size: .86rem; color: var(--mute); }
.rp-title { min-width: 14rem; }
/* my profile: the signature as it will stand in the box, beside the form that changes it */
.sig-set { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.6rem 2.6rem; }
.sig-now { margin: 0; }
.sig-now .lg-box { width: 7rem; border: 1px solid #9a9a9a; }
.sig-now figcaption { max-width: 9rem; margin-top: .5rem; font-size: .84rem; color: var(--mute); }
.sig-forms { flex: 1; min-width: 16rem; display: grid; gap: .9rem; justify-items: start; }

/* ---------- home: who and what day, the four numbers, then the lists themselves ---------- */
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin: .3rem 0 1.5rem; }
.home-head h1 { font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.2; }
.home-head h1 .ko2 { margin-left: .2em; font-size: .56em; font-weight: 500; }
.home-date { margin: .35rem 0 0; color: var(--mute); font-size: .95rem; }
/* one strip, four numbers: each is the way into its list; grey while it is nought */
.home { max-width: 1400px; margin: 0 auto; }
/* one grid. Row 1 is the greeting, over the three boxes; row 2 holds the heads of the boxes (and of the staff list beside
   them), row 3 what is in the boxes, row 4 the channels. A box takes its two rows from this grid, so every head ends on
   the same line */
.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto auto minmax(0, 1fr); column-gap: 2.4rem; }
.home-grid > .home-head { grid-column: 1 / 5; grid-row: 1; }
.home-grid > .box { grid-row: 2 / 4; display: grid; grid-template-rows: subgrid; }
/* row 4: what follows the boxes, one under the other: the mail summary, the channels (and D-day, when there is no staff list to stand under) */
.home-grid > .home-more { grid-column: 1 / 5; grid-row: 4; min-width: 0; }
.home-grid:not(:has(> .box)) > .home-more { grid-row: 2 / 5; }
.home-grid:not(:has(> .box)) > .home-more > .sec:first-child { margin-top: 0; }
.box-body { min-width: 0; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.4rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.box-name { display: flex; align-items: center; gap: .7rem; min-width: 0; color: var(--ink); }
.box-name:hover { text-decoration: none; } .box-name:hover h2 { color: var(--accent); }
.box-name .ic { flex: none; color: var(--icon); }
.box-inbox .box-name .ic { color: var(--f-orange); } .box-sent .box-name .ic { color: var(--f-blue); } .box-rejected .box-name .ic { color: var(--bad); } .box-drafts .box-name .ic { color: var(--f-teal); }
.box-head h2 { margin: 0; font-size: 1rem; line-height: 1.3; }
.box-head h2 .ko2 { display: block; font-size: .84em; }
.box-n { position: relative; margin-left: .2rem; font-size: 1.65rem; font-weight: 700; line-height: 1; color: var(--line-strong); }
.box.has .box-n { color: var(--accent); }
.box-inbox.has .box-n::after { content: ""; position: absolute; top: -.3rem; right: -.6rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--b-orange); }
.box-more { flex: none; font-size: .86rem; font-weight: 600; white-space: nowrap; }
/* four boxes in a row: "view all" in the first language only, so the box's name keeps its line */
.home-grid > .box .box-more .ko2 { display: none; }
.box .rows a { flex-wrap: wrap; align-items: baseline; gap: .35rem .9rem; }
.box .row-main { flex-basis: 100%; }
.box .row-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* more than the two lines shown: three dots, which lead to the whole list */
.box-rest { display: block; margin: 0 -.6rem; padding: .7rem .6rem; border-radius: var(--r); color: var(--icon); }
.box-rest::before { content: ""; display: block; width: 1.5rem; height: .3rem; background: radial-gradient(circle closest-side, currentColor 96%, transparent) 0 0 / .5rem .3rem repeat-x; }
.box-rest:hover { background: var(--tint); color: var(--accent); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.sec-head h2 { margin: 0; font-size: 1rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--line-soft); }
.rows a { display: flex; align-items: center; gap: .9rem; padding: .75rem .6rem; margin: 0 -.6rem; border-radius: var(--r); color: var(--ink); }
.rows a:hover { background: var(--tint); text-decoration: none; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.row-title { font-weight: 600; overflow-wrap: anywhere; }
.row-meta { display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .84rem; color: var(--mute); }
.row-amount { white-space: nowrap; font-weight: 600; }
.sec-empty { margin: 0; padding: .9rem 0; color: var(--mute); }
/* the centre's public channels, under the lists: a picture of each, its mark and name under it; a press opens the channel in a new tab */
/* everybody's state, down the right side of the home page: one row per state (dot, word, the first faces, the number);
   pressed, the row unfolds the people under it */
/* the staff list is the fourth column: its head in the row of the heads, its rows down the side to the foot of the page
   (unfolded, it grows into a last row of its own and moves nothing beside it) */
.home-two > .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) 20rem; }
.home-side { grid-column: 5; grid-row: 2 / 6; display: grid; grid-template-rows: subgrid; }
.side-rest { grid-row: 2 / 5; min-width: 0; }
/* over it, beside the greeting: the centre's time alone, on the line of the "new document" button, its left edge on the list's */
.home-clock { grid-column: 5; grid-row: 1; align-self: end; display: flex; align-items: center; min-height: 2.5rem; margin: .3rem 0 1.5rem; }
.home-clock time { display: flex; align-items: baseline; gap: .3rem; line-height: 1.2; }
.home-clock b { font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; }
.home-clock time > span { font-size: 1rem; font-weight: 600; color: var(--mute); }
.home-side .box-n { color: var(--accent); } .home-side .box-name .ic { color: var(--f-blue); }
/* D-day, under the staff list: one card to a line in the narrow column */
.home-side .sec-contract { margin-top: 2.2rem; }
/* the rejected box: who sent each back and when, the reason on its own line */
.box .rej-rows .row-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.rej-why { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; color: var(--bad); }
@media (min-width: 1181px) { .home-side .deadlines { grid-template-columns: minmax(0, 1fr); } }
.staff-g { border-bottom: 1px solid var(--line-soft); }
.staff-g h3 { margin: 0; font-size: inherit; }
.staff-sum { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: .65rem; width: calc(100% + 1.2rem); min-height: 3.1rem; margin: 0 -.6rem; padding: .5rem .6rem; border-radius: var(--r); cursor: pointer; }
.staff-sum:hover { background: var(--tint); }
.staff-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.staff-sum .st { flex: 1; font-size: .94rem; font-weight: 650; color: var(--ink); }
.staff-sum .st-word { overflow: hidden; text-overflow: ellipsis; }
.staff-sum b { min-width: 1.3rem; text-align: right; font-size: .98rem; font-weight: 700; color: var(--ink-2); }
.staff-sum .ic { flex: none; color: var(--icon); }
.staff-faces { flex: none; display: flex; padding-left: .45rem; }
.staff-faces .avatar { width: 1.65rem; height: 1.65rem; margin-left: -.45rem; font-size: .6rem; box-shadow: 0 0 0 2px var(--surface); }
.staff-sum:hover .staff-faces .avatar { box-shadow: 0 0 0 2px var(--tint); }
.staff-sum[aria-expanded="true"] .ic { transform: rotate(180deg); color: var(--accent); }
.staff-sum[aria-expanded="true"] .staff-faces { opacity: 0; }
/* shut, the list has no height and is out of reach of the keyboard; open, it takes the height of its people */
.staff-fold { display: grid; grid-template-rows: 0fr; }
.staff-fold > .staff { min-height: 0; overflow: hidden; visibility: hidden; opacity: 0; }
.staff-sum[aria-expanded="true"] { margin-bottom: .1rem; }
.staff-g:has(> h3 > [aria-expanded="true"]) > .staff-fold { grid-template-rows: 1fr; }
.staff-g:has(> h3 > [aria-expanded="true"]) > .staff-fold > .staff { visibility: visible; opacity: 1; padding-bottom: .6rem; }
@media (prefers-reduced-motion: no-preference) {
  .staff-fold { transition: grid-template-rows .32s cubic-bezier(.2, .8, .2, 1); }
  .staff-fold > .staff { transition: opacity .18s, padding-bottom .32s cubic-bezier(.2, .8, .2, 1), visibility 0s .32s; }
  .staff-g:has(> h3 > [aria-expanded="true"]) > .staff-fold > .staff { transition: opacity .3s .08s, padding-bottom .32s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
  .staff-sum .ic { transition: transform .28s cubic-bezier(.2, .8, .2, 1), color .2s; }
  .staff-faces { transition: opacity .2s; }
  .staff-sum { transition: background-color .14s; }
}
.staff { list-style: none; margin: 0; padding: 0; }
.staff button { all: unset; box-sizing: border-box; width: calc(100% + 1rem); cursor: pointer; }
.staff li > * { display: flex; align-items: center; gap: .7rem; min-width: 0; margin: 0 -.5rem; padding: .22rem .5rem; border-radius: var(--r); color: var(--ink); }
.staff button:hover { background: var(--tint); }
.staff button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.staff .avatar { width: 1.85rem; height: 1.85rem; font-size: .68rem; }
.staff .row-main { gap: 0; }
.staff .row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .94rem; font-weight: 550; }
.staff .st-note { font-size: .8rem; line-height: 1.3; }
:is(.staff-left, .staff-none) .avatar { filter: grayscale(1); opacity: .55; }
:is(.staff-left, .staff-none) .row-title { color: var(--mute); font-weight: 450; }
:is(.staff-left, .staff-none) .staff-sum .st { color: var(--ink-2); font-weight: 550; }
.sec-social { margin-top: 2.6rem; }
/* the person's own mail of a day, summed up. On the dashboard a card of a fixed shape, laid out as a mail list: the kinds
   as tabs with how many of each, then one message to a row (who, what, kind, time). The one colour in it is the orange
   point of "waiting for you", on the messages that want an answer. */
.sec-digest { margin-top: 2.6rem; container-type: inline-size; }
.sec-digest .sec-head { align-items: center; flex-wrap: wrap; gap: .3rem 1.2rem; }
.sec-digest h2 { display: flex; align-items: center; gap: .55rem; }
.sec-digest h2 .ic { color: var(--f-pink); }
.sec-digest .box-more { margin-left: auto; }
.digest-days { display: flex; align-items: center; gap: .1rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.digest-day { padding: 0 .3rem; text-align: center; white-space: nowrap; }
.digest-step { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: var(--r); color: var(--icon); }
a.digest-step:hover { background: var(--tint); color: var(--accent); }
span.digest-step { opacity: .3; }
/* Refresh, beside the days: looks into the mailbox now; its sign turns while that is done */
.digest-fresh { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: var(--r); background: none; color: var(--icon); cursor: pointer; }
.digest-fresh:hover { background: var(--tint); color: var(--accent); }
.is-looking .digest-fresh { color: var(--accent); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .is-looking .digest-fresh .ic { animation: digest-turn .7s linear infinite; } }
@keyframes digest-turn { to { transform: rotate(360deg); } }
.digest-tabs { display: flex; flex-wrap: wrap; column-gap: 1.6rem; border-bottom: 1px solid var(--line); }
.digest-tabs > * { display: flex; align-items: baseline; gap: .4rem; padding: .7rem 0 .6rem; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: .9rem; font-weight: 600; color: var(--mute); white-space: nowrap; }
.digest-tabs a:hover { text-decoration: none; color: var(--ink); }
.digest-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.digest-tabs b { font-weight: 700; color: var(--ink-2); }
.digest-tabs .none, .digest-tabs .none b { color: #b4b4b4; }
.digest-tabs .ko2 { margin-left: .3em; }
.digest-list, .digest-all { list-style: none; margin: 0; padding: 0; }
.digest-list li { border-bottom: 1px solid var(--line-soft); }
.digest-list a { display: grid; grid-template-columns: .45rem 13rem minmax(0, 1fr) auto 3rem; align-items: center; column-gap: 1rem; padding: .6rem; margin: 0 -.6rem; border-radius: var(--r); color: var(--ink); }
:is(.digest-list, .digest-all) a:hover { background: var(--tint); text-decoration: none; }
.digest-dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--b-orange); }
.digest-dot.off { background: none; }
.digest-list .digest-from { font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.digest-list .digest-title { min-width: 0; font-weight: 400; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.digest-list .digest-title .ko2 { margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; opacity: .72; }
.digest-k { min-width: 6rem; font-size: .84rem; color: var(--mute); }
.digest-k.wait { font-weight: 600; color: var(--ink); }
.digest-list time { font-size: .86rem; color: var(--mute); text-align: right; }
.digest-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .7rem 0 0; }
.digest-count { margin: 0; font-size: .82rem; color: var(--mute); }
.digest-rest { font-size: .86rem; font-weight: 600; }
:is(.digest-foot, .digest-bar) .ko2 { margin-left: .35em; }
:is(.digest-lead, .digest-title, .digest-note) .ko2 { display: block; margin: .22em 0 0; font-size: .92em; opacity: .78; }
/* where the card is narrow: who and when on one line, what under them, the kind left to the tabs */
@container (max-width: 40rem) {
  .digest-list a { grid-template-columns: .45rem minmax(0, 1fr) auto; row-gap: .15rem; column-gap: .7rem; }
  .digest-list .digest-title { grid-column: 2 / 4; grid-row: 2; }
  .digest-list time { grid-column: 3; grid-row: 1; }
  .digest-list .digest-k { display: none; }
}
/* its own page: the line on the day, the same tabs (here they lead down the page), then every message under its kind in two columns */
.digest-head { align-items: center; margin-bottom: 1.4rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-strong); }
/* with the tabs of the Mail page under it, the head needs no rule of its own: the tabs draw one */
.digest-head:has(+ .ml-tabs) { margin-bottom: .2rem; padding-bottom: 0; border-bottom: 0; }
.digest-page > .ml-tabs { display: flex; column-gap: 1.6rem; margin: 0 0 1.4rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.digest-page > .ml-tabs a { padding: .7rem 0 .6rem; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: .9rem; font-weight: 600; color: var(--mute); white-space: nowrap; }
.digest-page > .ml-tabs a:hover { text-decoration: none; color: var(--ink); }
.digest-page > .ml-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.digest-bar { display: flex; align-items: center; gap: 1.2rem; margin: 0; }
.digest-bar .digest-fresh { margin-left: -.9rem; }
.digest-lead { max-width: 60rem; margin: 0 0 1.2rem; font-size: 1.14rem; line-height: 1.5; font-weight: 500; }
.digest-kind { margin-top: 2.2rem; scroll-margin-top: 5rem; }
.digest-kind h2 { display: flex; align-items: center; gap: .6rem; margin: 0; padding-bottom: .55rem; border-bottom: 1px solid var(--line-strong); font-size: 1rem; }
.digest-kind h2 b { font-size: 1.05rem; color: var(--ink-2); }
.digest-kind.wait h2::after { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--b-orange); }
.digest-all { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.6rem; }
.digest-all li { border-bottom: 1px solid var(--line-soft); }
.digest-all a { display: flex; flex-direction: column; gap: .22rem; height: 100%; padding: .8rem .6rem; margin: 0 -.6rem; border-radius: var(--r); color: var(--ink); }
.digest-all .digest-title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.digest-all .digest-title .ko2 { font-weight: 450; }
.digest-note { font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.digest-note .ko2 { font-size: 1em; }
.digest-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .85rem; margin-top: auto; padding-top: .15rem; font-size: .82rem; color: var(--mute); }
@media (max-width: 900px) { .digest-all { grid-template-columns: minmax(0, 1fr); } }
/* D-day: one line each, the nearest first: the days left, what is due and its date under that; no boxes */
.sec-contract { margin-top: 2.6rem; }
.sec-contract .sec-head { align-items: center; }
.sec-contract h2 { display: flex; align-items: center; gap: .55rem; }
.sec-contract h2 .ic { color: var(--f-green); }
.dl-set { display: inline-flex; padding: .25rem; border-radius: var(--r); color: var(--mute); }
.dl-set:hover { color: var(--accent); background: var(--tint); }
.deadlines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.4rem; }
.deadlines li { display: grid; grid-template-columns: 3.9rem minmax(0, 1fr); column-gap: .7rem; align-items: baseline; min-width: 0; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.dl-days { font-size: 1.15rem; font-weight: 700; line-height: 1.1; color: var(--accent); }
.dl-date { font-size: .8rem; font-weight: 600; color: var(--mute); white-space: nowrap; }
.deadlines .dl-days { font-size: .98rem; line-height: 1.35; }
.deadlines .dl-what { font-size: .92rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.deadlines .dl-what .ko2 { display: block; }
.deadlines .dl-date { grid-column: 2; margin-top: .1rem; font-size: .82rem; font-weight: 400; }
.dl-soon .dl-days { color: var(--mid); }
.dl-near .dl-days { color: var(--bad); }
.dl-past .dl-days { color: var(--mute); }
.dl-none { margin: .8rem 0 0; color: var(--mute); font-size: .9rem; }
@media (max-width: 1000px) { .deadlines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .deadlines { grid-template-columns: minmax(0, 1fr); } }
/* Admin -> D-day: the form to add one, then every item folded to one line that opens to its people */
.dd-sec { margin-top: 1.6rem; }
.dd-sec h2 { font-size: 1rem; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line-strong); }
.dd-form { display: flex; flex-direction: column; gap: .9rem; }
.dd-sec > .dd-form { padding: 0 0 .4rem; }
.dd-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .8rem; max-width: 46rem; }
.dd-people { margin: 0; padding: 0; border: 0; min-width: 0; }
.dd-people legend { padding: 0; margin-bottom: .45rem; font-size: .85rem; font-weight: 600; }
.dd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .3rem .8rem; }
.dd-person { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .5rem; align-items: center; min-width: 0; padding: .25rem 0; font-size: .9rem; line-height: 1.25; cursor: pointer; }
.dd-person input { grid-row: 1 / 3; margin: 0; }
.dd-person span, .dd-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-person small { color: var(--mute); font-size: .75rem; }
.dd-items { list-style: none; margin: -1rem 0 0; padding: 0; }
.dd-items > li { border-bottom: 1px solid var(--line-soft); }
.dd-items summary { display: grid; grid-template-columns: 4.2rem 6.6rem minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: .8rem; margin: 0 -.6rem; padding: .7rem .6rem; border-radius: var(--r); cursor: pointer; list-style: none; }
.dd-items summary::-webkit-details-marker { display: none; }
.dd-items summary:hover { background: var(--tint); }
.dd-what { display: flex; flex-direction: column; min-width: 0; }
.dd-what small { color: var(--mute); font-size: .78rem; }
.dd-who { display: flex; align-items: center; gap: .35rem; min-width: 0; font-size: .85rem; color: var(--ink-2); }
.dd-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-items details > .dd-form { padding: .6rem 0 1.2rem; }
.dd-form .actions { display: flex; gap: .5rem; margin: 0; }
@media (max-width: 760px) {
  .dd-fields { grid-template-columns: minmax(0, 1fr); }
  .dd-items summary { grid-template-columns: 4rem minmax(0, 1fr); }
  .dd-what, .dd-who { grid-column: 1 / -1; }
}
/* on the home page the menu and the staff list share the width. The pointer on the menu moves the page right (as on
   every page) and the staff list closes to a rail of dots and numbers. The pointer on the staff list
   widens it: the page moves left and the menu stays a rail */
@media (hover: hover) and (min-width: 1181px) {
  .shell:has(.home-two) { --staff: 20rem; }
  .shell:has(.home-two):has(.side:is(:hover, :focus-within)) { --staff: 5.4rem; }
  .shell:has(.home-side:is(:hover, :has(:focus-visible))) { --staff: 27rem; }
  .home-side:is(:hover, :has(:focus-visible)) .staff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; }
  .home-two > .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) var(--staff); }
  .home-clock, .home-side .box-name h2 { overflow: hidden; white-space: nowrap; }
  .home-side .box-name h2, .home-side :is(.st-word, .staff-faces, .staff-sum > .ic) { max-width: 20rem; }
  .shell:has(.side:is(:hover, :focus-within)) .home-side { padding-left: 1rem; }
  .shell:has(.side:is(:hover, :focus-within)) .home-side .box-name { gap: .45rem; }
  .shell:has(.side:is(:hover, :focus-within)) .home-side :is(.box-name h2, .st-word, .staff-faces, .staff-sum > .ic) { max-width: 0; padding: 0; opacity: 0; overflow: hidden; }
  .shell:has(.side:is(:hover, :focus-within)) .home-side .staff-sum { gap: .5rem; }
  .shell:has(.side:is(:hover, :focus-within)) .home-side .staff-g > .staff-fold { grid-template-rows: 0fr; }
  .shell:has(.side:is(:hover, :focus-within)) .home-side .staff-g > .staff-fold > .staff { visibility: hidden; opacity: 0; padding-bottom: 0; }
  .shell:has(.side:is(:hover, :focus-within)) .home-side .sec-contract { visibility: hidden; opacity: 0; }
  .shell:has(.side:is(:hover, :focus-within)) .home-clock { visibility: hidden; opacity: 0; }
}
@media (hover: hover) and (min-width: 1181px) and (prefers-reduced-motion: no-preference) {
  /* closing quick, opening after a short wait so a passing pointer does not set it off: the timing of the menu itself */
  .home-two > .home-grid { transition: grid-template-columns .2s cubic-bezier(.4, 0, .6, 1); }
  .shell:has(.side:is(:hover, :focus-within)) .home-two > .home-grid { transition: grid-template-columns .28s cubic-bezier(.2, .8, .2, 1) .07s; }
  .shell:has(.home-side:is(:hover, :has(:focus-visible))) .home-two > .home-grid { transition: grid-template-columns .3s cubic-bezier(.2, .8, .2, 1) .12s; }
  .home-side, .home-side .box-name, .home-side .staff-sum { transition: padding .2s, gap .2s; }
  .home-side :is(.box-name h2, .st-word, .staff-faces, .staff-sum > .ic), .home-clock { transition: max-width .2s, padding .2s, opacity .15s .1s, visibility 0s; }
  .shell:has(.side:is(:hover, :focus-within)) .home-side :is(.box-name h2, .st-word, .staff-faces, .staff-sum > .ic),
  .shell:has(.side:is(:hover, :focus-within)) .home-clock { transition: max-width .28s cubic-bezier(.2, .8, .2, 1) .07s, padding .28s .07s, opacity .08s, visibility 0s .1s; }
}
.social { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.social a { display: block; color: var(--ink); }
.social a:hover { text-decoration: none; }
/* three pictures: a large one, two small ones beside it; each is cut to its box whatever shape it came in */
.social-pics { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 2 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.social-pics img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; background: var(--tint); }
.social-pics img:first-child { grid-row: 1 / 3; }
.social-text { display: flex; align-items: center; gap: .7rem; padding: .7rem .1rem 0; }
.social-text > .ic { flex: none; color: var(--icon); }
.social a:hover .social-text > .ic, .social a:hover .row-title { color: var(--accent); }
.social-mark { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 6px; color: #fff; font-size: .54rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.social-facebook { background: #1877f2; }
.social-instagram { background: linear-gradient(45deg, #f9a13a, #dc2743 50%, #b3189a); }
.social-xiaohongshu { background: #ff2442; }
.forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.4rem; border-top: 1px solid var(--line-strong); }
.forms > li { border-bottom: 1px solid var(--line-soft); }
.form-pick { all: unset; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .9rem; row-gap: .1rem; align-items: center; width: calc(100% + 1.2rem); height: 100%; margin: 0 -.6rem; padding: .85rem .6rem; border-radius: var(--r); cursor: pointer; color: var(--ink); }
a.form-pick { text-decoration: none; }
.form-pick:hover { background: var(--tint); }
.form-pick:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.form-pick b { font-weight: 600; }
.form-pick:hover b { color: var(--accent); }
.form-pick span { grid-column: 2; font-size: .86rem; color: var(--mute); }
.form-pick .form-ic { grid-column: 1; grid-row: 1 / span 2; align-self: start; display: block; margin-top: .1rem; color: var(--icon); }
.form-pick:hover .form-ic { color: var(--accent); }
@media (max-width: 760px) { .forms { grid-template-columns: minmax(0, 1fr); } }
.tabs { display: flex; flex-wrap: wrap; column-gap: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.tabs a { padding: .7rem 0 .6rem; margin-bottom: -1px; color: var(--mute); border-bottom: 2px solid transparent; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--tone); }
.tabs .ko2 { margin-left: .3em; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.2rem; margin: .5rem 0 1rem; }
.dl dt { color: var(--mute); font-size: .88rem; } .dl dd { margin: 0; font-weight: 500; }
.dl-grid { grid-template-columns: max-content 1fr max-content 1fr; padding: .9rem 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-soft); }

/* ---------- organisation chart ---------- */
/* the picture is one SVG drawn from the organisation (src/web/org-chart.ts); under it the same chart as text */
.oc-pic { display: block; overflow: hidden; background: #fff; }
.oc-svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.oc-meta { margin: 0 0 .8rem; color: var(--mute); font-size: .88rem; }
.oc-table { table-layout: fixed; }
/* the column names stay under the top bar while the list scrolls; a scrolling wrapper would stop that, and the fixed layout never needs one */
.tw:has(> .oc-table) { overflow: visible; overflow: clip; }
.oc-table thead th { position: sticky; top: 58px; z-index: 2; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line-strong); }
.oc-table th:first-child, .oc-table td:first-child { width: 24%; }
.oc-table tr.oc-unit th { background: none; padding-top: 1.1rem; font-size: .98rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.oc-table tr.oc-team th { background: none; padding-top: .8rem; font-size: .86rem; font-weight: 650; color: var(--accent-dark); padding-left: 1.7rem; }
.oc-table tr.oc-in td:first-child { padding-left: 1.7rem; }
.oc-table tr.oc-team.oc-deep th, .oc-table tr.oc-in.oc-deep td:first-child { padding-left: 3.2rem; }
.oc-table tr.oc-unit:hover, .oc-table tr.oc-team:hover { background: none; }
.oc-table tr.oc-behind td { color: var(--mute); font-size: .88rem; }
.oc-aside { margin-left: .8rem; font-weight: 400; font-size: .84rem; color: var(--mute); }
/* the sheet alone, for printing: one landscape page (portrait when the chart is taller than wide) */
.oc-sheet { padding: .8rem; }
.oc-bar { display: flex; gap: .5rem; margin: 0 0 .7rem; }
.oc-sheet .oc-svg { max-height: calc(100vh - 5.2rem); }
@page orgchart { size: A3 landscape; margin: 6mm; }
@page orgchart-tall { size: A3 portrait; margin: 6mm; }
@media print {
  .oc-sheet { padding: 0; page: orgchart; }
  .oc-sheet.oc-tall { page: orgchart-tall; }
  .oc-sheet .oc-svg { max-height: 283mm; }
  .oc-sheet.oc-tall .oc-svg { max-height: 405mm; }
}
.user-photo { display: flex; gap: 1.1rem; align-items: flex-start; }
.user-photo img, .user-photo-none { flex: none; width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; object-position: top; }
.user-photo-none { display: grid; place-items: center; background: var(--tint); color: var(--mute); font-size: 2rem; font-weight: 700; }
.indent { display: inline-block; } .indent-1 { width: 1.2rem; } .indent-2 { width: 2.4rem; }
td .indent + input { width: calc(100% - 7rem); min-width: 12rem; }

/* ---------- my profile: the person on top, a short menu on the left, one subject on the right ---------- */
.me { display: flex; align-items: center; gap: 1.1rem; margin: .2rem 0 1.9rem; }
.me .avatar { width: 4rem; height: 4rem; font-size: 1.3rem; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.me-text { min-width: 0; }
.me h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; font-size: 1.5rem; overflow-wrap: anywhere; }
.me-id { font-weight: 400; color: var(--mute); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.me-sub { display: flex; flex-wrap: wrap; gap: .15rem 0; margin: .3rem 0 0; color: var(--mute); line-height: 1.3; }
.me-sub > span + span { margin-left: .7rem; padding-left: .7rem; border-left: 1px solid var(--line-strong); }
.set { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); gap: 2.6rem; align-items: start; }
.set-nav { position: sticky; top: calc(58px + 1.4rem); display: grid; gap: 2px; }
.set-nav a { position: relative; display: flex; align-items: center; gap: .7rem; padding: .5rem .75rem; border-radius: var(--r); color: var(--ink-2); line-height: 1.3; }
.set-nav a .ic { color: var(--icon); }
.set-nav a:hover { background: var(--tint-2); color: var(--ink); text-decoration: none; }
.set-nav a:hover .ic { color: var(--accent); }
.set-nav a[aria-current] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }
.set-nav a[aria-current] .ic { color: var(--accent); }
.set-nav a[aria-current]::before { content: ""; position: absolute; left: -.55rem; top: .4rem; bottom: .4rem; width: 3px; border-radius: 3px; background: var(--accent); }
.set-main { min-width: 0; max-width: 50rem; }
.set-head { margin-bottom: .4rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line-strong); }
.set-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.set-head p { margin: .35rem 0 0; max-width: 70ch; color: var(--mute); font-size: .92rem; }
.set-head p .ko2 { display: block; margin: .1rem 0 0; }
.set-box { margin: 0; }
.set-box > div { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); gap: .2rem 1rem; align-items: baseline; padding: .78rem 0; border-bottom: 1px solid var(--line-soft); }
.set-box dt { color: var(--mute); font-size: .9rem; }
.set-box dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.set-none { color: var(--icon); font-weight: 400; }
.set-tags { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.set-tags .badge { font-size: .92rem; font-weight: 550; color: var(--ink); } .set-tags .badge::before { display: none; }
.set-form { display: flex; flex-direction: column; gap: 1rem; max-width: 27rem; }
.set-form .btn { align-self: flex-start; margin-top: .35rem; }
.set-form .f-hint .ko2 { display: block; margin-left: 0; }
/* display language: a card per language that greets you in it; the ring is filled on the one in use */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); grid-auto-rows: 1fr; column-gap: 1.6rem; }
.lang-card { all: unset; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: .7rem; overflow: hidden; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.lang-card:hover { background: var(--tint); }
.lang-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lang-card[aria-current] .lang-name { color: var(--accent-dark); }
.lang-mark { grid-row: 1 / span 2; position: relative; width: 1.2rem; height: 1.2rem; margin: 1.05rem 0 0 .2rem; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.lang-card:hover .lang-mark, .size-row:hover .lang-mark { border-color: var(--accent); }
.lang-card[aria-current] .lang-mark, .size-row[aria-current] .lang-mark { border-color: var(--accent); background: var(--accent); }
.lang-card[aria-current] .lang-mark::after, .size-row[aria-current] .lang-mark::after { content: ""; position: absolute; left: 50%; top: 46%; width: .5rem; height: .26rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(-50%, -50%) rotate(-45deg); }
.lang-name { padding: .9rem 1rem 0 0; font-weight: 650; line-height: 1.35; }
.lang-en { grid-column: 2; min-height: 1.25rem; padding-right: 1rem; font-size: .84rem; line-height: 1.25rem; color: var(--mute); }
.lang-say { grid-column: 2; align-self: end; margin-top: .3rem; padding: 0 1rem .8rem 0; color: var(--mute); font-size: .88rem; line-height: 1.4; overflow-wrap: anywhere; }
.lang-say .ko2 { display: block; margin: 0; }
/* text size: one row per size, the smallest on top; beside each name a line set in that size (in px: it must not follow the size in use) */
.size-list { display: grid; max-width: 42rem; }
.size-row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: auto 9.5rem minmax(0, 1fr) auto; align-items: center; column-gap: .9rem; min-height: 4.6rem; padding: .7rem .2rem; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.size-row:hover { background: var(--tint); }
.size-row:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.size-row[aria-current] .size-name { color: var(--accent-dark); }
.size-row .lang-mark { grid-row: auto; margin: 0; }
.size-name { font-weight: 650; line-height: 1.3; }
.size-say { color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.size-say .ko2 { display: block; margin: 0; }
.size-pct { color: var(--mute); font-size: .88rem; }
.size-0 { font-size: 15px; } .size-1 { font-size: 16.5px; } .size-2 { font-size: 18px; } .size-3 { font-size: 19.5px; }


/* ---------- rate card ---------- */
.sourcebox { margin-bottom: 1rem; padding: 0 0 1rem; border-bottom: 1px solid var(--line); }
.toc { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-bottom: 1.4rem; }
.toc a { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.toc a:hover { color: var(--accent); text-decoration: none; }
details.sec { margin-bottom: 0; border-bottom: 1px solid var(--line); scroll-margin-top: 4rem; }
details.sec:first-of-type { border-top: 1px solid var(--line-strong); }
details.sec > summary { cursor: pointer; padding: .85rem 0; font-weight: 700; }
details.sec > summary:hover { color: var(--accent); }
.sb { padding: .2rem 0 1.4rem; }
.kv { display: flex; flex-wrap: wrap; gap: .6rem 2.6rem; margin: .4rem 0 1.1rem; }
.kv > div { display: flex; flex-direction: column; min-width: 150px; }
.kv span { font-size: .8rem; color: var(--mute); } .kv b { font-size: 1.15rem; }
.rules { margin: .5rem 0; padding-left: 1.2rem; font-size: .92rem; max-width: 92ch; } .rules li { margin: .25rem 0; }
.supplement { border-top: 1px dashed var(--line); padding-top: .5rem; color: var(--ink-2); }
.refbar { font-size: .8rem; color: var(--mute); margin-top: .6rem; }
/* quick price check: one row to fill in with its button at the end, and under it one box with the answer:
   a band in the colour of the answer, what to do about it, then the figures it was read from */
.qc { max-width: 820px; }
.qc-form { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 6.5rem auto; gap: 1rem; align-items: end; margin: 0 0 1.4rem; padding: 0 0 1.4rem; border-bottom: 1px solid var(--line); }
.qc-form .in-money, .qc-form .in-num { max-width: none; }
.qc-form .btn { min-width: 6.5rem; }
.qc-out { margin: 0 0 1rem; }
.qc-out .v-head { padding-left: 1.25rem; padding-right: 1.25rem; }
.qc-advice { margin: 0; padding: .7rem 1.25rem .8rem; font-size: .95rem; }
.qc-figs { margin: 0; }
.qc-figs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: .55rem 1.25rem; border-top: 1px solid var(--line-soft); }
.qc-figs > div:first-child { border-top: 0; }
[role="status"] + .qc-figs { border-top: 1px solid var(--line); }
.qc-figs dt { color: var(--ink-2); font-size: .92rem; }
.qc-figs .ko2 { display: inline-block; margin: 0; font-size: .84em; opacity: .72; }
.qc-figs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.qc > .note { margin: 0; }
@media (max-width: 700px) {
  .qc-form { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .qc-form > .f:first-child, .qc-form > .btn { grid-column: 1 / -1; }
}
.matrix th span { display: block; font-weight: 400; } .trans td { vertical-align: middle; } .trans textarea { min-height: 2.2rem; }
.audit pre { margin: .2rem 0 .5rem; font-size: .78rem; white-space: pre-wrap; word-break: break-word; padding: .1rem 0 .1rem .7rem; border-left: 1px solid var(--line-strong); max-width: 46rem; }
.audit summary { cursor: pointer; color: var(--link); }
.diff-added td { background: var(--ok-bg); } .diff-removed td { background: var(--bad-bg); }
.error-page { padding: 2rem 0; }

/* ---------- sign-in: logo and form in one column, the waterfront along the bottom ---------- */
body.plain { background: #fff; }
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fff 40%, #e4f0f6 100%); }
.auth-top { align-self: flex-end; padding: 1.2rem clamp(1.2rem, 4vw, 3rem) 0; }
.auth-main { margin: auto; width: 100%; max-width: calc(400px + 2.4rem); padding: 1.5rem 1.2rem 2.2rem; display: flex; flex-direction: column; align-items: center; }
.auth-logo { display: block; width: min(100%, 320px); height: auto; overflow: visible; }
.auth-name { margin: 1.1rem 0 1.7rem; color: var(--b-blue); font-size: 1.15rem; letter-spacing: .14em; text-align: center; }
.auth-name .ko2 { letter-spacing: 0; }
.auth-card { width: 100%; }
.login-form { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-ctl); padding: 1.6rem 1.7rem 1.7rem; display: flex; flex-direction: column; gap: .9rem; box-shadow: 0 1px 2px rgba(0, 58, 112, .06), 0 26px 50px -18px rgba(0, 58, 112, .3); }
.login-form h2 { margin: 0; font-size: 1.3rem; }
.login-form .lead { margin: 0; color: var(--mute); font-size: .93rem; }
.login-form .flags { width: 5.5rem; height: 5px; margin: -.45rem 0 .3rem; }
.auth-foot { color: #a9c3de; }
.auth-water { position: relative; height: clamp(60px, 11vh, 112px); overflow: hidden; }
.wave { position: absolute; left: 0; bottom: 0; display: block; height: 100%; width: max(2800px, 200vw); }
.wave-far { fill: var(--b-teal); opacity: .3; }
.wave-mid { fill: #1279b4; opacity: .45; width: max(2400px, 180vw); }
.wave-near { fill: #004f97; width: max(2000px, 160vw); }
.auth-legal { position: relative; margin-top: -1px; background: linear-gradient(180deg, #004f97, var(--nav)); padding: .3rem 1.2rem 1.3rem; text-align: center; }
.managed { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 0; font-size: .84rem; font-weight: 600; color: #fff; }
.managed img { flex: none; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .3); }
.confidential { margin: .5rem 0 0; font-size: .75rem; letter-spacing: .02em; }
@media (max-width: 560px) {
  .auth-logo { width: 220px; }
  .auth-name { margin: .8rem 0 1.2rem; font-size: 1.05rem; }
  .login-form { padding: 1.3rem 1.2rem 1.4rem; }
}

/* Opening sequence, once per visit: the roof lines are drawn, the flags go up one after another, the
   name follows, the form settles. After that only the water keeps moving. Every start state lives in
   the keyframes, so a browser that asks for less motion just gets the finished picture. */
@keyframes lg-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lg-hoist { from { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } to { transform: scaleY(1); } }
@keyframes lg-sway { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-2.5deg); } }
@keyframes lg-set { from { opacity: 0; transform: translateY(5px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes settle { from { opacity: 0; transform: translateY(16px); } }
@keyframes stripe { from { transform: scaleX(0); } }
@keyframes tide { from { transform: translateY(45%); opacity: 0; } }
@keyframes drift { to { transform: translate3d(-25%, 0, 0); } }
@keyframes flow { from { transform: translate3d(-50%, 0, 0); } }
@keyframes nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: no-preference) {
  .wave-far { animation: drift 34s linear infinite; }
  .flow::before { animation: flow 26s linear infinite; }
  .wave-mid { animation: drift 23s linear -9s infinite reverse; }
  .wave-near { animation: drift 15s linear -4s infinite; }
  .lg-flag { transform-box: fill-box; transform-origin: 50% 100%; animation: lg-sway 5.5s ease-in-out 2.2s infinite; }
  .lg-flag2 { animation-delay: 2.5s; } .lg-flag3 { animation-delay: 2.8s; } .lg-flag4 { animation-delay: 3.1s; } .lg-flag5 { animation-delay: 3.4s; }
  .auth-card:has(.flash-error) { animation: nudge .38s ease-in-out; }

  .auth-intro .lg-roof { animation: lg-draw .95s cubic-bezier(.65, 0, .35, 1) both; }
  .auth-intro .lg-roof2 { animation-delay: .12s; } .auth-intro .lg-roof3 { animation-delay: .24s; }
  .auth-intro .lg-flag { animation: lg-hoist .6s cubic-bezier(.34, 1.56, .64, 1) .5s both, lg-sway 5.5s ease-in-out 2.2s infinite; }
  .auth-intro .lg-flag2 { animation-delay: .6s, 2.5s; } .auth-intro .lg-flag3 { animation-delay: .7s, 2.8s; }
  .auth-intro .lg-flag4 { animation-delay: .8s, 3.1s; } .auth-intro .lg-flag5 { animation-delay: .9s, 3.4s; }
  .auth-intro .lg-letter { animation: lg-set .55s cubic-bezier(.2, .7, .2, 1) .75s both; }
  .auth-intro .lg-letter2 { animation-delay: .83s; } .auth-intro .lg-letter3 { animation-delay: .91s; } .auth-intro .lg-letter4 { animation-delay: .99s; }
  .auth-intro .lg-line { animation: fade-in .6s ease-out 1.15s both; } .auth-intro .lg-line2 { animation-delay: 1.3s; }
  .auth-intro .auth-name { animation: fade-in .6s ease-out 1.4s both; }
  .auth-intro .auth-card { animation: settle .65s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .auth-intro .login-form .flags i { transform-origin: 0 50%; animation: stripe .35s ease-out .55s both; }
  .auth-intro .login-form .flags i:nth-child(2) { animation-delay: .63s; } .auth-intro .login-form .flags i:nth-child(3) { animation-delay: .71s; }
  .auth-intro .login-form .flags i:nth-child(4) { animation-delay: .79s; } .auth-intro .login-form .flags i:nth-child(5) { animation-delay: .87s; }
  .auth-intro .auth-foot { animation: tide 1.3s cubic-bezier(.2, .7, .2, 1) .1s both; }
}
.bare { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; align-items: center; padding: 1rem; }
.bare-top { align-self: flex-end; }
.bare-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; width: 100%; max-width: 520px; margin-top: 8vh; padding: 0 2rem 1.6rem; overflow: hidden; }
.bare-card .logo { display: block; height: 64px; width: auto; margin: 1.2rem 0 .9rem; }
.bare-card .flags { margin: 0 -2rem 1rem; }

/* ---------- the pre-check sheet: the sheet that is filled in — four numbered parts, one after the other — and,
   beside it, the result: the verdict and the totals, which stay in view while the sheet scrolls ---------- */
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: start; max-width: 1280px; margin: 0 0 1.2rem; }
.pmain { min-width: 0; }
form.doc:has(> .pgrid) > .f { max-width: 1280px; }
/* where the sheet stands: the four parts in a strip that stays under the top bar */
.psteps { position: sticky; top: 58px; z-index: 3; display: flex; list-style: none; margin: 0 0 1.1rem; padding: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.psteps li { flex: 1 1 0; min-width: 0; }
.pstep { display: flex; align-items: center; gap: .55rem; margin-bottom: -1px; padding: .65rem .8rem .65rem 0; border-bottom: 2px solid transparent; color: var(--mute); font-size: .92rem; font-weight: 600; line-height: 1.25; }
.pstep:hover { color: var(--ink); text-decoration: none; }
.pstep.is-current { color: var(--ink); border-bottom-color: var(--accent); }
.pstep.is-done { color: var(--ink); }
.pstep-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstep-name .ko2 { display: block; }
.pstep-n { margin-left: auto; font-size: .8rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--mute); }
.pstep.is-done .pstep-n { display: none; }
.pform { --pad: 0rem; }
.psec { padding: 1.35rem 0 1.4rem; scroll-margin-top: calc(58px + 3.9rem); }
.psec:first-child { padding-top: .4rem; }
.psec + .psec { border-top: 1px solid var(--line-strong); }
.psec-head h2 { margin: 0; font-size: 1.1rem; }
.psec-head .note { margin: .45rem 0 0 2.2rem; }
.psec > .tw { margin: 1rem 0; }
.psec > .tw:last-child { margin-bottom: 0; }
.psec > [data-slot="warnings"]:not(:empty) { margin-bottom: .9rem; }
.psec-foot { display: flex; align-items: center; gap: .6rem 1.2rem; flex-wrap: wrap; }
.psec-foot .note { margin: 0; flex: 1; min-width: 16rem; }
/* corkage under the price lines: the bottle counts only when it goes by the bottle, nothing more when there is none */
.cork { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.cork-title { margin: 0; font-size: .98rem; }
.cork-title .muted { font-weight: 400; font-size: .85rem; }
.fgrid > .cork-hint { grid-column: span 6; grid-row: span 3; align-self: center; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .2rem .7rem; }
.cork-need { color: var(--mid); font-weight: 600; }
.cork:not(:has(select[name="cork_mode"] option[value="unit"]:checked)) .cork-unit { display: none; }
.cork:has(select[name="cork_mode"] option[value=""]:checked) :is(.cork-charged, .cork-hint) { display: none; }
.cork-read { margin: .6rem 0 0; }
.refin { display: flex; gap: .35rem; }
.refin > .sel, .refin > select { flex: 0 0 5.6rem; width: 5.6rem; min-width: 0; }
.refin input { flex: 1; min-width: 0; }
.btn-add { border: 1px dashed var(--line-strong); color: var(--link); background: none; }
.btn-add:hover { background: var(--accent-soft); border-color: var(--accent); border-style: solid; }
/* fields on twelve columns; label, box and hint of one row of fields share their lines, so the boxes line up */
.fgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.1rem; margin-top: 1rem; }
.fgrid > .f { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: .3rem; grid-column: span 12; margin-bottom: .7rem; }
.fgrid > .f > .f-label { align-self: end; }
.fgrid > .c2 { grid-column: span 2; } .fgrid > .c3 { grid-column: span 3; } .fgrid > .c4 { grid-column: span 4; } .fgrid > .c5 { grid-column: span 5; } .fgrid > .c6 { grid-column: span 6; }
.fgrid .in-date, .fgrid .in-num, .fgrid .in-money, .fgrid .datef { max-width: none; }
.fgrid .in-num { text-align: left; }
.fgrid .in-money { text-align: left; }
.doc-hint { display: flex; flex-wrap: wrap; gap: .1rem 1rem; font-variant-numeric: tabular-nums; }
/* the two ends of the event in one box; the end that the calendar is about to set is underlined */
.drange { display: flex; align-items: center; min-height: 2.4rem; border: 1px solid transparent; border-radius: var(--r-ctl); background: var(--field); }
.drange:hover { border-color: var(--line-strong); }
.drange:focus-within { background: var(--surface); border-color: var(--focus); box-shadow: var(--ring); }
.drange input { flex: 1 1 0; min-width: 0; min-height: calc(2.4rem - 2px); border: 0; border-radius: 0; background: none; box-shadow: none; font-variant-numeric: tabular-nums; }
.drange input:focus-visible { box-shadow: none; }
.drange[data-pick="start"] input:first-of-type, .drange[data-pick="end"] input:last-of-type { box-shadow: inset 0 -2px 0 var(--accent); }
.drange-to { flex: none; color: var(--icon); }
.drange-n { flex: none; padding: 0 .75rem 0 .3rem; font-size: .84rem; color: var(--mute); white-space: nowrap; }
.drange-n:empty { display: none; }
.drange-n .ko2 { display: none; }
.drange.is-tbd { background: var(--tint); border: 1px dashed var(--line-strong); }
.drange.is-tbd .drange-to { visibility: hidden; }
.drange.is-tbd input::placeholder { color: var(--ink-2); }
/* separate days (25 and 28 January): the two ends give way to the list of days, pressed one by one on the calendar */
.drange-days { display: none; flex: 1 1 auto; min-width: 0; min-height: calc(2.4rem - 2px); padding: 0 .75rem; border: 0; background: none; text-align: left; font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.drange-days.is-empty { color: var(--mute); }
.drange.is-split input, .drange.is-split .drange-to { display: none; }
.drange.is-split .drange-days { display: block; }
.f-range.c3 .drange input { padding-inline: .5rem; }
.f-range.c3 .drange-to { margin-inline: -.15rem; }
.tpair { display: flex; align-items: center; gap: .25rem; }
.tpair > .sel, .tpair > select { flex: 1 1 0; min-width: 0; }
.drange-opts { display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; }
.tbd { display: inline-flex; align-items: center; width: fit-content; font-size: .8rem; color: var(--mute); cursor: pointer; }
.tbd:hover { color: var(--ink); }
/* price lines: what is typed on one row; below it, once an item is chosen, what the rate card says about it */
.plines { margin: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.pline { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) 9.5rem 10rem 2rem; column-gap: .75rem; align-items: center; padding: .5rem .5rem; border-top: 1px solid var(--line-soft); }
.pline-head { padding-top: .2rem; padding-bottom: .55rem; align-items: end; border-top: 0; border-bottom: 1px solid var(--line-strong); font-size: .8rem; font-weight: 600; color: var(--mute); line-height: 1.35; }
.pline-head + #lines > .pline:first-child { border-top: 0; }
.pline-head .ko2 { display: block; }
.pline .idx { color: var(--mute); font-variant-numeric: tabular-nums; }
.pline.is-blank .idx { color: #cfcfcf; }
.pline.is-blank .x { visibility: hidden; }
.pline input, .pline .sel-btn, .pline select { min-height: 2.3rem; padding-top: .3rem; padding-bottom: .3rem; }
.pl-units { display: flex; align-items: center; gap: .45rem; }
.pl-units .in-num { flex: none; width: 4.6rem; }
.pl-units .unit { min-width: 0; margin: 0; line-height: 1.2; }
.pl-units .unit .ko2 { display: block; }
.pl-quoted .in-money { max-width: none; }
.pl-calc { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.3rem; margin-top: .4rem; font-size: .84rem; }
.pline:not([class*="row-"]) .pl-calc { display: none; }
.pl-fig { display: inline-flex; align-items: baseline; gap: .4rem; }
.pl-k { color: var(--mute); }
.pl-v { font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-v:empty::after { content: "-"; color: #cfcfcf; font-weight: 400; }
.pl-calc .sub { display: inline; margin-left: .45em; }
.pl-res { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; }
.pl-res:empty { display: none; }
.pl-res .tag .ko2 { display: inline-block; }
.pline.row-bad { box-shadow: inset 3px 0 0 var(--bad); } .pline.row-mid { box-shadow: inset 3px 0 0 #d39a1e; }
/* the result panel: verdict, totals, and — on a wide screen — the buttons, which stay at its foot */
.pside { background: var(--surface); }
.pside-part { padding: 1rem 0 1.1rem; }
.pside-part:first-child { padding-top: 0; }
.pside-part + .pside-part { border-top: 1px solid var(--line); }
.pside-part h2 { margin: 0 0 .6rem; font-size: .92rem; color: var(--mute); font-weight: 600; }
.pside .verdict { margin: 0; }
.rtot { font-size: .9rem; line-height: 1.35; }
.rtot th, .rtot td { padding: .32rem 0; border: 0; background: none; vertical-align: top; }
.rtot th { font-weight: 400; white-space: normal; }
.rtot td { padding-left: .9rem; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtot .sub { font-variant-numeric: tabular-nums; }
.rtot .rtot-line > * { border-top: 1px solid var(--line); padding-top: .5rem; }
.rtot .rtot-sum > * { border-top: 1.5px solid var(--ink); padding-top: .5rem; font-size: 1.02rem; font-weight: 700; }
.rtot .rtot-doc > * { padding-top: 0; font-size: .84rem; font-weight: 400; color: var(--mute); }
.rtot .rtot-doc td > span { margin-left: .6rem; }
.pside-actions { display: none; }
.pside-actions .btn { width: 100%; }
.pside-hint { grid-column: 1 / -1; margin: 0; font-size: .84rem; color: var(--bad); }
.pside-hint:empty { display: none; }
.pkept { margin-top: .2rem; }
@media (min-width: 1180px) {
  .pgrid { grid-template-columns: minmax(0, 1fr) 21.5rem; }
  /* the panel stays level with the page title, just under the top bar; taller than the window, it gives way
     far enough to show its foot (public/app.js, data-stick) — it never scrolls inside itself */
  .pside { position: sticky; top: calc(58px + 1.8rem); padding-left: 1.8rem; border-left: 1px solid var(--line); }
  .pside-actions { display: grid; gap: .45rem; padding: .9rem 0 .8rem; border-top: 1px solid var(--line); }
  .pside-actions .btn > span { text-align: left; line-height: 1.25; }
  .pside-actions .btn > span > .ko2 { display: block; }
  .pside-actions .btn-quiet { min-height: 2rem; padding-top: .2rem; padding-bottom: .2rem; font-size: .86rem; }
  .pbar { display: none; }
}
/* checklist answers: one of three, as a row of segments; the item being answered carries a bar on its left */
.pform .items th:last-child { width: 13.5rem; }
.pform .items input { min-height: 2.2rem; padding: .28rem .55rem; }
.items-edit tr { scroll-margin-top: calc(58px + 4rem); }
.items-edit tr:focus-within > td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.ans-cell > * { display: flex; width: 100%; }
.ans-cell .ans .rb { flex: 1; flex-direction: column; justify-content: center; text-align: center; padding: .3rem .4rem; line-height: 1.2; white-space: normal; }
.ans-cell .ans .rb .ko2 { display: block; }
.ans { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface); overflow: hidden; }
.ans .rb { position: relative; margin: 0; padding: .3rem .75rem; font-size: .86rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.ans .rb + .rb { border-left: 1px solid var(--line-strong); }
.ans .rb input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ans .rb:hover { background: var(--tint); color: var(--ink); }
.ans .rb:has(input[value="y"]:checked) { background: var(--ok); color: #fff; }
.ans .rb:has(input[value="n"]:checked) { background: var(--bad); color: #fff; }
.ans .rb:has(input[value="na"]:checked) { background: var(--none); color: #fff; }
.ans .rb:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--accent); }
/* a note on an item: folded away until it is asked for */
.qnote { display: block; margin-top: .4rem; }
.qnote summary { width: fit-content; list-style: none; cursor: pointer; font-size: .8rem; color: var(--mute); }
.qnote summary::-webkit-details-marker { display: none; }
.qnote summary::before { content: "+ "; }
.qnote summary:hover { color: var(--accent); }
.qnote[open] summary { display: none; }
/* the verdict in a word, in the bar that stays in view */
.vchip { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; padding: .42rem 0; white-space: nowrap; }
.vchip::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.vchip-ok { color: var(--ok); } .vchip-mid { color: var(--mid); }
.vchip-bad { color: var(--bad); } .vchip-none { color: var(--none); }

/* ---------- drop-down list and calendar (public/app.js builds them; without scripts the plain controls remain) ---------- */
.sel { position: relative; display: inline-grid; grid-template-columns: minmax(0, 1fr); width: 100%; vertical-align: middle; }
.sel > * { grid-area: 1 / 1; min-width: 0; }
.sel-native { opacity: 0; pointer-events: none; }
.sel-btn { position: relative; z-index: 1; display: flex; align-items: center; gap: .5rem; text-align: left; cursor: pointer; }
.sel-btn .ic { margin-left: auto; color: var(--icon); }
.sel-btn[aria-expanded="true"] .ic { transform: rotate(180deg); color: var(--accent-dark); }
.sel-face { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-btn.is-empty .sel-face { color: var(--icon); }
.sel-btn:disabled { background: var(--tint); color: var(--mute); cursor: default; }
.sel-sub { font-size: .84em; font-weight: 400; color: var(--mute); }
.sel-face .sel-sub { margin-left: .5em; }
.sel-pop, .cal { position: fixed; left: 0; top: 0; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 38px -10px rgba(0, 0, 0, .17); }
.sel-pop [hidden] { display: none; }
.sel-pop { display: flex; flex-direction: column; min-width: 12rem; max-width: min(40rem, calc(100vw - 16px)); padding: .35rem; }
.sel-find { position: relative; flex: none; margin-bottom: .35rem; }
.sel-find .ic { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: var(--icon); pointer-events: none; }
.sel-search { min-height: 2.3rem; padding-left: 2.1rem; background: var(--bg); border-color: var(--line); }
.sel-list { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; max-height: 20rem; }
.sel-group { padding: .6rem .7rem .2rem; font-size: .76rem; font-weight: 700; color: var(--mute); }
.sel-opt { position: relative; display: flex; flex-direction: column; padding: .42rem .8rem .42rem 2rem; border-radius: var(--r); line-height: 1.3; cursor: pointer; }
.sel-opt.is-active { background: var(--accent-soft); }
.sel-opt.is-blank { color: var(--mute); }
.sel-opt[aria-selected="true"] { font-weight: 650; color: var(--accent-dark); }
.sel-opt[aria-selected="true"]::before { content: ""; position: absolute; left: .75rem; top: .78rem; width: .6rem; height: .32rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.sel-none { padding: 1rem .8rem; text-align: center; color: var(--mute); font-size: .88rem; }
.datef { position: relative; display: inline-block; width: 100%; max-width: 10.5rem; vertical-align: middle; }
.datef .in-date { max-width: none; padding-right: 2.4rem; font-variant-numeric: tabular-nums; }
.datef-btn { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--icon); cursor: pointer; }
.datef-btn:hover { background: var(--accent-soft); color: var(--accent-dark); }
.cal { width: 19.5rem; padding: .7rem .7rem .5rem; user-select: none; -webkit-user-select: none; }
.cal button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
.cal-head { display: flex; align-items: center; gap: .15rem; margin-bottom: .35rem; }
.cal-head .cal-title { flex: 1; min-width: 0; text-align: left; font-weight: 700; padding: .35rem .5rem; border-radius: var(--r-ctl); }
.cal small { font-size: .78em; font-weight: 400; color: var(--mute); margin-left: .5em; }
.cal-head .cal-nav { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: var(--r-ctl); color: var(--ink-2); }
.cal-head .cal-title:hover, .cal-head .cal-nav:hover { background: var(--tint); color: var(--accent-dark); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { text-align: center; font-size: .74rem; font-weight: 600; color: var(--mute); padding: .35rem 0 .3rem; }
.cal-grid .cal-day { height: 2.4rem; font-variant-numeric: tabular-nums; }
.cal-day > span { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; margin: 0 auto; border-radius: 50%; }
.cal-day:hover > span { background: var(--tint-2); }
.cal-day.is-out { color: var(--icon); }
.cal-day.is-in { background: var(--accent-soft); }
.cal-day.is-from { background: linear-gradient(to right, transparent 50%, var(--accent-soft) 50%); }
.cal-day.is-to { background: linear-gradient(to left, transparent 50%, var(--accent-soft) 50%); }
.cal-day.is-today > span { box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; }
.cal-day.is-pair > span { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-dark); font-weight: 700; }
.cal-day.is-sel > span, .cal-day.is-sel:hover > span { background: var(--accent); box-shadow: none; color: #fff; font-weight: 700; }
.cal-day.is-cur > span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cal-grid .cal-day:disabled { color: #cfcfcf; cursor: default; }
.cal-day:disabled:hover > span { background: none; }
.cal-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; padding: .3rem 0; }
.cal-months .cal-month { display: flex; flex-direction: column; align-items: center; padding: .7rem 0; border-radius: var(--r-ctl); font-weight: 600; }
.cal-month small { margin: 0; }
.cal-month:hover { background: var(--tint-2); }
.cal-month.is-today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-month.is-sel, .cal-month.is-sel small { background: var(--accent); color: #fff; }
.cal-foot { display: flex; justify-content: space-between; margin-top: .4rem; padding-top: .4rem; border-top: 1px solid var(--line-soft); }
.cal-foot .cal-link, .cal-foot .cal-clear { font-size: .86rem; font-weight: 600; color: var(--link); padding: .35rem .55rem; border-radius: 6px; }
.cal-foot .cal-clear { color: var(--mute); }
.cal-foot .cal-link:hover, .cal-foot .cal-clear:hover { background: var(--tint); }
.cal-range { width: 20rem; padding: .7rem .8rem .5rem; }
.cal-range.cal-two { width: 39.5rem; }
.cal-turn { position: absolute; left: .6rem; right: .6rem; top: .6rem; display: flex; justify-content: space-between; pointer-events: none; }
.cal-turn .cal-nav { pointer-events: auto; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: var(--r-ctl); color: var(--ink-2); }
.cal-turn .cal-nav:hover { background: var(--tint-2); color: var(--accent); }
.cal-panes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.cal-two .cal-panes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cal-name { display: flex; align-items: center; justify-content: center; height: 2.1rem; margin: 0 0 .2rem; font-weight: 700; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- print sheet: one A4 page, black on white ---------- */
body.print { background: #fff; }
.sheet { max-width: 210mm; margin: 0 auto; padding: 8mm; font-size: 8.5pt; line-height: 1.35; color: #000; }
.sheet h2 { font-size: 9pt; margin: 3mm 0 1mm; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; border-bottom: 1.5pt solid #000; padding-bottom: 2mm; }
.sheet-brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4mm; }
.sheet-head h1 { font-size: 14pt; letter-spacing: 0; } .sheet-head p { margin: .6mm 0 0; font-size: 7.5pt; color: #444; }
.sheet-logo { display: block; height: 13mm; width: auto; }
.sheet .brand-pair { gap: 3mm; } .sheet .brand-pair > i { margin: 1.5mm 0; border-color: #999; } .sheet .brand-pair .km { width: 9.5mm; height: 9.5mm; }
.sheet-id { display: grid; grid-template-columns: auto auto; gap: .4mm 3mm; align-items: baseline; margin: 0; font-size: 8pt; text-align: right; font-variant-numeric: tabular-nums; }
.sheet-id { flex: none; } .sheet-id dt { color: #555; } .sheet-id dd { margin: 0; white-space: nowrap; } .sheet-id b { font-size: 11pt; }
.sheet-id > b { grid-column: 1 / -1; font-size: 12pt; } .sheet-id > span { grid-column: 1 / -1; }
.sheet-facts { display: grid; grid-template-columns: 1.6fr 1fr; margin: 2.5mm 0 0; border: .5pt solid #999; }
.sheet-facts > div { display: grid; grid-template-columns: 23mm minmax(0, 1fr); padding: .9mm 2mm; border-bottom: .5pt solid #ccc; }
.sheet-facts > div:nth-child(odd) { border-right: .5pt solid #ccc; }
.sheet-facts > div:nth-child(even) { grid-template-columns: 36mm minmax(0, 1fr); }
.sheet-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.sheet-facts dt { color: #555; } .sheet-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sheet-result { margin-top: 2.5mm; } .sheet-result h2 { display: none; }
.sheet .verdict { margin: 0; border-radius: 0; } .sheet .v-head { padding: 1.2mm 2.5mm; font-size: 10.5pt; } .sheet .v-why { padding: 1.2mm 2.5mm 1.4mm 7mm; font-size: 8.5pt; }
.sheet-title { margin: 2mm 0; } .sheet .tw { border: 0; margin: 0 0 1mm; overflow: visible; }
.sheet table { font-size: 8pt; } .sheet th, .sheet td { padding: .7mm 1.5mm; border: .5pt solid #999; } .sheet thead th { background: #f0f0f0; color: #000; }
.sheet tbody tr:last-child td { border-bottom: .5pt solid #999; }
.sheet .rule, .sheet .xref { display: none; }
.sheet .lines .sub, .sheet .tot .sub-inline { display: inline; margin-left: .5em; font-size: 7.5pt; }
.sheet .tag { padding: 0; background: none; font-size: 8pt; white-space: normal; }
.sheet tr.row-bad td:first-child, .sheet tr.row-mid td:first-child { box-shadow: none; }
.sheet .warn { margin: 1mm 0; padding: .8mm 2mm; font-size: 8pt; }
.sheet .dl-grid { border: .5pt solid #999; padding: 1.5mm 2mm; font-size: 8.5pt; border-radius: 0; }
.qbrief { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 5mm; font-size: 8pt; }
.qbrief li { display: grid; grid-template-columns: 4.5mm minmax(0, 1fr) auto; column-gap: 1.5mm; padding: .65mm 0; border-bottom: .5pt solid #ccc; break-inside: avoid; }
.qb-no { text-align: right; color: #555; font-variant-numeric: tabular-nums; }
.qb-note { display: block; font-size: 7.5pt; color: #444; }
.qb-ans { font-weight: 700; white-space: nowrap; }
.sheet-remarks { margin: 0; max-width: none; }
.sheet .lg-boxes { grid-template-columns: repeat(4, 30mm); } .sheet .lg-box { grid-template-rows: auto 17mm auto auto; }
.sheet .stamps { margin: 0; } .sheet .stamp { width: 36mm; min-height: 25mm; border-radius: 0; }
.sheet-foot { display: flex; justify-content: space-between; font-size: 7pt; color: #555; margin-top: 3mm; border-top: .5pt solid #999; padding-top: 1mm; }

@media (max-width: 1180px) {
  .home-two > .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-side { grid-column: 1 / 5; grid-row: 5; display: block; margin-top: 2.6rem; padding-left: 0; border-left: 0; }
  .home-clock { display: none; }
  .staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0 1.2rem; }
}
@media (max-width: 1000px) {
  .home-grid, .home-two > .home-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 2.2rem; }
  .home-grid > .home-head, .home-grid > .box, .home-grid > .home-more, .home-side { grid-column: 1; grid-row: auto; display: block; margin-top: 0; }
  .home-grid > .home-head { display: flex; margin-bottom: 0; }
}
@media (max-width: 760px) {
  .social { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 20; height: auto; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .21), 12px 0 40px rgba(0, 0, 0, .12); }
  .side.open { display: block; }
  .menu-btn { display: block; }
  .top-note > * { display: none; }
  /* narrow: icons only, and every panel hangs from the bar itself so it cannot run off the screen */
  .top .who > .who-text, .top .who > .chev, .top .langmenu-name, .top-sep { display: none; }
  .top .pop > summary.who { padding: 0 .3rem; }
  .top .pop > summary { padding: 0 .55rem; }
  .top .statemenu > summary :is(.st-word, .chev) { display: none; }
  .top .statemenu > summary .st > i { width: .8rem; height: .8rem; }
  .top .pop { position: static; }
  .top .pop-panel { right: .75rem; top: calc(100% + .35rem); transform-origin: 100% 0; }
  .top { padding: calc(.4rem + 3px) 1rem .4rem; }
  main { padding: 1rem; }
  .home-head h1 { font-size: 1.45rem; }
  .dl-grid { grid-template-columns: max-content 1fr; }
  .dochead { grid-template-columns: minmax(0, 1fr); } .dh-info { border-right: 0; border-bottom: 1px solid #9a9a9a; } .dochead > .lg { overflow-x: auto; }
  main.dw-paper { width: 100%; margin: 0; padding: 1.2rem 1rem 2rem; border-width: 0 0 1px; } .dw-bar { padding: .5rem .8rem; } .dw-brand { display: none; } .dw-tools { justify-content: flex-start; }
  .lp { grid-template-columns: minmax(0, 1fr); height: auto; } .dlg-body { overflow: auto; } .lp-org { max-height: 9rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .lp-people { border-right: 0; border-bottom: 1px solid var(--line); } .lp-rows { flex: none; max-height: 16rem; } .lp-line .lp-scroll { flex: none; overflow: visible; }
  .history li { grid-template-columns: 1fr; gap: 0; }
  .psec { padding: 1.1rem 0 1.2rem; }
  .fgrid > .f { grid-column: span 12; }
  .fgrid > .c2, .fgrid > .c3 { grid-column: span 6; } .fgrid > .c4, .fgrid > .c5 { grid-column: span 12; }
  .fgrid > .cork-hint { grid-column: span 12; grid-row: auto; margin: 0 0 .7rem; }
  .pstep-name { display: none; } .pstep { justify-content: center; padding-right: 0; } .pstep-n { margin-left: 0; }
  .psec-head .note { margin-left: 0; }
  .bar-status { margin-left: 0; }
  /* my profile: the menu turns into a row of tabs above the subject */
  .me { margin-bottom: 1.2rem; }
  .me .avatar { width: 3.2rem; height: 3.2rem; font-size: 1.05rem; }
  .me h1 { font-size: 1.3rem; }
  .set { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .set-nav { position: static; display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .set-nav::-webkit-scrollbar { display: none; }
  .size-row { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: .3rem; } .size-say { grid-area: 2 / 2 / auto / -1; }
  .set-nav a { flex: none; margin-bottom: -1px; padding: .55rem .8rem; border-bottom: 3px solid transparent; border-radius: var(--r) var(--r) 0 0; white-space: nowrap; }
  .set-nav a[aria-current] { background: none; border-bottom-color: var(--accent); }
  .set-nav a[aria-current]::before { display: none; }
  .set-box > div { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  @page { size: A4; margin: 8mm; }
  .side, .top, .noprint, .actions, .page-actions, .sel-pop, .cal, .dw-bar, dialog { display: none !important; }
  body.docwin { background: #fff; } main.dw-paper { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; }
  .shell { display: block; } main { padding: 0; max-width: none; } body { background: #fff; }
  .sheet { padding: 0; } * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .side li a { transition: background-color .12s; }
  input, select, textarea, .sel-btn { transition: border-color .12s, box-shadow .12s; }
  .sel-btn .ic { transition: transform .15s; }
  .sel-pop, .cal { animation: pop-in .12s ease-out; }
}

/* one-time temporary password after an administrator's reset */
.temp-pw { margin: 1rem 0 1.25rem; padding: 1rem 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); max-width: 32rem; }
.temp-pw .pw { margin: 0 0 .6rem; }
.temp-pw code { font-size: 1.6rem; font-weight: 700; letter-spacing: .08em; color: var(--accent); user-select: all; }
.reset-own { margin-top: .75rem; }
.reset-own summary { cursor: pointer; color: var(--mute); font-size: .9rem; }
.reset-own form { margin-top: .6rem; }

/* ---------- a document of an event, as its approvers read it (web/event-doc-view.ts) ---------- */
.evdoc { display: grid; gap: .9rem; }
.evdoc h3 { margin: .4rem 0 0; font-size: .95rem; }
.evdoc-facts { border-collapse: collapse; width: 100%; }
.evdoc-facts th, .evdoc-facts td { padding: .4rem .7rem; border: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .92rem; }
.evdoc-facts th { width: 14rem; background: var(--tint-1, #f7f7f7); font-weight: 600; color: var(--mute); }
.evdoc-note { margin: 0; white-space: pre-wrap; }

/* Site Visit Arrangement: the memorandum as on paper (src/web/site-visit-view.ts); on screen inside the document, printed as one A4 sheet */
.memo { max-width: 52rem; color: #111; font-size: .95rem; line-height: 1.4; }
.memo p { margin: .7rem 0; }
.memo .pre { max-width: none; }
.memo-top { display: flex; justify-content: space-between; align-items: flex-start; }
.memo-ref { display: grid; grid-template-columns: 7rem auto; margin: 0; }
.memo-km { width: 4.6rem; height: 4.6rem; }
.memo-kind { margin: 1rem 0 .35rem; font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.memo-head { border-collapse: collapse; width: 100%; border-bottom: 2px solid #111; }
.memo-head th { width: 7rem; padding: .15rem 0; font-weight: 400; text-align: left; vertical-align: top; }
.memo-head td { padding: .15rem 0; }
.memo-head .memo-subject th, .memo-head .memo-subject td { padding-bottom: .4rem; font-weight: 700; }
.memo-dear { font-weight: 600; }
.memo-table { border-collapse: collapse; width: 100%; }
.memo-table th, .memo-table td { padding: .2rem .45rem; border: 1px solid #555; text-align: left; vertical-align: top; }
.memo-table th { width: 7.5rem; font-weight: 700; background: #f2f2f2; }
.memo-table td { min-height: 1.4em; }
.memo-total b { display: block; }
.memo-sigs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; margin-top: 1.6rem; }
.memo-sig { display: grid; grid-template-rows: auto 3.6rem auto; min-width: 12rem; }
.memo-sig > b { font-weight: 600; }
.memo-ink { display: flex; align-items: flex-end; border-bottom: 1px dashed #333; padding-bottom: .15rem; }
.memo-who { display: grid; padding-top: .15rem; } .memo-who b { font-weight: 600; }
.memo-foot { display: grid; margin-top: 2.4rem; font-size: .72rem; color: #444; line-height: 1.35; } .memo-foot b { color: #111; letter-spacing: .03em; }
.memo-sheet { max-width: 210mm; margin: 0 auto; padding: 12mm 16mm; font-size: 9.5pt; }
.memo-print { max-width: 210mm; margin: 0 auto 2rem; padding: 0 16mm; }
@media print { .memo-sheet { padding: 0; } @page { size: A4; margin: 14mm 16mm; } }
.memo .memo-head tr, .memo .memo-head th, .memo .memo-head td { border: 0; background: none; }

/* the attendance address (attend.<host>): attendance as a site of its own, no side menu (src/web/layout.ts, attendPage) */
.col-attend { min-height: 100vh; }
.attend-brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.attend-brand .logo { height: 34px; width: auto; }
.attend-brand .brand-pair .km { width: 30px; height: 30px; }
.attend-chip { padding: .2rem .65rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .85rem; font-weight: 600; }

/* Business trip: the request and its claim as their paper sheets (src/web/trip-view.ts), built on the memo above */
.memo-sub { margin: 1rem 0 .3rem; font-weight: 700; }
.memo-lines { border-collapse: collapse; width: 100%; margin: .6rem 0; }
.memo-lines th, .memo-lines td { padding: .2rem .45rem; border: 1px solid #555; text-align: left; vertical-align: top; }
.memo-lines thead th { font-weight: 700; background: #f2f2f2; }
.memo-lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.memo-lines tfoot td { font-weight: 700; background: #f2f2f2; }
.memo-sum { margin-top: .6rem; }
.memo-sum th { width: 16rem; }
.memo-facts th { width: auto; white-space: nowrap; }
.memo-sigs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1.2rem 1.4rem; }
.memo-sigs-row .memo-sig { min-width: 0; }
.memo-sigs-row .memo-sig { align-content: start; }
/* under a line, what that kind of line needs: a set-up or teardown, whether it falls on an event day (free) or the day
   before or after (charged); a package, the hall or room it is served in */
.pl-opt { grid-column: 2 / -1; display: none; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: .45rem; }
.pl-same, .pl-venue { display: none; align-items: center; gap: .6rem; }
.pl-same .sel, .pl-venue .sel { width: 17rem; }
.pline:has(option[data-k="setup"]:checked, option[data-k="teardown"]:checked) :is(.pl-opt, .pl-same),
.pline:has(option[data-k="package"]:checked) :is(.pl-opt, .pl-venue) { display: flex; }
.pl-venue .sel-btn.is-empty { box-shadow: inset 0 0 0 1px var(--mid); color: var(--mid); }
.pl-venue .sel-btn.is-empty .sel-face { color: var(--mid); }

/* ---------- a list of venues and packages: the kinds down the left, the choices of one kind as soft tiles beside
   them, the search over them (public/app.js, data-tiles) ---------- */
.sel-pop.tp-pop { display: grid; grid-template-columns: 11rem minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 0 .9rem; width: min(48rem, calc(100vw - 16px)); max-width: calc(100vw - 16px); padding: .6rem; }
.tp-tabs { grid-row: 1 / 3; display: flex; flex-direction: column; gap: 2px; margin: 0; padding-right: .7rem; border-right: 1px solid var(--line); }
.tp-tab { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: .5rem .7rem; border: 0; border-radius: var(--r-ctl); background: none; font: inherit; font-size: .84rem; font-weight: 600; line-height: 1.2; color: var(--ink-2); text-align: left; cursor: pointer; }
.tp-tab .sel-sub { font-size: .72rem; font-weight: 500; color: var(--mute); }
.tp-tab:hover { background: var(--tint); }
.tp-tab[aria-selected="true"] { background: var(--tint-2); color: var(--ink); }
.tp-pop .sel-find { grid-column: 2; }
.tp-grid { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .35rem; align-content: start; max-height: 23rem; padding: .1rem; }
.tp-grid > .tp-head, .tp-grid > .tp-sub, .tp-grid > .sel-none { grid-column: 1 / -1; }
.tp-head { padding: .5rem .2rem .1rem; }
.tp-sub { padding: .55rem .2rem .05rem; font-size: .76rem; font-weight: 700; color: var(--mute); }
.sel-opt.tp-tile { justify-content: center; min-height: 3.6rem; padding: .55rem .75rem; border: 0; border-radius: var(--r); background: var(--tint); }
.sel-opt.tp-tile.is-active { background: var(--tint-2); }
.sel-opt.tp-tile[aria-selected="true"] { background: var(--ink); color: #fff; }
.sel-opt.tp-tile[aria-selected="true"]::before { display: none; }
.sel-opt.tp-tile[aria-selected="true"] .tp-meta { color: rgba(255, 255, 255, .72); }
.tp-name { font-weight: 650; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-meta { margin-top: .1rem; font-size: .76rem; font-weight: 500; color: var(--mute); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .sel-pop.tp-pop { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
  .tp-tabs { grid-row: auto; flex-direction: row; flex-wrap: wrap; padding: 0 0 .5rem; margin-bottom: .5rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .tp-tab { width: auto; }
  .tp-pop .sel-find, .tp-grid { grid-column: 1; }
}

/* ---------- the package check: per hall or room, the policy's venue hire against this request's, on a bar ---------- */
.hbs:not(:empty) { display: grid; gap: .7rem; margin: 1.1rem 0 0; }
.hb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1.4rem; align-items: center; padding: .9rem 0 .2rem; border-top: 1px solid var(--line); }
.hb-where { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .8rem; min-width: 0; }
.hb-where b { font-size: 1rem; }
.hb-where span { font-size: .84rem; color: var(--mute); }
.hb-figs { display: flex; gap: 1.6rem; margin: 0; }
.hb-figs > div { display: flex; flex-direction: column; align-items: flex-end; }
.hb-figs dt { font-size: .76rem; font-weight: 600; color: var(--mute); white-space: nowrap; }
.hb-figs dd { margin: 0; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-figs dd small { margin-left: .3rem; font-size: .74rem; font-weight: 500; color: var(--mute); }
.hb-pct dd { font-size: 1.35rem; line-height: 1.1; }
.hb-ok .hb-pct dd { color: var(--ok); } .hb-bad .hb-pct dd { color: var(--bad); }
.hb-bar { grid-column: 1 / -1; position: relative; height: 6px; }
.hb-bar progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; background: var(--tint-2); appearance: none; -webkit-appearance: none; overflow: hidden; color: var(--ok); }
.hb-bar progress::-webkit-progress-bar { background: var(--tint-2); border-radius: 3px; }
.hb-bar progress::-webkit-progress-value { background: var(--ok); border-radius: 3px; }
.hb-bar progress::-moz-progress-bar { background: var(--ok); border-radius: 3px; }
.hb-bad .hb-bar progress::-webkit-progress-value { background: var(--bad); }
.hb-bad .hb-bar progress::-moz-progress-bar { background: var(--bad); }
.hb-bar b { position: absolute; top: -4px; bottom: -4px; left: 90%; width: 2px; margin-left: -1px; background: var(--ink); }
.hb-bar[data-edge="50"] b { left: 50%; } .hb-bar[data-edge="55"] b { left: 55%; } .hb-bar[data-edge="60"] b { left: 60%; } .hb-bar[data-edge="65"] b { left: 65%; } .hb-bar[data-edge="70"] b { left: 70%; } .hb-bar[data-edge="75"] b { left: 75%; } .hb-bar[data-edge="80"] b { left: 80%; } .hb-bar[data-edge="85"] b { left: 85%; } .hb-bar[data-edge="90"] b { left: 90%; } .hb-bar[data-edge="95"] b { left: 95%; } .hb-bar[data-edge="100"] b { left: 100%; }
.extras .cork .fgrid > .c3 { grid-column: span 6; }
.hb-say { grid-column: 1 / -1; margin: 0; font-size: .86rem; color: var(--mute); }
.hb-bad .hb-say b { color: var(--bad); }
.hb-price { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: .1rem 0 .3rem; padding-top: .55rem; border-top: 1px dashed var(--line); }
.hb-price > div { display: flex; flex-direction: column; }
.hb-price dt { font-size: .76rem; font-weight: 600; color: var(--mute); white-space: nowrap; }
.hb-price dd { margin: 0; font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-price .hp-off { margin-left: auto; align-items: flex-end; }
.hb-price .hp-off dd { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.hb-price-all { padding: .8rem 0 .2rem; border-top: 1px solid var(--line); }
.hb-price-all .hp-all { justify-content: center; } .hb-price-all .hp-all dt { font-size: .9rem; color: var(--ink); }

/* what a short venue hire asks for, right under it: the state of Foodlink's agreement with its files (live), then what
   Foodlink takes off and the ways to add its mail or document (they stay put while the check is worked out again) */
.flw { margin: .9rem 0 0; padding: .95rem 1.1rem 1rem; border-radius: var(--r-lg); }
.flw:not(:has(.fl)) { display: none; }
.flw:has(.fl-need) { background: var(--bad-bg); } .flw:has(.fl-ok) { background: var(--ok-bg); }
.fl-top { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; }
.fl-top:has(.fl-files) { align-items: flex-start; }
.fl-top > [data-slot] { flex: 1 1 22rem; min-width: 0; }
.fl { display: flex; align-items: center; gap: .8rem; }
.fl > div { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; line-height: 1.35; }
.fl > div b { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; font-size: 1rem; }
.fl > div > span { font-size: .84rem; color: var(--ink-2); }
.fl-req { padding: .12rem .5rem; border-radius: 999px; background: var(--bad); color: #fff; font-size: .7rem; font-style: normal; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.fl-req .ko2 { opacity: .9; }
.fl-ic { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--surface); }
.fl-need .fl-ic, .fl-need b { color: var(--bad); }
.fl-ok .fl-ic, .fl-ok b { color: var(--ok); }
.fl-files { list-style: none; margin: .6rem 0 0 2.9rem; padding: 0; }
.fl-files li { display: flex; align-items: center; gap: .55rem; padding: .25rem .2rem .25rem .6rem; border-radius: var(--r-ctl); background: var(--surface); font-size: .88rem; }
.fl-files li + li { margin-top: .25rem; }
.fl-files a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.fl-files .x { width: 1.7rem; height: 1.7rem; }
.fl-files .x:hover { color: var(--bad); }
.fl-do { display: flex; flex-wrap: wrap; gap: .4rem; margin-left: auto; }
.fl-do .btn { background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.fl-do .btn:hover { background: var(--tint); }
.fl-amt { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: .9rem 0 0 2.9rem; padding-top: .85rem; border-top: 1px solid rgba(0, 0, 0, .07); }
.fl-amt-k { margin-right: .25rem; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.fl-amt .seg { background: rgba(255, 255, 255, .55); }
.fl-amt .seg-o span { padding: .3rem .8rem; font-size: .84rem; }
.fl-amt-in { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem .45rem; }
.fl-amt-in .seg { margin-right: .35rem; }
.fl-amt-in i { font-style: normal; font-size: .84rem; font-weight: 600; color: var(--mute); }
main.dw-app .fl-amt input, .fl-amt input { width: 9.5rem; background-color: var(--surface); text-align: right; font-variant-numeric: tabular-nums; }
.hb-fl { color: var(--ok); font-weight: 600; }
.gmdlg.is-sending .gm-list { pointer-events: none; }

/* corkage and food tasting side by side under the lines */
.extras { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.extras > .cork { margin: 0; padding: 0; border: 0; }
.ft { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem 1rem; margin-top: 1.1rem; }
.ft > .f-label { flex-basis: 100%; font-size: .98rem; font-weight: 700; color: var(--ink); }
.ft-pax { display: none; align-items: center; gap: .55rem; }
.ft:has(input[name="tasting_plan"][value="yes"]:checked) .ft-pax { display: flex; }
.ft-pax .f-label { font-weight: 600; }
.ft-in { display: inline-flex; align-items: center; gap: .4rem; }
.ft-in .in-num { width: 6rem; }
/* one of a few choices, side by side */
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-ctl); background: var(--field); }
.seg-o { position: relative; display: inline-flex; }
.seg-o input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-o span { padding: .34rem .95rem; border-radius: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.seg-o:hover span { color: var(--ink); }
.seg-o input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--tile); }
.seg-o input:focus-visible + span { box-shadow: var(--ring); }

/* ---------- a request written on one screen (a document window that is a workplace, not a paper form) ---------- */
body.docwin:has(main.dw-app) { background: var(--surface); }
main.dw-paper.dw-app { width: 100%; max-width: 1320px; margin: 0 auto; padding: 1.6rem 2rem 4rem; border: 0; background: none; }
main.dw-app :is(input, select, textarea, .sel-btn) { background-color: var(--field); border-color: transparent; }
main.dw-app :is(input, select, textarea, .sel-btn):hover { border-color: var(--line-strong); }
main.dw-app :is(input, select, textarea, .sel-btn):focus-visible, main.dw-app .sel-btn[aria-expanded="true"] { background-color: var(--surface); border-color: var(--focus); }
.ap-head { display: grid; gap: .55rem; margin: 0 0 1.2rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.ap-eyebrow { display: flex; align-items: center; gap: .8rem; margin: 0; }
.ap-form { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 700; color: var(--f-orange); }
.ap .pgrid { max-width: none; margin: 0; }
.ap .psteps { top: 58px; }
/* the request window keeps the paper form's head of every e-approval form; changing the line sits on its first row */
.ap-line-btn { margin-left: auto; }
.ap-head .dh-stack { margin: 0; }
main.dw-app .ap-head .dh-title input { background-color: var(--surface); }
.ap-head [data-slot="line_notes"]:empty { display: none; }
.ap-head [data-slot="line_notes"] .warn { margin: 0; font-size: .84rem; }
.ap .pside-actions { display: grid; gap: .45rem; }
.ap .pside-actions .btn-primary { min-height: 2.8rem; font-size: 1rem; }
/* files and references: the last part of the sheet */
.af { list-style: none; margin: .8rem 0 0; padding: 0; }
.af li { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; border-top: 1px solid var(--line-soft); }
.af li:first-child { border-top: 0; }
.af li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.af li .muted { margin-left: auto; font-size: .8rem; }
.af-ic { color: var(--icon); }
.af-kind { font-size: .78rem; font-weight: 600; color: var(--f-orange); white-space: nowrap; }
.af-add { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 0; }
.af-refs { display: flex; align-items: center; justify-content: space-between; margin-top: 1.6rem; }
.ap-files .refs { margin-top: .4rem; }
.ap-history { margin-top: 2rem; }
/* picking a mail */
.gmdlg { width: min(44rem, calc(100vw - 2rem)); }
.gm { display: flex; flex-direction: column; gap: .6rem; padding: .9rem 1.1rem; height: min(32rem, calc(100vh - 10rem)); }
.gm-list { flex: 1; min-height: 0; overflow-y: auto; }
.gm-list.is-loading { opacity: .5; }
.gm-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .7rem; padding: .6rem .5rem; border-radius: var(--r); cursor: pointer; }
.gm-row + .gm-row { border-top: 1px solid var(--line-soft); }
.gm-row:hover { background: var(--tint); }
.gm-row:has(input:checked) { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.gm-row input { position: absolute; opacity: 0; pointer-events: none; }
.gm-av { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tint-2); font-size: .76rem; font-weight: 700; }
.gm-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.gm-top { display: flex; justify-content: space-between; gap: .8rem; }
.gm-top time { flex: none; font-size: .78rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.gm-subj { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-snip { font-size: .82rem; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-none { margin: 2rem 0; text-align: center; color: var(--mute); }
/* a mail kept as a PDF */
.ms { font-size: 11pt; }
.ms-head { border-collapse: collapse; margin-bottom: 1.2rem; }
.ms-head th { padding: .15rem 1rem .15rem 0; text-align: left; vertical-align: top; color: #555; font-weight: 600; white-space: nowrap; }
.ms-head td { padding: .15rem 0; }
.ms-text, .ms-quoted { white-space: pre-wrap; }
.ms-quoted { margin-top: 1rem; padding-left: .8rem; border-left: 2px solid #ccc; color: #555; }
@media (min-width: 1100px) {
  .extras { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .extras .ft { margin-top: 0; align-content: start; }
}
/* the request window opens about 1,000 to 1,300 wide: its line and result stay beside the sheet down to that */
@media (min-width: 960px) and (max-width: 1179.98px) {
  .ap .pgrid { grid-template-columns: minmax(0, 1fr) 18.5rem; }
  .ap .pside { position: sticky; top: calc(58px + 1.4rem); padding-left: 1.4rem; border-left: 1px solid var(--line); }
  .ap .pside-actions { padding: .9rem 0 .8rem; border-top: 1px solid var(--line); }
  .ap .pline { grid-template-columns: 1.3rem minmax(0, 1fr) 7.6rem 8.2rem 2rem; column-gap: .55rem; }
  .ap .hb { grid-template-columns: minmax(0, 1fr); }
  .ap .hb-figs { justify-content: space-between; }
}
@media (max-width: 1179.98px) { main.dw-paper.dw-app { padding: 1.3rem 1.3rem 3rem; } }
