/* The iPhone app's colours, so the office web and the phone are one look (ISSUES HC247, the owner: "based on our iPhone app we need a
   colour scheme"). The values come from ios/ConnectApp/Sources/Design/Look.swift (lime on black, a warm off-white page, white cards) and
   web/test/look.test.js checks they still match. Loaded after app.css, so these names win. Light only: the web has no dark theme yet. */
:root {
  --look-lime: #E3F26F; --look-black: #1E1F22; --look-bg: #F3F3EC; --look-card: #FFFFFF; --look-muted: #6B6B66; --look-track: #E3E3DB;
  --look-ok: #1F8A3B; --look-warn: #C2410C; --look-stop: #D92B2B; --look-go: #34C759; --look-tag: #5F6E00;
  --page: #F4F4F1; --card: var(--look-card); --ink: var(--look-black); --ink-2: var(--look-muted); --ink-3: var(--look-muted);
  --line: #D9DADD; --line-2: #D9DADD; --field-line: #B8C0CC; --field-fill: #EEF0F4; --soft: #EDEDE5;
  /* The web drops the lime (the owner, HC259: "the lime green colour's got to go"): black, white and a calm blue, the HoneyBook feel. */
  --web-blue: #006DFF; --web-tint: #C9D5FC;
  --blue: var(--web-blue); --on-blue: var(--look-card); --lime: var(--web-tint); --on-lime: var(--look-black);
  --system-green: var(--look-ok); --system-orange: var(--look-warn); --system-red: var(--look-stop);
  --frame: var(--look-black);
}
/* What was lime and meant "do this": black with white text. The tint stays for soft chips and tiles. */
.bt.lime, .pri, a.sb.clk, a.sb.clk:hover, .sb.on, .ar.open > .sb.on, .techbar a.on, .dn2.pick { background: var(--look-black); color: var(--look-card); }
.me, th .tbl-fb.on { background: var(--look-black); color: var(--look-card); }
.bt.lime:hover { background: var(--look-muted); }
.tbl-chip { color: var(--look-card); }
@media (min-width: 861px) {
  /* The rail does the finding now: no "All pages" menu in the bar, and the bar is slimmer so the page moves up (HC262). */
  :root { --bar: 44px; } .topbar .ar { display: none; } .topbar .pn.create { min-height: 32px; height: 32px; padding: 0 var(--space-16); }
  .rl-g.on { background: var(--look-card); border-color: var(--look-card); color: var(--look-black); }
  .topbar .pn.create { background: var(--look-card); color: var(--look-black); } .topbar .pn.create:hover { background: var(--look-card); filter: brightness(.92); }
}
.topbar .pn.starp { min-height: 32px; width: 32px; padding: 0; justify-content: center; font-size: var(--fs-16); background: transparent; color: var(--look-card); } .topbar .pn.starp:hover { background: rgba(255,255,255,.14); } .topbar .pn.starp.set { color: var(--web-tint); }

/* Easier to see (the owner, HC275: "the white background and where we insert, it is hard to see"): a slightly darker page so the white cards stand out,
   firmer card lines, and boxes you type in with a clear edge, a faint tint and a blue ring when you are in them. */
main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), main select, main textarea, .qe input, .qe textarea, .rpanel textarea { border: 1.5px solid var(--field-line); background: var(--field-fill); }
main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):hover, main select:hover, main textarea:hover { border-color: #8A94A6; }
main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):focus, main select:focus, main textarea:focus, .qe input:focus, .qe textarea:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px var(--web-tint); background: var(--look-card); }
.card { box-shadow: 0 2px 6px rgba(20,30,50,.10); }

/* How likely, colour coded (HC277): Cold blue, Warm amber, Hot red. Quiet outline until chosen, then filled. */
.chip.hl-cold, .chip.hl-warm, .chip.hl-hot { background: var(--look-card); border: 2px solid; font-weight: 600; }
.chip.hl-cold { color: #006DFF; border-color: #006DFF; } .chip.hl-warm { color: #B45309; border-color: #E08A1E; } .chip.hl-hot { color: #C62828; border-color: #D92B2B; }
.chip.hl-cold.on { background: #006DFF; color: #fff; } .chip.hl-warm.on { background: #E08A1E; color: #14141A; } .chip.hl-hot.on { background: #D92B2B; color: #fff; }
.efigs .chip.pick.hl-cold.on { background: #006DFF; color: #fff; } .efigs .chip.pick.hl-warm.on { background: #E08A1E; color: #14141A; } .efigs .chip.pick.hl-hot.on { background: #D92B2B; color: #fff; }
.efigs .chip.pick.hl-cold.on, .efigs .chip.pick.hl-warm.on, .efigs .chip.pick.hl-hot.on { box-shadow: 0 0 0 3px rgba(20,30,50,.12); }

/* From the design critique (HC282). "Close all" at the end of the open tabs. */
.ot-all { all: unset; cursor: pointer; margin-left: auto; padding: var(--space-8) var(--space-12); border-radius: 9999px; font-weight: 600; color: var(--label-on-tint); flex: none; } .ot-all:hover { background: rgba(255,255,255,.14); } .ot-all:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* On a phone: the sub row is one scrolling line with a fade (F06, F07), and everything pressed is at least 44px (F09). */
@media (max-width: 860px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: var(--space-32); -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); } .tabs::-webkit-scrollbar { display: none; } .tabs > * { flex: none; }
  .seg { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); } .seg::-webkit-scrollbar { display: none; }
  .sb, .bell, .burger, .otabs .ot button, .otabs .ot a, th .th, th button, .bt, .pn, .tabs a { min-height: 44px; } .otabs .ot button { min-width: 44px; }
  .ot-all { min-height: 44px; }
}

/* Lists fit the screen the way AroFlo's do (the owner, HC294): tighter cells, and only the text columns (title, client, place, status, who) wrap
   so the table stays inside its box instead of running off to the right. The short columns (task, priority, dates) never wrap. */
@media (min-width: 861px) {
  table.cols { width: 100%; }
  table.cols td { padding: var(--space-8) var(--space-8); font-size: var(--fs-13); }
  table.cols td { white-space: normal; } table.cols td.jn, table.cols td.ck, table.cols td.money { white-space: nowrap; }   /* every list wraps long words; numbers and ticks never do */
  table.cols td.ti { min-width: 150px; } table.cols td:has(> a.jump) { min-width: 120px; } table.cols td .chip { margin: 1px var(--space-4) 1px 0; } table.cols td { padding: var(--space-8) var(--space-8); }
  .tile { padding: var(--space-12) var(--space-16); } .tile b { font-size: var(--fs-28); line-height: 38px; } .tiles { gap: var(--space-12); }
}

/* The tech as initials, so the row stays one line (HC298). */
.techs { display: inline-flex; align-items: center; gap: var(--space-4); } .techs small { font-weight: 600; color: var(--ink-2); }
@media (min-width: 861px) { table.cols td { padding: var(--space-4) var(--space-8); } table.cols td .av { width: 24px; height: 24px; font-size: var(--fs-11); } }

/* The sort and filter arrow stays visible, small and grey like AroFlo's, so there is always a place to press (HC300); it darkens on hover and turns blue when a filter is on. */
th .tbl-fb { opacity: .7; font-size: var(--fs-12); } th:hover .tbl-fb, th .tbl-fb:hover { opacity: 1; } th .tbl-fb.on { background: var(--blue); color: var(--look-card); opacity: 1; }

/* The filter button is a real button you can see on every table heading (the owner, HC306: "you cannot see the filter, make that a rule across tables").
   Both kinds (the list filter and the plain-table sort arrow) share one look: a boxed button with a dark arrow, always shown, blue when a filter is on. */
th .tbl-fb, th .ths { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 var(--space-8); margin-left: var(--space-8); border: 1.5px solid var(--field-line); border-radius: 6px; background: var(--look-card); color: var(--look-black); font-size: var(--fs-13); font-weight: 600; line-height: 1; opacity: 1; cursor: pointer; vertical-align: middle; }
th .tbl-fb:hover, th .ths:hover, th .tbl-fb:focus-visible, th .ths:focus-visible { border-color: var(--blue); color: var(--blue); background: var(--web-tint); }
th .tbl-fb.on, th .tbl-fb[aria-expanded="true"] { background: var(--blue); border-color: var(--blue); color: var(--look-card); }
/* Bigger (the owner, HC306): the filter box is large enough to see and press at a glance. */
th .tbl-fb, th .ths { min-width: 34px; height: 32px; padding: 0 var(--space-8); margin-left: var(--space-8); font-size: var(--fs-16); border-radius: 8px; border-width: 2px; }

