:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #1b1d22;
  --muted: #6b717c;
  --line: #e6e8ec;
  --accent: #2f6fed;
  --accent-ink: #ffffff;
  --side: #15171c;
  --side-ink: #c9ccd3;
  --ok: #1f9d55;
  --ok-bg: #e7f6ed;
  --warn: #b7791f;
  --warn-bg: #fff6e5;
  --bad: #c53030;
  --bad-bg: #fdecec;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Armenian", Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }
.muted { color: var(--muted); }
.small, small { font-size: 13px; }
.mt { margin-top: 20px; }
.right { text-align: right; }

/* layout */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex: none; background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column; padding: 20px 12px; position: sticky; top: 0; height: 100vh;
}
.sidebar a { color: var(--side-ink); display: block; padding: 7px 12px; border-radius: 7px; }
.sidebar a:hover { background: #23262d; text-decoration: none; color: #fff; }
.sidebar a.active { background: #2b2f38; color: #fff; font-weight: 600; }
.brand { font-size: 24px; font-weight: 800; color: #fff !important; letter-spacing: -0.03em; padding: 0 12px 16px !important; }
.brand span { color: var(--accent); }
.brand.big { font-size: 34px; color: var(--ink) !important; padding: 0 !important; }
.nav-group { border-top: 1px solid #262931; padding: 10px 0; }
.nav-foot { margin-top: auto; border-top: 1px solid #262931; padding-top: 10px; }
.me { padding: 10px 12px 0; display: flex; flex-direction: column; }
.me strong { color: #fff; font-size: 14px; }
.me small { color: #8a8f98; }
.me .linklike { color: #8a8f98; padding: 6px 0 0; text-align: left; }
.content { flex: 1; padding: 28px 36px 60px; max-width: 1180px; min-width: 0; }
.solo { max-width: 440px; margin: 10vh auto; padding: 0 16px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.two.wide-left { grid-template-columns: 2fr 1fr; }
.grid > .card { margin-bottom: 0; }
.grid { margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.card.narrow { max-width: 760px; }
.scroll-x { overflow-x: auto; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > label { flex: 1; min-width: 180px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* buttons & forms */
.btn {
  display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important;
}
.btn:hover { border-color: #c9cdd4; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.subtle { color: var(--bad); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.wide { width: 100%; text-align: center; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
form.inline { display: inline; }
.form label, .filters label, .login label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.form label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid #d5d8de; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55; }
label.check { flex-direction: row !important; align-items: center; font-weight: 400 !important; }
label.check input { width: auto; }
fieldset.types { border: 0; padding: 0; margin: 0 0 14px; }
fieldset.types legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.type-option { flex-direction: row !important; gap: 10px !important; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px !important; cursor: pointer; }
.type-option:has(input:checked) { border-color: var(--accent); background: #f3f7ff; }
.type-option input { width: auto; margin-top: 4px; }
.type-option span { display: flex; flex-direction: column; font-weight: 400; }
.type-option i { display: none; }
.type-option small { color: var(--muted); }
.count { font-weight: 600; color: var(--accent); min-height: 1.5em; margin: -4px 0 12px; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filters label { margin: 0; }
.filters input, .filters select { min-width: 140px; }
.decide { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.decide input { flex: 1; min-width: 200px; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.inactive td, tr.past td { color: var(--muted); }

/* bits */
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: #eef0f3; color: #4a4f58; white-space: nowrap; }
.pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.approved { background: var(--ok-bg); color: var(--ok); }
.pill.rejected { background: var(--bad-bg); color: var(--bad); }
.pill.cancelled { background: #f0f1f3; color: #8a8f98; text-decoration: line-through; }
.pill.as-button { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.tag i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.badge { display: inline-block; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; background: #eef3ff; border: 1px solid #d6e2ff; }
.flash.ok { background: var(--ok-bg); border-color: #c6ebd4; }
.flash.error { background: var(--bad-bg); border-color: #f5c8c8; }
.flash.warn { background: var(--warn-bg); border-color: #f3dfb5; }
.callout { display: block; padding: 10px 14px; border-radius: 8px; background: #f3f7ff; border: 1px solid #d6e2ff; margin: 0 0 16px; color: var(--ink); }
a.callout:hover { text-decoration: none; border-color: var(--accent); }
.callout.warn { background: var(--warn-bg); border-color: #f3dfb5; }
.note { font-size: 13px; color: var(--muted); }
ul.plain, ul.links, ul.notes { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 7px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }
ul.links li { padding: 3px 0; }
dl.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 14px 0 0; }
dl.kv.wide { grid-template-columns: 180px 1fr; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.used, .meter .used { background: var(--accent); }
.dot.pend, .meter .pend { background: #9dbaf7; }
.balance .big { font-size: 15px; color: var(--muted); }
.balance .big span { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin-right: 4px; }
.balance .sub { color: var(--muted); font-size: 13px; margin-top: -4px; }
.meter { display: flex; height: 8px; border-radius: 99px; background: #edf0f4; overflow: hidden; margin-top: 14px; }
.meter i { display: block; height: 100%; }
.big-num { font-size: 32px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; }
.big-num small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.side-stat { text-align: right; flex: none; }
.side-stat span { display: block; font-size: 26px; font-weight: 800; }
.side-stat small { color: var(--muted); }
.approval h2 { font-size: 18px; margin-bottom: 4px; }
.approval p { margin: 2px 0; }
.approval .callout { margin: 12px 0 0; }

/* login */
.login { padding: 32px; }
.login p { margin: 6px 0 22px; }
.login .note { margin: 16px 0 0; }

/* notifications */
ul.notes li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.notes li.unread a { font-weight: 600; }
ul.notes li.unread::before { content: ""; }

/* calendar */
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.hatched { background: repeating-linear-gradient(45deg, #9aa0aa 0 3px, transparent 3px 6px); border: 1px solid #9aa0aa; }
.holiday-sw { background: #eceef2; }
table.cal { border-collapse: separate; border-spacing: 0; font-size: 12px; }
table.cal th, table.cal td { padding: 0; border-bottom: 1px solid #f0f1f4; text-align: center; min-width: 26px; height: 28px; }
table.cal th { font-size: 11px; line-height: 1.2; padding: 4px 0; text-transform: none; letter-spacing: 0; }
table.cal th.is-today { color: var(--accent); font-weight: 800; }
table.cal .who { text-align: left; white-space: nowrap; padding: 0 12px 0 0; min-width: 170px; position: sticky; left: 0; background: #fff; font-size: 13px; }
table.cal td.off, table.cal th.off { background: #f3f4f7; }
table.cal tr.group td { text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 0 4px; background: #fff; }
.blk { display: block; height: 18px; margin: 0 1px; border-radius: 3px; background: var(--c); }
.blk.pending { background: repeating-linear-gradient(45deg, var(--c) 0 3px, transparent 3px 6px); border: 1px solid var(--c); }

/* handbook */
.handbook { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.toc { position: sticky; top: 20px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li a { display: inline-block; padding: 3px 0; color: var(--ink); }
.toc li a.active { color: var(--accent); font-weight: 600; }
.toc .search input { margin-bottom: 4px; }
.review-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e0a43a; vertical-align: 2px; }
.prose { max-width: 820px; padding: 26px 34px; }
.prose h1 { margin: 10px 0 16px; }
.prose h2 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { line-height: 1.65; }
.prose blockquote { margin: 0 0 18px; padding: 10px 14px; background: var(--warn-bg); border-left: 3px solid #e0a43a; border-radius: 6px; }
.prose blockquote p { margin: 0; }
.prose table { margin: 10px 0 18px; }
.prose em { color: #5b616b; }
.result { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* dashboard */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi span { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }
.kpi.alert { border-color: #f3c27a; background: var(--warn-bg); }
ul.att { list-style: none; padding: 0; margin: 0; }
ul.att li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t a" "s a"; gap: 2px 16px; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--line); border-left: 3px solid #9dbaf7; margin-bottom: 4px; }
ul.att li.warn { border-left-color: #e0a43a; }
ul.att li.ok { border-left-color: var(--ok); display: block; }
ul.att li strong { grid-area: t; }
ul.att li span { grid-area: s; color: var(--muted); font-size: 14px; }
ul.att li a { grid-area: a; align-self: center; white-space: nowrap; }
.placeholder { border-style: dashed; background: #fbfbfc; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.ph { border: 1px dashed #d5d8de; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-height: 84px; }
.ph small { color: var(--muted); }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: auto; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; padding: 10px 16px; }
  .sidebar .brand { padding: 0 8px 0 0 !important; }
  .nav-group, .nav-foot { border: 0; padding: 0; display: flex; flex-wrap: wrap; margin: 0; }
  .me { padding: 0 12px; }
  .me strong, .me small { display: none; }
  .me .linklike { padding: 7px 0; }
  .content { padding: 20px 16px 48px; }
  .grid.two, .grid.two.wide-left, .handbook { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .ph-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .prose { padding: 20px; }
  dl.kv.wide { grid-template-columns: 1fr; }
}

/* version 2 */
.nav-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6f747d; padding: 4px 12px 2px; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.mt-s { margin-top: 8px; }
.row-start { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-start input[type=file] { width: auto; flex: 1; min-width: 180px; }
.grid.three { grid-template-columns: 1fr 1fr 1fr; }
.crumbs { margin: 2px 0 0; color: var(--muted); }
.inline-label { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.inline-label input { width: 140px; }
.inline-filters { margin-bottom: 12px; }
.search-row { margin: 0 0 18px; max-width: 460px; }
pre.msg { white-space: pre-wrap; font: inherit; font-size: 14px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0 0; }
details summary { cursor: pointer; }
.pill.paid { background: #e8f1ff; color: #2456b8; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }

.avatar { --h: 210; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: hsl(var(--h) 60% 92%); color: hsl(var(--h) 45% 32%); font-weight: 700; font-size: 14px; }
.avatar.big { width: 64px; height: 64px; font-size: 22px; }
.profile-head h1 { margin: 0; }

.dept-block { margin-bottom: 22px; }
.dept-block h2 small { font-weight: 400; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.person-card { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); }
.person-card:hover { border-color: var(--accent); text-decoration: none; }
.person-card.inactive { opacity: .6; }
.pc-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.pc-bal { flex: none; text-align: right; display: flex; flex-direction: column; line-height: 1.1; }
.pc-bal b { font-size: 20px; }
.pc-bal small { color: var(--muted); font-size: 11px; }

.kpis.six { grid-template-columns: repeat(6, 1fr); }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.kpis.six .kpi span { font-size: 22px; }
.meter.thin { height: 5px; margin-top: 5px; }
.meter.near .used { background: #e0a43a; }
.meter.over .used { background: var(--bad); }
ul.att li.act { border-left-color: var(--accent); }
ul.att li.warn { border-left-color: #e0a43a; }
ul.att li.info { border-left-color: #c9cdd4; }
.legend-line { margin: 10px 0 0; display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; }
.lv { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: -8px; }
.lv.act { background: var(--accent); }
.lv.warn { background: #e0a43a; }
.lv.info { background: #c9cdd4; }

ul.docs { list-style: none; padding: 0; margin: 0; }
ul.docs li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.docs li:last-child { border-bottom: 0; }
.file-ico { flex: none; width: 44px; height: 44px; border-radius: 8px; background: #eef2fb; color: #3b5ba9; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.report-grid .card { margin: 0; display: flex; flex-direction: column; }
.report-grid .card .btn { margin-top: auto; align-self: flex-start; }
.report-grid .card label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }

.budget-box { background: #f3f7ff; border: 1px solid #d6e2ff; border-radius: 8px; padding: 12px 14px; margin: 4px 0 16px; }
.budget-box:empty { display: none; }
.limits { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; }
tr.total td { border-top: 2px solid var(--line); }

@media (max-width: 900px) {
  .grid.three, .kpis.three { grid-template-columns: 1fr; }
  .kpis.six { grid-template-columns: repeat(2, 1fr); }
  .nav-label { display: none; }
}
@media print {
  .sidebar, .no-print, .flash { display: none !important; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; font-size: 12px; }
  .card, .kpi { break-inside: avoid; }
}
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.three dl.kv.wide { grid-template-columns: minmax(90px, 40%) minmax(0, 1fr); }
.grid.three dl.kv.wide dd { overflow-wrap: anywhere; }
.sidebar { overflow-y: auto; }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr; } }
td.num { white-space: nowrap; }
fieldset.crew-pick { flex: 1; min-width: 240px; border: 0; padding: 0; margin: 0 0 14px; }
fieldset.crew-pick legend { font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.crew-list { max-height: 210px; overflow-y: auto; border: 1px solid #d5d8de; border-radius: 8px; padding: 6px 10px; }
.crew-list label.check { margin: 0; padding: 3px 0; gap: 8px; display: block; font-size: 14px; }
.crew-list label.check input { margin-right: 6px; }
.budget-box strong { font-size: 17px; }

/* version 3 */
.search-bar { align-items: flex-start; margin-bottom: 18px; }
.search-bar .search-row { margin: 0; flex: 1; }
.seg { display: inline-flex; border: 1px solid #d5d8de; border-radius: 8px; overflow: hidden; background: #fff; flex: none; }
.seg a, .seg button { padding: 7px 14px; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; border: 0; background: none; cursor: pointer; }
.seg a + a, .seg button + button { border-left: 1px solid #d5d8de; }
.seg a:hover, .seg button:hover { color: var(--ink); text-decoration: none; }
.seg a.on, .seg button.on { background: #eef3ff; color: var(--accent); }
.avatar.small { width: 30px; height: 30px; font-size: 11px; }
table.people-table td { vertical-align: middle; }
table.people-table a.row-start { gap: 10px; color: var(--ink); flex-wrap: nowrap; }
button.sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
button.sort::after { content: " ↕"; opacity: .4; }
th[aria-sort=ascending] button.sort::after { content: " ↑"; opacity: 1; }
th[aria-sort=descending] button.sort::after { content: " ↓"; opacity: 1; }
.chart { width: 100%; min-height: 120px; }
.chart svg { display: block; overflow: visible; font-family: inherit; }
.chart-head { flex-wrap: wrap; margin-bottom: 6px; }
.chart-head h2 { margin: 0; }
.chart-legend { margin: 6px 0 8px; gap: 6px; }
.legend-btn { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 3px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.legend-btn.off { opacity: .45; text-decoration: line-through; }
.table-view { margin-top: 10px; }
.table-view summary { color: var(--accent); font-size: 14px; }
.table-view table { margin-top: 8px; font-size: 13px; }
.chart-tip { position: absolute; z-index: 20; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(20, 24, 31, .12); padding: 8px 10px; font-size: 13px; min-width: 160px; max-width: 280px; color: var(--ink); }
.chart-tip .row { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.chart-tip .row b { margin-left: auto; font-variant-numeric: tabular-nums; }
.chart-tip .row.tot { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 5px; }
.chart-tip .muted { font-size: 12px; margin-top: 2px; }
.chart-tip .sw, .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.grid.flat { margin-bottom: 0; align-items: center; }
.person-link { color: var(--ink); gap: 10px; flex-wrap: nowrap; }

.rating { display: inline-block; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #eef0f3; color: #4a4f58; white-space: nowrap; }
.rating.r4, .rating.r5 { background: var(--ok-bg); color: var(--ok); }
.rating.r1, .rating.r2 { background: var(--warn-bg); color: var(--warn); }
.big-rating { text-align: right; }
.big-rating span { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.big-rating small { display: block; color: var(--muted); }
.big-rating.r4 span, .big-rating.r5 span { color: var(--ok); }
fieldset.score { border: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; margin: 0 0 12px; }
fieldset.score legend { padding: 0; margin-bottom: 8px; font-size: 14px; }
fieldset.score legend small { display: block; font-weight: 400; }
.score-row { display: flex; gap: 6px; flex-wrap: wrap; }
.score-opt { margin: 0 !important; flex-direction: row !important; }
.score-opt input { position: absolute; opacity: 0; width: 1px; }
.score-opt span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 36px; padding: 0 10px; border: 1px solid #d5d8de; border-radius: 8px; font-weight: 600; cursor: pointer; background: #fff; }
.score-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.score-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.score-opt.wide span { font-weight: 500; font-size: 13px; }
.dots-scale { display: inline-flex; align-items: center; gap: 4px; }
.dots-scale i { width: 10px; height: 10px; border-radius: 50%; background: #e3e6ea; }
.dots-scale i.on { background: var(--accent); }
.dots-scale b { margin-left: 6px; min-width: 12px; }
p.pre { white-space: pre-wrap; margin: 0 0 10px; }
td.overdue { color: var(--bad); font-weight: 600; }
.reminders-list li { align-items: center; }
.rem-row { flex-wrap: nowrap; align-items: center; }
.when { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: #f3f5f8; line-height: 1.1; flex: none; }
.when b { font-size: 16px; }
.when small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
ul.plain li.past { opacity: .6; }
@media (max-width: 900px) { .search-bar { flex-direction: column; align-items: stretch; } .chart-head .btns { width: 100%; } }
table.people-table th { white-space: nowrap; }
.contact-cell { max-width: 210px; }
.contact-cell a { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* version 4: meetings from Google Calendar */
.agenda-day { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b717c); margin: 14px 0 4px; }
.agenda-day:first-of-type { margin-top: 4px; }
.agenda-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line, #e6e8ec); }
.agenda-list li:first-child { border-top: 0; }
.agenda-list li.past { opacity: .55; }
.agenda-time { flex: 0 0 52px; font-variant-numeric: tabular-nums; font-weight: 600; }
.agenda-time small { display: block; font-weight: 400; color: var(--muted, #6b717c); }
.agenda-what { flex: 1; min-width: 0; }
.agenda-what .pill { margin-left: 4px; font-size: 11px; }
.warn-text { color: #a15c00; }
ol.steps { padding-left: 20px; margin: 0 0 10px; } ol.steps li { margin: 4px 0; }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.flat .kpi { box-shadow: none; }
.pipeline-strip { display: flex; gap: 6px; margin: 14px 0 6px; overflow-x: auto; }
.pipe-step { flex: 1 0 92px; background: var(--bg, #f5f6f8); border-radius: 8px; padding: 8px 10px; color: inherit; text-decoration: none; }
.pipe-step:hover { outline: 1px solid var(--accent, #2f6fed); }
.pipe-step b { display: block; font-size: 20px; }
.pipe-step small { color: var(--muted); }
@media (max-width: 700px) { .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.att-more summary { cursor: pointer; color: var(--accent, #2f6fed); font-weight: 600; margin: 8px 0; }
@media print { .att-more { display: block; } .att-more summary { display: none; } }
