/* Kohtaamo demo (Skillkraft). Light and calm: warm paper, white cards, one lake-blue accent, amber for "example" notes.
   No city colours, logos or branding. No inline styles anywhere (strict CSP on Labs): sizes go through the CSSOM. */
:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #fafaf7;
  --hover: #eef3f4;
  --ink: #17222a;
  --ink-2: #33424b;
  --muted: #55636b;
  --line: #e3e5e0;
  --line-2: #cbd3d4;
  --accent: #14607a;
  --accent-2: #0e4a5e;
  --accent-soft: #e2eff3;
  --accent-mid: #7fb0c0;
  --warm: #9a4a14;
  --warm-soft: #fbeee2;
  --ok: #1b6642;
  --ok-soft: #e4f2e9;
  --warn: #7f4510;
  --warn-soft: #fcf1df;
  --warn-line: #ecd3ab;
  --bad: #9e3419;
  --banner-bg: #1d2a30;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 34, 42, 0.05), 0 6px 20px rgba(23, 34, 42, 0.05);
}
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/instrument-sans-var-latin.woff2") format("woff2"); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; font-weight: 650; margin: 0; }
p { margin: 0 0 10px; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { top: 8px; }
.noscript { padding: 24px; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.warn-t { color: var(--warn); }
.ok-t { color: var(--ok); }

/* ---------- honesty banner (always visible) ---------- */
.demo-banner { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 16px; background: var(--banner-bg); color: #f3f6f6; font-size: 14px; line-height: 1.35; text-align: center; }
.demo-banner b { font-weight: 650; }
.demo-tag { flex: none; padding: 1px 8px; border-radius: 999px; background: #f2d9a6; color: #3a2606; font-size: 12px; font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase; }
.banner-fiction { color: #c9d4d6; }

/* ---------- header ---------- */
.top { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar1 { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1240px; margin: 0 auto; padding: 10px 24px 6px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; color: var(--ink); text-decoration: none; }
.bar1 > .tools { margin-left: auto; }
.mark { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.mark-ic { width: 22px; height: 22px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-t b { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; }
.brand-sub { font-size: 13px; color: var(--muted); }
.quick { display: flex; align-items: center; gap: 8px; }
.account { display: flex; align-items: center; gap: 8px; }
.who { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); padding: 3px 8px 3px 3px; border-radius: 999px; }
.who:hover { background: var(--hover); color: var(--ink); }
.who-t { display: flex; flex-direction: column; line-height: 1.2; }
.who-t b { font-size: 14px; }
.who-t span { font-size: 12px; color: var(--muted); max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.avatar-anon { background: #eceee9; color: var(--muted); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--hover); }
.menu-btn { display: none; width: auto; padding: 0 12px; grid-auto-flow: column; gap: 6px; border-color: var(--line-2); font-weight: 600; font-size: 14px; }
.badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--warm); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.panel { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; max-width: 1240px; margin: 0 auto; padding: 0 24px 8px; flex-wrap: wrap; }
.tools .tool-login { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav-a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 15px; }
.nav-a .ic { width: 17px; height: 17px; color: var(--muted); }
.nav-a:hover { background: var(--hover); color: var(--ink); }
.nav-a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-2); font-weight: 650; }
.nav-a[aria-current="page"] .ic { color: var(--accent); }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool { display: flex; align-items: center; gap: 6px; }
.tools-lbl { font-size: 13px; color: var(--muted); }
.select-sm { border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); padding: 6px 8px; font-size: 14px; max-width: 240px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: #eceee8; border-radius: 10px; }
.seg-btn { border: 0; background: transparent; padding: 5px 11px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--accent-2); box-shadow: 0 1px 3px rgba(23, 34, 42, 0.15); }
.toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); padding: 5px 11px 5px 6px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.toggle-k { width: 30px; height: 18px; border-radius: 999px; background: #d5dad8; position: relative; transition: background 0.15s; }
.toggle-k::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.toggle[aria-pressed="true"] { border-color: var(--accent-mid); color: var(--accent-2); }
.toggle[aria-pressed="true"] .toggle-k { background: var(--accent); }
.toggle[aria-pressed="true"] .toggle-k::after { transform: translateX(12px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 10px 18px; font-size: 15px; font-weight: 600; border: 1px solid transparent; line-height: 1.25; text-decoration: none; text-align: left; }
.btn .ic { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--hover); color: var(--ink); }
.btn-sm { padding: 7px 13px; font-size: 14px; }
.btn-lg { padding: 12px 20px; font-size: 16px; }
.btn-small { padding: 7px 12px; font-size: 14px; background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-small:hover { background: var(--hover); }
.btn-danger { color: var(--bad); border-color: #e3bfb3; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 4px; }

/* ---------- page layout ---------- */
main { outline: none; }
.view { max-width: 1240px; margin: 0 auto; padding: 26px 24px 48px; }
.page-head { margin-bottom: 20px; }
.page-head .actions { margin-top: 12px; }
.title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; outline: none; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 760px; margin-bottom: 6px; }
.h2 { font-size: 21px; margin-bottom: 12px; font-weight: 650; }
.h3 { font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; font-weight: 650; }
.h3 .ic { color: var(--accent); }
.section { margin-top: 34px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; }
.two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.card + .card { margin-top: 16px; }
.grid-2 > .card, .grid-3 > .card, .grid-2 > figure.card { margin-top: 0; }
.card-staff { border-color: #c5dce4; background: #f6fafb; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; margin-bottom: 14px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.detail-main { min-width: 0; }
.detail-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-side .card + .card { margin-top: 0; }
.rem-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.rem-grid .fs { display: flex; flex-wrap: wrap; gap: 0 16px; }
.rem-grid .fs legend { width: 100%; }
.body-l { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
.empty { padding: 24px; text-align: center; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-soft); border: 1px solid var(--warn-line); color: #4a2b08; border-radius: 12px; padding: 10px 14px; font-size: 15px; margin: 12px 0; }
.notice .ic { margin-top: 3px; }
.notice p { margin: 0; }
.notice-ok { background: var(--ok-soft); border-color: #b9dcc6; color: #123f29; }
.ticks { list-style: none; padding: 0; margin: 0 0 12px; }
.ticks li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plain-list { margin: 0 0 12px; padding-left: 22px; }
.facts { display: grid; gap: 10px; margin: 6px 0 16px; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.facts dt { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 600; }
.facts dd { margin: 0; }
.facts-wide div { grid-template-columns: 190px 1fr; padding: 10px 0; border-top: 1px solid var(--line); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: #eef0ec; color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; }
.chip-soft { background: var(--accent-soft); color: var(--accent-2); }
.chip-open { background: #e6f2ea; color: #1d5a3a; }
.chip-new { background: var(--warm-soft); color: var(--warm); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-wait { background: var(--warn-soft); color: var(--warn); }
.st-demo { background: var(--ok-soft); color: var(--ok); }
.st-std { background: var(--accent-soft); color: var(--accent-2); }
.st-plan { background: var(--warn-soft); color: var(--warn); }
.st-partner { background: #efe9f6; color: #573a7f; }
.vis-public { background: #e6f2ea; color: #1d5a3a; }
.vis-members { background: var(--accent-soft); color: var(--accent-2); }
.vis-staff { background: #efe9f6; color: #573a7f; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }

/* forms */
.field { margin-bottom: 14px; }
.lbl { display: block; font-weight: 600; font-size: 15px; margin-bottom: 5px; }
.req { color: var(--bad); }
.hint { font-size: 14px; color: var(--muted); margin: -2px 0 6px; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; margin: 5px 0 0; }
.input { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 9px 12px; font-size: 16px; }
.input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.input[aria-invalid="true"], .has-err .input { border-color: var(--bad); background: #fff8f6; }
.input-sm { width: auto; padding: 6px 10px; font-size: 14px; }
textarea.input { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.check-locked { color: var(--muted); cursor: default; }
.fs { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 8px; margin: 0 0 14px; min-width: 0; }
.fs legend { font-weight: 650; font-size: 15px; padding: 0 4px; }
.fs-inline { display: flex; flex-wrap: wrap; gap: 0 18px; }
.fs-big { border: 0; padding: 0; margin: 0; min-width: 0; }
.fs-big legend { padding: 0; }
.inline-field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row { display: flex; gap: 8px; }
.row .input { flex: 1; min-width: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.filters-lbl { font-size: 14px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip-btn { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chip-btn:hover { background: var(--hover); }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.search { position: relative; min-width: 240px; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 36px; }
.api-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--muted); }
.api-line > .ic { color: var(--accent); }

/* bars */
.bar { display: block; height: 8px; border-radius: 999px; background: #e7ebe8; overflow: hidden; min-width: 80px; }
.bar-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.3s ease; }
.bar-lg { height: 12px; flex: 1; }
.seats { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 18px 0 8px; }
.hero-h { font-size: 44px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 14px; outline: none; max-width: 15ch; }
.hero-lead { font-size: 19px; color: var(--ink-2); max-width: 58ch; }
.hero .actions { margin-bottom: 14px; }
.hero-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(160deg, #e7f2f5 0%, #ffffff 70%); border: 1px solid #cfe2e8; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.hero-card:hover { border-color: var(--accent-mid); color: var(--ink); }
.hc-k { font-size: 13px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.hc-date { color: var(--ink-2); }
.hc-title { font-size: 21px; font-weight: 650; line-height: 1.3; }
.hc-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.hc-go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; margin-top: 4px; }
.aud { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.aud:hover { border-color: var(--accent-mid); color: var(--ink); }
.aud b { font-size: 17px; }
.aud span:last-child { color: var(--ink-2); font-size: 15px; }
.aud-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ev-list, .ev-grid, .news, .mat-list, .match-list, .inbox, .tour, .notes, .thread-list, .kpis, .stat-row, .hbars, .outline-steps, .jobs { list-style: none; margin: 0; padding: 0; }
.ev-list { display: flex; flex-direction: column; gap: 10px; }
.ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.news { display: flex; flex-direction: column; gap: 10px; }
.news-i { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.news-i p:last-child { margin: 0; color: var(--ink-2); }
.news-i .small { margin-bottom: 2px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.tile > .ic:first-child { color: var(--accent); width: 22px; height: 22px; }
.tile span { flex: 1; }
.tile-go { color: var(--muted); }
.tile:hover { border-color: var(--accent-mid); color: var(--ink); }
.stats { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-row li { display: flex; flex-direction: column; }
.stat-row b { font-size: 28px; font-weight: 700; color: var(--accent-2); letter-spacing: -0.02em; }
.stat-row span { color: var(--muted); font-size: 14px; }

/* ---------- events ---------- */
.ev-card { display: flex; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; height: 100%; }
.ev-card:hover { border-color: var(--accent-mid); color: var(--ink); }
.ev-card.is-reg { border-color: #b9dcc6; }
.ev-date { width: 54px; flex: none; border-radius: 11px; background: var(--accent-soft); color: var(--accent-2); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0; align-self: flex-start; }
.ev-date b { font-size: 22px; line-height: 1.1; }
.ev-date span { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.03em; }
.ev-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-title { font-weight: 650; font-size: 16px; line-height: 1.35; }
.ev-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.ev-meta .ic { width: 15px; height: 15px; }
.cal { margin-top: 4px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cal-title { margin: 0; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { font-size: 13px; font-weight: 650; color: var(--muted); text-align: center; padding: 4px 0; text-transform: capitalize; }
.cal-cell { min-height: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 5px 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-empty { background: transparent; border-color: transparent; }
.cal-cell.is-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-d { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.cal-ev { display: block; font-size: 12px; line-height: 1.3; padding: 3px 5px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-2); text-decoration: none; font-weight: 600; overflow: hidden; }
.cal-ev:hover { background: #cfe5ec; }
.cal-ev-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-list-h { margin-top: 22px; text-transform: capitalize; }

/* ---------- companies ---------- */
.co-card { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; height: 100%; flex-wrap: wrap; }
.co-card:hover { border-color: var(--accent-mid); color: var(--ink); }
.co-logo { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: none; letter-spacing: 0.02em; }
.co-logo-lg { width: 64px; height: 64px; font-size: 21px; border-radius: 16px; }
.co-employer { background: #e2eff3; color: #0e4a5e; }
.co-provider { background: #e6f2ea; color: #1d5a3a; }
.co-supplier { background: #fbeee2; color: #7a3a0f; }
.co-school { background: #efe9f6; color: #573a7f; }
.co-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.co-name { font-weight: 650; font-size: 16px; }
.co-tag { color: var(--ink-2); font-size: 14px; }
.co-jobs { width: 100%; font-size: 14px; font-weight: 600; color: var(--accent); padding-left: 62px; }
.co-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 10px; }
.co-head .title { margin-bottom: 2px; }
.jobs li { padding: 8px 0; border-top: 1px solid var(--line); }
.preview { display: flex; flex-direction: column; }

/* ---------- materials ---------- */
.mat-list { display: flex; flex-direction: column; gap: 8px; }
.mat { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mat-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.mat-body { flex: 1; min-width: 0; }
.mat-title { font-weight: 650; margin: 0 0 2px; }
.mat-body .small { margin: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 650; }
.table tbody th { font-weight: 600; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table-perms td { text-align: center; }
.table-perms input { width: 19px; height: 19px; accent-color: var(--accent); }
.lvl-req { border-color: var(--accent-mid); background: var(--accent-soft); font-weight: 600; }
.lvl-off { color: var(--muted); background: var(--surface-2); }
.tour { counter-reset: tour; display: flex; flex-direction: column; gap: 6px; }
.tour li { counter-increment: tour; display: flex; gap: 10px; align-items: baseline; }
.tour li::before { content: counter(tour); width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); font-size: 13px; font-weight: 700; display: grid; place-items: center; flex: none; }

/* ---------- code ---------- */
.code { font-family: var(--mono); font-size: 13px; line-height: 1.5; background: #17222a; color: #e6eef0; border-radius: 10px; padding: 12px 14px; overflow: auto; margin: 10px 0 0; max-height: 360px; white-space: pre; }
.code-out { min-height: 64px; }

/* ---------- sign-up ---------- */
.stepper { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.stepper li.now { border-color: var(--accent); color: var(--accent-2); }
.stepper li.done { color: var(--ok); }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: #eceee9; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.step-n .ic { width: 15px; height: 15px; }
.stepper li.now .step-n { background: var(--accent); color: #fff; }
.stepper li.done .step-n { background: var(--ok); color: #fff; }
.join-card { max-width: 860px; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.radio-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); cursor: pointer; }
.radio-card:hover { border-color: var(--accent-mid); }
.radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.rc-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.radio-card:has(input:checked) .rc-ic { background: var(--accent); color: #fff; }
.rc-t { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.rc-t span { color: var(--ink-2); font-size: 15px; }
.form-grid { gap: 0 18px; margin-top: 8px; }
.consents { margin: 6px 0 4px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.err-summary { border: 2px solid var(--bad); background: #fff6f3; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; outline: none; }
.err-summary ul { margin: 4px 0 0; padding-left: 20px; }
.err-summary a { color: var(--bad); font-weight: 600; }
.done { text-align: left; }
.done-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin-bottom: 12px; }
.done-ic .ic { width: 28px; height: 28px; }

/* ---------- profile ---------- */
.meter-row { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.badge-line { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; }

/* ---------- matching ---------- */
.match-list { display: flex; flex-direction: column; gap: 12px; }
.match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.match { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.match .actions { margin: 10px 0 0; }
.match-top { display: flex; align-items: center; gap: 12px; }
.match-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.score { flex: none; padding: 4px 10px; border-radius: 999px; background: #eef0ec; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.score-hi { background: var(--ok-soft); color: var(--ok); }
.why { margin-top: 10px; }
.why summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: 15px; }
.why[open] summary { margin-bottom: 6px; }
.path { border-color: #c5dce4; background: linear-gradient(180deg, #f3f9fb, #ffffff 60%); }
.ai-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #efe9f6; color: #573a7f; font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.ai-tag .ic { width: 15px; height: 15px; }
.path-goal { font-weight: 650; }
.path-steps { list-style: none; padding: 0; margin: 0 0 6px; counter-reset: ps; }
.path-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.path-steps li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ps-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }

/* ---------- messages ---------- */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.subnav-a { padding: 9px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subnav-a:hover { color: var(--ink); background: var(--hover); border-radius: 8px 8px 0 0; }
.subnav-a[aria-current="page"] { color: var(--accent-2); border-bottom-color: var(--accent); }
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 460px; }
.chat-list { border-right: 1px solid var(--line); background: var(--surface-2); }
.thread-a { display: flex; gap: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.thread-a:hover { background: var(--hover); color: var(--ink); }
.thread-a[aria-current="true"] { background: var(--accent-soft); }
.thread-t { display: flex; flex-direction: column; min-width: 0; }
.thread-t .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; min-width: 0; }
.thread-head { padding: 14px 18px 8px; border-bottom: 1px solid var(--line); }
.thread-head .small { display: flex; align-items: center; gap: 6px; margin: 0; }
.thread-head .small .ic { width: 14px; height: 14px; }
.thread-back { display: none; }
.bubbles { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; max-height: 420px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 14px; background: #eef1ee; align-self: flex-start; }
.bubble p { margin: 0; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; }
.b-time { display: block; font-size: 12px; opacity: 0.75; margin-top: 2px; }
.composer { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer .input { flex: 1; min-width: 0; }
.inbox { display: flex; flex-direction: column; gap: 12px; }
.inbox-i { margin: 0; }
.hidden-to { display: flex; align-items: center; gap: 6px; color: var(--accent-2); }
.hidden-to .ic { width: 15px; height: 15px; }
.count { display: flex; align-items: center; gap: 8px; font-size: 18px; color: var(--accent-2); background: var(--accent-soft); padding: 10px 14px; border-radius: 12px; margin: 0 0 10px; }
.hidden-box { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--accent-mid); background: #f3f9fb; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; color: var(--accent-2); }
.hidden-box p { margin: 0; }
.hidden-box .ic { margin-top: 2px; }
.mail-prev { font-size: 15px; }
.mail-prev hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0 8px; }

/* ---------- learning ---------- */
.course-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; max-width: 980px; }
.course-art { border-radius: 14px; background: linear-gradient(150deg, #d8ebf1, #f4efe2); display: grid; place-items: center; min-height: 180px; color: var(--accent); }
.course-ic { width: 64px; height: 64px; stroke-width: 1.5; }
.course-body .bar { max-width: 360px; margin-top: 6px; }
.course-body .small { margin-top: 4px; }
.learn { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.outline .bar { margin: 6px 0 4px; }
.outline-steps { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.os { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.os:hover { background: var(--hover); color: var(--ink); }
.os[aria-current="step"] { background: var(--accent-soft); color: var(--ink); font-weight: 650; }
.os-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e9ece7; font-size: 13px; font-weight: 700; flex: none; }
.os-n .ic { width: 15px; height: 15px; }
.os-done .os-n { background: var(--accent); color: #fff; }
.lesson { padding: 28px 32px; max-width: 800px; }
.pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.q { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; }
.q-l { font-weight: 650; padding: 0 4px; }
.q.q-ok { border-color: #9fcfb1; background: #f5fbf7; }
.q.q-bad { border-color: #e3bfb3; background: #fff8f6; }

/* ---------- reports ---------- */
.kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi-v { font-size: 26px; font-weight: 700; color: var(--accent-2); letter-spacing: -0.02em; }
.kpi-l { font-size: 13px; color: var(--muted); line-height: 1.3; }
.chart { margin: 0; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 46px; align-items: center; gap: 10px; font-size: 14px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 12px; background: #e7ebe8; border-radius: 999px; overflow: hidden; }
.hb-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.hb-v { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.vbars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 190px; }
.vb { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.vb-v { font-size: 13px; font-weight: 650; }
.vb-col { flex: 1; width: 100%; max-width: 34px; display: flex; align-items: flex-end; }
.vb-fill { display: block; width: 100%; background: var(--accent); border-radius: 6px 6px 2px 2px; }
.vb-l { font-size: 12px; color: var(--muted); }
.pbi { border-color: #c5dce4; }

/* ---------- integrations ---------- */
.int { display: flex; flex-direction: column; margin: 0; }
.ints .card + .card { margin-top: 0; }
.int-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.int-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.int p { margin: 0; color: var(--ink-2); }

/* ---------- gate, dialogs, toast ---------- */
.gate { max-width: 640px; }
.gate-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 10px; }
.dlg { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(23, 34, 42, 0.25); color: var(--ink); background: var(--surface); }
.dlg-wide { width: min(820px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(23, 34, 42, 0.45); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.dlg-title { font-size: 19px; }
.dlg-body { padding: 16px 22px 22px; }
.persona-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 16px; }
.persona { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); text-align: left; }
.persona:hover { border-color: var(--accent); background: var(--accent-soft); }
.persona > span:last-child { display: flex; flex-direction: column; }
.login-email { border-top: 1px solid var(--line); padding-top: 12px; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.note p { margin: 0; }
.note-new { background: var(--accent-soft); border-color: #c5dce4; }
.note > .ic { color: var(--accent); margin-top: 3px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 80; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 20px 24px 28px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 0; }
.foot-mark { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1179px) {
  .menu-btn { display: inline-grid; }
  .panel { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(23, 34, 42, 0.12); padding: 10px 16px 16px; flex-direction: column; align-items: stretch; }
  .panel.open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-a { display: flex; padding: 11px 12px; font-size: 16px; }
  .tools { padding-top: 10px; border-top: 1px solid var(--line); }
  .tool-viewas { flex-wrap: wrap; }
  .who-t span { display: none; }
}
@media (max-width: 980px) {
  .who-t { display: none; }
  .two-col, .detail, .hero, .learn { grid-template-columns: minmax(0, 1fr); }
  .hero-h { font-size: 36px; }
  .match-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .bar1 { padding: 8px 16px 8px; }
  .view { padding: 18px 16px 40px; }
  .foot-in { padding: 18px 16px 24px; }
  .demo-banner { font-size: 13px; padding: 6px 12px; text-align: left; }
  .banner-fiction { display: none; }
  .brand-sub { display: none; }
  .menu-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu-btn { width: 40px; padding: 0; }
  .account .btn-ghost { display: none; }
  .panel .tools .tool-login { display: inline-flex; }
  .title { font-size: 25px; }
  .lead { font-size: 17px; }
  .hero-h { font-size: 31px; }
  .hero-lead { font-size: 17px; }
  .grid-2, .grid-3, .grid-4, .ev-grid, .radio-cards { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 16px; }
  .lesson { padding: 20px 18px; }
  .course-card { grid-template-columns: minmax(0, 1fr); }
  .course-art { min-height: 110px; }
  .facts div, .facts-wide div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .search { min-width: 0; width: 100%; }
  .filters { align-items: stretch; }
  .mat { flex-wrap: wrap; }
  .mat-body { flex-basis: calc(100% - 60px); }
  .co-jobs { padding-left: 0; }
  .cal-cell { min-height: 46px; padding: 3px; }
  .cal-ev { padding: 0; height: 6px; border-radius: 3px; background: var(--accent); }
  .cal-ev-t { display: none; }
  .chat { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .chat.opened .chat-list { display: none; }
  .chat:not(.opened) .thread { display: none; }
  .chat-list { border-right: 0; }
  .thread-back { display: inline-flex; margin-bottom: 6px; }
  .bubble { max-width: 90%; }
  .composer .btn-t { display: none; }
  .hbars li { grid-template-columns: minmax(0, 1fr) 40px; }
  .hb-track { grid-column: 1 / -1; grid-row: 2; }
  .vbars { gap: 4px; height: 160px; }
  .table th, .table td { padding: 8px 10px; }
  .dlg-body { padding: 14px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
