/* ---------- StepBerry design system (from SOP App Mockups 1a–1d) ---------- */
:root {
  --bg: #F6F3F1;            /* app cream */
  --panel: #FBF9F7;         /* content canvas */
  --card: #FFFFFF;
  --ink: #0F0E0D;
  --ink-soft: #55504B;
  --muted: #8A8580;
  --faint: #B5AFA9;
  --line: #ECE7E2;
  --line-soft: #F1EDE8;
  --accent: #6D28D9;
  --accent-strong: #5B21B6;
  --accent-soft: #EFEAFB;
  --accent-line: #DDD2F5;
  --warn-bg: #FBEFE0;
  --warn-ink: #4A3F30;
  --warn-icon: #C77B24;
  --green: #7FAE8B;
  --radius: 10px;
  --font: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

.smallcaps {
  font-size: 11px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint);
}

/* ---------- Top bar ---------- */
.topbar {
  height: 56px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; background: var(--bg);
  position: sticky; top: 0; z-index: 40;
}
.topbar .crumb { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.topbar .crumb .sep { color: var(--faint); }
.topbar .crumb a { color: var(--muted); }
.topbar .crumb a:hover { color: var(--ink); }
.topbar .crumb .here { font-weight: 600; }
.topbar .spacer { flex: 1; }
.btn-plus {
  width: 30px; height: 30px; border-radius: 9px; border: none;
  background: var(--ink); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; flex: none;
}
.btn-plus svg { width: 15px; height: 15px; }
.pill-mcp {
  display: inline-flex; align-items: center; gap: 7px;
  background: #EDE7FB; color: var(--accent-strong);
  border: 1px solid var(--accent-line); border-radius: 999px;
  padding: 4px 12px; font-size: 12.5px; font-weight: 500;
}
.pill-mcp .dot { width: 7px; height: 7px; border-radius: 50%; background: #34A853; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 8px; padding: 7px 14px; font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.btn:hover { border-color: #DDD6CF; }
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
}
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: #C08A72; border: none;
}
.avatar.small { width: 22px; height: 22px; }
.avatar.green { background: var(--green); }
.avatar.blue { background: #8B93C4; }
.avatar.pink { background: #C4808A; }

/* ---------- Shell / rail ---------- */
.shell { display: flex; min-height: calc(100vh - 56px); }
.rail {
  width: 48px; flex: none; display: flex; flex-direction: column;
  align-items: center; gap: 6px; padding: 8px 0 16px;
}
.rail-logo {
  width: 28px; height: 28px; border-radius: 9px; background: var(--ink);
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.rail-logo svg { width: 14px; height: 14px; }
.rail-icon {
  width: 30px; height: 30px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; color: var(--faint);
}
.rail-icon svg { width: 16px; height: 16px; }
.rail-icon:hover { color: var(--ink-soft); background: #EFEBE6; }
.rail-icon.active { color: var(--ink); background: #ECE7E1; }

/* ---------- Columns (editor) ---------- */
.col {
  flex: none; padding: 18px 14px; border-right: 1px solid var(--line-soft);
}
.col h6 { margin: 0 0 12px 6px; }
.col-procs { width: 196px; }
.col-sections { width: 186px; }
.col a.item {
  display: block; padding: 7px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-soft); margin-bottom: 2px;
  border: 1px solid transparent; line-height: 1.35;
}
.col a.item:hover { background: #F0EBE6; }
.col-procs a.item.active {
  background: var(--card); border-color: var(--line); color: var(--ink); font-weight: 500;
  box-shadow: 0 1px 2px rgba(15,14,13,.04);
}
.col-sections a.item.active {
  background: var(--accent-soft); color: var(--accent-strong); font-weight: 600;
  position: relative;
}
.col-sections a.item.active::before {
  content: ''; position: absolute; left: -8px; top: 6px; bottom: 6px;
  width: 3px; border-radius: 2px; background: var(--accent);
}
.col a.add {
  display: block; padding: 8px 10px; font-size: 13px; color: var(--faint);
}
.col a.add:hover { color: var(--ink-soft); }

/* ---------- Content canvas ---------- */
.canvas {
  flex: 1; background: var(--panel); border-radius: 14px 0 0 0;
  padding: 42px 0 180px; min-width: 0;
}
.doc { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.doc-meta { margin-bottom: 10px; }
.doc h1 {
  font-size: 40px; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 12px; line-height: 1.1;
}
.doc .ownerline {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13.5px; margin-bottom: 30px;
}
.ownerline .dot-avatar { width: 16px; height: 16px; border-radius: 50%; background: var(--green); }
.ownerline .sep { color: var(--faint); }

/* ---------- Blocks ---------- */
.blocks { display: flex; flex-direction: column; gap: 18px; }
.block { position: relative; }
.block .handle {
  position: absolute; left: -26px; top: 4px; width: 18px; height: 22px;
  color: #D5CFC8; display: flex; align-items: center; justify-content: center;
  opacity: 0; cursor: grab; touch-action: none;
}
.block .handle svg { width: 13px; height: 13px; }
.block:hover .handle { opacity: 1; }
.block .tools {
  position: absolute; right: -4px; top: 0; display: none; gap: 4px;
}
.block:hover .tools { display: flex; }
.block .tools button {
  width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); display: flex;
  align-items: center; justify-content: center;
}
.block .tools button svg { width: 13px; height: 13px; }
.block .tools button:hover { color: var(--ink); }
.block.dragging { opacity: .85; }
.block.sortable-ghost { opacity: .3; }

.b-callout {
  display: flex; gap: 12px; background: var(--warn-bg);
  border-radius: 8px; padding: 14px 16px; color: var(--warn-ink); font-size: 14.5px;
}
.b-callout svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--warn-icon); }
.b-text p { margin: 0 0 10px; font-size: 15.5px; color: #35312D; }
.b-text p:last-child { margin-bottom: 0; }
.b-heading h2 { margin: 10px 0 0; font-size: 24px; font-weight: 700; }
.b-check { display: flex; flex-direction: column; gap: 12px; }
.b-check .row { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: #35312D; }
.b-check .box {
  width: 18px; height: 18px; border: 1.5px solid #D8D2CB; border-radius: 5px;
  flex: none; margin-top: 2px; background: var(--card);
}
.b-image .frame, .b-video .frame {
  border: 1px solid var(--line-soft); border-radius: 8px; min-height: 180px;
  background: repeating-linear-gradient(-45deg, #FAF7F4, #FAF7F4 6px, #F4F0EC 6px, #F4F0EC 12px);
  display: flex; align-items: center; justify-content: center;
  color: #CEC8C1; font-size: 13px; overflow: hidden;
}
.b-image img, .b-video video { max-width: 100%; display: block; border-radius: 8px; }
.b-embed iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; }
.b-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.b-table th {
  text-align: left; background: #F3F0EC; padding: 9px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-soft);
}
.b-table td { padding: 10px 14px; border: 1px solid var(--line-soft); background: var(--card); }
.b-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.b-form .field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.b-form .field input, .b-form .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); padding: 9px 12px; font-size: 14px;
}
.b-sign label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.b-sign .pad {
  border: 1.5px dashed var(--line); border-radius: 8px; background: var(--card);
  height: 110px; position: relative; overflow: hidden;
}
.b-sign canvas { width: 100%; height: 110px; display: block; touch-action: none; }
.b-sign .clear {
  position: absolute; right: 8px; top: 8px; font-size: 11.5px; color: var(--faint);
  background: none; border: none;
}
.b-divider hr { border: none; border-top: 1px solid var(--line); margin: 6px 0; }
.b-stt .sttbox, .b-tts .ttsbox {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); padding: 10px 14px; font-size: 14.5px;
}
.b-stt .sttbox svg, .b-tts .ttsbox svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.b-stt .sttbox button, .b-tts .ttsbox button {
  border: 1px solid var(--line); background: var(--card); border-radius: 7px;
  padding: 5px 10px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px;
}
.b-stt.recording .sttbox { border-color: #E5B3A9; }
.b-stt .transcript { color: var(--ink-soft); flex: 1; }
.b-stt .transcript:empty::before { content: 'Tap record and speak…'; color: var(--faint); }

/* ---------- Block editing ---------- */
.block-edit {
  border: 1.5px solid var(--accent-line); border-radius: 10px;
  background: var(--card); padding: 14px;
}
.block-edit textarea, .block-edit input[type=text], .block-edit input[type=url] {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font-size: 14.5px; background: #FDFCFB;
}
.block-edit textarea { min-height: 90px; resize: vertical; }
.block-edit .rowactions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.block-edit .hint { font-size: 12px; color: var(--faint); margin-left: auto; }
.editable { cursor: text; border-radius: 8px; }
.editable:hover { outline: 1.5px solid var(--line); outline-offset: 4px; }

/* ---------- Add menu ---------- */
.addwrap { position: relative; margin-top: 26px; }
.addwrap > button.addtrigger {
  display: inline-flex; align-items: center; gap: 8px; border: none;
  background: none; color: var(--faint); font-size: 13.5px; padding: 6px 8px;
  white-space: nowrap;
}
.addwrap > button.addtrigger svg { width: 15px; height: 15px; }
.addwrap > button.addtrigger:hover { color: var(--ink-soft); }
.addmenu {
  position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 30;
  width: 480px; background: var(--card); border-radius: 14px;
  border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(15,14,13,.14);
  padding: 12px; display: none;
}
.addmenu.below { bottom: auto; top: calc(100% + 10px); }
.addmenu.open { display: block; }
.addmenu .tworow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.addmenu .bigopt {
  display: flex; gap: 10px; align-items: center; border-radius: 10px;
  padding: 10px 12px; border: 1px solid var(--line); background: var(--card);
  text-align: left; font-size: 13.5px;
}
.addmenu .bigopt.primary { background: var(--accent-soft); border-color: var(--accent-line); }
.addmenu .bigopt .t { font-weight: 600; display: block; }
.addmenu .bigopt .d { color: var(--muted); font-size: 12px; display: block; }
.addmenu .bigopt .ic {
  width: 28px; height: 28px; border-radius: 7px; background: #fff;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex: none; color: var(--accent);
}
.addmenu h6 { margin: 4px 6px 8px; }
.addmenu .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.addmenu .opt {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 8px; border: none; background: none; font-size: 13.5px; text-align: left;
}
.addmenu .opt:hover { background: #F5F1EC; }
.addmenu .opt .ic {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line);
  background: #FBF9F7; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--ink-soft); flex: none;
}
.addmenu .chatline {
  border-top: 1px solid var(--line-soft); margin-top: 10px; padding: 10px 6px 2px;
  display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-soft);
  background: none; border-left: none; border-right: none; border-bottom: none; width: 100%;
}
.addmenu .chatline .spark { color: var(--accent); }

/* ---------- Chat dock ---------- */
.chatdock {
  position: fixed; bottom: 22px; z-index: 50;
  left: calc(50% + 120px); transform: translateX(-50%);
  width: min(560px, calc(100vw - 48px));
}
body.library .chatdock { left: 50%; }
.chatcard {
  background: var(--card); border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 14px 44px rgba(15,14,13,.12); padding: 12px 14px 10px;
}
.chatcard textarea {
  width: 100%; border: none; outline: none; resize: none; background: none;
  font-size: 14.5px; min-height: 24px; max-height: 140px; padding: 2px 2px 8px;
}
.chatcard textarea::placeholder { color: var(--faint); }
.chatrow { display: flex; align-items: center; gap: 8px; }
.chatrow .mini {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); display: flex;
  align-items: center; justify-content: center; font-size: 15px;
}
.chatrow .model {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
  font-size: 12px; color: var(--ink-soft); background: var(--card);
}
.chatrow .grow { flex: 1; }
.chatrow .voice { color: var(--muted); background: none; border: none; width: 26px; height: 26px; }
.chatrow .voice svg { width: 15px; height: 15px; }
.chatrow .go {
  width: 28px; height: 28px; border-radius: 9px; background: var(--accent);
  border: none; color: #fff; display: flex; align-items: center; justify-content: center;
}
.chatrow .go svg { width: 14px; height: 14px; }
.chatlog { margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px; }
.chatlog:empty { display: none; }
.chatmsg.user {
  align-self: flex-end; background: var(--ink); color: #fff;
  border-radius: 12px 12px 4px 12px; padding: 9px 13px; font-size: 13.5px; max-width: 85%;
}
.chatmsg.bot {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; font-size: 13.5px; max-width: 95%;
  box-shadow: 0 8px 24px rgba(15,14,13,.08);
}
.chatmsg.bot .srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chatmsg.bot .src {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px;
}
.chatmsg.bot .proposal {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 8px; padding: 10px 12px; margin-top: 10px; font-size: 13px;
}
.chatmsg.bot .proposal .tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--accent-strong);
  text-transform: uppercase; display: block; margin-bottom: 5px;
}

