/* Vocatech Social. Light, clean, white canvas; navy text; orange accents. Tokens from the portal's v4_2026.css. */
:root {
  --orange: #F89939; --orange-hover: #EC8526; --orange-light: #FBB26A; --orange-dark: #D97E1F;
  --navy: #0E2749; --muted: #5B6B82; --faint: #8A97AB;
  --emerald: #10B981; --emerald-soft: #E7F8F1; --teal: #0EA5A4; --red: #D9534F; --red-soft: #FBEDED;
  --surface: #F6F8FA; --warm: #FEF9F1; --line: #E9ECEF; --line-soft: #F0F1F4;
  --r-sm: 6px; --r: 10px; --r-lg: 12px; --r-xl: 16px;
  --ring: inset 0 0 0 1px var(--line);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #FFFFFF; color: var(--navy); }
body { font: 14px/1.5 'Plus Jakarta Sans', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--navy); text-decoration-color: var(--orange-light); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h2 { font-size: 16px; margin: 28px 0 10px; }
h3 { font-size: 15px; margin: 0; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; }

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 12px; margin: 12px; height: calc(100vh - 24px); background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--ring); padding: 18px 12px; display: flex; flex-direction: column; }
.brand { font-weight: 700; font-size: 16px; padding: 2px 10px 18px; letter-spacing: -0.01em; }
.brand span { color: var(--orange); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: var(--r);
  text-decoration: none; font-weight: 500; color: var(--navy); }
