:root {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #17222b;
  background: #fbfaf7;
  --ink: #0b1923;
  --gold: #ad7b3e;
  --line: #e5e1d9;
  --paper: #fbfaf7;
}

body, .main { background: var(--paper); }
button, input, select, textarea { font-family: 'DM Sans', Arial, sans-serif; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline-color: #bd945e;
}

.sidebar {
  width: 220px;
  background: #081824;
  color: #b9c2c6;
  border-right: 1px solid #1d303c;
}
.brand {
  height: 95px;
  padding: 20px 17px;
  align-items: flex-start;
  gap: 10px;
  letter-spacing: 0;
}
.brand-mark {
  flex: none;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border: 1px solid #aa793c;
  color: #d9ae71;
  font: 25px/1 'Instrument Serif', Georgia, serif;
  letter-spacing: -3px;
  padding-right: 3px;
}
.brand-wordmark {
  display: block;
  padding-top: 4px;
  color: #fff9ee;
  font: 21px/1 'Instrument Serif', Georgia, serif;
  white-space: nowrap;
}
.brand-wordmark > span { color: #e4c89f; }
.brand-wordmark small {
  display: block;
  padding-top: 9px;
  color: #81949f;
  font: 600 8px/1 'DM Sans', Arial, sans-serif;
  letter-spacing: .23em;
}
.nav { gap: 5px; padding: 7px 9px; }
.nav button, .bottom-nav button {
  min-height: 43px;
  border-radius: 3px;
  padding: 10px 15px;
  font-size: 13px;
  letter-spacing: .01em;
  color: #b9c2c6;
}
.nav button:hover, .bottom-nav button:hover { background: #142936; color: #fff; }
.nav button.active {
  background: #263038;
  box-shadow: inset 3px 0 #b28750;
  color: #fffaf2;
}
.nav button.active svg { color: #d7a565; }
.nav svg, .bottom-nav svg { width: 18px; height: 18px; }
.bottom-nav { border-top: 1px solid #223440; }
.workspace {
  align-items: flex-start;
  color: #f4f0e8;
  line-height: 1.3;
  font-size: 11px;
  padding-top: 15px;
}
.workspace .circle, .user .circle {
  width: 28px;
  height: 28px;
  border: 1px solid #a87b45;
  border-radius: 50%;
  background: transparent;
  color: #dcb783;
  font-size: 9px;
}
.user { font-size: 11px; color: #b9c2c6; }
.user small { color: #81949f; }

.topbar {
  height: 126px;
  padding: 16px 28px 13px;
  align-items: flex-end;
  border-bottom: 0;
  background: var(--paper);
}
.title-block { display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow {
  color: #8d8378;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .23em;
}
.eyebrow i { padding: 0 7px; color: var(--gold); font-style: normal; }
.topbar h1 {
  margin-top: 9px;
  font: 62px/.86 'Instrument Serif', Georgia, serif;
  letter-spacing: -.035em;
  color: #0a1721;
}
.title-block p { margin: 9px 0 0; color: #6f746f; font-size: 11px; }
.top-actions { gap: 21px; align-self: flex-start; padding-top: 1px; }
.top-workspace {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 200px;
  color: #1a252b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.top-workspace b {
  width: 31px;
  height: 31px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0d1a23;
  color: #ddb77d;
  font: 16px/1 'Instrument Serif', Georgia, serif;
}
.top-workspace small { display: block; color: #918f88; font-size: 9px; font-weight: 500; margin-top: 3px; }
.primary {
  min-height: 39px;
  padding: 9px 15px;
  border: 1px solid #98703f;
  border-radius: 3px;
  background: #aa7c42;
  box-shadow: none;
  font-size: 12px;
  letter-spacing: .015em;
}
.primary:hover { background: #906734; }
.primary svg { width: 15px; height: 15px; }

.tabs {
  height: 49px;
  gap: 21px;
  padding: 0 27px;
  background: var(--paper);
  border-color: var(--line);
}
.tabs button {
  padding: 0 4px;
  border-bottom-width: 2px;
  color: #767870;
  font-size: 12px;
}
.tabs button.active { border-color: var(--gold); color: #121f28; }
.toolbar {
  min-height: 62px;
  padding: 10px 27px;
  gap: 8px;
  background: var(--paper);
  border-color: var(--line);
}
.toolbar .range {
  color: #1b262c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.control {
  min-height: 35px;
  border-color: #dcd7cf;
  border-radius: 3px;
  background: #fffefa;
  box-shadow: none;
  color: #344048;
  font-size: 11px;
}
.control:hover { background: #f3f0e9; }
.control.selected { color: #8f6535; border-color: #bf9a69; background: #f9f2e8; }
.control.square { width: 35px; }
.filter-menu { border-radius: 4px; border-color: var(--line); }
.filter-menu input { accent-color: var(--gold); }

.planner { height: calc(100vh - 237px); min-height: 0; border-top: 0; }
.calendar-wrap { background: var(--paper); }
.calendar { min-width: 770px; }
.day-heads, .grid-body { grid-template-columns: repeat(7, minmax(105px, 1fr)); }
.day-heads {
  height: 74px;
  border-color: var(--line);
  background: var(--paper);
}
.day-heads > div:first-child, .time-column { display: none; }
.day-head {
  align-items: flex-start;
  gap: 1px;
  padding: 10px 11px;
  border-color: var(--line);
  color: #7c7e77;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.day-head small {
  color: #17242b;
  font: 28px/.9 'Instrument Serif', Georgia, serif;
  letter-spacing: -.03em;
  text-transform: none;
}
.day-head.today { background: #f7f2e8; color: #9a6b39; }
.day-head.today small { color: #9a6b39; }
.grid-body { height: auto; min-height: 1050px; background: none; }
.day-column {
  display: flex;
  flex-direction: column;
  min-height: 1050px;
  padding: 6px 3px 42px;
  border-color: var(--line);
  background: var(--paper);
}
.day-column.today { background: #fbf8f1; }
.post-card {
  position: relative;
  top: auto !important;
  left: auto;
  right: auto;
  width: calc(100% - 6px);
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 4px 3px;
  padding: 8px;
  overflow: visible;
  border: 1px solid #e7e2d9;
  border-radius: 3px;
  background: #fffefa;
  box-shadow: none;
}
.post-card:hover { border-color: #bd9869; box-shadow: 0 4px 14px #1d2a3112; z-index: 2; }
.post-card.active { border: 1px solid #b28750; background: #fffbf4; box-shadow: inset 0 0 0 1px #b28750; }
.post-top { position: absolute; top: 8px; right: 8px; order: 0; }
.post-top .handle { display: none; }
.platform { width: 16px; height: 16px; font-size: 10px; border-radius: 2px; }
.post-time { order: 0; margin: 1px 20px 9px 0; color: #5b656b; font-size: 10px; font-weight: 700; }
.post-media {
  order: 1;
  width: 100%;
  height: 88px;
  margin: 0 0 9px;
  border-radius: 1px;
  object-fit: cover;
  filter: grayscale(.8) contrast(.9) brightness(1.35);
  background: #17222b;
}
.post-text {
  order: 2;
  display: block;
  min-height: 49px;
  overflow: hidden;
  color: #576066;
  font-size: 10px;
  line-height: 1.35;
  white-space: pre-line;
  -webkit-line-clamp: unset;
}
.post-text::first-line { color: #14222b; font: 19px/1.15 'Instrument Serif', Georgia, serif; }
.post-card .status { order: 3; padding-top: 9px; margin-top: auto; font-size: 9px; }
.status { color: #57656b; }
.status:before { width: 7px; height: 7px; background: #198c86; }
.status.approval { color: #9b6b39; }
.status.approval:before { background: #bf8c49; }
.status.draft { color: #647681; }
.status.draft:before { background: #7d929e; }
.add-slot { right: 12px; bottom: 10px; }

.detail {
  width: 305px;
  padding: 18px 20px 22px;
  border-color: var(--line);
  background: #f8f7f3;
}
.detail-head { margin-bottom: 15px; }
.detail-head h2 {
  color: #8b8175;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.detail-section { border-color: var(--line); }
.detail-section:first-of-type { display: flex; flex-direction: column; }
.detail-account { font-size: 11px; }
.detail-account .status { margin-left: auto; font-size: 9px; white-space: nowrap; }
.detail-handle { color: #80847f; font-size: 10px; margin: 5px 0 0; }
.detail-date { color: #777e7f; font-size: 10px; margin-top: 4px; }
.detail-image {
  order: 2;
  height: 174px;
  margin-top: 16px;
  border-radius: 2px;
  object-fit: cover;
  filter: grayscale(.8) contrast(.9) brightness(1.35);
}
.detail-copy {
  order: 3;
  margin: 13px 0 3px;
  color: #626965;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-line;
}
.detail-copy::first-line { color: #14202a; font: 28px/1 'Instrument Serif', Georgia, serif; }
.detail-section h3 { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.meta-row { color: #404d52; font-size: 11px; }
.detail-actions .control { font-size: 11px; }
.detail-actions .control:first-child { background: #aa7c42; border-color: #98703f; color: #fff; }
.detail-actions .control:first-child:hover { background: #906734; }

.list-area, .welcome { max-width: 1200px; }
.list-intro h2, .welcome-title { font: 38px/.95 'Instrument Serif', Georgia, serif; letter-spacing: -.02em; }
.list-intro p, .muted { color: #777c77; }
.post-list, .stat-card, .panel, .stream-column, .searchbox { border-color: var(--line); border-radius: 3px; box-shadow: none; }
.list-row { border-color: var(--line); background: #fffefa; }
.list-row:hover { background: #f7f3eb; }
.stat-card strong { font-family: 'Instrument Serif', Georgia, serif; font-size: 37px; font-weight: 400; }
.stream-head { border-color: var(--line); }
.stream-item { border-color: var(--line); border-radius: 2px; }
.modal { border-radius: 5px; }
.modal-head h2 { font: 31px/1 'Instrument Serif', Georgia, serif; }
.field input, .field select, .field textarea, .compose-preview { border-color: #dcd8cf; border-radius: 3px; }
.toast { background: #10222c; border-radius: 3px; }

@media (max-width: 1400px) {
  .sidebar { width: 205px; }
  .detail { width: 275px; }
  .calendar { min-width: 760px; }
  .top-workspace { max-width: 170px; }
}
@media (max-width: 900px) {
  .sidebar { width: 65px; }
  .brand { justify-content: center; padding: 19px 0; }
  .brand-wordmark, .workspace span:not(.circle), .user span:not(.circle) { display: none; }
  .nav button, .bottom-nav button { justify-content: center; padding: 12px 0; font-size: 0; }
  .detail { width: 265px; }
  .top-workspace { display: none; }
}
@media (max-width: 700px) {
  .sidebar { width: 56px; }
  .brand-mark { width: 35px; height: 35px; font-size: 22px; }
  .topbar { height: 105px; padding: 13px 14px 10px; }
  .topbar h1 { font-size: 48px; }
  .title-block p { margin-top: 5px; font-size: 10px; }
  .eyebrow { font-size: 8px; }
  .top-actions { padding-top: 0; }
  .primary { font-size: 0; padding: 8px; }
  .tabs { height: 46px; padding: 0 10px; gap: 13px; }
  .toolbar { min-height: 95px; padding: 8px 10px; }
  .toolbar .range { font-size: 13px; }
  .planner { height: calc(100vh - 246px); }
  .calendar { min-width: 850px; }
  .day-heads, .grid-body { grid-template-columns: repeat(7, minmax(120px, 1fr)); }
  .detail { top: 105px; width: min(340px, calc(100vw - 56px)); }
}

/* JenningsOS suite: charcoal, warm silver, and restrained gold. */
:root {
  color-scheme: dark;
  --ink: #e7e3d4;
  --gold: #b07c24;
  --gold-bright: #eac466;
  --paper: #09090b;
  --surface: #141416;
  --raised: #1d1b1b;
  --line: #373531;
  --muted: #aaa69f;
}
body, .main { background: var(--paper); color: var(--ink); }
button, input, select, textarea { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}
.sidebar { width: 210px; background: #0d0d0f; border-color: var(--line); color: #c7c2b8; }
.brand { height: 116px; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 13px 8px; }
.brand-mark { width: 44px; height: 52px; border: 0; font-size: 44px; color: var(--gold-bright); }
.brand-wordmark { padding: 0; font-size: 19px; color: #f6f0df; text-align: center; }
.brand-wordmark > span { color: #f6f0df; }
.brand-wordmark small { padding-top: 7px; font-size: 8px; color: #a39e93; letter-spacing: .24em; }
.nav { padding: 20px 8px; gap: 7px; }
.nav button, .bottom-nav button { color: #c7c2b8; font-size: 13px; min-height: 43px; }
.nav button:hover, .bottom-nav button:hover { background: #24211c; color: #fff5dc; }
.nav button.active { background: #272119; box-shadow: inset 2px 0 var(--gold-bright); color: var(--gold-bright); }
.nav button.active svg { color: var(--gold-bright); }
.bottom-nav { border-color: var(--line); padding: 14px 9px 18px; }
.workspace { align-items: center; color: #ede7d9; font-size: 11px; padding: 7px; }
.workspace small { display: block; color: #9c988e; font-size: 10px; margin-top: 3px; }
.workspace .circle { border-color: #605031; color: var(--gold-bright); }

.topbar { height: 108px; padding: 19px 28px 16px; align-items: center; background: var(--paper); border-color: var(--line); }
.topbar h1 { margin: 0; color: #faf4e7; font-size: 52px; line-height: .95; }
.title-block p { color: #ada89f; font-size: 12px; margin-top: 8px; }
.top-actions { align-self: center; padding-top: 0; gap: 13px; }
.top-workspace { color: #eee9dc; font-weight: 600; }
.top-workspace b { border: 1px solid #75603c; background: #211d17; color: var(--gold-bright); }
.top-workspace small { color: #a29d93; }
.primary { background: #c79b4e; border-color: #c79b4e; color: #16120c; font-weight: 700; }
.primary:hover { background: #e2bb70; border-color: #e2bb70; color: #16120c; }
.demo-notice {
  display: flex; align-items: center; gap: 11px;
  min-height: 43px; margin: 0 28px 13px; padding: 10px 13px;
  border: 1px solid #51483a; border-radius: 4px;
  background: #1b1917; color: #d0cabe; font-size: 11px;
}
.demo-notice svg { width: 16px; height: 16px; flex: none; color: var(--gold-bright); }
.demo-notice strong { color: #f0dfbd; font-weight: 700; }
.tabs { height: 43px; background: var(--paper); border-color: var(--line); }
.tabs button { color: #aaa69e; font-size: 12px; }
.tabs button.active { color: var(--gold-bright); border-color: var(--gold-bright); }
.toolbar { min-height: 58px; background: var(--paper); border-color: var(--line); }
.toolbar .range { color: #eee8d9; }
.control, .searchbox { border-color: #45423d; background: #171719; color: #ece7db; }
.control:hover { border-color: #776746; background: #27231e; color: #fff4dc; }
.control.selected { border-color: var(--gold); background: #2b2419; color: var(--gold-bright); }
.control svg, .icon-button svg { color: inherit; }
.filter-menu { background: #1c1c1d; border-color: var(--line); color: var(--ink); box-shadow: 0 12px 30px #0008; }
.filter-menu label:hover { background: #2a2722; }
.filter-menu input { accent-color: var(--gold-bright); }
.mobile-hint { display: none; }
@media (max-width: 1200px) {
  .mobile-hint { display: block; color: #aea89d; font-size: 10px; }
}

.planner { height: calc(100vh - 265px); border-color: var(--line); }
.calendar-wrap, .calendar, .grid-body { background: var(--paper); }
.day-heads { height: 68px; background: #121214; border-color: var(--line); }
.day-head { border-color: var(--line); color: #b7b1a5; padding: 11px 10px; }
.day-head small { color: #f1ebde; font-size: 25px; }
.day-head.today, .day-column.today { background: #1b1813; }
.day-head.today, .day-head.today small { color: var(--gold-bright); }
.day-column { background: #111113; border-color: var(--line); padding: 5px 3px 42px; }
.post-card { background: #1a1a1c; border-color: #3c3a37; color: var(--ink); border-radius: 4px; padding: 8px; }
.post-card:hover { border-color: #b18a47; background: #22201d; box-shadow: 0 5px 16px #0006; }
.post-card.active { border-color: var(--gold-bright); background: #252017; box-shadow: inset 0 0 0 1px #a67b34; }
.post-media { order: 0; height: 93px; margin: 0 0 10px; background: #101010; filter: grayscale(1) contrast(1.05) brightness(.9); }
.post-top { z-index: 1; top: 8px; right: 8px; }
.post-time { order: 1; margin: 0 0 5px; color: #b8b2a8; font-size: 10px; }
.post-text { order: 2; min-height: 54px; color: #c0bbb1; font-size: 11px; line-height: 1.4; }
.post-text::first-line { color: #f4edde; font-size: 18px; }
.post-card .status { order: 3; margin-top: 8px; padding: 4px 7px; align-self: flex-start; border-radius: 20px; font-size: 9px; }
.status { color: #b8d5ba; }
.status:before { background: #75bd80; }
.status.planned { border: 1px solid #477652; color: #b8d5ba; }
.status.approval { border: 1px solid #9e7b3e; color: #f3c979; }
.status.approval:before { background: #e1ac50; }
.status.draft { border: 1px solid #5a5b5e; color: #c1c1c5; }
.status.draft:before { background: #a3a5aa; }
.add-slot { color: #a6a095; }
.add-slot:hover { color: var(--gold-bright); }

.detail { width: 300px; background: #151517; border-color: var(--line); color: var(--ink); }
.detail-head h2, .detail-section h3 { color: #b7ae9f; }
.detail-section { border-color: var(--line); }
.detail-account, .detail-date, .detail-copy, .meta-row { color: #d6d1c5; }
.detail-account .status { margin-left: auto; }
.detail-date { color: #a9a49b; }
.detail-image { height: 180px; filter: grayscale(1) contrast(1.05) brightness(.9); }
.detail-copy::first-line { color: #f7f0e2; }
.detail-actions .control:first-child { background: #c79b4e; border-color: #c79b4e; color: #17120a; }
.detail-actions .control:first-child:hover { background: #e2bb70; }
.icon-button { color: #d0c9bc; }
.icon-button:hover { background: #2c2a26; }

.list-area, .welcome { color: var(--ink); }
.list-intro h2, .welcome-title { color: #f2ebdd; }
.list-intro p, .muted { color: #aea89d; }
.post-list, .stat-card, .panel, .stream-column { background: #161618; border-color: var(--line); color: var(--ink); }
.list-row { background: #18181a; border-color: var(--line); }
.list-row:hover { background: #25221d; }
.list-row .copy strong, .panel h2 { color: #f1ebdd; }
.list-row .copy small, .panel p { color: #b2aba0; }
.stat-card strong { color: var(--gold-bright); }
.stat-card small, .stat-card em { color: #bcb5a8; }
.mini-row { border-color: var(--line); }
.empty, .empty-state { color: #c9c3b8; }
.empty-state { max-width: 560px; margin: 7vh auto 0; padding: 38px; border: 1px solid var(--line); border-radius: 5px; background: #161618; }
.empty-state > svg { width: 27px; height: 27px; color: var(--gold-bright); }
.empty-kicker { display: block; margin-top: 25px; color: var(--gold-bright); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.empty-state h2 { margin: 10px 0; color: #f2ebdd; font: 34px/1 'Instrument Serif', Georgia, serif; }
.empty-state p { max-width: 440px; color: #bab4a9; font-size: 13px; line-height: 1.6; }
.empty-actions { display: flex; align-items: center; gap: 16px; margin-top: 25px; }
.empty-actions a { color: var(--gold-bright); font-size: 12px; text-decoration: none; }
.empty-actions a:hover { text-decoration: underline; }

.modal { background: #171719; border: 1px solid #514638; color: var(--ink); }
.modal-head, .modal-foot { border-color: var(--line); }
.modal-foot { position: sticky; bottom: 0; z-index: 1; background: #171719; }
.modal-head h2 { color: #f5edde; }
.field span { color: #ded8cb; }
.field input, .field select, .field textarea, .compose-preview { border-color: #514c44; background: #242326; color: #f1eadf; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-bright); }
.compose-preview small { color: #b8b1a5; }
.form-note { margin: 0 0 18px; padding: 9px 12px; background: #282319; border-left: 2px solid var(--gold-bright); color: #e5d6b9; font-size: 11px; }
.toast { background: #2c2418; color: #f8ebcf; border: 1px solid var(--gold); }

@media (max-width: 1400px) {
  .sidebar { width: 200px; }
  .detail { width: 275px; }
}
@media (max-width: 900px) {
  .sidebar { width: 65px; }
  .brand { padding: 10px 0; }
  .brand-mark { width: 40px; }
  .nav button { justify-content: center; gap: 0; padding: 12px 0; font-size: 0; }
  .nav svg { flex: none; }
  .workspace span:not(.circle) { display: none; }
  .detail { width: 260px; }
  .top-workspace { display: none; }
}
@media (max-width: 700px) {
  .sidebar { width: 56px; }
  .brand { height: 100px; }
  .brand-mark { width: 36px; font-size: 38px; }
  .topbar { height: 93px; padding: 14px; }
  .topbar h1 { font-size: 45px; }
  .title-block p { font-size: 10px; }
  .demo-notice { min-height: 55px; margin: 0 10px 8px; font-size: 10px; }
  .tabs { height: 44px; }
  .toolbar { min-height: 94px; }
  .mobile-hint { display: block; width: 100%; color: #aea89d; font-size: 10px; }
  .planner { height: calc(100vh - 294px); }
  .detail { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: calc(100vw - 56px); box-shadow: -8px 0 28px #000a; }
  .empty-state { margin-top: 24px; padding: 24px; }
  .list-row { display: grid; grid-template-columns: 54px minmax(0,1fr) 34px; grid-template-areas: "image copy view" "image status view"; gap: 3px 8px; padding: 11px; }
  .list-row .preview { grid-area: image; width: 54px; height: 54px; }
  .list-row > .platform { display: none; }
  .list-row .copy { grid-area: copy; min-width: 0; }
  .list-row .copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .list-row .copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .list-row .status { grid-area: status; width: auto; justify-self: start; font-size: 9px; }
  .list-row .control { grid-area: view; width: 34px; min-width: 34px; justify-content: center; }
  .modal-foot { flex-wrap: wrap; }
}

/* Editorial studio: a horizontal masthead and a day-first planning spread. */
.shell { display: block; }
.sidebar {
  position: relative; top: auto; z-index: 10;
  width: 100%; height: 76px; flex-direction: row; align-items: center;
  border-right: 0; border-bottom: 1px solid #3b3529;
  background: #11100f;
}
.brand { width: 240px; height: 76px; flex: none; flex-direction: row; gap: 10px; padding: 11px 20px; }
.brand-mark { width: 36px; height: 43px; font-size: 36px; }
.brand-wordmark { font-size: 18px; text-align: left; }
.brand-wordmark small { font-size: 7px; padding-top: 6px; letter-spacing: .2em; }
.nav { display: flex; align-items: stretch; gap: 3px; padding: 0 5px; height: 100%; min-width: 0; }
.nav button {
  width: auto; min-width: 78px; height: 100%; display: flex; flex-direction: column;
  justify-content: center; gap: 4px; padding: 7px 13px;
  border-radius: 0; font-size: 11px; text-align: center; white-space: nowrap;
}
.nav svg { width: 16px; height: 16px; }
.nav button.active { box-shadow: inset 0 -2px var(--gold-bright); background: #201c17; }
.masthead-create { margin: 0 24px 0 auto; white-space: nowrap; }
.main { min-height: calc(100vh - 76px); }
.topbar { height: 180px; padding: 32px 50px 20px; align-items: flex-start; }
.editorial-kicker, .section-kicker { color: #d0a45e; font-size: 10px; font-weight: 700; letter-spacing: .22em; }
.editorial-kicker i { padding: 0 8px; font-style: normal; }
.topbar h1 { margin-top: 12px; font-size: clamp(48px, 5.5vw, 82px); }
.title-block p { margin-top: 15px; font-size: 13px; }
.top-workspace { margin-top: 7px; }
.demo-notice { margin: 0 50px 18px; border-left: 2px solid var(--gold-bright); }
.tabs { margin: 0 50px; padding: 0; }
.toolbar { margin: 0 50px; padding: 12px 0; border-bottom: 0; }
.toolbar .mobile-hint { display: none; }
.editorial-planner { display: block; height: auto; margin: 0 50px 40px; border: 0; }
.week-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; }
.week-day {
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0; min-height: 105px; padding: 13px 16px;
  border: 1px solid #3c3832; border-radius: 3px;
  background: #171719; color: #d9d2c4; text-align: left;
}
.week-day:hover { background: #23201c; border-color: #9c7940; }
.week-day.active { background: #30271a; border-color: #d3a958; box-shadow: inset 0 0 0 1px #d3a958; }
.week-day span { color: #b8aea0; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.week-day strong { color: #f7edde; font: 39px/.98 'Instrument Serif', Georgia, serif; margin: 4px 0; }
.week-day.active strong { color: #f7c874; }
.week-day small { color: #ada69a; font-size: 10px; }
.editorial-stage { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 20px; margin-top: 20px; align-items: start; }
.day-focus { min-width: 0; min-height: 480px; padding: 27px; border: 1px solid #403a31; background: #111112; }
.day-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid #403a31; }
.day-heading h2 { margin: 9px 0 4px; color: #f7efdf; font: clamp(30px,3vw,45px)/1 'Instrument Serif', Georgia, serif; }
.day-heading p { margin: 0; color: #a9a298; font-size: 12px; }
.day-heading .control { flex: none; }
.day-heading .control svg { width: 15px; height: 15px; }
.editorial-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; padding-top: 22px; }
.editorial-cards .post-card {
  position: relative; top: auto !important; left: auto; right: auto;
  width: 100%; min-height: 360px; margin: 0; padding: 13px;
  border-color: #4a453c; background: #1b1a1a;
}
.editorial-cards .post-media { height: 190px; }
.editorial-cards .post-time { font-size: 11px; margin: 4px 0 9px; }
.editorial-cards .post-text { min-height: 66px; font-size: 12px; }
.editorial-cards .post-text::first-line { font-size: 29px; }
.editorial-cards .post-card .status { margin-top: 15px; }
.day-empty { grid-column: 1/-1; min-height: 260px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px; color: #d0c9bc; }
.day-empty > span { color: var(--gold-bright); font-size: 27px; }
.day-empty h3 { margin: 9px 0 2px; color: #f4edde; font: 35px/1 'Instrument Serif', Georgia, serif; }
.day-empty p { color: #aaa49b; font-size: 12px; }
.day-empty .primary { margin-top: 10px; }
.editorial-stage .detail { width: 100%; max-height: none; border: 1px solid #403a31; padding: 21px; }
.editorial-stage .detail-image { max-height: 220px; object-fit: cover; }
.list-area, .welcome { max-width: 1300px; margin: 0 auto; padding: 25px 50px; }

@media (max-width: 1100px) {
  .brand { width: 190px; padding-left: 12px; }
  .brand-wordmark { font-size: 16px; }
  .nav button { min-width: 62px; padding: 7px 8px; font-size: 10px; }
  .masthead-create { margin-right: 12px; }
  .topbar { padding-left: 30px; padding-right: 30px; }
  .demo-notice, .tabs, .toolbar { margin-left: 30px; margin-right: 30px; }
  .editorial-planner { margin-left: 30px; margin-right: 30px; }
  .editorial-stage { grid-template-columns: minmax(0,1fr) 290px; }
  .day-focus { padding: 20px; }
  .editorial-cards .post-media { height: 145px; }
}
@media (max-width: 800px) {
  .sidebar { height: auto; min-height: 112px; flex-wrap: wrap; }
  .brand { width: auto; height: 60px; }
  .brand-wordmark { display: block; }
  .masthead-create { margin-left: auto; }
  .nav { width: 100%; order: 3; height: 52px; overflow-x: auto; padding-left: 8px; }
  .nav button { height: 52px; flex-direction: row; flex: none; font-size: 11px; }
  .nav svg { width: 15px; }
  .main { min-height: calc(100vh - 112px); }
  .topbar { height: auto; min-height: 170px; }
  .editorial-stage { grid-template-columns: 1fr; }
  .editorial-stage .detail { position: fixed; top: 0; right: 0; bottom: 0; z-index: 20; width: min(370px,100vw); overflow: auto; box-shadow: -12px 0 30px #000a; }
}
@media (max-width: 600px) {
  .brand { padding: 8px 12px; }
  .brand-mark { width: 30px; height: 38px; font-size: 31px; }
  .brand-wordmark { font-size: 15px; }
  .masthead-create { min-height: 33px; padding: 7px 10px; font-size: 11px; }
  .topbar { min-height: 150px; padding: 26px 17px 15px; }
  .topbar h1 { font-size: 49px; }
  .title-block p { font-size: 11px; }
  .top-actions { display: none; }
  .demo-notice { margin: 0 17px 14px; }
  .tabs { margin: 0 17px; gap: 12px; overflow-x: auto; }
  .tabs button { white-space: nowrap; }
  .toolbar { margin: 0 17px; flex-wrap: wrap; }
  .toolbar .spacer, .toolbar [data-action="mode"] { display: none; }
  .toolbar .range { order: 5; width: 100%; }
  .editorial-planner { margin: 0 17px 30px; }
  .week-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
  .week-day { min-width: 71px; min-height: 88px; padding: 9px; }
  .week-day strong { font-size: 33px; }
  .week-day small { font-size: 9px; }
  .day-focus { padding: 17px; }
  .day-heading { align-items: start; }
  .day-heading h2 { font-size: 32px; }
  .day-heading .control { font-size: 0; padding: 8px; }
  .editorial-cards { grid-template-columns: 1fr; }
  .editorial-cards .post-card { min-height: 340px; }
  .editorial-cards .post-media { height: 190px; }
  .list-area, .welcome { padding: 18px; }
}

/* Company onboarding stays one step from the planner. */
.top-actions { position: relative; z-index: 12; }
.company-controls { display: flex; align-items: center; gap: 9px; }
.company-switcher { position: relative; min-width: 0; }
.company-trigger, .company-add {
  display: flex; align-items: center; gap: 9px; min-height: 47px;
  border: 1px solid #554936; border-radius: 3px;
  background: #1b1917; color: #f4ecdd;
}
.company-trigger { min-width: 205px; max-width: 250px; padding: 6px 10px; text-align: left; }
.company-trigger:hover, .company-add:hover { border-color: #d3a958; background: #29231b; }
.company-trigger > span { display: block; min-width: 0; flex: 1; }
.company-trigger small { display: block; margin-bottom: 3px; color: #b6a991; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.company-trigger strong { display: block; overflow: hidden; color: #f4ecdd; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.company-trigger > svg { width: 14px; height: 14px; flex: none; color: #d6ae6a; }
.company-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid #97733b; border-radius: 50%; background: #312718; color: #f1c978; font: 15px/1 'Instrument Serif', Georgia, serif; }
.company-add { padding: 8px 12px; color: #e5c993; font-size: 11px; font-weight: 700; white-space: nowrap; }
.company-add svg, .company-menu-add svg { width: 15px; height: 15px; }
.company-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: max(250px,100%); max-height: 360px; overflow-y: auto; padding: 9px; border: 1px solid #66543a; border-radius: 4px; background: #1a1918; box-shadow: 0 18px 44px #000b; }
.company-menu-label { display: block; padding: 8px 9px 7px; color: #b5a991; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.company-menu button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 43px; padding: 6px 8px; border: 0; border-radius: 3px; background: transparent; color: #ece6da; text-align: left; font-size: 11px; }
.company-menu button:hover, .company-menu button.active { background: #30271c; }
.company-menu button .company-avatar { width: 27px; height: 27px; font-size: 13px; }
.company-menu button > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-menu button small { display: block; margin-top: 3px; color: #ada79d; font-size: 9px; }
.company-menu button em { color: var(--gold-bright); font-style: normal; }
.company-menu .company-menu-add { margin-top: 8px; border-top: 1px solid #514638; border-radius: 0; color: #ecc77e; font-weight: 700; }
.company-dialog { width: min(500px,calc(100vw - 24px)); }
.company-dialog .modal-head { align-items: flex-start; }
.company-dialog .modal-head h2 { margin: 8px 0 0; font-size: 44px; }
.company-dialog .company-intro { margin: 0 0 24px; color: #c5bdb0; font-size: 13px; line-height: 1.5; }
.company-dialog .field { margin-bottom: 18px; }
.company-dialog .field small { color: #aaa397; font-size: 10px; font-weight: 400; }
.company-dialog .form-note { margin: 21px 0 0; }

@media (max-width: 800px) {
  .topbar { gap: 18px; }
  .company-trigger { min-width: 185px; }
  .company-add { padding: 8px; }
}
@media (max-width: 600px) {
  .topbar { flex-direction: column; min-height: 225px; gap: 0; }
  .top-actions { display: flex; width: 100%; margin-top: 19px; }
  .company-controls { width: 100%; }
  .company-switcher { flex: 1; }
  .company-trigger { width: 100%; min-width: 0; max-width: none; }
  .company-add { justify-content: center; }
  .company-menu { right: auto; left: 0; width: min(300px,calc(100vw - 34px)); }
  .company-dialog .primary { font-size: 12px; padding: 8px 11px; }
}

/* Content desk and social conversation workspace. */
.studio-page, .unibox-page { max-width: 1400px; margin: 0 auto; padding: 28px 50px 60px; }
.studio-hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); min-height: 365px; overflow: hidden; background: #101c24; color: #f8f0e2; }
.studio-hero > div:first-child { padding: 43px 48px; }
.studio-hero h2, .unibox-intro h2 { margin: 18px 0; font: 58px/.95 'Instrument Serif', Georgia, serif; letter-spacing: -.025em; }
.studio-hero h2 em, .unibox-intro h2 em { color: #dcbb82; font-weight: 400; }
.studio-hero p { max-width: 440px; margin: 0 0 28px; color: #c4c8c6; line-height: 1.55; font-size: 13px; }
.studio-hero-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 365px; padding: 37px; border-left: 1px solid #886f4c; background: radial-gradient(circle at 70% 70%, #92703f 0, #58452f 36%, #292c29 85%); color: #f7e8d0; }
.studio-hero-art > span { font: 34px/.95 'Instrument Serif', Georgia, serif; }
.studio-hero-art b { align-self: center; font: 145px/1 'Instrument Serif', Georgia, serif; font-weight: 400; transform: rotate(-14deg); }
.studio-hero-art small { align-self: flex-end; font-size: 10px; letter-spacing: .18em; }
.studio-stats { display: grid; grid-template-columns: repeat(3,1fr); margin: 16px 0 43px; border: 1px solid var(--line); background: #fffefa; }
.studio-stats > div { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px; min-height: 105px; padding: 19px 23px; border-right: 1px solid var(--line); }
.studio-stats > div:last-child { border-right: 0; }
.studio-stats small { grid-column: 1 / -1; color: #8c785d; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.studio-stats strong { font: 40px/.8 'Instrument Serif', Georgia, serif; color: #172630; }
.studio-stats span { color: #657079; font-size: 12px; }
.studio-library-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid #d8d4cb; }
.studio-library h2 { margin: 8px 0 0; font: 41px/1 'Instrument Serif', Georgia, serif; }
.studio-filters { display: flex; gap: 3px; flex-wrap: wrap; }
.studio-filters button { padding: 8px 11px; border: 0; background: transparent; color: #657078; font-size: 11px; cursor: pointer; }
.studio-filters button.active, .studio-filters button:hover { background: #16242d; color: #fff8e9; }
.studio-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; padding-top: 19px; }
.studio-card { display: flex; flex-direction: column; min-width: 0; min-height: 245px; padding: 20px; border: 1px solid #dfd9ce; background: #fffefa; }
.studio-card-top, .studio-card-foot { display: flex; align-items: center; gap: 8px; }
.studio-card-top > span:nth-child(2) { flex: 1; font-size: 11px; font-weight: 700; }
.studio-card > img { width: 100%; height: 150px; margin-top: 17px; object-fit: cover; }
.studio-card > p { display: -webkit-box; overflow: hidden; margin: 22px 0; color: #27353c; font: 23px/1.2 'Instrument Serif', Georgia, serif; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.studio-card-foot { justify-content: space-between; margin-top: auto; padding-top: 15px; border-top: 1px solid #e9e3d8; }
.studio-card-foot small { color: #66737a; font-size: 10px; }
.studio-card-foot button { display: flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none; color: #836438; font-size: 11px; font-weight: 700; cursor: pointer; }
.studio-card-foot svg { width: 13px; }
.studio-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 260px; padding: 28px; border: 1px dashed #c8bda9; text-align: center; }
.studio-empty > span { color: #b88a53; font-size: 38px; }
.studio-empty h3 { margin: 6px 0 0; font: 31px 'Instrument Serif', Georgia, serif; }
.studio-empty p { margin: 2px 0 14px; color: #687078; font-size: 12px; }
.unibox-intro { display: flex; justify-content: space-between; gap: 20px; padding: 33px 39px; background: #14232c; color: #fbf0dc; }
.unibox-intro h2 { margin-bottom: 12px; }
.unibox-intro p { color: #bdc6c5; font-size: 13px; }
.unibox-counter { display: flex; flex-direction: column; justify-content: center; min-width: 170px; padding-left: 30px; border-left: 1px solid #7b6a52; }
.unibox-counter strong { font: 84px/.85 'Instrument Serif', Georgia, serif; color: #e9c48a; }
.unibox-counter span { margin-top: 13px; font-size: 9px; line-height: 1.5; letter-spacing: .18em; }
.unibox-platforms { display: flex; overflow-x: auto; margin-top: 15px; border: 1px solid var(--line); background: #fffefa; }
.unibox-platforms button { display: flex; align-items: center; gap: 7px; flex: 1; min-width: max-content; padding: 12px 14px; border: 0; border-right: 1px solid var(--line); background: transparent; color: #3e4b51; font-size: 11px; cursor: pointer; }
.unibox-platforms button:last-child { border-right: 0; }
.unibox-platforms button.active, .unibox-platforms button:hover { background: #eee8db; color: #17252d; }
.unibox-platforms .platform { width: 22px; height: 22px; font-size: 11px; }
.unibox-platforms small { color: #8b8a85; font-size: 10px; }
.all-platform-mark { display: grid; place-items: center; width: 22px; height: 22px; color: #9f743c; font-size: 20px; }
.unibox-layout { display: grid; grid-template-columns: minmax(285px,.85fr) minmax(0,1.15fr); min-height: 470px; margin-top: 15px; border: 1px solid #ddd6ca; background: #fffefa; }
.unibox-threads { border-right: 1px solid #ddd6ca; }
.unibox-pane-title { display: flex; justify-content: space-between; align-items: end; padding: 24px 26px; border-bottom: 1px solid #e6dfd3; }
.unibox-pane-title h3 { margin: 8px 0 0; font: 28px/1 'Instrument Serif', Georgia, serif; }
.unibox-pane-title > span { color: #7e817f; font-size: 10px; }
.unibox-thread-empty { padding: 73px 31px; text-align: center; }
.unibox-thread-empty > span { color: #aa8151; font-size: 36px; }
.unibox-thread-empty h4 { margin: 8px 0; font: 27px 'Instrument Serif', Georgia, serif; }
.unibox-thread-empty p { max-width: 240px; margin: auto; color: #657079; line-height: 1.55; font-size: 12px; }
.unibox-reading { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px 12%; background: #f6f1e8; }
.unibox-reading-orbit { align-self: flex-end; color: #b39365; font: 93px/1 'Instrument Serif', Georgia, serif; }
.unibox-reading h3 { margin: 15px 0; color: #182934; font: 49px/.98 'Instrument Serif', Georgia, serif; }
.unibox-reading p { max-width: 375px; color: #5f696d; line-height: 1.5; font-size: 13px; }
.unibox-reading .primary { margin-top: 18px; }
.unibox-reading > small { margin-top: 17px; color: #798280; font-size: 10px; }
@media (max-width: 1100px) { .studio-page, .unibox-page { padding-left: 30px; padding-right: 30px; } .studio-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) { .studio-page, .unibox-page { padding: 18px 17px 35px; } .studio-hero { grid-template-columns: 1fr; } .studio-hero > div:first-child { padding: 30px 24px; } .studio-hero-art { display: none; } .studio-hero h2, .unibox-intro h2 { font-size: 43px; } .studio-library-head { align-items: flex-start; flex-direction: column; } .studio-cards { grid-template-columns: 1fr; } .unibox-intro { padding: 28px 24px; } .unibox-counter { display: none; } .unibox-layout { grid-template-columns: 1fr; } .unibox-threads { border-right: 0; border-bottom: 1px solid #ddd6ca; } .unibox-thread-empty { padding: 35px 25px; } .unibox-reading { padding: 30px 24px; } .unibox-reading-orbit { display: none; } .unibox-reading h3 { font-size: 39px; } }
@media (max-width: 430px) { .studio-stats > div { padding: 15px 10px; } .studio-stats small { font-size: 7px; } .studio-stats strong { font-size: 34px; } .studio-stats span { font-size: 10px; } }
@media (max-width: 700px) { .studio-page .primary, .unibox-page .primary { font-size: 12px; padding: 10px 13px; gap: 8px; } }
.access-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #14232c; }
.access-card { width: min(460px,100%); padding: 42px; background: #f7f2e8; color: #182934; box-shadow: 0 26px 80px #09141d80; }
.access-card .brand-mark { display: grid; place-items: center; margin-bottom: 26px; }
.access-card h1 { margin: 14px 0; font: 48px/.95 'Instrument Serif', Georgia, serif; }
.access-card p { color: #637077; line-height: 1.5; }
.access-card form { display: grid; gap: 16px; margin-top: 24px; }
.access-card .primary { justify-content: center; }
.sidebar-signout { margin: 20px 28px; padding: 8px 0; border: 0; background: none; color: #c9b69a; text-align: left; cursor: pointer; }
.unibox-thread { display: block; width: 100%; padding: 18px 24px; border: 0; border-bottom: 1px solid #e6dfd3; background: #fffefa; text-align: left; cursor: pointer; }
.unibox-pane-title h3 { color: #182934; }
.unibox-thread:hover, .unibox-thread.active { background: #f3eadb; }
.unibox-thread > span { display: flex; align-items: center; gap: 10px; }
.unibox-thread strong { flex: 1; color: #182934; }
.unibox-thread b { border-radius: 50%; background: #a8743e; color: white; padding: 3px 7px; font-size: 11px; }
.unibox-thread small { display: block; overflow: hidden; margin: 9px 0 0 38px; color: #667178; white-space: nowrap; text-overflow: ellipsis; }
.unibox-conversation-head { display: flex; align-items: center; gap: 14px; width: 100%; padding-bottom: 15px; border-bottom: 1px solid #ddd6ca; }
.unibox-conversation-head h3 { margin: 3px 0; font-size: 29px; }
.unibox-messages { width: 100%; min-height: 210px; max-height: 390px; overflow-y: auto; padding: 18px 0; }
.message { width: fit-content; max-width: 85%; margin: 12px 0; padding: 11px 15px; background: #fffefa; border: 1px solid #e2d8c8; }
.message.outbound { margin-left: auto; background: #e6ddca; }
.message p { margin: 0 0 8px; color: #182934; white-space: pre-wrap; }
.message small { color: #718080; text-transform: capitalize; }
.reply-form { display: grid; gap: 8px; width: 100%; margin-top: auto; }
.reply-form textarea { min-height: 85px; padding: 12px; border: 1px solid #cfc8bc; background: white; resize: vertical; font: inherit; }
.reply-form .primary { justify-self: end; }
.reply-disabled { margin-top: 18px; }
.channel-list { display: grid; gap: 12px; margin-top: 25px; }
.channel-row { display: flex; align-items: center; gap: 15px; }
.channel-row > div { flex: 1; }
.channel-row h3 { margin: 0 0 4px; }
.channel-row p { margin: 0; }
