/* 2GA — calm, readable, uncluttered. Color is reserved for genuine issues. */
:root {
  --ink: #111827; --ink2: #4b5563; --mute: #6b7280; --faint: #9ca3af; --line: #e5e7eb; --line2: #f0f1f4; --bg: #f6f7f9; --card: #fff; --side: #111827;
  --accent: #1f5fbf; --accent-d: #184b98; --accent-bg: #eef4fd;
  --ok: #15803d; --ok-bg: #ecfdf3; --todo: #9a5b00; --todo-bg: #fff7e6; --issue: #b42318; --issue-bg: #fef1f0;
  --res: #2563eb; --com: #7c3aed; --c-done: #16a34a; --c-prog: #0f766e; --c-sched: #93b4e8;
  --r: 12px; --r-s: 8px; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  font-size: 15px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 0; } h2 { font-size: 22px; margin: 0; } h3 { font-size: 16px; font-weight: 650; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
h4 { font-size: 14px; font-weight: 650; margin: 22px 0 8px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
h3 small, h2 small, h4 small { font-weight: 400; }
small { font-size: 13px; } .small { font-size: 13px; } code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: #f3f4f6; padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--mute); } .soft { color: var(--faint); font-weight: 500; } .center { text-align: center; } .r { text-align: right; } .c { text-align: center; } .wrap { white-space: normal !important; min-width: 180px; } .pad { padding: 12px 16px; }
.err, .issue-text { color: var(--issue); } .todo-text { color: var(--todo); } .ok-text { color: var(--ok); font-weight: 500; }
.neg { color: var(--issue); } .pos { color: var(--ok); }
.unknown { color: var(--mute); font-style: italic; }
.ok-line { color: var(--ok); display: flex; align-items: center; gap: 6px; margin: 8px 0; } .ok-line.inline { display: inline-flex; margin: 0; }
.todo-line { color: var(--todo); background: var(--todo-bg); padding: 10px 12px; border-radius: var(--r-s); margin: 8px 0; }
.empty { padding: 40px; text-align: center; color: var(--mute); }
.ico { flex: none; vertical-align: middle; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { border: 1px solid #d1d5db; border-radius: var(--r-s); padding: 8px 10px; background: #fff; min-width: 0; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,95,191,.15); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:disabled, select:disabled, textarea:disabled { background: #f9fafb; color: var(--ink2); }
textarea { width: 100%; resize: vertical; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

/* shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 220px; background: var(--side); color: #d1d5db; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex: none; padding: 4px 10px; }
.brand { font-weight: 800; font-size: 21px; letter-spacing: .02em; color: #fff; padding: 18px 10px 16px; display: flex; align-items: center; } .brand.big { font-size: 34px; padding: 0 0 4px; color: var(--ink); }
.env { font-size: 10.5px; font-weight: 600; background: #374151; color: #fde68a; padding: 2px 8px; border-radius: 10px; margin-left: 10px; text-transform: uppercase; letter-spacing: .04em; }
.side a { color: #d1d5db; padding: 9px 12px; border-radius: 8px; margin: 1px 0; font-size: 14.5px; } .side a:hover { background: #1f2937; text-decoration: none; color: #fff; }
.side a.on { background: #1f2937; color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #60a5fa; }
.side-foot { margin-top: auto; padding: 14px 8px; border-top: 1px solid #1f2937; font-size: 13.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .side-foot small { display: block; color: #9ca3af; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #374151; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.linkbtn { background: none; border: 0; color: #93c5fd; padding: 0; cursor: pointer; width: 100%; text-align: left; font-size: 13px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; gap: 10px; align-items: center; padding: 12px 28px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 18px; cursor: pointer; }
.content { padding: 24px 28px 72px; max-width: 1480px; width: 100%; }
.gsearch { position: relative; flex: 1; max-width: 560px; } .gsearch input { width: 100%; padding: 9px 14px; border-radius: 10px; background: #f9fafb; }
.gresults { position: absolute; top: 44px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 40; max-height: 60vh; overflow: auto; padding: 6px; }
.gresults a { display: block; padding: 9px 12px; color: var(--ink); border-radius: 8px; } .gresults a small { display: block; color: var(--mute); } .gresults a:hover { background: var(--accent-bg); text-decoration: none; }

/* page */
.page-h { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; } .page-h p { margin: 4px 0 0; color: var(--ink2); max-width: 760px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.panel, .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; } .cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); } .stat.click { cursor: pointer; } .stat.click:hover { border-color: #b6c7e3; }
.stat-l { font-size: 13px; color: var(--mute); font-weight: 500; } .stat-v { font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -.01em; } .stat.sm .stat-v { font-size: 19px; } .stat-s { font-size: 13px; color: var(--mute); min-height: 1em; }
.stat.sm { background: #fafafa; box-shadow: none; padding: 12px 14px; }
.monthnav { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #d1d5db; border-radius: 10px; padding: 3px 4px; } .monthnav button { border: 0; background: none; font-size: 18px; cursor: pointer; padding: 2px 10px; border-radius: 6px; } .monthnav button:hover { background: #f3f4f6; } .monthnav b { min-width: 90px; text-align: center; font-weight: 600; }
.seg { display: inline-flex; background: #eef0f3; border-radius: 10px; padding: 3px; gap: 2px; } .seg button { border: 0; background: none; padding: 6px 14px; cursor: pointer; border-radius: 8px; color: var(--ink2); font-weight: 500; font-size: 14px; } .seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.viewtabs { margin-bottom: 16px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; } .filters .search { flex: 1; min-width: 260px; } .filters label { color: var(--ink2); font-size: 14px; }
.totals { margin-bottom: 12px; color: var(--ink2); }

/* controls */
.btn { border: 1px solid #d1d5db; background: #fff; border-radius: var(--r-s); padding: 8px 14px; cursor: pointer; white-space: nowrap; font-weight: 500; transition: background .12s; } .btn:hover:not(:disabled) { background: #f9fafb; } .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(31,95,191,.3); } .btn.primary:hover:not(:disabled) { background: var(--accent-d); }
.btn.danger { color: var(--issue); border-color: #f3c3be; } .btn.ghost { border-color: transparent; background: none; color: var(--ink2); }
.btn.sm { padding: 5px 11px; font-size: 13.5px; } .btn.wide { width: 100%; margin-top: 10px; padding: 11px; }
.tiny { border: 0; background: none; color: var(--accent); font-size: 12px; cursor: pointer; padding: 0; }
.x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--mute); padding: 2px 8px; border-radius: 8px; } .x:hover { background: #f3f4f6; color: var(--ink); } .x.sm { font-size: 18px; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: #f3f4f6; color: #374151; white-space: nowrap; vertical-align: middle; }
.badge.green { background: var(--ok-bg); color: var(--ok); } .badge.amber { background: var(--todo-bg); color: var(--todo); } .badge.red { background: var(--issue-bg); color: var(--issue); } .badge.blue { background: var(--accent-bg); color: var(--accent-d); } .badge.purple { background: #f3effe; color: #5b21b6; } .badge.teal { background: #ecfdf8; color: #0f766e; }
.fx { font-size: 10px; font-weight: 700; letter-spacing: .06em; border: 1px dashed #b45309; color: #b45309; padding: 0 5px; border-radius: 4px; vertical-align: middle; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 14px; margin: 10px 0; } .grid .wide { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 4px; } .fld > span { font-size: 13px; color: var(--ink2); font-weight: 500; } .fld small { color: var(--mute); }
.chk { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; } .chk input { width: 17px; height: 17px; accent-color: var(--accent); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; } .row > input:not([type=date]):not([type=checkbox]) { flex: 1; min-width: 160px; } .row.sb { justify-content: space-between; }
.kv { margin: 8px 0; } .kv > span { display: block; font-size: 13px; color: var(--mute); }
.note { border-radius: var(--r-s); background: var(--accent-bg); padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.note.warn { background: var(--todo-bg); color: #6b4300; } .note.err { background: var(--issue-bg); color: #8a1c13; } .note.ok { background: var(--ok-bg); color: #14532d; }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 12px 0; background: #fcfcfd; }
details > summary { cursor: pointer; color: var(--accent); font-weight: 500; margin: 4px 0; list-style: none; } details > summary::-webkit-details-marker { display: none; } details.more > summary::before, .box > summary::before, .panel > details:not(.help) > summary::before { content: '+ '; }
details.more[open] > summary::before, .box[open] > summary::before, .panel > details:not(.help)[open] > summary::before { content: '− '; }
details.more { margin: 12px 0; }
.token { display: inline-block; padding: 6px 8px; user-select: all; word-break: break-all; }
.scopes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; margin: 10px 0; }

/* help popover */
.help { display: inline-block; position: relative; font-weight: 400; vertical-align: middle; }
.help > summary { color: var(--mute); display: inline-flex; align-items: center; margin: 0; }
.help-i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c4c9d2; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--mute); }
.help-l { font-size: 13px; color: var(--mute); text-decoration: underline dotted; text-underline-offset: 3px; }
.help[open] .help-i { background: var(--ink); border-color: var(--ink); color: #fff; }
.help-pop { position: absolute; z-index: 45; left: 0; top: 26px; width: min(360px, 80vw); background: #fff; color: var(--ink2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 12px 14px; font-size: 13.5px; line-height: 1.5; text-transform: none; letter-spacing: 0; white-space: normal; }

/* tables */
.tscroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; } .tbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--mute); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r { text-align: right; } .tbl td { padding: 12px; border-bottom: 1px solid var(--line2); vertical-align: top; white-space: nowrap; }
.tbl.click tbody tr { cursor: pointer; } .tbl.click tbody tr:hover, .tbl tr.sel { background: #f9fafb; } tr.dim { opacity: .55; }
.acts { white-space: normal !important; } .acts .btn { margin: 2px; }
.mini { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; } .mini th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--mute); padding: 6px 8px; border-bottom: 1px solid var(--line); } .mini td { padding: 8px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.mini.edit input:not([type=checkbox]) { width: 100%; min-width: 90px; padding: 6px 8px; } .mini th.r { text-align: right; }
.aging td, .aging th { text-align: center; } .aging td { font-weight: 600; }
.score td.big { font-size: 20px; font-weight: 700; white-space: nowrap; }
.budget td { padding: 5px; } .cell-in { width: 82px; text-align: right; padding: 5px 7px; } .cell-in.dirty { background: var(--todo-bg); border-color: #e3b04b; }
.matrix td.c { color: var(--accent); }
.reason { display: inline-block; background: #f3f4f6; border-radius: 6px; padding: 1px 8px; margin: 2px 4px 2px 0; font-size: 13px; white-space: nowrap; color: var(--ink2); }
.joblink { font-weight: 600; }

/* my work */
.mywork { max-width: 880px; }
.hello { margin-bottom: 18px; } .hello p { color: var(--mute); margin: 4px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 18px; cursor: pointer; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; transition: border-color .12s, box-shadow .12s; color: var(--ink2); }
.tile b { font-size: 30px; line-height: 1.1; color: var(--ink); font-weight: 700; } .tile span { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.tile:hover { border-color: #b6c7e3; } .tile.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,95,191,.12); } .tile.zero b { color: var(--faint); } .tile.issue b, .tile.issue .ico { color: var(--issue); }
.card.list { padding: 6px 0; } .list-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 8px; } .list-h h3 { margin: 0; } .list-h a { font-size: 14px; }
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line2); color: var(--ink); } .lrow:hover { background: #f9fafb; text-decoration: none; }
.lrow b { font-weight: 600; display: block; } .lrow small { color: var(--mute); } .lrow-r { display: flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 14px; text-align: right; } .lrow-r .ico { color: var(--faint); }
.st-ok { color: var(--ok); } .st-todo { color: var(--todo); } .st-issue { color: var(--issue); font-weight: 600; }
.card.avail { display: flex; gap: 14px; align-items: center; } .card.avail span { display: block; color: var(--mute); font-size: 13.5px; } .card.avail b { font-size: 18px; } .card.avail .ico { color: var(--accent); }

/* dashboard */
.pbar { margin: 6px 0 12px; } .pbar-track { position: relative; height: 30px; background: #eef0f3; border-radius: 8px; display: flex; margin: 26px 0 10px; }
.pbar-track button { border: 0; height: 100%; cursor: pointer; padding: 0; border-right: 2px solid #fff; } .pbar-track button:first-child { border-radius: 8px 0 0 8px; }
.seg-c { background: var(--c-done); } .seg-i { background: var(--c-prog); } .seg-s { background: var(--c-sched); }
.pbar-b { position: absolute; top: -6px; bottom: -6px; border-left: 2px dashed var(--ink); } .pbar-b span { position: absolute; top: -20px; right: 4px; white-space: nowrap; text-align: right; font-size: 12.5px; font-weight: 600; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 14px; } .legend a { color: var(--ink); } .legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; } .legend b { margin-left: auto; }
.ychart { display: flex; gap: 6px; align-items: flex-end; margin: 18px 0 8px; padding-top: 8px; border-top: 1px solid var(--line2); } .ycol { flex: 1; text-align: center; font-size: 12px; color: var(--mute); } .ycol.cur span { color: var(--ink); font-weight: 700; }
.ybars { position: relative; display: flex; align-items: flex-end; justify-content: center; } .ystack { width: 60%; max-width: 34px; display: flex; flex-direction: column; } .ystack div:first-child { border-radius: 4px 4px 0 0; }
.ybud { position: absolute; left: 8%; right: 8%; border-top: 2px dashed var(--ink); }
.drill { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; } .exc { background: var(--todo-bg); border-radius: var(--r-s); padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.task { border-bottom: 1px solid var(--line2); padding: 10px 0; } .task:last-child { border: 0; } .task-h { font-weight: 600; color: var(--ink); } .task-l { margin: 4px 0 0 36px; font-size: 14px; }
.count { display: inline-block; min-width: 26px; text-align: center; background: #eef0f3; color: var(--ink); border-radius: 12px; padding: 0 8px; font-size: 13px; margin-right: 8px; font-weight: 600; }

/* schedule */
.sched-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink2); margin-bottom: 10px; align-items: center; } .sched-legend i { display: inline-block; width: 22px; height: 12px; position: static; vertical-align: middle; margin-right: 5px; border-radius: 3px; }
.sched-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; box-shadow: var(--shadow); }
.sched-r { display: flex; border-bottom: 1px solid var(--line2); } .sched-r.head { position: sticky; top: 0; background: #fafafa; z-index: 3; } .sched-r.inactive .sched-c { color: var(--mute); }
.sched-c { width: 170px; flex: none; padding: 8px 12px; border-right: 1px solid var(--line); position: sticky; left: 0; z-index: 2; font-weight: 600; background: #fff; } .sched-r.head .sched-c { background: #fafafa; } .sched-c .tiny { display: block; font-weight: 400; }
.sched-days { position: relative; display: flex; flex: none; } .day { text-align: center; font-size: 11.5px; padding: 12px 0 4px; border-right: 1px solid var(--line2); position: relative; } .day small { display: block; color: var(--faint); font-size: 10.5px; } .day em { position: absolute; top: 0; left: 3px; font-style: normal; font-size: 10px; color: var(--accent); font-weight: 700; }
.day.we, .cell.we { background: #f7f8fa; } .day.today b { background: var(--accent); color: #fff; border-radius: 10px; padding: 0 6px; } .cell.today { background: #f0f5fd; }
.cell { position: absolute; top: 0; bottom: 0; border-right: 1px solid var(--line2); }
.bar { position: absolute; height: 24px; border-radius: 6px; padding: 3px 8px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; color: #fff; z-index: 1; border: 1.5px solid transparent; font-weight: 500; } .bar small { opacity: .8; font-size: 11px; }
.bar.res { background: var(--res); } .bar.com { background: var(--com); }
.bar.tentative { background: #fff; color: var(--res); border: 1.5px dashed var(--res); } .bar.com.tentative { color: var(--com); border-color: var(--com); background: #fff; }
.bar.in_progress { background: #1d4ed8; } .bar.com.in_progress { background: #6d28d9; } .bar.done { background: #e5e7eb; color: #4b5563; } .bar.visit { background: #c2410c; }
.bar.conflict { border: 2px solid var(--issue) !important; box-shadow: 0 0 0 2px var(--issue-bg); }
.block { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #e5e7eb, #e5e7eb 6px, #f3f4f6 6px, #f3f4f6 12px); font-size: 11px; color: #4b5563; overflow: hidden; } .block span { background: #f3f4f6; padding: 0 4px; } .block.partial { opacity: .5; }
.blockx { background: repeating-linear-gradient(45deg, #e5e7eb, #e5e7eb 4px, #f3f4f6 4px, #f3f4f6 8px); }
.qrow { display: flex; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line2); } .qrow[draggable=true] { cursor: grab; } .qrow .r { margin-left: auto; color: var(--ink2); font-size: 14px; } .grip { color: #c4c9d2; }

/* record drawer */
.scrim { position: fixed; inset: 0; background: rgba(17,24,39,.35); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(880px, 100vw); background: var(--bg); z-index: 60; box-shadow: -12px 0 40px rgba(0,0,0,.18); display: flex; flex-direction: column; }
.drawer-scroll { overflow-y: auto; flex: 1; } .dclose { position: sticky; top: 8px; float: right; margin: 8px; }
.dh, .jc-head { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 26px 18px; }
.jc-top, .dh-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .jc-tr { display: flex; align-items: center; gap: 8px; }
.jc-eyebrow, .eyebrow { font-size: 13px; color: var(--mute); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.jc-name { font-size: 28px; font-weight: 700; letter-spacing: -.015em; margin: 4px 0 2px; line-height: 1.2; }
.jc-sub, .dh-meta { color: var(--ink2); font-size: 14.5px; }
.pill { font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: #f3f4f6; color: #374151; white-space: nowrap; }
.pill.green { background: var(--ok-bg); color: var(--ok); } .pill.blue { background: var(--accent-bg); color: var(--accent-d); }
.jc-issues { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { border: 0; cursor: pointer; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.chip.todo { background: var(--todo-bg); color: var(--todo); } .chip.issue { background: var(--issue-bg); color: var(--issue); } .chip:hover { filter: brightness(.97); }
.jc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0 16px; padding: 16px 0 0; border-top: 1px solid var(--line2); }
.jc-stats > div > span { display: block; font-size: 13.5px; color: var(--mute); margin-bottom: 4px; } .jc-stats b { font-size: 21px; font-weight: 700; display: block; letter-spacing: -.01em; } .jc-stats b a { color: var(--ink); } .jc-stats small { color: var(--mute); display: block; margin-top: 2px; }
.ltiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ltile { position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); min-height: 58px; transition: border-color .12s, box-shadow .12s; }
a.ltile:hover { border-color: #b6c7e3; box-shadow: var(--shadow); text-decoration: none; }
.lico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.ltxt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; } .ltxt b { font-size: 14.5px; font-weight: 600; } .ltxt small { color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lext { margin-left: auto; color: var(--faint); }
.ltile.off { background: #fafafa; border-style: dashed; } .ltile.off .lico { background: #e5e7eb; color: #9ca3af; } .ltile.off .ltxt b { color: var(--mute); } .ltile.off .ltxt small { color: var(--faint); }
.ltile-edit { position: absolute; top: 4px; right: 4px; border: 0; background: #fff; color: var(--faint); border-radius: 6px; padding: 3px; cursor: pointer; opacity: 0; transition: opacity .12s; }
.ltile:hover .ltile-edit, .ltile:focus-within .ltile-edit, .ltile.off .ltile-edit { opacity: 1; } .ltile-edit:hover { color: var(--accent); background: var(--accent-bg); }
.ltile.off .ltile-edit { position: static; margin-left: auto; color: var(--accent); }
a.ltile .ltile-edit { right: 30px; }
.lmore { display: flex; gap: 14px; margin-top: 8px; font-size: 13.5px; }
.jc-foot { margin-top: 12px; font-size: 13px; }
.why { font-size: 13px; color: var(--ink2); }
.drawer-body { padding: 16px 20px 80px; }
.sec { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; box-shadow: var(--shadow); }
.sec-h { width: 100%; display: flex; gap: 12px; align-items: center; background: none; border: 0; padding: 15px 18px; cursor: pointer; text-align: left; border-radius: var(--r); } .sec-h:hover { background: #fcfcfd; }
.sec-t { font-weight: 650; font-size: 15.5px; } .sec-s { margin-left: auto; color: var(--mute); font-size: 14px; text-align: right; } .sec-s.todo { color: var(--todo); } .sec-s.issue { color: var(--issue); font-weight: 500; }
.chev { color: var(--faint); width: 16px; font-size: 18px; text-align: center; }
.sec-b { padding: 4px 18px 18px; border-top: 1px solid var(--line2); }
.handoff { background: #fbfaf7; border: 1px solid #eee7d6; border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.trunc { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.feed { margin-top: 10px; } .tp { border-bottom: 1px solid var(--line2); padding: 10px 0; font-size: 14px; } .tp-h { color: var(--mute); font-size: 13px; } .tp-n { margin-top: 4px; color: var(--todo); display: flex; gap: 8px; align-items: center; } .tp-n.done { color: var(--mute); text-decoration: line-through; }
.diff { font-size: 13px; color: var(--ink2); margin: 4px 0; } .diff span { display: inline-block; min-width: 150px; color: var(--mute); } .diff del { color: var(--mute); } .diff ins { color: var(--ink); text-decoration: none; font-weight: 500; } .diff div { word-break: break-word; }
.calc { border-collapse: collapse; margin: 10px 0; min-width: 340px; } .calc td { padding: 4px 18px 4px 0; } .calc tr.strong td { font-weight: 700; border-top: 1px solid var(--line); }
.hold { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--line2); } .hold.released { opacity: .6; }
.rec { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; background: #fcfcfd; } .rec-o { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line2); } .dim { opacity: .55; }
.case.closed { opacity: .7; } .qr { width: 180px; }
.checklist { list-style: none; padding: 0; margin: 10px 0; } .checklist li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.ck { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c4c9d2; display: grid; place-items: center; flex: none; color: #fff; }
.checklist li.done .ck { background: var(--ok); border-color: var(--ok); } .checklist li.done .ck-l { color: var(--mute); } .checklist li.exception .ck { background: var(--issue); border-color: var(--issue); } .checklist li.na .ck { border-style: dashed; }
.ck-l { flex: 1; } .ck-s { padding: 4px 8px; font-size: 13.5px; }

/* overlay */
.overlay { position: fixed; inset: 0; background: rgba(17,24,39,.45); z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 12px; overflow: auto; }
.modal { background: #fff; border-radius: 14px; width: min(560px, 100%); box-shadow: 0 24px 64px rgba(0,0,0,.28); } .modal.wide { width: min(760px, 100%); } .modal header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 6px; } .modal header h3 { margin: 0; font-size: 18px; } .modal-body { padding: 10px 20px 20px; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #111827; color: #fff; padding: 11px 18px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 90vw; font-size: 14.5px; } .toast.err { background: var(--issue); }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: linear-gradient(180deg, #f6f7f9, #eef1f6); } .login-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 32px; width: min(400px, 100%); box-shadow: 0 16px 40px rgba(17,24,39,.08); } .login-card .fld { margin: 16px 0; } .login-card input { padding: 12px; font-size: 16px; }

/* api docs */
body.docs { background: #fff; } #docs { max-width: 960px; margin: 0 auto; padding: 24px; } #docs h2 { margin-top: 28px; border-bottom: 2px solid var(--line); padding-bottom: 4px; } .op { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 8px 0; } .op pre { background: #f6f7f9; padding: 10px; overflow: auto; font-size: 12px; }
.m { display: inline-block; min-width: 54px; text-align: center; font-weight: 700; font-size: 11px; color: #fff; border-radius: 4px; padding: 2px 6px; } .m.get { background: #15803d; } .m.post { background: #1f5fbf; } .m.put { background: #b45309; } .m.patch { background: #6d28d9; } .m.delete { background: #b42318; }

@media (max-width: 900px) {
  :root { font-size: 15px; }
  .side { position: fixed; left: -240px; z-index: 70; transition: left .15s; } .menu-open .side { left: 0; box-shadow: 8px 0 30px rgba(0,0,0,.3); }
  .burger { display: block; } .content { padding: 16px 14px 72px; } .top { padding: 10px 12px; }
  .cols2 { grid-template-columns: 1fr; } .cards4 { grid-template-columns: 1fr 1fr; } .cards3 { grid-template-columns: 1fr 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; } .tile b { font-size: 26px; }
  .stat-v { font-size: 21px; } .legend b { margin-left: 0; }
  .jc-head { padding: 16px 16px 14px; } .jc-name { font-size: 24px; } .jc-stats { gap: 10px; } .jc-stats b { font-size: 17px; }
  .ltiles { grid-template-columns: 1fr 1fr; } .ltile { padding: 8px 10px; min-height: 52px; } .lico { width: 26px; height: 26px; } .lext { display: none; }
  .drawer-body { padding: 12px 10px 80px; } .sec-h { flex-wrap: wrap; row-gap: 2px; } .sec-s { margin-left: 0; text-align: left; width: 100%; order: 3; font-size: 13.5px; } .chev { margin-left: auto; }
}

/* contact + contract/deposit indicators (job header) */
.jc-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.contact { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; color: var(--ink); background: #fff; }
a.contact:hover { border-color: #b6c7e3; text-decoration: none; background: var(--accent-bg); } .contact.off { color: var(--faint); border-style: dashed; }
.gate-ind { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; padding: 4px 10px; border-radius: 999px; }
.gate-ind.ok { color: var(--ok); background: var(--ok-bg); } .gate-ind.wait { color: var(--todo); background: var(--todo-bg); }
@media (max-width: 900px) { .contact { padding: 7px 12px; font-size: 14px; } }
.card.avail small { display: block; font-size: 13px; margin-top: 2px; }