/* ---------- Library ---------- */
.libwrap { flex: 1; display: flex; min-width: 0; }
.libmain { flex: 1; background: var(--panel); border-radius: 14px 0 0 0; padding: 34px 40px 120px; min-width: 0; }
.libmain > * { max-width: 980px; }
.libhead { display: flex; align-items: baseline; gap: 14px; }
.libhead h1 { font-size: 34px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.libhead .sub { color: var(--muted); font-size: 13.5px; }
.libhead .grow { flex: 1; }
.chips { display: flex; gap: 8px; margin: 18px 0 26px; }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 5px 14px; font-size: 12.5px; color: var(--ink-soft);
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sopcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; display: flex; flex-direction: column; min-height: 172px;
  transition: box-shadow .12s ease, border-color .12s ease;
}
.sopcard:hover { border-color: #DDD6CE; box-shadow: 0 6px 20px rgba(15,14,13,.06); }
.sopcard .meta { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.sopcard .meta .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.active { background: #34A853; }
.dot.needs_review { background: #E8A33D; }
.dot.draft { background: #C9C3BC; }
.sopcard h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; line-height: 1.25; }
.sopcard .desc { color: var(--muted); font-size: 13px; }
.sopcard .foot {
  margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12.5px;
}
.sopcard.newcard {
  border-style: dashed; align-items: center; justify-content: center;
  color: var(--muted); gap: 8px; background: none;
}
.sopcard.newcard:hover { color: var(--ink); }
.sopcard.newcard .plusring {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; background: var(--card);
}
.searchbar {
  display: flex; align-items: center; gap: 8px;
  background: #EEEAE4; border-radius: 8px; padding: 8px 13px;
  width: min(420px, 40vw); color: var(--muted); font-size: 13.5px;
  border: none;
}
.searchbar input { border: none; outline: none; background: none; flex: 1; font-size: 13.5px; }
.searchbar svg { width: 14px; height: 14px; flex: none; }

/* ---------- Modal-ish inline panel (share) ---------- */
.sharepanel {
  position: fixed; top: 64px; right: 20px; z-index: 60; width: 320px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(15,14,13,.16); padding: 16px;
}
.sharepanel h4 { margin: 0 0 6px; font-size: 15px; }
.sharepanel p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.sharepanel .link {
  display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; background: #FBF9F7; margin-bottom: 10px;
}
.sharepanel .rowactions { display: flex; gap: 8px; }

/* ---------- Mobile checklist ---------- */
body.mobile { background: var(--bg); }
.mwrap { max-width: 480px; margin: 0 auto; padding: 22px 18px 60px; }
.mwrap .mhead { margin-bottom: 22px; }
.mwrap h1 { font-size: 26px; margin: 4px 0 4px; }
.mwrap .msub { color: var(--muted); font-size: 13.5px; }
.msection { margin-bottom: 26px; }
.msection h2 { font-size: 15px; margin: 0 0 10px; color: var(--ink-soft); }
.mitem {
  display: flex; gap: 12px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  margin-bottom: 8px; font-size: 15px;
}
.mitem input[type=checkbox] {
  width: 22px; height: 22px; accent-color: var(--accent); margin: 1px 0 0; flex: none;
}
.mitem.done { color: var(--faint); text-decoration: line-through; }
.mprogress {
  position: sticky; top: 0; background: var(--bg); padding: 10px 0; z-index: 10;
}
.mprogress .bar { height: 6px; border-radius: 3px; background: #E8E3DD; overflow: hidden; }
.mprogress .bar > div { height: 100%; background: var(--accent); border-radius: 3px; transition: width .2s; }

/* ---------- Answers (Part 2) ---------- */
.answers-main { flex: 1; background: var(--panel); border-radius: 14px 0 0 0; padding: 34px 40px 120px; min-width: 0; }
.ans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 20px; }
.anscard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.anscard h3 { margin: 0 0 8px; font-size: 16px; }
.anscard .body { color: var(--ink-soft); font-size: 13.5px; white-space: pre-wrap; }
.anscard .foot { display: flex; gap: 8px; margin-top: 12px; }
.anscard textarea.note {
  width: 100%; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px;
  font-size: 12.5px; margin-top: 10px; background: #FDFCFB; resize: vertical; min-height: 34px;
}

.pill-field {
  display: inline-block; background: var(--accent-soft); color: var(--accent-strong);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 0 9px;
  font-size: 12px; font-weight: 600; line-height: 1.7; margin: 0 1px; vertical-align: baseline;
  white-space: nowrap;
}
.anscard .fillgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.anscard .fillgrid .field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.anscard .fillgrid .field input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13.5px;
}
.anscard .fillgrid .field input.warnfield { border-color: #D9776A; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-3px) } 50% { transform: translateX(3px) } 75% { transform: translateX(-2px) } }
.anscard.filling { border-color: var(--accent-line); }
.copywarn { font-size: 12px; color: #C05C4E; margin-left: auto; }
.sharepanel.wide { width: 440px; max-height: 78vh; overflow: auto; }
.fieldrow { display: flex; gap: 8px; margin-bottom: 8px; }
.fieldrow input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.fieldrow input[name=fvalue] { flex: 1.6; }
.fieldrow .btn { padding: 7px 9px; }
.historylist { display: flex; flex-direction: column; gap: 10px; }
.historycard { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.historycard .hhead { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.historycard .hcat { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-strong); }
.historycard .htitle { font-size: 13px; font-weight: 600; flex: 1; }
.historycard .hts { font-size: 11.5px; color: var(--faint); }
.historycard .htext {
  font-size: 12.5px; color: var(--ink-soft); white-space: pre-wrap; margin-bottom: 8px;
  max-height: 110px; overflow: hidden;
}

@media (max-width: 900px) {
  .col-procs, .col-sections { display: none; }
  .chatdock { left: 50%; }
}