/* Columns the way Excel does them (the owner, HC307: "make it like Excel exactly"): click a heading and the whole column goes green with a dotted grip on top; drag the grip to move it. */
th.colsel { position: relative; background: #1D7A46; color: #fff; box-shadow: inset 0 3px 0 #1D7A46; } th.colsel .th, th.colsel .ths { color: #fff; }
td.colsel { background: #E2EFE7; box-shadow: inset 1.5px 0 0 #1D7A46, inset -1.5px 0 0 #1D7A46; }
.colgrip { position: absolute; left: 0; right: 0; top: -14px; height: 14px; cursor: grab; display: block; background: radial-gradient(circle, #1D7A46 1.6px, transparent 2px) center / 6px 6px repeat-x; }
th.colsel .colgrip { background-size: 6px 6px; }
th[data-col] { cursor: pointer; }
/* The filter panel, as Excel's: Sort with Ascending and Descending side by side, then Filter, then Clear filter and Apply. */
.tbl-sec { font-size: var(--fs-14); font-weight: 600; }
.tbl-sorts { display: flex; gap: var(--space-8); } .tbl-sorts .tbl-it { flex: 1; display: flex; align-items: center; gap: var(--space-8); justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #F2F4F7; padding: var(--space-8) var(--space-12); font-weight: 600; }
.tbl-sorts .tbl-it[aria-pressed="true"] { border-color: var(--blue); background: var(--web-tint); } .tbl-az { color: var(--blue); font-weight: 600; }
/* Slimmer (the owner, HC306: "it's bulky"): a small square like Excel's, still boxed and always visible. */
@media (min-width: 861px) { th .tbl-fb, th .ths { min-width: 20px; height: 18px; padding: 0 var(--space-4); margin-left: var(--space-8); font-size: var(--fs-11); border-width: 1.5px; border-radius: 4px; } }
/* The quotes table keeps its column widths when you move between the status tabs (HC308): fixed layout, title and client share what is left. */
@media (min-width: 861px) { table.cols.qfix { table-layout: fixed; width: 100%; } }

/* The top rail (HC311): on a computer the black bar carries the areas and the left rail is gone. A phone keeps its Menu button. */
.tmbar { display: none; }
@media (min-width: 861px) {
  /* The side rail is back beside the top rail (owner, HC315): it starts under the top bar. */
  .rail { top: var(--bar); }
  .topbar { position: sticky; z-index: 45; }
  :root { --bar: 48px; }
  .tmbar { display: flex; align-items: center; gap: var(--space-8); flex: 1; min-width: 0; }
  .tm-home, .tm-j { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--look-card); text-decoration: none; font-size: var(--fs-13); font-weight: 600; }
  .tm-home svg { width: 22px; height: 22px; } .tm-home:hover { background: rgba(255,255,255,.16); } .tm-home.on { background: rgba(255,255,255,.2); }
  .tm-j { border: 1.5px solid rgba(255,255,255,.55); } .tm-j:hover { border-color: var(--look-card); background: rgba(255,255,255,.12); } .tm-j.on { background: var(--look-card); border-color: var(--look-card); color: var(--look-black); }
  .tm-sep { width: 1px; height: 22px; background: rgba(255,255,255,.25); margin: 0 var(--space-8); flex: none; }
  .tmw { position: relative; flex: none; }
  .tm-b { all: unset; box-sizing: border-box; cursor: pointer; padding: var(--space-8) var(--space-12); border-radius: 8px; color: var(--look-card); font-size: var(--fs-14); font-weight: 600; white-space: nowrap; } .tm-b:hover, .tm-b.open { background: rgba(255,255,255,.16); } .tm-b.on { background: rgba(255,255,255,.2); } .tm-b:focus-visible { outline: 2px solid var(--web-tint); outline-offset: 2px; }
  .tmp { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; display: flex; flex-wrap: wrap; gap: var(--space-16) var(--space-32); padding: var(--space-16) var(--space-24); min-width: 240px; max-width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 90px); overflow-y: auto; background: var(--look-card); color: var(--look-black); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20,30,50,.28); }
  .tmc { min-width: 170px; } .tmh { font-size: var(--fs-11); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--space-8); }
  .tmc a { display: block; padding: var(--space-8) var(--space-8); margin: 0 -8px; border-radius: 6px; color: var(--look-black); text-decoration: none; font-size: var(--fs-14); font-weight: 600; white-space: nowrap; } .tmc a:hover { background: var(--web-tint); } .tmc a.on { background: var(--look-black); color: var(--look-card); }
  .topbar .pn.create { margin-left: var(--space-8); }
}

/* One table for every list (HC312): the loading frame has grey bars where the rows will be. */
table.cols tr.skl td { pointer-events: none; }
table.cols .sk { display: block; height: 12px; width: 70%; border-radius: 6px; background: #E6EAF0; animation: sklpulse 1.2s ease-in-out infinite; }
table.cols tr.skl td:first-child .sk { width: 50%; }
@keyframes sklpulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { table.cols .sk { animation: none; } }

/* The Excel grid look on every list (HC312, owner's pick 2 on board HC310): black heading row, every cell boxed, rows banded. */
table.cols { border-collapse: collapse; border: 1px solid #D5DAE1; }
table.cols thead th { background: #111; color: #fff; border-right: 1px solid #3A3A3A; }
table.cols thead th .th { color: #fff; }
table.cols thead th .tbl-fb, table.cols thead th .ths { background: #fff; color: #111; border-color: #B8C0CC; }
table.cols tbody td { border-right: 1px solid #D5DAE1; border-bottom: 1px solid #D5DAE1; }
table.cols tbody tr:nth-child(even) td { background: #F2F4F7; }
table.cols tbody tr:hover td { background: #E8F0FE; }
table.cols tbody tr.picked td { background: #DDE9FF; }
table.cols thead th.colsel { background: #1D7A46; }
table.cols tbody td.colsel, table.cols tbody tr:nth-child(even) td.colsel { background: #E2EFE7; }
table.cols tr.skl td { background: #fff !important; }

/* The top bar at middle widths (HC312): tighter menus and a smaller search box so nothing sits on top of anything. */
@media (min-width: 861px) and (max-width: 1240px) {
  .tm-b { padding: var(--space-8) var(--space-8) !important; font-size: var(--fs-13) !important; }
  .tmbar { gap: 2px; }
  .topbar .find, .topbar input[type=search] { width: 110px !important; min-width: 0 !important; }
  .topbar .pn.create { padding: 0 var(--space-12); }
}
@media (min-width: 861px) { .tmbar { flex: 0 1 auto; } .topbar .sidenav { flex: none; margin-right: var(--space-8); } .topbar .sp { flex: 1; min-width: 8px; } }
@media (min-width: 861px) and (max-width: 1240px) { .tm-st { display: none; } }

/* A slimmer, quieter top bar (HC313): five menus, and New, Search and Alerts packed together on the right. */
@media (min-width: 861px) {
  :root { --bar: 40px; }
  .tm-home, .tm-j { width: 26px; height: 26px; font-size: var(--fs-12); } .tm-home svg { width: 20px; height: 20px; }
  .tm-b { padding: var(--space-4) var(--space-12); font-size: var(--fs-14); }
  .topbar .pn.create { height: 28px; min-height: 28px; }
  .topbar .gfind { height: 28px; width: 180px; } .topbar .gs { margin: 0 var(--space-8); }
  .topbar { gap: var(--space-8); }
}
@media (min-width: 861px) { .tmw:last-child .tmp { left: auto; right: 0; } }
@media (min-width: 861px) { .tmbar .tm-j { display: none; } .tmbar .tm-sep:nth-of-type(2) { display: none; } }  /* the side rail carries Quote, Task, Invoice (HC316); Home stays in the top bar */
@media (min-width: 861px) { .rail .rfly, .rail .rl-sub, .rail .rl-chev { display: none !important; } }  /* the pages under Q, T, I are already on the page itself (HC316) */

/* Photos and documents (HC317, the owner's pick 1): folder cards, tight tiles, a big preview that pops out. */
.fcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-12); margin: var(--space-12) 0 var(--space-16); }
.fcard { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: var(--space-12); align-items: center; padding: var(--space-12) var(--space-16); border: 1.5px solid #C4CAD3; border-radius: 12px; background: #fff; }
.fcard:hover { border-color: #006DFF; } .fcard.on { border-color: #006DFF; background: #EAF1FF; box-shadow: inset 0 0 0 1px #006DFF; } .fcard:focus-visible { outline: 2px solid #006DFF; outline-offset: 2px; }
.fcard .fc-i { grid-row: 1 / 3; width: 34px; height: 28px; border-radius: 6px; background: #8B6B3F; } .fcard.vd .fc-i { background: #6F7480; } .fcard.dc .fc-i { background: #E08A1E; }
.fcard b { font-size: var(--fs-14); } .fcard small { font-size: var(--fs-12); color: #5B6370; }
.fgrid { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.ft { all: unset; box-sizing: border-box; cursor: zoom-in; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: #E6EAF0; } .ft:hover, .ft:focus-visible { outline: 3px solid #006DFF; outline-offset: -1px; }
.ft img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-12); }
.dt { all: unset; box-sizing: border-box; cursor: zoom-in; display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-12); border: 1px solid #C4CAD3; border-radius: 12px; background: #fff; min-height: 120px; } .dt:hover, .dt:focus-visible { border-color: #006DFF; outline: 2px solid #006DFF; outline-offset: -2px; }
.dt b { font-size: var(--fs-13); overflow-wrap: anywhere; } .dt small { color: #5B6370; font-size: var(--fs-12); margin-top: auto; }
.dt-b { align-self: flex-start; background: #111; color: #fff; border-radius: 6px; padding: 2px var(--space-8); font-size: var(--fs-11); font-weight: 600; } .dt.pdf .dt-b { background: #D92B2B; } .dt.vid .dt-b { background: #6F7480; }
.lbx { position: fixed; inset: 0; z-index: 90; background: rgba(8,10,14,.82); display: flex; align-items: center; justify-content: center; padding: var(--space-24); }
.lbx-box { background: #fff; border-radius: 16px; width: min(1100px, 100%); height: min(88vh, 900px); display: flex; flex-direction: column; overflow: hidden; }
.lbx-top, .lbx-bot { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-12) var(--space-16); flex-wrap: wrap; } .lbx-top b { font-size: var(--fs-16); overflow-wrap: anywhere; } .lbx-bot .cap { width: 100%; max-width: 700px; }
.lbx-stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: var(--space-8); padding: 0 var(--space-8); background: #11141A; }
.lbx-img { flex: 1; min-width: 0; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0 auto; } .lbx-pdf { flex: 1; height: 100%; border: 0; background: #fff; } .lbx-no { flex: 1; color: #fff; text-align: center; display: flex; flex-direction: column; gap: var(--space-12); align-items: center; }
.lbx-nav { all: unset; cursor: pointer; flex: none; width: 44px; height: 64px; border-radius: 10px; color: #fff; font-size: var(--fs-28); text-align: center; line-height: 64px; } .lbx-nav:hover, .lbx-nav:focus-visible { background: rgba(255,255,255,.18); }
.dt-pg { width: 100%; height: 150px; object-fit: cover; object-position: top; border: 1px solid #D5DAE1; border-radius: 6px; background: #fff; display: block; } .dt-pg[hidden] { display: none; }

/* Bills in (HC318): a drop box you can see, and the assign box in each row. */
.bin-drop { border: 2px dashed #006DFF; background: #EAF1FF; border-radius: 14px; padding: var(--space-16) var(--space-16); text-align: center; margin: var(--space-12) 0; } .bin-drop b { font-size: var(--fs-16); } .bin-drop .muted:last-child { margin-top: var(--space-4); font-size: var(--fs-12); }
.bin-tbl td.bin-as { white-space: nowrap; } .bin-tbl td.bin-as .pick { width: 170px; margin-right: var(--space-8); } .bin-tbl td.bin-as .chip { margin-right: var(--space-8); }

/* HC321 (owner pick A): no side rails. A taller bar, one roomy full-width panel under the name you click, a grey line under each heading, Favourites for the stars. */
@media (min-width: 861px) {
  #root.app, #root.app:has(.rail.wide), #root.app:has(.rpanel) { padding-left: 0; padding-right: 0; }
  .rail, .rrail, .rpanel { display: none !important; }
  :root { --bar: 56px; }
  .topbar { min-height: 56px; padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .tm-home { width: 34px; height: 34px; } .tm-home svg { width: 24px; height: 24px; }
  .tm-b { padding: var(--space-8) var(--space-16); font-size: var(--fs-16); }
  .topbar .pn.create { height: 36px; min-height: 36px; padding: 0 var(--space-16); font-size: var(--fs-14); }
  .topbar .gfind { height: 36px; width: 200px; } .topbar .gfind:focus { width: 280px; }
  .tmw { position: static; }
  .tmp, .tmw:last-child .tmp { position: absolute; left: 16px; right: 16px; top: calc(100% + 6px); margin: 0 auto; max-width: 1100px; gap: var(--space-16) var(--space-48); padding: var(--space-24) var(--space-32); max-height: calc(100vh - 90px); overflow-y: auto; }
  .tmc { min-width: 190px; }
  .tmh { font-size: var(--fs-12); margin-bottom: 2px; }
  .tmd { font-size: var(--fs-13); color: var(--ink-2); margin-bottom: var(--space-8); }
  .tmc a { font-size: var(--fs-16); padding: var(--space-8) var(--space-8); }
  .tmn { font-style: normal; margin-left: var(--space-8); min-width: 20px; height: 20px; padding: 0 var(--space-8); border-radius: 999px; background: var(--system-red); color: var(--look-card); font-size: var(--fs-11); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; vertical-align: 1px; }
}
@media (min-width: 861px) and (max-width: 1560px) { .tm-b { padding: var(--space-8) var(--space-8) !important; font-size: var(--fs-14) !important; } .topbar .gfind { width: 130px !important; } .topbar .gfind:focus { width: 200px !important; } .topbar .pn.create { padding: 0 var(--space-12); } }
@media (min-width: 861px) and (max-width: 1100px) { .tm-b { padding: var(--space-8) var(--space-8) !important; font-size: var(--fs-13) !important; } .topbar .gfind { width: 90px !important; } }

/* The search box's grouped results (HC350): a heading and count for each kind, two lines under it, then See all. */
.ghits .gh-g { border-bottom: 1px solid #E9E9E4; padding: var(--space-4) 0; } .ghits .gh-h { display: flex; padding: var(--space-8) var(--space-16) 2px; color: #5B6370; font-size: var(--fs-11); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; } .ghits .gh-h span:first-child { flex: 1; }
.ghits .gh-g a { display: flex; gap: var(--space-8); align-items: baseline; } .ghits .gh-all { display: block; padding: var(--space-12) var(--space-16); color: #006DFF; font-weight: 600; }

/* Search results page (HC350): kinds with counts on the left, a table for each kind with that kind's own columns (as AroFlo and Fergus). */
.fnd { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-16); align-items: start; } @media (max-width: 860px) { .fnd { grid-template-columns: 1fr; } }
.fnd-l { background: #fff; border-radius: 16px; padding: var(--space-12); display: flex; flex-direction: column; gap: 2px; } .fnd-lh { font-weight: 600; font-size: var(--fs-16); padding: var(--space-8) var(--space-8); }
.fnd-l button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; padding: var(--space-8) var(--space-12); border-radius: 8px; font-weight: 600; } .fnd-l button i { margin-left: auto; font-style: normal; background: #E6EAF0; border-radius: 9px; padding: 0 var(--space-8); font-size: var(--fs-12); font-weight: 600; }
.fnd-l button:hover { background: #F2F4F7; } .fnd-l button.on { background: #111; color: #fff; } .fnd-l button.on i { background: #fff; color: #111; }
.fnd-r { display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; } .fnd-sec { padding: var(--space-12) var(--space-16); overflow-x: auto; } .fnd-h { display: flex; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-8); } .fnd-h b { font-size: var(--fs-16); }

/* Nine menus now (Quotes, Tasks, Invoices first): at middle widths drop the little arrows and narrow the search so nothing overlaps (HC351). */
@media (min-width: 861px) and (max-width: 1300px) { .tm-b span[aria-hidden] { display: none; } .tm-b { padding: var(--space-4) var(--space-8) !important; font-size: var(--fs-13) !important; } .topbar .gfind { width: 90px !important; } .topbar .gs { margin: 0 2px; } }
@media (min-width: 861px) and (max-width: 1000px) { .topbar .sb[aria-label^="Alerts"] { padding: 0 var(--space-8); } .topbar .pn.create { padding: 0 var(--space-8); } .tm-b { padding: var(--space-4) var(--space-4) !important; font-size: var(--fs-12) !important; } }

/* The tab strip (HC354, the owner's pick 1 of board HC353): square joined tabs that share the row evenly, a big solid house pinned at the left like the iPhone app's Home. */
@media (min-width: 861px) {
  .tmbar .tm-sep { display: none; }
  #root.app > .otabs { display: flex; align-items: flex-end; gap: 2px; padding: var(--space-8) var(--space-12) 0; background: #CFD4DB; border-bottom: 0; color: #1E1F22; overflow-x: auto; min-height: 44px; }
  .otabs .ot-home { flex: none; width: 52px; height: 38px; border-radius: 10px 10px 0 0; background: #E9E9E4; color: #1E1F22; display: flex; align-items: center; justify-content: center; text-decoration: none; margin-right: var(--space-8); }
  .otabs .ot-home svg { width: 26px; height: 26px; } .otabs .ot-home:hover { background: #F2F4F7; } .otabs .ot-home.on { background: #fff; }
  .otabs .ot { flex: 1 1 0; min-width: max-content; max-width: 240px; height: 38px; border-radius: 10px 10px 0 0; background: #E9E9E4; color: #5B6370; box-shadow: inset -1px 0 0 #D0D4DA; justify-content: space-between; }
  .otabs .ot a { flex: 1; padding: 0 var(--space-4) 0 var(--space-16); display: flex; align-items: center; height: 100%; font-size: var(--fs-13); font-weight: 600; color: #3E4450; }
  .otabs .ot button { width: 28px; height: 28px; margin-right: var(--space-8); border-radius: 6px; color: #5B6370; } .otabs .ot button:hover { background: #CFD4DB; color: #1E1F22; }
  .otabs .ot:hover { background: #F2F4F7; }
  .otabs .ot.on { background: #fff; box-shadow: none; } .otabs .ot.on a { color: #1E1F22; } .otabs .ot.on button { color: #5B6370; } .otabs .ot.on button:hover { background: #E9E9E4; color: #1E1F22; }
  .otabs .ot-all { align-self: center; margin-left: var(--space-8); color: #3E4450; } .otabs .ot-all:hover { background: #E9E9E4; }
}
.ot-card { position: fixed; z-index: 80; width: 320px; background: #fff; color: #1E1F22; border-radius: 12px; box-shadow: 0 12px 30px rgba(20,30,50,.28); padding: var(--space-12) var(--space-16); font-size: var(--fs-13); pointer-events: none; display: flex; flex-direction: column; gap: var(--space-4); } .ot-card b { font-size: var(--fs-14); }

/* Semi-square (the owner, HC355): no rounded corners anywhere. Every surface, button, field and chip that was rounded is now almost square; only things that were true circles (50%) stay round. */
.signin,
.signin .face,
.signin .tag,
.mi,
.find,
.me,
.mega,
.mega .ic,
.acct,
.tabs a,
.pick,
.bt { border-radius: 3px !important; }
.banner,
.tile,
.card,
tbody tr td:first-child,
.pri,
.chip,
.av,
.fd input:not([type="checkbox"]),
.fd select,
.fd textarea,
.toast,
.fact { border-radius: 3px !important; }
.ptabs,
.ptabs a,
.access,
.thumb,
.yn,
.yn button,
.inl,
.x,
.hit,
.ver,
details.mail,
.mbar { border-radius: 3px !important; }
.gfind,
.ghits,
.ghits a,
.seg,
.seg button,
.seg a,
.dcard,
.cj,
.me .badge,
.bell,
.bell .badge,
.nt { border-radius: 3px !important; }
.bulk,
.gt,
.gb,
input.sw,
.dm,
.cl-row,
.rp,
.wfc,
.wf-bar,
.wf-p,
.wf-p b,
.sbd { border-radius: 3px !important; }
.sb-t,
.ctx,
.ctx-i,
.sitemap,
.ptabs.side a,
.ptabs.side i,
.setlink,
.tdr,
.cj .vis,
.unsched,
.sheetwrap .sheet,
.dline { border-radius: 3px !important; }
.dk,
.mailcard,
.mf input,
.mf textarea,
.flow,
.bn,
.bars i,
.bn .td,
.mfiles,
.burger,
.rcp,
.rcp-open { border-radius: 3px !important; }
.rcp-pic,
.rcp-g select,
.colmenu,
.rcp-doc,
.rcp-g2 select,
.xrows,
.codes code,
.coderow code,
.codebox,
.wordpick,
.chip.pick,
.planbox textarea { border-radius: 3px !important; }
.wtopen textarea,
.wtopen input[type="text"],
.signbox,
.signbox input,
.signpad,
.sb,
.sb .badge,
.strip a,
.topbar .gfind,
.pbar .burger,
.fact.l b,
.fact.b b { border-radius: 3px !important; }
.fact.v b,
.mailpre,
.techbar a,
.markpad,
.wbar i,
.slk select,
.slbar i,
.mv,
.daymap,
.tfind,
.cam-frame,
.sv-pic img { border-radius: 3px !important; }
.sv-box,
.bin-bar,
.bin-bar i,
.nbar,
.ibx-top,
.ibx,
.ibx-rows,
.pn,
.pinstar,
.allp,
.ap,
.ths { border-radius: 3px !important; }
.tmenu,
.tmenu button,
#root.app > .tabs a:hover,
.trk-s span,
.ptmore,
.fly a,
.setrail,
.setfind,
.setpg,
.setmain input[type=checkbox],
.ld,
.tl-bar { border-radius: 3px !important; }
.rl-b,
.rl-star,
.rfc,
.rfc a,
.rl-sub a,
#root.app > main,
button.ch.daybtn.now b,
button.ch.daybtn.pick b,
.ctx-k,
th .tbl-fb,
.tbl-panel,
.tbl-it { border-radius: 3px !important; }
.tbl-find,
.tbl-rg input,
.tbl-row,
.tbl-chip,
.hm-tile,
.hm-card,
.jobno,
.rr-b,
.rr-n,
.rpanel,
.rr-notes,
.qe { border-radius: 3px !important; }
.qe input,
.qe textarea,
.eq-drop,
.eq-th,
.hm-fc,
.ps-b,
.ps-follow,
.ps-c,
.ps-photo img,
.sigpad,
th .ths,
.tbl-sorts .tbl-it { border-radius: 3px !important; }
.tmp,
.tmc a,
table.cols .sk,
.fcard,
.fcard .fc-i,
.ft,
.dt,
.dt-b,
.lbx-box,
.lbx-nav,
.dt-pg,
.bin-drop { border-radius: 3px !important; }
.tmn,
.fnd-l,
.fnd-l button,
.fnd-l button i { border-radius: 3px !important; }
/* The tab strip joins the page: no curve where the active tab meets the canvas. */
#root.app > main { border-radius: 0 !important; }
@media (min-width: 861px) {
  .otabs .ot, .otabs .ot-home { border-radius: 4px 4px 0 0 !important; }
  .otabs .ot.on, .otabs .ot-home.on { background: var(--page); }
  .otabs .ot button { border-radius: 3px !important; }
}

/* Folder cards with icons, and the All view (HC357). */
.fcard .fc-i { background: none !important; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: #fff; border-radius: 3px; } .fcard.all .fc-i { background: #111 !important; } .fcard.ph .fc-i { background: #8B6B3F !important; } .fcard.vd .fc-i { background: #6B3FD6 !important; } .fcard.dc .fc-i { background: #E08A1E !important; }
.fcard .fc-svg { width: 22px; height: 22px; }
.fall { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: flex-start; } .fall .dt { width: 190px; min-height: 96px; }

/* Back, Forward, Undo and Redo in the top bar (HC360): big, square, plain. */
@media (min-width: 861px) {
  .hb { display: flex; gap: var(--space-4); flex: none; margin-right: var(--space-12); }
  .hb-b { all: unset; box-sizing: border-box; cursor: pointer; height: 34px; min-width: 34px; padding: 0 var(--space-12); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); background: #26262B; color: #fff; border: 1px solid #44444A; border-radius: 3px; font-size: var(--fs-20); font-weight: 600; }
  .hb-b span { font-size: var(--fs-13); font-weight: 600; } .hb-b:hover:not(:disabled) { background: #3A3A41; } .hb-b:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
  .hb-b:disabled { opacity: .35; cursor: default; }
  @media (max-width: 1300px) { .hb-nav span { display: none; } }
}
@media (max-width: 860px) { .hb { display: none; } }
.draftbar { position: fixed; left: 16px; bottom: 16px; z-index: 85; display: flex; align-items: center; gap: var(--space-12); background: #111; color: #fff; padding: var(--space-12) var(--space-16); border-radius: 3px; box-shadow: 0 8px 24px rgba(20,30,50,.3); font-weight: 600; } .draftbar .link { color: #8FB8FF; font-weight: 600; }

/* HC322 (owner pick C): the areas are plain buttons on the bar and the area's pages are a second row that stays visible. */
.arow { display: none; }
@media (min-width: 861px) {
  .arow { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-4); background: #2A2B2F; padding: var(--space-8) var(--space-16); position: sticky; top: var(--bar); z-index: 44; }
  .arow a { color: #d4d4d4; text-decoration: none; font-size: var(--fs-14); font-weight: 600; padding: var(--space-8) var(--space-16); border-radius: 8px; white-space: nowrap; }
  .arow a:hover { background: rgba(255,255,255,.12); } .arow a.on { background: #fff; color: #111318; }
  .arsep { width: 1px; height: 18px; background: rgba(255,255,255,.22); margin: 0 var(--space-8); }
  .arow .tmn { margin-left: var(--space-8); }
}

/* HC323: the bar's right end reads, left to right, your clock, you, + New, Alerts, Search (Search in the far corner). Back, Forward, Undo and Redo are plain words at the right end of the second row. */
@media (min-width: 861px) {
  .topbar > .sb.clk { order: 3; } .topbar > .sb.who { order: 4; } .topbar > .sidenav { order: 5; } .topbar > button.sb:not(.who) { order: 6; } .topbar > .gs { order: 9; margin-right: 0; }
  .arow .sp { flex: 1; }
  .arow .hb { display: flex; gap: 2px; margin: 0; align-items: center; }
  .arow .hb-b { height: 30px; min-width: 0; padding: 0 var(--space-12); background: none; border: 0; border-radius: 8px; color: #d4d4d4; font-size: var(--fs-14); font-weight: 600; }
  .arow .hb-b:hover:not(:disabled) { background: rgba(255,255,255,.12); color: #fff; }
  .arow .hb-b:nth-child(2) { margin-right: var(--space-16); }
}

/* Home is a big solid house at the far left of the top bar, right beside Quotes (the owner, HC363); the tab strip is only tabs again. */
@media (min-width: 861px) {
  .tmbar .tm-home { width: 40px; height: 36px; border-radius: 3px; margin-right: var(--space-8); color: #fff; background: #26262B; border: 1px solid #44444A; }
  .tmbar .tm-home svg { width: 24px; height: 24px; } .tmbar .tm-home:hover { background: #3A3A41; } .tmbar .tm-home.on { background: #fff; color: #1E1F22; border-color: #fff; }
}

/* Clean rows and a hover that shows the cell (the owner's pick 1 of board HC366, HC367): lines between rows only, no cell boxes, plain filter arrows, the pointed row tinted and the pointed cell outlined. */
table.cols { border: 0; }
table.cols thead th { border-right: 0; }
table.cols tbody td { border-right: 0; border-bottom: 1px solid #E9E9E4; }
table.cols tbody tr:nth-child(even) td { background: #fff; }
table.cols tbody tr:hover td { background: #F5F5F3; }
/* The pointed cell lifts: white, a soft shadow and a faint line round it (the owner's pick 9 of board HC368, HC369). */
table.cols tbody td:hover { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.22), inset 0 0 0 1px #C4CAD3; position: relative; z-index: 2; }
table.cols tbody td.colsel, table.cols tbody tr:nth-child(even) td.colsel, table.cols tbody tr:hover td.colsel { background: #E2EFE7; }
table.cols thead th .tbl-fb, table.cols thead th .ths { background: transparent; border-color: transparent; color: #fff; opacity: .65; }
table.cols thead th:hover .tbl-fb, table.cols thead th .tbl-fb:hover, table.cols thead th:hover .ths, table.cols thead th .ths:hover, table.cols thead th .tbl-fb:focus-visible { background: #fff; color: #1E1F22; border-color: #B8C0CC; opacity: 1; }
table.cols thead th .tbl-fb.on { background: #006DFF; color: #fff; border-color: #006DFF; opacity: 1; }
.vbar { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; margin: 2px 0 var(--space-12); }
.vt { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-8); padding: var(--space-8) var(--space-12); border-radius: 3px; background: #fff; color: #5B6370; font-weight: 600; font-size: var(--fs-13); } .vt:hover { background: #F2F4F7; color: #1E1F22; } .vt:focus-visible { outline: 2px solid #006DFF; outline-offset: 1px; }
.vt.on { background: #1E1F22; color: #fff; } .vt .vs { color: #E0A21E; } .vt.on .vs { color: #FFD166; }
.vadd { all: unset; cursor: pointer; color: #006DFF; font-weight: 600; font-size: var(--fs-13); padding: var(--space-8) var(--space-8); } .vadd:hover { text-decoration: underline; } .vadd:focus-visible { outline: 2px solid #006DFF; }
.vname { height: 32px; padding: 0 var(--space-12); border: 1.5px solid #006DFF; border-radius: 3px; font-size: var(--fs-13); width: 200px; background: #fff; color: #1E1F22; }
.vsv { all: unset; cursor: pointer; background: #006DFF; color: #fff; font-weight: 600; font-size: var(--fs-13); padding: var(--space-8) var(--space-16); border-radius: 3px; } .vcx { all: unset; cursor: pointer; color: #5B6370; font-weight: 600; font-size: var(--fs-13); padding: var(--space-8) var(--space-8); }

/* Pills and statuses the Audit PRO way (the owner, HC371): four tones, each a soft fill with a dark ink of its own and an icon, never a solid colour with white text.
   pass green, warning amber, fail red, info blue (Audit PRO's Theme.Status pairs). No tone = a neutral grey pill. */
/* Outline pills (owner, HC377): no fill, a thin ring and text in the system colour. Light values on white, dark values on black. */
.chip.s3, .pri.s3 { background: transparent; color: #248A3D; border: 1.5px solid #248A3D; }
.chip.s1, .pri.s1 { background: transparent; color: #C93400; border: 1.5px solid #C93400; }
.chip.s4, .pri.s4 { background: transparent; color: #DC2626; border: 1.5px solid #DC2626; }
.chip.s2, .pri.s2 { background: transparent; color: #006DFF; border: 1.5px solid #006DFF; }
.chip.s1::before, .chip.s2::before, .chip.s3::before, .chip.s4::before, .pri.s1::before, .pri.s2::before, .pri.s3::before, .pri.s4::before { content: none; }
.pri { background: transparent; color: #5B6370; border: 1.5px solid #8E8E93; }
.topbar .chip.s3, .topbar .pri.s3, .dk .chip.s3, .dk .pri.s3 { background: transparent; color: #30D158; border: 1.5px solid #30D158; }
.topbar .chip.s1, .topbar .pri.s1, .dk .chip.s1, .dk .pri.s1 { background: transparent; color: #FF9F0A; border: 1.5px solid #FF9F0A; }
.topbar .chip.s4, .topbar .pri.s4, .dk .chip.s4, .dk .pri.s4 { background: transparent; color: #FF6961; border: 1.5px solid #FF6961; }
.topbar .chip.s2, .topbar .pri.s2, .dk .chip.s2, .dk .pri.s2 { background: transparent; color: #4D9AFF; border: 1.5px solid #4D9AFF; }
.topbar .pri, .dk .pri { color: #C9CED6; border-color: #8E8E93; }

/* Alerts is a bell, and its count is the info tone (soft blue, dark ink) from DESIGN-RULES; red is kept for problems. */
.sb svg, .bell svg { width: 20px; height: 20px; }
.sb .badge, .bell .badge { background: #CCE0FF; color: #003580; }

/* The Alerts and Account panels open below both rows of the top bar, so their heading is not cut off. */
#root.app > .acct { top: 112px; max-height: calc(100vh - 128px); }
#root.app > .acct.bellp { max-height: calc(100vh - 128px); }

/* The top toolbar, layout A (owner's pick, HC381): one evenly spaced icon group at the right (Search, a blue +, Alerts, Help, you), and Back, Forward, Undo and Redo as four arrow icons at the left end of the tab strip. */
@media (min-width: 861px) {
  .topbar > .sb.clk { order: 0; } .topbar > .gs { order: 1; margin: 0 var(--space-8) 0 0; } .topbar > .sidenav { order: 2; } .topbar > button.sb:not(.who) { order: 3; } .topbar > a.sb.help { order: 4; } .topbar > .sb.who { order: 5; }
  .topbar .pn.create { width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: #006DFF; color: #fff; border-radius: 3px; }
  .topbar .pn.create:hover { background: #0057CC; filter: none; }
  .topbar .pn.create svg { width: 18px; height: 18px; }
  .topbar .sb svg { width: 18px; height: 18px; }
  #root.app > .otabs .hb { display: inline-flex; gap: 0; margin: 0; align-self: center; flex: none; }
  #root.app > .otabs .hb-b { all: unset; box-sizing: border-box; cursor: pointer; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; color: #0B0B0C; }
  #root.app > .otabs .hb-b svg { width: 18px; height: 18px; }
  #root.app > .otabs .hb-b:hover:not(:disabled) { background: #C3C9D2; } #root.app > .otabs .hb-b:focus-visible { outline: 2px solid #006DFF; outline-offset: 1px; }
  #root.app > .otabs .hb-b:disabled { opacity: .35; cursor: default; }
  .otabs .ot-sep { width: 1px; height: 20px; background: #B7BEC8; margin: 0 var(--space-8) 0 2px; align-self: center; flex: none; }
}
@media (max-width: 860px) { .otabs.ot0 { display: none !important; } }
@media (min-width: 861px) {
  .topbar > button.sb:not(.who), .topbar > a.sb.help { width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; }
  .topbar > button.sb:not(.who) .badge { position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 var(--space-4); font-size: var(--fs-11); line-height: 16px; }
  .topbar { gap: var(--space-8); }
}
@media (min-width: 861px) {
  .topbar .sb.who .me { background: #2C2C2E; color: #fff; width: 28px; height: 28px; border-radius: 50%; font-size: var(--fs-11); }
  .topbar .sb.who:hover .me { background: #3A3A3C; }
}

/* Open tabs can be dragged to a new place (HC381). */
.otabs .ot.drag { opacity: .45; } .otabs .ot.over { box-shadow: inset 3px 0 0 #006DFF; }

/* HC384 (design review F05, F23, F24, F09). */
/* F05: every solid button changes visibly on hover and press (a brightness filter does nothing on black). */
.bt:not(.plain):not(.lime):not(.blue):not(:disabled):hover { background: #26262B; filter: none; }
.bt:not(.plain):not(.lime):not(:disabled):active { background: #3A3A3C; filter: none; transform: translateY(1px); }
.bt.blue:not(:disabled):hover { background: #0057CC; filter: none; } .bt.blue:not(:disabled):active { background: #004BB0; filter: none; transform: translateY(1px); }
.bt.lime:not(:disabled):active { filter: none; transform: translateY(1px); }
.bt.plain:not(:disabled):hover { background: #F4F7FF; filter: none; } .bt.plain:not(:disabled):active { background: #E9E9E4; filter: none; transform: translateY(1px); }
.topbar .pn.create:active { background: #004BB0; transform: translateY(1px); }
/* F23: the 3px rule on the menu buttons, second-row links, open tabs and Close all. */
.tm-b, .arow a, .otabs .ot, .ot-all { border-radius: 3px !important; }
/* F24: tiles by meaning. */
.tile.n { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px #E9E9E4; }
.tile.w { background: var(--card); color: var(--ink); box-shadow: inset 4px 0 0 #C93400, inset 0 0 0 1px #E9E9E4; } .tile.w b { color: #C93400; }
.tile.f { background: var(--card); color: var(--ink); box-shadow: inset 4px 0 0 #DC2626, inset 0 0 0 1px #E9E9E4; } .tile.f b { color: #DC2626; }
.tile.n:hover, .tile.w:hover, .tile.f:hover { background: #F4F7FF; }
/* F09: a finger-sized top menu on touch screens. */
@media (pointer: coarse) { .tm-b { min-height: 44px; } }

/* HC383 option 1, refined (owner: "lets go refine but dont make it too bold"): a quieter sub-menu with an underline for where you are, grey counts, a + on the tab strip, a profile card. */
@media (min-width: 861px) {
  .arow { background: #121214; border-top: 1px solid #26262B; gap: 0 var(--space-24); padding: 0 var(--space-24); align-items: stretch; }
  .arow a { padding: var(--space-12) 2px; border-radius: 0 !important; background: none; color: #9AA1AB; font-size: var(--fs-14); font-weight: 500; border-bottom: 2px solid transparent; }
  .arow a:hover { background: none; color: #fff; } .arow a.on { background: none; color: #fff; font-weight: 600; border-bottom-color: #006DFF; }
  .arow .tmn { background: #2C2C2E; color: #C9CED6; border-radius: 3px; min-width: 0; height: 18px; padding: 0 var(--space-8); margin-left: var(--space-8); font-size: var(--fs-11); font-weight: 600; line-height: 18px; }
  .arow a.on .tmn { background: #3A3A3C; color: #fff; }
  .tm-b { font-weight: 500; } .otabs .ot a { font-weight: 600; } .ot-all { font-weight: 500; }
  .otabs .ot-add { all: unset; cursor: pointer; width: 28px; height: 28px; align-self: center; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; color: #1E1F22; flex: none; }
  .otabs .ot-add:hover { background: #C3C9D2; } .otabs .ot-add:focus-visible { outline: 2px solid #006DFF; }
  .otabs .ot-add svg { width: 16px; height: 16px; }
}
.prof { width: 260px; gap: 2px; padding: var(--space-12); }
.prof .pr-h { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-4) var(--space-4) var(--space-12); border-bottom: 1px solid #EEF0F3; margin-bottom: var(--space-4); }
.prof .pr-av { width: 40px; height: 40px; border-radius: 50%; background: #1E1F22; color: #fff; font-size: var(--fs-14); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.prof .pr-n { display: flex; flex-direction: column; min-width: 0; } .prof .pr-n b { font-size: var(--fs-14); font-weight: 600; } .prof .pr-n .muted { font-size: var(--fs-12); }
.prof .pr-i { all: unset; box-sizing: border-box; cursor: pointer; display: block; padding: var(--space-8) var(--space-12); border-radius: 3px; font-size: var(--fs-14); font-weight: 450; color: var(--ink); } .prof .pr-i:hover { background: #EEF1F5; } .prof .pr-i:focus-visible { outline: 2px solid #006DFF; }
.prof .pr-rule { height: 1px; background: #EEF0F3; margin: var(--space-4) 0; }
@media (max-width: 860px) { .otabs .ot-add { display: none; } }

/* HC395 phone menu (relayed by Main Connect): the Menu panel offers the desktop's areas and pages in the black, white and calm blue look; words beside the New, Help and Alerts icons. Desktop is unchanged. */
.lbl { display: none; }
@media (min-width: 861px) { .pmenu { display: none; } }
@media (max-width: 860px) {
  .topbar.open { background: #1E1F22; color: #fff; }
  .topbar.open .tmbar, .topbar.open .sidenav > :not(.create):not(.ar), .topbar > a.pn { display: none; }
  .topbar.open .lbl { display: inline; margin-left: var(--space-12); font-size: var(--fs-14); font-weight: 500; white-space: nowrap; }
  .topbar.open .sb, .topbar.open .pn.create { width: 100%; min-height: 44px; justify-content: flex-start; padding: 0 var(--space-12); color: #fff; border-radius: 3px; }
  .topbar.open .pn.create { background: #006DFF; width: 100%; height: 44px; }
  .topbar.open .sb { background: rgba(255,255,255,.08); } .topbar.open .sb .badge { margin-left: auto; }
  .topbar.open .sb.who .nm { color: #fff; }
  .pmenu { display: flex; flex-direction: column; gap: var(--space-8); margin: var(--space-8) 0; }
  .pm-g { border-top: 1px solid #26262B; padding-top: var(--space-8); }
  .pm-h { color: #9AA1AB; font-size: var(--fs-12); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 0 var(--space-4) var(--space-4); }
  .pm-g.on .pm-h { color: #fff; box-shadow: inset 3px 0 0 #006DFF; padding-left: var(--space-8); }
  .pm-l { display: flex; flex-wrap: wrap; gap: var(--space-4); }
  .pm-l a { color: #fff; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--space-12); border-radius: 3px; background: rgba(255,255,255,.08); font-size: var(--fs-14); font-weight: 500; }
  .pm-l a.on { background: #fff; color: #1E1F22; font-weight: 600; }
}
@media (max-width: 860px) {
  .topbar.open > .gs { order: 0; } .topbar.open > .sidenav { order: 1; } .topbar.open > a.sb.help { order: 2; } .topbar.open > button.sb:not(.who) { order: 3; } .topbar.open > .sb.who { order: 4; } .topbar.open > .pmenu { order: 5; }
  .topbar.open .sidenav .ar { display: none; }
}
@media (max-width: 860px) {
  .topbar.open .sb.who .me { background: #2C2C2E; color: #fff; }
  .pbar .bell { display: inline-flex; align-items: center; gap: var(--space-8); } .pbar .bell .lbl { display: inline; font-size: var(--fs-14); font-weight: 500; }
}
/* Phone width only (HC395): a wide table says it scrolls (a soft edge on the side with more to see) and keeps its checkbox and Task number in view. Desktop unchanged. */
@media (max-width: 860px) {
  .card:has(> table.cols) { background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left center / 40px 100% no-repeat local, linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right center / 40px 100% no-repeat local, linear-gradient(to right, rgba(11,11,11,.22), rgba(11,11,11,0)) left center / 14px 100% no-repeat scroll, linear-gradient(to left, rgba(11,11,11,.22), rgba(11,11,11,0)) right center / 14px 100% no-repeat scroll; background-color: #fff; }
  table.cols td.ck, table.cols th.ck { position: sticky; left: 0; z-index: 2; }
  table.cols td.ck + td, table.cols th.ck + th { position: sticky; left: 37px; z-index: 2; }
  table.cols td.ck, table.cols td.ck + td { background: #fff; } table.cols th.ck, table.cols th.ck + th { background: #111; }
  table.cols tr.picked td.ck, table.cols tr.picked td.ck + td { background: #F4F7FF; }
}
/* Phone width: the things people tap are at least 44px tall (HC395). The calendar's event chips are left as the owner kept them. */
@media (max-width: 860px) {
  .wf-p, .hm-r, input.find, select.pick, input.inl.sm, .vt, .vadd { min-height: 44px; }
  .hp-side a { min-height: 44px; display: flex; align-items: center; }
}

/* HC400 (owner: "everything looks very bold"): three weights only. 450 for text, 500 for menus and labels, 600 for headings, key figures and anything that must stand out. Nothing is 700 or heavier. A bold tag is 600 too; notification text is 500, unread ones 600. */
b, strong, h1, h2, h3, h4, h5 { font-weight: 600; }
.nt { font-weight: 500; } .nt.new { font-weight: 600; }

/* HC400 notifications (owner: "the notifications don't look great"): a plain list grouped by day, a blue dot for what is not read, normal weight text, the time on the right, hairlines instead of grey cards. */
.bellp { padding: var(--space-12) 0 var(--space-8); gap: 0; width: min(440px, 92vw); }
.bellp .tools { padding: 0 var(--space-16) var(--space-8); margin: 0; }
.bellp .tools b { font-size: var(--fs-16); font-weight: 600; }
.bellp .nt-day { padding: var(--space-12) var(--space-16) var(--space-4); font-size: var(--fs-12); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5B6370; }
.bellp .nt { display: grid; grid-template-columns: 8px 1fr auto; column-gap: var(--space-12); align-items: start; width: 100%; border-radius: 0; background: none; border-top: 1px solid #EEF0F3; padding: var(--space-12) var(--space-16); font-weight: 450; color: #5B6370; }
.bellp .nt:hover { background: #F4F7FF; } .bellp .nt.new { background: none; font-weight: 500; color: #1E1F22; }
.bellp .nt-d { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: transparent; } .bellp .nt.new .nt-d { background: #006DFF; }
.bellp .nt-t { font-size: var(--fs-13); line-height: 20px; text-align: left; }
.bellp .nt small { font-size: var(--fs-12); font-weight: 450; color: #5B6370; white-space: nowrap; margin-top: 2px; }
.bellp .nt-t { display: flex; flex-direction: column; gap: var(--space-4); } .bellp .nt-t b { font-weight: 600; color: #0B0B0C; } .bellp .nt-l { display: block; font-weight: 450; color: #5B6370; }
.bellp .nt.new .nt-l { color: #303030; }

/* The progress bar (owner: "a gradient, continuous, no breaks", like a battery): one bar that fills to where the task is, orange while it waits for approval, through blue while it is worked, to green when it is done and paid. The fill widths are classes because the page may not use inline styles. */
.trk-bar { height: 14px; border-radius: 3px; background: #E9E9E4; overflow: hidden; margin-bottom: var(--space-8); }
.trk-fill { height: 100%; border-radius: 3px 0 0 3px; background: linear-gradient(to right, #C93400, #006DFF 57%, #248A3D); background: linear-gradient(to right in oklab, #C93400, #006DFF 57%, #248A3D); background-repeat: no-repeat; }
.trk-bar.late .trk-fill { box-shadow: inset -4px 0 0 #DC2626; }
.trk-fill.pct-7 { border-radius: 3px; }
.trk-fill.pct-1 { width: 14.286%; background-size: 700.0% 100%; }
.trk-fill.pct-2 { width: 28.571%; background-size: 350.0% 100%; }
.trk-fill.pct-3 { width: 42.857%; background-size: 233.33% 100%; }
.trk-fill.pct-4 { width: 57.143%; background-size: 175.0% 100%; }
.trk-fill.pct-5 { width: 71.429%; background-size: 140.0% 100%; }
.trk-fill.pct-6 { width: 85.714%; background-size: 116.67% 100%; }
.trk-fill.pct-7 { width: 100.0%; background-size: 100.0% 100%; }
.trk-prog .trk-s { border-top: 0; padding-top: 0; } .trk-prog .trk-s span { width: 20px; height: 20px; border-radius: 3px; font-size: var(--fs-11); } .trk-prog .trk-s.done span { background: #248A3D; color: #fff; } .trk-prog .trk-s.now span { background: #006DFF; color: #fff; } .trk-prog .trk-s.late span { background: #DC2626; color: #fff; }

/* The header the owner asked for (task, quote and invoice alike): the number with the client beside it, the status and actions at the right, the title on its own line at the bottom. */
.tools > .jobcl { font-size: var(--fs-20); font-weight: 600; letter-spacing: -.02em; } .tools > .jobcl a { text-decoration: none; color: inherit; }
.tools > h1.jtitle { order: 9; flex: 0 0 100%; margin: 0; font-size: var(--fs-16); font-weight: 450; line-height: 24px; color: #303030; }
/* Owner 2026-11-23: the menu at the top is in capitals (both rows), a little wider apart so the words stay clear. */
@media (min-width: 861px) { .tm-b, .arow a { text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-12) !important; } }
/* Owner 2026-11-23: the search window is bigger, with a coloured heading for each kind (Audit PRO tones: tasks blue, quotes amber, sites green, the rest grey), three results under each. */
@media (min-width: 861px) { .topbar .ghits { width: min(780px, 90vw); max-height: min(78vh, 720px); overflow: auto; padding: var(--space-12); } }
.ghits .gh-g { border-bottom: 0; padding: var(--space-4) 0 var(--space-8); }
.ghits .gh-h { align-items: center; padding: var(--space-8) var(--space-12); font-size: var(--fs-12); color: #303030; }
.ghits .gh-h span:first-child { display: inline-flex; align-items: center; gap: var(--space-8); flex: none; margin-right: auto; }
.ghits .gh-h span:first-child::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: #8E8E93; }
.ghits .gh-n { min-width: 24px; text-align: center; padding: 0 var(--space-8); border-radius: 12px; background: #F1F2F4; color: #303030; font-weight: 600; }
.ghits .k-task .gh-h span:first-child::before { background: #006DFF; } .ghits .k-task .gh-n { background: #CCE0FF; color: #003580; }
.ghits .k-quote .gh-h span:first-child::before { background: #C93400; } .ghits .k-quote .gh-n { background: #FFE7A3; color: #8A5A00; }
.ghits .k-site .gh-h span:first-child::before { background: #248A3D; } .ghits .k-site .gh-n { background: #B8E8D4; color: #00563A; }
.ghits .gh-g a { padding: var(--space-8) var(--space-12) var(--space-8) var(--space-24); } .ghits .gh-g a b { font-size: var(--fs-14); font-weight: 600; } .ghits .gh-g a .muted { font-size: var(--fs-13); color: #5B6370; }
.ghits .gh-all { background: #F4F5F7; border-radius: 3px; margin-top: var(--space-4); }
/* A clear button in the search box (owner 2026-11-23); the browser's own small cross is hidden. */
.topbar .gfind::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.topbar .gfind { padding-right: var(--space-32) !important; }
.topbar .gs .gclr { position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 3px; background: transparent; color: #D4D4D4; cursor: pointer; z-index: 2; }
.topbar .gs .gclr:hover { background: rgba(255,255,255,.16); color: #fff; } .topbar .gs .gclr svg { width: 16px; height: 16px; }
/* Owner 2026-11-23: keep the continuous gradient bar; no number chips; the stage names are capitals and take the colour of the bar at their place (grey while still ahead). */
.trk-prog .trk-s span { display: none; }
.trk-prog .trk-s b { font-size: var(--fs-12); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8E8E93; }
.trk-prog .trk-s.done b, .trk-prog .trk-s.now b { color: var(--lc); } .trk-prog .trk-s.late b { color: #DC2626; }
.trk-prog .lb.l1 { --lc: #974240; } .trk-prog .lb.l2 { --lc: #645080; } .trk-prog .lb.l3 { --lc: #325FBF; } .trk-prog .lb.l4 { --lc: #006DFF; } .trk-prog .lb.l5 { --lc: #0C77BF; } .trk-prog .lb.l6 { --lc: #188080; } .trk-prog .lb.l7 { --lc: #248A3D; }
.trk-prog .trk-s .lb { color: #8E8E93; } .trk-prog .trk-s.done .lb, .trk-prog .trk-s.now .lb { color: var(--lc); }
/* The favourites bar under the open tabs: a star to keep the page you are on, your favourites in a row, and a drop down with all of them (up to 20), kept on your profile. */
.favbar { display: none; }
@media (min-width: 861px) {
  .favbar { display: flex; align-items: center; gap: var(--space-8); background: var(--look-card); border-bottom: 1px solid #D9DADD; padding: var(--space-4) var(--space-16); min-height: 36px; }
  .favbar .fav-star { width: 28px; height: 28px; border: 0; border-radius: 3px; background: transparent; color: #5B6370; font-size: var(--fs-16); cursor: pointer; flex: none; } .favbar .fav-star:hover { background: #F1F2F4; } .favbar .fav-star.set { color: #C93400; }
  .favbar .fav-row { display: flex; gap: var(--space-4); flex: 1; min-width: 0; overflow: hidden; }
  .favbar .fav { flex: none; max-width: 200px; overflow: hidden; text-overflow: clip; white-space: nowrap; padding: var(--space-4) var(--space-12); border-radius: 3px; color: #303030; text-decoration: none; font-size: var(--fs-13); font-weight: 500; } .favbar .fav:hover { background: #F1F2F4; } .favbar .fav.on { background: #CCE0FF; color: #003580; }
  .favbar .fav-none { color: #5B6370; font-size: var(--fs-13); }
  .favbar .fav-dd { position: relative; flex: none; }
  .favbar .fav-all { border: 1px solid #D0D4D9; border-radius: 3px; background: #fff; color: #0B0B0C; padding: var(--space-4) var(--space-12); font-size: var(--fs-13); font-weight: 600; cursor: pointer; } .favbar .fav-all:hover, .favbar .fav-all.open { background: #F1F2F4; }
  .favbar .fav-menu { position: absolute; right: 0; top: calc(100% + 4px); width: 360px; max-height: 70vh; overflow: auto; background: #fff; border-radius: 3px; box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: var(--space-4); z-index: 60; }
  .favbar .fav-it { display: flex; align-items: center; } .favbar .fav-it a { flex: 1; padding: var(--space-8) var(--space-12); color: #0B0B0C; text-decoration: none; font-size: var(--fs-14); } .favbar .fav-it:hover { background: #F4F5F7; }
  .favbar .fav-it button { border: 0; background: transparent; color: #5B6370; width: 28px; height: 28px; font-size: var(--fs-16); cursor: pointer; border-radius: 3px; } .favbar .fav-it button:hover { background: #E9E9E4; color: #0B0B0C; }
}
/* Owner 2026-11-23: the same orange, blue, green colours run through every step: the part still ahead shows the gradient faintly, the part done shows it in full, and the stage names ahead keep their own colour, softer. */
.trk-bar { background: linear-gradient(to right in oklab, rgba(201,52,0,.2), rgba(0,109,255,.2) 57%, rgba(36,138,61,.2)); }
.trk-prog .trk-s .lb { color: var(--lc); opacity: .7; } .trk-prog .trk-s.done .lb, .trk-prog .trk-s.now .lb { opacity: 1; }
/* ---- The task page frame (HC425, owner's picks 2026-11-24): the side rail with stage tabs that opens, narrows and hides; a plain job number; the costs as two rows; the slim bar. ---- */
.jobwrap { grid-template-columns: 248px minmax(0, 1fr); }
.jobwrap.rail-narrow { grid-template-columns: 64px minmax(0, 1fr); } .jobwrap.rail-hidden { grid-template-columns: minmax(0, 1fr); }
.jrail { display: flex; flex-direction: column; gap: var(--space-4); align-self: start; position: sticky; top: calc(var(--bar) + var(--space-16)); }
.jrail .jr-top { display: flex; justify-content: space-between; align-items: center; padding: 0 2px var(--space-8); }
.jrail .cap { font-size: var(--fs-11); letter-spacing: .08em; color: #5B5D63; font-weight: 600; }
.jrail .jr-x { width: 28px; height: 28px; border: 1px solid #D9DADD; border-radius: 3px; background: #fff; color: #5B5D63; font-size: var(--fs-16); font-weight: 600; cursor: pointer; padding: 0; } .jrail .jr-x:hover { background: #E9E9E4; }
.jr-box { background: #fff; border: 1px solid #D9DADD; border-radius: 3px; overflow: hidden; }
.jr-tabs { display: flex; background: #F4F4F1; }
.jr-tab { flex: 1; border: 0; background: transparent; padding: var(--space-8) 0 var(--space-8); text-align: center; border-bottom: 2px solid #D9DADD; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.jr-tab span:last-child { font-size: var(--fs-11); font-weight: 600; letter-spacing: .08em; color: #5B5D63; }
.jr-tab.on { background: #fff; border-bottom-color: #006DFF; } .jr-tab.on span:last-child { color: #1E1F22; }
.rdot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #8E8E93; background: #fff; color: #5B5D63; font-size: var(--fs-11); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rdot.now { background: #006DFF; border-color: #006DFF; color: #fff; } .rdot.done { background: #248A3D; border-color: #248A3D; color: #fff; }
.jr-say { display: flex; justify-content: space-between; align-items: center; padding: var(--space-8) var(--space-12) var(--space-4); font-size: var(--fs-12); color: #5B5D63; } .jr-say .link { font-weight: 600; font-size: var(--fs-12); }
.jr-box > a, .jrail > a { display: flex; justify-content: space-between; align-items: center; padding: var(--space-8) var(--space-12); margin: 0 var(--space-4); border-radius: 3px; color: #1E1F22; text-decoration: none; font-weight: 500; }
.jr-box > a:last-child { margin-bottom: var(--space-4); }
.jr-box > a:hover, .jrail > a:hover { background: #F1F1EC; } .jr-box > a.on, .jrail > a.on { background: #E9E9E4; font-weight: 600; }
.jrail a i { font-style: normal; color: #5B5D63; font-weight: 500; font-size: var(--fs-12); }
.jr-h { font-size: var(--fs-11); letter-spacing: .08em; color: #5B5D63; font-weight: 600; padding: var(--space-12) var(--space-12) var(--space-4); }
.jrail.narrow { align-items: center; gap: var(--space-8); }
.jr-mini { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 3px; padding: var(--space-8) 0; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; } .jr-mini.on { background: #fff; border-color: #D9DADD; }
.jr-mini span:last-child { font-size: var(--fs-11); font-weight: 600; letter-spacing: .06em; color: #5B5D63; }
.jr-sep { width: 100%; border-top: 1px solid #D9DADD; margin: var(--space-4) 0; }
.jr-ini { width: 36px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; font-weight: 600; color: #5B5D63; text-decoration: none; } .jr-ini.on { background: #E9E9E4; color: #1E1F22; }
.jr-scrim { display: none; }
.hamb { width: 36px; height: 36px; border: 1px solid #D9DADD; border-radius: 3px; background: #fff; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 0; cursor: pointer; flex: none; } .hamb i { display: block; width: 16px; height: 2px; border-radius: 1px; background: #1E1F22; } .hamb:hover { background: #E9E9E4; }
.tools > .jobno { background: transparent !important; color: #1E1F22 !important; border-radius: 0 !important; padding: 0 var(--space-12) 0 var(--space-4) !important; font-size: var(--fs-28); font-weight: 600; letter-spacing: -.02em; border-right: 1px solid #D9DADD; line-height: 36px; }
.pen { color: #5B5D63; text-decoration: none; font-size: var(--fs-13); margin-left: var(--space-8); font-weight: 400; } .pen:hover { color: #006DFF; }
.trkbar { margin: var(--space-4) 0; } .trkbar .trk-bar { margin-bottom: var(--space-4); }
.ctab { background: #fff; border: 1px solid #D9DADD; border-radius: 3px; padding: var(--space-8) var(--space-16); }
.ctab .cr { display: grid; grid-template-columns: 110px repeat(4, minmax(0, 1fr)); align-items: baseline; padding: var(--space-8) 0; border-top: 1px solid #D9DADD; } .ctab .cr.hd { border-top: 0; padding: 2px 0; }
.ctab .ch, .ctab .cl { font-size: var(--fs-11); letter-spacing: .08em; font-weight: 600; color: #5B5D63; }
.ctab .cv { text-decoration: none; color: #1E1F22; } .ctab .cr.now .cv { font-size: var(--fs-20); font-weight: 600; } .ctab .cr.was .cv { color: #5B5D63; font-size: var(--fs-14); } .ctab .cv:hover { text-decoration: underline; }
@media (max-width: 1099px) {
  .jobwrap, .jobwrap.rail-narrow, .jobwrap.rail-open { grid-template-columns: minmax(0, 1fr); }
  .jrail.open { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; width: 300px; background: #F4F4F1; padding: var(--space-16); box-shadow: 8px 0 24px rgba(0,0,0,.3); overflow: auto; }
  .jr-scrim { display: block; position: fixed; z-index: 69; inset: 0; background: rgba(30,31,34,.45); }
}
.tools > h1.jtitle { order: 0; flex: 0 1 auto; margin: 0; font-size: var(--fs-20); line-height: 36px; font-weight: 600; letter-spacing: -.02em; color: #1E1F22; }
.tools > .jobcl { order: 9; flex: 0 0 100%; font-size: var(--fs-14); font-weight: 400; letter-spacing: 0; color: #5B5D63; padding-left: calc(36px + var(--space-16)); } .tools > .jobcl a:first-child { color: #5B5D63; }
.tools { flex-wrap: wrap; row-gap: 0; }
/* ---- One white sheet of roll-up areas (HC425) ---- */
.jobmain.sheet { display: block; background: #fff; border: 1px solid #D9DADD; border-radius: 3px; padding: var(--space-4) var(--space-24); }
.sx { border-top: 1px solid #D9DADD; } .sx:first-child { border-top: 0; }
.sx-h { display: flex; align-items: center; gap: var(--space-8); min-height: 40px; }
.sx-chev { width: 24px; height: 24px; border: 0; background: transparent; color: #5B5D63; cursor: pointer; padding: 0; font-size: var(--fs-14); } .sx-chev:hover { background: #E9E9E4; border-radius: 3px; }
.sx-t { color: #1E1F22; font-weight: 600; font-size: var(--fs-14); text-decoration: none; } .sx-t:hover { text-decoration: underline; }
.sx-n { background: #F1F2F4; color: #5B5D63; border-radius: 10px; padding: 0 var(--space-8); font-size: var(--fs-11); font-weight: 600; line-height: 18px; }
.sx-b { padding: var(--space-4) 0 var(--space-16) var(--space-24); }
.sx-b > .card, .sx-b .card { box-shadow: none; border: 0; padding: 0; background: transparent; border-radius: 0; }
.sx-b > .card > .pad, .sx-b .card > .pad { padding: 0; }
.sx.here > .sx-h .sx-t { color: #006DFF; }
/* ---- The quote's add row and totals are cells of the table, lined up under Amount like an invoice (owner 2026-11-24) ---- */
.qfoot td { border-top: 1px solid #D9DADD; padding: var(--space-8) var(--space-12); } .qfoot .qadd td { background: #FAFAF8; }
.qfoot .qsum td:first-child { text-align: right; color: #5B5D63; font-weight: 600; background: #F4F4F1; }
.qfoot .qsum td.money { font-weight: 600; text-align: right; white-space: nowrap; border-left: 1px solid #D9DADD; border-right: 1px solid #D9DADD; }
.qfoot .qsum.grand td { background: #1E1F22; color: #fff; font-size: var(--fs-16); font-weight: 600; } .qfoot .qsum.grand td:first-child { color: #fff; background: #1E1F22; } .qfoot .qsum.grand td.money { border-color: #1E1F22; }
.qfoot .qsum.pm td { font-size: var(--fs-12); }
.qcolsbox { display: flex; flex-wrap: wrap; gap: var(--space-16); align-items: center; padding: var(--space-8) var(--space-12); background: #F4F4F1; border: 1px solid #D9DADD; border-radius: 3px; margin-bottom: var(--space-8); }
.qt.hide-part > thead th:nth-child(2), .qt.hide-part > tbody td:nth-child(2) { display: none; }
.qt.hide-type > thead th:nth-child(3), .qt.hide-type > tbody td:nth-child(3) { display: none; }
.qt.hide-cost > thead th:nth-child(5), .qt.hide-cost > tbody td:nth-child(5) { display: none; }
.qt.hide-markup > thead th:nth-child(6), .qt.hide-markup > tbody td:nth-child(6) { display: none; }
.qt.hide-margin > thead th:nth-child(9), .qt.hide-margin > tbody td:nth-child(9) { display: none; }
.qt.hide-option > thead th:nth-child(10), .qt.hide-option > tbody td:nth-child(10) { display: none; }
.qt.hide-stage > thead th:nth-child(11), .qt.hide-stage > tbody td:nth-child(11) { display: none; }

/* Speed readout (open the site as /?speed) */
.speedbox { position: fixed; left: 8px; bottom: 8px; z-index: 9999; margin: 0; padding: 8px 12px; max-width: 520px; background: #1E1F22; color: #F4F4F1; font: 450 var(--fs-12, 12px)/1.5 ui-monospace, Menlo, monospace; border-radius: 3px; white-space: pre; overflow: auto; max-height: 60vh; }

/* Home dashboard (HC441): filters, number tiles with change and trend, three charts. Colours are the four Audit PRO tones plus graphite. */
.dash { display: flex; flex-direction: column; gap: var(--space-12); margin-bottom: var(--space-16); }
.dflts { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: flex-end; }
.dflt { display: flex; flex-direction: column; gap: var(--space-2); }
.dflt span { font-size: var(--fs-11); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.dtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-12); }
.dtile { display: flex; flex-direction: column; gap: var(--space-2); text-align: left; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--tc, #1E1F22); border-radius: 3px; padding: var(--space-12) var(--space-16); cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.dtile:hover { border-color: var(--tc, #1E1F22); box-shadow: 0 1px 6px rgba(30, 31, 34, .12); }
.dtile.t-green { --tc: #248A3D; } .dtile.t-blue { --tc: #006DFF; } .dtile.t-orange { --tc: #C93400; } .dtile.t-red { --tc: #DC2626; } .dtile.t-ink { --tc: #1E1F22; }
.dt-l { font-size: var(--fs-11); letter-spacing: .08em; font-weight: 600; color: var(--muted); }
.dt-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); }
.dt-v { font-size: var(--fs-28); line-height: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dt-sp { width: 72px; height: 24px; flex: none; } .dt-sp polyline { stroke: var(--tc, #1E1F22); }
.dt-s { font-size: var(--fs-12); color: var(--muted); white-space: nowrap; }
.dt-s em { font-style: normal; font-weight: 600; } .dt-s em.up { color: #248A3D; } .dt-s em.down { color: #C93400; } .dt-s em.flat { color: var(--muted); }
.dcharts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-12); }
.dcard2 { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: var(--space-12) var(--space-16) var(--space-16); min-width: 0; }
.dc-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-8); }
.dch { width: 100%; height: auto; display: block; }
.dgrid { stroke: var(--line); stroke-width: 1; } .dax { font-size: var(--fs-11); fill: var(--muted); }
.dbar, .dline, .ddot, .dseg { cursor: pointer; }
.dbar.c-blue, .ddot.c-blue { fill: #006DFF; } .dbar.c-green, .ddot.c-green { fill: #248A3D; }
.darea.c-blue { fill: #006DFF; opacity: .1; } .darea.c-green { fill: #248A3D; opacity: .1; }
.dline { stroke-width: 2.5; } .dline.c-blue { stroke: #006DFF; } .dline.c-green { stroke: #248A3D; }
.dleg { display: flex; gap: var(--space-16); font-size: var(--fs-12); margin-top: var(--space-4); } .dleg span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: var(--space-4); background: currentColor; }
.dleg .c-blue { color: #006DFF; } .dleg .c-green { color: #248A3D; }
.ddonw { display: flex; align-items: center; gap: var(--space-16); flex-wrap: wrap; }
.ddon { width: 120px; height: 120px; flex: none; } .ddon-n { font-size: var(--fs-28); font-weight: 600; fill: #1E1F22; }
.dseg.grey { stroke: #B9BBC0; } .dseg.blue { stroke: #006DFF; } .dseg.orange { stroke: #C93400; } .dseg.green { stroke: #248A3D; }
.dkey { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; min-width: 150px; }
.dk { display: grid; grid-template-columns: 12px 1fr auto; gap: var(--space-8); align-items: center; background: none; border: 0; padding: var(--space-4) 0; font: inherit; cursor: pointer; text-align: left; color: inherit; }
.dk i { width: 10px; height: 10px; border-radius: 2px; background: #B9BBC0; } .dk.blue i { background: #006DFF; } .dk.orange i { background: #C93400; } .dk.green i { background: #248A3D; }
.dk:hover span { text-decoration: underline; }
.dnote { font-size: var(--fs-12); }

.dgaw { position: relative; display: flex; flex-direction: column; align-items: center; margin: var(--space-8) 0; }
.dgau { width: 220px; max-width: 100%; height: auto; } .dgau-t { stroke: #E4E4E0; } .dgau-f { stroke: #006DFF; } .dgau-f.met { stroke: #248A3D; }
.dgau-v { display: flex; flex-direction: column; align-items: center; margin-top: calc(var(--space-24) * -1); }
.dgau-v b { font-size: var(--fs-28); line-height: 34px; font-weight: 600; font-variant-numeric: tabular-nums; } .dgau-v span { font-size: var(--fs-12); color: var(--muted); }
.dgoal { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-12); margin-top: var(--space-12); }
.dh { display: flex; flex-direction: column; gap: var(--space-4); }
.dh-r { display: grid; grid-template-columns: minmax(90px, 1.2fr) 2fr auto; gap: var(--space-12); align-items: center; background: none; border: 0; padding: var(--space-8) 0; font: inherit; color: inherit; text-align: left; cursor: pointer; border-top: 1px solid var(--line); min-width: 0; }
.dh-r:first-child { border-top: 0; } .dh-r:hover .dh-n { text-decoration: underline; }
.dh-n { font-size: var(--fs-12); overflow-wrap: anywhere; } .dh-r b { font-size: var(--fs-12); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dh-b { display: block; height: 10px; background: #EDEDEA; border-radius: 2px; } .dh-w { display: block; height: 10px; border-radius: 2px; background: #006DFF; }
.dh-r.green .dh-w { background: #248A3D; } .dh-r.orange .dh-w { background: #C93400; } .dh-r.red .dh-w { background: #DC2626; }
.dh-w.w0 { width: 0%; } .dh-w.w5 { width: 5%; } .dh-w.w10 { width: 10%; } .dh-w.w15 { width: 15%; } .dh-w.w20 { width: 20%; }
.dh-w.w25 { width: 25%; } .dh-w.w30 { width: 30%; } .dh-w.w35 { width: 35%; } .dh-w.w40 { width: 40%; } .dh-w.w45 { width: 45%; }
.dh-w.w50 { width: 50%; } .dh-w.w55 { width: 55%; } .dh-w.w60 { width: 60%; } .dh-w.w65 { width: 65%; } .dh-w.w70 { width: 70%; }
.dh-w.w75 { width: 75%; } .dh-w.w80 { width: 80%; } .dh-w.w85 { width: 85%; } .dh-w.w90 { width: 90%; } .dh-w.w95 { width: 95%; }
.dh-w.w100 { width: 100%; } 

.stackc { display: flex; flex-direction: column; gap: var(--space-16); }

/* Book a time (HC442) */
.bk { display: flex; flex-direction: column; gap: var(--space-12); }
.bk-top { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: flex-end; }
.bk-len { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.bk-c { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: var(--space-4) var(--space-12); font: inherit; font-size: var(--fs-12); cursor: pointer; }
.bk-c.on { border-color: #006DFF; background: #E6F0FF; color: #006DFF; font-weight: 600; }
.bk-h { width: 72px; }
.bk-days { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: center; }
.bk-d { border: 1px solid var(--line); border-radius: 999px; padding: 0 var(--space-12); background: #fff; font-size: var(--fs-12); }
.bk-hd, .bk-row { display: grid; grid-template-columns: 24px 150px 170px minmax(200px, 1fr) 150px; gap: var(--space-12); align-items: center; }
.bk-hd { font-size: var(--fs-11); } .bk-ax { display: flex; justify-content: space-between; font-size: var(--fs-11); color: var(--muted); }
.bk-row { padding: var(--space-8) 0; border-top: 1px solid var(--line); }
.bk-t { display: flex; gap: var(--space-4); } .bk-t .inl { width: 76px; }
.bk-strip { position: relative; height: 14px; background: #EDEDEA; border-radius: 2px; }
.bk-strip i { position: absolute; top: 0; bottom: 0; background: #B9BBC0; border-radius: 2px; }
.bk-strip i.bk-s { background: #006DFF; top: -2px; bottom: -2px; } .bk-strip i.bk-b.hit { background: #C93400; top: -2px; bottom: -2px; }
.bk-n { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
@media (max-width: 899px) { .bk-hd { display: none; } .bk-row { grid-template-columns: 24px 1fr; } .bk-row .bk-strip, .bk-row .bk-n, .bk-row .chip, .bk-row .bk-t { grid-column: 2; } }

/* The side menu is all capitals (owner, 2026-11-24, HC447) */
.jr-box > a, .jrail > a, .jr-say { text-transform: uppercase; letter-spacing: .04em; }

.bk-sug { display: flex; justify-content: space-between; align-items: center; gap: var(--space-12); }

.sdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: var(--space-8); vertical-align: baseline; }
.cj[style*="box-shadow"] { overflow: hidden; }

/* Calendar: who to show, hover card, picked cards (HC449) */
.pfilter { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: var(--space-12) var(--space-16); display: flex; flex-direction: column; gap: var(--space-8); }
.pf-list { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); }
.pf { display: inline-flex; align-items: center; gap: var(--space-4); font-size: var(--fs-13); cursor: pointer; }
.pf .sdot { margin: 0 var(--space-4) 0 var(--space-4); } .sdot.unas { background: #B9BBC0; }
.cj.sel { outline: 3px solid #1E1F22; outline-offset: 1px; }
.hcard { position: fixed; z-index: 9998; width: 280px; background: #1E1F22; color: #F4F4F1; border-radius: 3px; padding: var(--space-12) var(--space-16); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); font-size: var(--fs-12); line-height: 1.5; pointer-events: none; }
.hcard b { display: block; font-size: var(--fs-13); } .hc-t { color: #FFB84D; font-weight: 600; } .hc-m { color: #B9BBC0; }
.seg.sm button { font-size: var(--fs-12); }
.unsched .seg.sm { display: flex; gap: var(--space-4); } .unsched .seg.sm button { flex: 1; border: 1px solid var(--line); background: #fff; color: #1E1F22; border-radius: 3px; padding: var(--space-4) var(--space-8); }
.unsched .seg.sm button.on { background: #1E1F22; color: #fff; border-color: #1E1F22; }

/* Side menu icon chips (HC447): one colour per stage state; THE JOB is grey. */
.ri { width: 28px; height: 28px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #EDEDEA; }
.ri svg { width: 18px; height: 18px; stroke: #1E1F22; }
.ri.now { background: #E6F0FF; } .ri.now svg { stroke: #006DFF; } .ri.done { background: #E5F3E9; } .ri.done svg { stroke: #248A3D; } .ri.todo svg, .ri.job svg { stroke: #4A4C52; }
.jr-box > a, .jrail > a { justify-content: flex-start; gap: var(--space-12); } .jr-box > a i, .jrail > a i { margin-left: auto; }
.jr-ini { width: 40px; height: 36px; }
.jrail.narrow { position: relative; }
.jr-fly { position: absolute; left: 100%; top: 56px; margin-left: var(--space-8); width: 248px; background: #fff; border: 1px solid #D9DADD; border-radius: 3px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding: var(--space-4); z-index: 30; }
.jr-fly a { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-8) var(--space-12); border-radius: 3px; color: #1E1F22; text-decoration: none; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: var(--fs-12); } .jr-fly a:hover { background: #F1F1EC; } .jr-fly a.on { background: #E9E9E4; font-weight: 600; }

/* Task page style (owner's picks 1, 2 and 5 on the HC450 board): calm outline buttons with one blue action, compact; cards with a dark top rule and small capital titles. */
.tools:has(> .jobno) > .bt, .tools:has(> .jobno) > .bt.plain, .tools:has(> .jobno) > button.bt { height: 32px; padding: 0 var(--space-16); font-size: var(--fs-12); background: #fff; color: #1E1F22; border: 1px solid #1E1F22; }
.tools:has(> .jobno) > .bt.plain { border-color: #D9DADD; }
.tools:has(> .jobno) > .bt:not(.blue):not(:disabled):hover { background: #F4F4F1; filter: none; }
.tools:has(> .jobno) > .bt.blue { height: 32px; padding: 0 var(--space-16); font-size: var(--fs-12); background: #006DFF; color: #fff; border-color: #006DFF; }
.card { border-radius: 3px; border: 1px solid #D9DADD; border-top: 3px solid #1E1F22; box-shadow: none; }
.card h2 { font-size: var(--fs-12); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

.dax-row { display: flex; justify-content: space-between; font-size: var(--fs-11); color: var(--muted); margin-top: var(--space-4); }
.dax-row.dax-eq span { flex: 1; text-align: center; }

.dstrip { display: flex; align-items: center; gap: var(--space-16); flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: var(--space-8) var(--space-16); font-size: var(--fs-12); }
.dstrip > b { letter-spacing: .1em; font-size: var(--fs-11); font-weight: 600; color: var(--muted); }
.ds-bar { flex: 1; min-width: 160px; display: flex; gap: 2px; height: 12px; }
.ds-s { border: 0; padding: 0; border-radius: 2px; cursor: pointer; background: #B9BBC0; min-width: 6px; } .ds-s.blue { background: #006DFF; } .ds-s.orange { background: #C93400; } .ds-s.none { background: #EDEDEA; cursor: default; }
.dstrip .dk { grid-template-columns: 12px auto auto; padding: 0; } .dstrip .dk b { margin-left: var(--space-4); }
.dsw { margin-left: auto; }

/* Costs under the bar: slim, rolls up (HC450 follow-up) */
.cstrip { display: flex; align-items: stretch; background: #fff; border: 1px solid #D9DADD; border-radius: 3px; min-height: 40px; }
.cs-t { display: inline-flex; align-items: center; gap: var(--space-8); border: 0; border-right: 1px solid #D9DADD; background: #F4F4F1; padding: 0 var(--space-16); font: inherit; font-size: var(--fs-11); letter-spacing: .1em; font-weight: 600; color: #1E1F22; cursor: pointer; flex: none; }
.cs-c { flex: 1; display: flex; align-items: baseline; gap: var(--space-8); padding: var(--space-8) var(--space-16); text-decoration: none; color: #1E1F22; border-right: 1px solid #ECECE8; min-width: 0; flex-wrap: wrap; } .cs-c:last-child { border-right: 0; }
.cs-c:hover { background: #F4F7FF; }
.cs-l { font-size: var(--fs-11); letter-spacing: .08em; font-weight: 600; color: #5B5D63; } .cs-c b { font-size: var(--fs-16); font-weight: 600; font-variant-numeric: tabular-nums; } .cs-q { font-size: var(--fs-12); color: #5B5D63; }
.cs-sum { display: flex; align-items: center; padding: 0 var(--space-16); font-size: var(--fs-12); color: #1E1F22; }

/* Costs strip and its drop-down: one grid, so columns sit under their headings; faint lines between columns and rows (HC451) */
.cswrap { display: block; }
.cstrip { display: grid; grid-template-columns: 190px repeat(4, minmax(0, 1fr)); align-items: stretch; background: #fff; border: 1px solid #D9DADD; border-radius: 3px; min-height: 40px; }
.cstrip.open { border-radius: 3px 3px 0 0; }
.cs-t { display: inline-flex; align-items: center; gap: var(--space-8); border: 0; border-right: 1px solid #D9DADD; background: #F4F4F1; padding: 0 var(--space-16); font: inherit; font-size: var(--fs-11); letter-spacing: .1em; font-weight: 600; color: #1E1F22; cursor: pointer; }
.cs-c { display: flex; align-items: baseline; gap: var(--space-8); padding: var(--space-8) var(--space-16); border: 0; border-right: 1px solid #ECECE8; background: #fff; font: inherit; color: #1E1F22; cursor: pointer; text-align: left; min-width: 0; white-space: nowrap; overflow: hidden; } .cs-c:last-child { border-right: 0; }
.cs-c:hover { background: #F4F7FF; } .cs-c.on { background: #EEF4FF; box-shadow: inset 0 -3px 0 #006DFF; }
.cs-l { font-size: var(--fs-11); letter-spacing: .08em; font-weight: 600; color: #5B5D63; } .cs-c b { font-size: var(--fs-16); font-weight: 600; font-variant-numeric: tabular-nums; } .cs-q { font-size: var(--fs-12); color: #5B5D63; } .cs-ar { margin-left: auto; color: #5B5D63; }
.cspanel { background: #fff; border: 1px solid #D9DADD; border-top: 3px solid #1E1F22; border-radius: 0 0 3px 3px; margin-top: -1px; }
.cs-tabs { display: flex; align-items: center; background: #FAFAF8; border-bottom: 1px solid #ECECE8; } .cs-tabs button { border: 0; background: none; padding: var(--space-8) var(--space-16); font: inherit; font-size: var(--fs-11); letter-spacing: .1em; font-weight: 600; color: #5B5D63; cursor: pointer; border-bottom: 3px solid transparent; } .cs-tabs button.on { color: #1E1F22; border-bottom-color: #006DFF; }
.cs-note { font-size: var(--fs-11); padding-right: var(--space-16); }
.cs-row { display: grid; grid-template-columns: 190px repeat(4, minmax(0, 1fr)); border-top: 1px solid #ECECE8; font-size: var(--fs-12); }
.cs-k { padding: var(--space-8) var(--space-16); font-size: var(--fs-11); letter-spacing: .08em; font-weight: 600; background: #FAFAF8; border-right: 1px solid #ECECE8; }
.cs-v { padding: var(--space-8) var(--space-16); border-right: 1px solid #ECECE8; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; } .cs-v:last-child { border-right: 0; } .cs-v.cs-off { background: #FCFCFB; }
.cs-foot { display: flex; flex-wrap: wrap; gap: var(--space-24); padding: var(--space-8) var(--space-16); border-top: 2px solid #1E1F22; background: #FAFAF8; font-size: var(--fs-13); }

.cs-in { width: 100%; max-width: 160px; border: 1px solid #D9DADD; border-radius: 3px; background: #fff; padding: var(--space-4) var(--space-8); font: inherit; font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.cs-in:focus { outline: 2px solid #006DFF; outline-offset: 0; }

.cs-fc { display: flex; align-items: center; gap: var(--space-8); width: 100%; border: 0; background: none; padding: 0; font: inherit; cursor: pointer; text-align: left; color: inherit; } .cs-fc:hover b { text-decoration: underline; } .cs-fc.on b { color: #006DFF; } .cs-fc .cs-ar { margin-left: auto; }
.cs-drill { border-top: 2px solid #1E1F22; background: #FAFAF8; padding: var(--space-8) var(--space-16) var(--space-12); }
.cs-dh { display: flex; justify-content: space-between; font-size: var(--fs-11); letter-spacing: .1em; font-weight: 600; padding-bottom: var(--space-4); }
.cs-dr { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: var(--space-12); padding: var(--space-4) 0; border-top: 1px solid #ECECE8; font-size: var(--fs-12); } .cs-dr span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.cs-dn { font-size: var(--fs-12); margin-top: var(--space-4); }