.nav a:hover { background: #fff; }
.nav a.on { background: #fff; box-shadow: var(--ring); font-weight: 600; }
.count { background: var(--orange); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; font-weight: 700; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.state { background: #fff; border-radius: var(--r); box-shadow: var(--ring); padding: 10px 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.state b { font-size: 13px; } .state span { color: var(--muted); }
.state.running b { color: var(--emerald); } .state.stopped { box-shadow: inset 0 0 0 1px #F1C7C6; } .state.stopped b { color: var(--red); }
.state.paused b, .state.quiet b { color: var(--orange-dark); }
.practice { font-size: 12px; color: var(--orange-dark); background: var(--warm); border-radius: var(--r); padding: 8px 12px; }

.main { padding: 26px 34px 80px 18px; max-width: 1200px; min-width: 0; }
.head h1 { font-size: 23px; margin: 4px 0 4px; letter-spacing: -0.015em; }
.head p { color: var(--muted); margin: 0 0 18px; max-width: 760px; }

.card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--ring); padding: 16px 18px; margin-bottom: 12px; }
.row-card { display: flex; flex-direction: column; gap: 10px; }
.empty { color: var(--muted); padding: 18px; text-align: center; background: var(--surface); border-radius: var(--r-lg); }
.warn { background: var(--warm); color: #7A4A0F; border-radius: var(--r-sm); padding: 6px 10px; margin-top: 6px; font-size: 12.5px; }
.quote { background: var(--surface); border-radius: var(--r); padding: 8px 12px; margin: 6px 0; white-space: pre-wrap; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: var(--r); padding: 8px 14px; font: inherit; font-weight: 600;
  cursor: pointer; background: #fff; color: var(--navy); box-shadow: var(--ring); text-decoration: none; }
.btn:hover { box-shadow: inset 0 0 0 1px #CFD6DE; }
.btn.primary { background: var(--orange); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--orange-hover); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--muted); padding: 8px 10px; }
.btn.ghost:hover { color: var(--navy); background: var(--surface); }
.btn.danger:hover { color: var(--red); }
.btn[disabled] { opacity: .5; cursor: default; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.linkish:hover { color: var(--navy); } .linkish.has-notes { color: var(--orange-dark); font-weight: 600; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface); color: var(--muted); box-shadow: var(--ring); vertical-align: 1px; }
.pill.high { background: var(--emerald-soft); color: #0B7A55; box-shadow: none; }
.pill.medium { background: var(--warm); color: var(--orange-dark); box-shadow: none; }
.pill.low { background: var(--surface); color: var(--faint); }
.pill.mute { background: var(--red-soft); color: #A33A37; box-shadow: none; }
.pill.customer { background: #E6F6F6; color: #0B7373; box-shadow: none; }
.score { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }

.avatar { border-radius: 50%; object-fit: cover; background: var(--surface); display: inline-block; flex: none; vertical-align: middle; }
.avatar.initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--muted); box-shadow: var(--ring); }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.strip > div { background: var(--surface); border-radius: var(--r-lg); padding: 12px 14px; display: flex; flex-direction: column; }
.strip b { font-size: 17px; } .strip span { color: var(--muted); font-size: 12.5px; }

.sugg { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
.sugg .who { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sugg .who a { text-decoration: none; }
.sugg .why { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.sugg .summary { margin: 8px 0 4px; }
.sugg .full { background: var(--surface); border-radius: var(--r); padding: 10px 12px; margin: 6px 0; }
.sugg .full p { margin: 0 0 6px; }
.post-img { max-width: 320px; width: 100%; border-radius: var(--r); display: block; margin: 8px 0; box-shadow: var(--ring); }
.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 4px; }
textarea, input, select { font: inherit; color: var(--navy); }
textarea { width: 100%; border: 0; border-radius: var(--r); box-shadow: var(--ring); padding: 10px 12px; resize: vertical; background: #fff; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--orange-light); outline-offset: 1px; }
input, select { border: 0; border-radius: var(--r); box-shadow: var(--ring); padding: 8px 10px; background: #fff; }
.like-note { color: var(--muted); font-size: 13px; margin-top: 10px; }
.done-card { opacity: .35; pointer-events: none; transition: opacity .3s; }
.click { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.click .actions { grid-column: 2; margin-top: 4px; }
.click-kind { font-weight: 700; color: var(--orange-dark); font-size: 13px; }
details.paste summary { cursor: pointer; font-weight: 600; }
details.paste textarea { margin-top: 10px; }
.paste-option { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.paste-option .quote { flex: 1; margin: 0; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.tab { padding: 6px 12px; border-radius: 999px; text-decoration: none; background: var(--surface); font-weight: 600; font-size: 13px; color: var(--muted); }
.tab span { color: var(--faint); font-weight: 500; margin-left: 4px; }
.tab.on { background: var(--navy); color: #fff; } .tab.on span { color: #C9D3E1; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filters input { min-width: 260px; }

table.list { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--ring); overflow: hidden; }
table.list th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 12px; }
table.list td { padding: 10px 12px; border-top: 1px solid var(--line-soft); background: #fff; vertical-align: middle; }
table.list.compact td { padding: 7px 12px; }
table.list tr.group td { background: var(--surface); font-weight: 700; padding: 14px 12px 8px; border-top: 0; }
table.list td.ph { width: 52px; }
table.list td.num { font-family: 'JetBrains Mono', monospace; color: var(--muted); width: 50px; }
table.list .name b { font-weight: 600; }
.notes-row td { background: #FCFCFD !important; }
.chks { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.chk { font-size: 11px; padding: 0 7px; border-radius: 999px; background: var(--surface); color: var(--faint); }
.chk.on { background: var(--emerald-soft); color: #0B7A55; }
.tier-pick, .verdict-pick { font-size: 13px; padding: 5px 8px; }
table.log td { font-size: 12px; }

.story h2 { margin-top: 0; }
.post-body { font-size: 14px; line-height: 1.55; }
.post-text p { margin: 0 0 8px; }
.post-meta { margin-bottom: 8px; }

.rule { margin-bottom: 12px; }
.rule-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rule-body p { margin: 0 0 6px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 14px; margin-top: 10px; }
.grid-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.grid-form label.check { flex-direction: row; align-items: center; gap: 8px; }
.grid-form .actions { grid-column: 1 / -1; }

.banner { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 12px; flex-wrap: wrap; }
.banner b { font-size: 14px; } .banner span { color: var(--muted); flex: 1; }
.banner.ok b { color: var(--emerald); }
.banner.stop { background: var(--red-soft); } .banner.stop b { color: #A33A37; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.url { flex: 1; min-width: 0; padding: 8px 12px; border-radius: var(--r); background: var(--surface); box-shadow: var(--ring);
  font: 12px 'JetBrains Mono', monospace; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--ring); background: #F3F4F6; aspect-ratio: 1280 / 860; }
.live img { width: 100%; height: 100%; display: block; cursor: pointer; object-fit: contain; }
.live:focus-within, .live.focused { box-shadow: inset 0 0 0 2px var(--orange); }
.live-hint { position: absolute; bottom: 10px; left: 12px; background: rgba(255,255,255,.92); border-radius: var(--r); padding: 5px 10px; font-size: 12px; color: var(--muted); box-shadow: var(--ring); }

.toast { position: fixed; right: 20px; bottom: 20px; max-width: 460px; background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 12px 16px; box-shadow: 0 8px 30px rgba(14,39,73,.18); z-index: 10; }
.toast.error { background: #A33A37; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; margin: 12px 16px 0; }
  .side-foot { margin-top: 12px; }
  .main { padding: 16px; }
  .click { grid-template-columns: 1fr; } .click .actions { grid-column: 1; }
  table.list { display: block; overflow-x: auto; }
}

/* ---- Rows: one line per item, click to open the details ---- */
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.head .rules-link { margin-top: 6px; white-space: nowrap; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.strip > div b small { font-size: 12px; font-weight: 500; color: var(--faint); }
.pane > .card { margin-top: 4px; }

.rows { background: #fff; border-radius: var(--r-lg); box-shadow: var(--ring); overflow: hidden; }
.row { border-top: 1px solid var(--line-soft); }
.row:first-child { border-top: 0; }
.row.head { background: var(--surface); font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.row.head, .row-main { display: grid; align-items: center; gap: 14px; padding: 0 14px; min-height: 58px;
  grid-template-columns: 36px minmax(160px, 1.1fr) 92px minmax(140px, 1.3fr) minmax(140px, 1.3fr) 178px; }
.row.head { min-height: 34px; }
.row-main[data-expand] { cursor: pointer; }
.row-main[data-expand]:hover { background: #FAFBFC; }
.row.open .row-main { background: var(--warm); }
.row.group { display: block; padding: 12px 14px 6px; font-weight: 700; font-size: 13px; background: var(--surface); }
.row .c-who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row .c-who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .c-who .pill { margin-left: 6px; }
.row .sub, .row .one { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .c-post .one, .row .c-text .one { color: var(--navy); font-size: 13px; }
.row .c-post small { display: block; font-size: 11.5px; }
.row .c-tier { display: flex; gap: 6px; align-items: center; }
.row .c-act { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.row .c-kind { font-weight: 600; color: var(--orange-dark); font-size: 12.5px; }
.row .c-num { font-family: 'JetBrains Mono', monospace; color: var(--muted); }
.row .c-stat { font-size: 12.5px; line-height: 1.35; }
.row .c-links { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.row .c-more { color: var(--faint); font-size: 16px; text-align: center; }
.row .c-more.has-notes { color: var(--orange); }
.row-detail { padding: 14px 16px 16px 64px; background: #FCFCFD; border-top: 1px dashed var(--line); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.detail-grid .post-text p { margin: 0 0 6px; }
.detail-grid .lbl { margin-top: 0; }
.msg { padding: 6px 10px; border-radius: var(--r-sm); background: var(--surface); margin-bottom: 4px; font-size: 13px; }
.msg.me { background: var(--warm); }
.rows.people .row-main { min-height: 56px; }

.cols-click .row-main, .row.head.cols-click { grid-template-columns: 36px 150px minmax(160px, 1fr) minmax(160px, 1.4fr) 190px; }
.cols-msg .row-main, .row.head.cols-msg { grid-template-columns: 36px minmax(150px, .9fr) minmax(160px, 1.3fr) minmax(160px, 1.3fr) 232px; }
.cols-log .row-main, .row.head.cols-log { grid-template-columns: 170px minmax(140px, .8fr) minmax(160px, 1.6fr) 120px; }
.cols-people .row-main, .row.head.cols-people { grid-template-columns: 36px minmax(180px, 1.6fr) 110px 48px 130px 100px 70px 28px; }
.cols-conn .row-main, .row.head.cols-conn { grid-template-columns: 36px minmax(180px, 1.4fr) 100px 110px minmax(160px, 1.2fr) 70px; }
.cols-bank .row-main, .row.head.cols-bank { grid-template-columns: 36px minmax(200px, 1.6fr) 110px 300px; }
.cols-ads .row-main, .row.head.cols-ads { grid-template-columns: 70px minmax(200px, 1.6fr) 100px 170px 100px; }
.cols-doors .row-main, .row.head.cols-doors { grid-template-columns: 180px minmax(200px, 1fr) 160px; }
.rows.log .row-main { min-height: 34px; }
.card.mono { font: 12px 'JetBrains Mono', monospace; white-space: pre-wrap; }
.warn-inline { color: var(--orange-dark); }
.tabs .tab { font-size: 12.5px; }

@media (max-width: 1100px) {
  .row.head { display: none; }
  .row-main, .cols-click .row-main, .cols-msg .row-main, .cols-log .row-main, .cols-people .row-main, .cols-conn .row-main, .cols-bank .row-main, .cols-ads .row-main, .cols-doors .row-main {
    grid-template-columns: 36px minmax(0, 1fr); grid-auto-rows: auto; padding: 10px 14px; row-gap: 4px; }
  .row .c-act { grid-column: 1 / -1; justify-content: flex-start; }
  .row-detail { padding-left: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* ---- Proportions: a lighter page header, one bar for tabs and filters ---- */
.main { padding: 16px 28px 60px 16px; }
.head { margin-bottom: 4px; }
.head h1 { font-size: 20px; margin: 2px 0 0; }
.head p { margin: 2px 0 12px; font-size: 13px; }
.head .rules-link { margin-top: 2px; }
.brand { padding: 2px 10px 14px; }
.tabs { margin: 2px 0 10px; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 10px; }
.bar .tabs, .bar .filters { margin: 0; }
.filters input { min-width: 220px; padding: 6px 10px; }
.filters select { padding: 6px 8px; }
.row.head { min-height: 30px; }
.strip { margin-bottom: 12px; }
.strip > div { padding: 9px 12px; }
.strip b { font-size: 16px; }
h2 { font-size: 15px; margin: 22px 0 8px; }
.card { padding: 14px 16px; }

/* The sign-in page. */
.login-body { display: grid; place-items: center; min-height: 100vh; background: var(--surface); }
.login { width: min(360px, calc(100vw - 32px)); background: #fff; border-radius: var(--r-xl); box-shadow: var(--ring); padding: 26px 26px 22px; }
.login .brand { padding: 0 0 16px; font-size: 18px; }
.login form { display: flex; flex-direction: column; gap: 12px; }
.login label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.login input { padding: 9px 11px; border: 0; border-radius: var(--r); box-shadow: var(--ring); font-size: 14px; }
.login input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--orange-light); }
.login .btn { justify-content: center; padding: 10px 14px; margin-top: 4px; }
.login-error { background: var(--red-soft); color: var(--red); border-radius: var(--r); padding: 8px 11px; font-size: 12.5px; }
