:root {
  --ink: #142f31;
  --muted: #647371;
  --paper: #f4f0e5;
  --panel: #fffdf8;
  --line: rgba(20, 47, 49, .16);
  --brand: #142f31;
  --brand-dark: #0d2426;
  --plum: #4257df;
  --plum-dark: #3347c4;
  --coral: #ff654f;
  --lime: #d7ef55;
  --lavender: #e8eaff;
  --rose: #ffe5dd;
  --sage: #edf3dc;
  --sage-dark: #687842;
  --gold: #bd8c38;
  --shadow: 0 18px 55px rgba(20, 47, 49, .12);
  --shadow-soft: 0 10px 30px rgba(20, 47, 49, .08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: Arial, Helvetica, sans-serif; letter-spacing: -0.045em; font-weight: 760; }
h1 em, h2 em { font-family: Georgia, "Times New Roman", serif; color: var(--plum); font-weight: 400; }
p { color: var(--muted); line-height: 1.55; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--plum);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--brand);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(20, 47, 49, .22);
}
.brand-mark.small { width: 42px; height: 42px; border-radius: 13px; font-size: .95rem; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(440px, 47%) 1fr;
  background: var(--paper);
}
.auth-card {
  min-height: 100vh;
  padding: clamp(48px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: var(--paper);
  border-right: 1px solid var(--line);
}
.auth-logo { width: min(290px, 74vw); height: auto; margin: 0 0 46px; }
.auth-card h1 { font-size: clamp(3rem, 6vw, 5.2rem); margin-top: 10px; }
.auth-copy { font-size: 1.1rem; max-width: 460px; margin: 18px 0 30px; }
.auth-form { display: grid; gap: 12px; max-width: 420px; }
.auth-form label, .modal-card label { display: grid; gap: 8px; color: var(--ink); font-weight: 700; font-size: .92rem; }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--plum); box-shadow: 0 0 0 4px rgba(66, 87, 223, .11); }
button:disabled { opacity: .55; cursor: wait; }
.microcopy { font-size: .82rem; margin-top: 16px; }
.auth-art { min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: clamp(24px, 4vw, 58px); background: var(--brand); }
.auth-art-panel { width: min(720px, 100%); min-height: min(760px, calc(100vh - 96px)); display: grid; grid-template-rows: auto 1fr auto auto; gap: 28px; padding: clamp(26px, 4vw, 52px); border: 1px solid rgba(244,240,229,.22); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012)); box-shadow: 0 28px 90px rgba(0,0,0,.16); }
.auth-art-topline { display: flex; justify-content: space-between; gap: 20px; color: rgba(244,240,229,.72); font-size: .74rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.auth-symbol { align-self: center; display: grid; place-items: center; }
.auth-symbol img { width: clamp(170px, 19vw, 248px); height: auto; filter: drop-shadow(0 20px 38px rgba(0,0,0,.17)); }
.auth-art-statement { margin: 0; color: var(--paper); font-size: clamp(2.15rem, 4vw, 4.4rem); line-height: .98; letter-spacing: -.045em; font-weight: 760; }
.auth-art-statement em { color: var(--lime); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.auth-art-nav { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(244,240,229,.24); }
.auth-art-nav span { padding: 18px 10px 2px 0; color: rgba(244,240,229,.8); font-size: .78rem; line-height: 1.35; }

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--paper); box-shadow: 0 8px 20px rgba(20, 47, 49, .18); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--lavender); color: var(--plum-dark); }
.btn.compact { padding: 10px 16px; }
.full { width: 100%; }
.text-button { border: 0; background: transparent; color: var(--plum); font-weight: 700; padding: 6px; }
.text-button:hover { color: var(--plum-dark); }

.portal { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 74px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: rgba(244, 240, 229, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 152px; height: auto; display: block; }
.brand-divider { width: 1px; height: 30px; background: var(--line); }
.brand-sub { display: block; color: var(--ink); font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.topnav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.nav-link {
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}
.nav-link:hover, .nav-link.active { color: var(--plum-dark); background: var(--lavender); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.avatar-button {
  width: 40px; height: 40px; border: 1px solid rgba(20,47,49,.15); border-radius: 50%; background: var(--rose); color: var(--ink); font-weight: 800;
}
.account-menu, .add-menu {
  position: fixed;
  right: 26px;
  top: 82px;
  z-index: 80;
  width: min(340px, calc(100vw - 24px));
  padding: 0;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.account-menu { display: grid; align-items: stretch; }
.account-section { padding: 20px; }
.account-copy { min-width: 0; background: var(--brand); }
.account-copy strong, .account-copy span { display: block; }
.account-copy strong { color: var(--paper); font-size: 1.15rem; margin-top: 7px; }
.account-copy span:not(.account-kicker) { color: rgba(244,240,229,.72); font-size: .84rem; margin-top: 5px; overflow-wrap: anywhere; }
.account-kicker { color: var(--lime); font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.sign-out-button { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; border-top: 1px solid var(--line); padding: 15px 20px; text-align: left; color: #8e3328; background: var(--panel); font-weight: 750; }
.sign-out-button:hover { color: #6f241c; background: var(--rose); }
.add-menu { display: grid; gap: 5px; padding: 12px; }
.add-menu button { display: flex; gap: 12px; width: 100%; border: 0; background: transparent; text-align: left; padding: 12px; border-radius: 12px; }
.add-menu button:hover { background: var(--lavender); }
.add-menu strong, .add-menu small { display: block; }
.add-menu small { color: var(--muted); margin-top: 3px; }
.menu-icon { font-size: 1.3rem; }

.app-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 44px 0 80px; }
.view { display: none; }
.view.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.hero-card {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.hero-copy { padding: clamp(34px, 6vw, 72px); }
.hero-copy h1 { font-size: clamp(2.8rem, 5vw, 4.9rem); line-height: .98; }
.hero-copy h1 em { white-space: nowrap; }
.hero-copy > p:not(.eyebrow) { font-size: 1.05rem; max-width: 660px; margin: 20px 0 26px; }
.hero-actions, .button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-graphic { align-self: stretch; display: grid; place-items: stretch; min-width: 320px; padding: 18px; }
.hero-brandscape { position: relative; min-height: 324px; display: grid; grid-template-rows: auto 1fr auto; gap: 22px; padding: 24px; border-radius: 22px; overflow: hidden; background: var(--brand); }
.hero-brandscape::before { content: ""; position: absolute; inset: 0; border-top: 7px solid var(--plum); border-bottom: 7px solid var(--lime); pointer-events: none; }
.brandscape-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brandscape-head img { width: 48px; height: 48px; border: 1px solid rgba(244,240,229,.22); border-radius: 14px; }
.brandscape-label { color: rgba(244,240,229,.72); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brandscape-flow { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; }
.flow-card { min-height: 138px; padding: 17px 14px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 16px; color: var(--ink); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.flow-card span { font-size: .68rem; font-weight: 850; letter-spacing: .08em; }
.flow-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.04rem; line-height: 1.05; font-weight: 500; }
.flow-card small { color: rgba(20,47,49,.7); font-size: .68rem; }
.flow-talk { background: var(--lavender); transform: rotate(-2deg); }
.flow-decide { background: var(--rose); transform: translateY(9px); }
.flow-do { background: var(--sage); transform: rotate(2deg); }
.flow-line { width: 15px; height: 2px; background: rgba(244,240,229,.48); }
.brandscape-foot { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(244,240,229,.25); }
.brandscape-foot span { padding: 13px 8px 0 0; color: rgba(244,240,229,.84); font-size: .68rem; }

.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 20px 0; }
.metric-card {
  min-height: 176px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 8px 22px rgba(54, 43, 61, .045);
  overflow: hidden;
}
.metric-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -38px; top: -38px; opacity: .52; }
.conversation-card::after { background: var(--lavender); }
.todo-card::after { background: var(--rose); }
.opportunity-card::after { background: var(--sage); }
.concept-card::after { background: #fff0c7; }
.file-card::after { background: #eee6d9; }
.metric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.metric-icon { position: absolute; top: 20px; left: 22px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #f7f3f7; color: var(--plum); font-weight: 800; font-size: 1.1rem; }
.metric-label { color: var(--muted); font-size: .84rem; font-weight: 700; margin-bottom: 7px; }
.metric-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 500; }
.metric-meta { color: var(--muted); font-size: .78rem; margin-top: 4px; }

.home-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.owner-responses-panel { grid-column: 1 / -1; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 8px 20px rgba(54, 43, 61, .035); }
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.panel-heading h2 { font-size: 1.8rem; }
.empty-state { padding: 28px; border: 1px dashed #ddd3dd; border-radius: 16px; color: var(--muted); background: #fcfafc; }
.compact-state { padding: 20px; }
.stack-list { display: grid; gap: 10px; }
.stack-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border-radius: 14px; background: #faf8fa; border: 1px solid #f0ebef; }
.stack-row .status-dot { margin-top: 6px; }
.stack-row strong { font-size: .94rem; }
.stack-row span { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.status-dot.done { background: var(--sage-dark); }

.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.page-heading.split { align-items: end; }
.page-heading h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.page-heading p:not(.eyebrow) { margin: 10px 0 0; max-width: 620px; }
.topic-filter-stack { display: grid; gap: 12px; margin: -8px 0 20px; }
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.filter-label { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; min-width: 90px; }
.segmented { display: inline-flex; gap: 4px; background: #f1ecef; padding: 4px; border-radius: 12px; }
.segmented button { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: .86rem; }
.segmented button.active { background: white; color: var(--plum-dark); box-shadow: 0 3px 10px rgba(54, 43, 61, .08); }

.timeline-list { display: grid; gap: 14px; }
.timeline-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: center; padding: 22px; border-radius: 18px; background: white; border: 1px solid var(--line); }
.timeline-date { color: var(--plum); font-weight: 700; font-size: .84rem; }
.timeline-item h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 500; }
.timeline-item p { margin: 5px 0 0; font-size: .9rem; }
.timeline-item button { border: 0; background: #f2edf4; color: var(--plum-dark); padding: 9px 12px; border-radius: 10px; font-weight: 700; }

.card-list { display: grid; gap: 14px; }
.topic-filters { flex-wrap: wrap; }
.thinking-topic { overflow: hidden; border: 1px solid var(--line); background: white; border-radius: 18px; box-shadow: 0 8px 22px rgba(20,47,49,.045); }
.thinking-topic[open] { box-shadow: var(--shadow-soft); }
.topic-summary { min-height: 86px; display: grid; grid-template-columns: auto minmax(0,1fr) minmax(180px,auto) auto auto; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; }
.topic-summary::-webkit-details-marker { display: none; }
.topic-summary:hover { background: #fffefa; }
.topic-summary-copy { min-width: 0; }
.topic-summary-copy strong, .topic-summary-copy small { display: block; }
.topic-summary-copy strong { color: var(--ink); font-size: 1rem; line-height: 1.35; }
.topic-summary-copy small { margin-top: 5px; color: var(--muted); font-size: .76rem; }
.topic-chevron { color: var(--plum); font-size: 1.35rem; transition: transform .18s ease; }
.thinking-topic[open] .topic-chevron { transform: rotate(180deg); }
.type-pill, .agreement-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.type-pill { min-width: 104px; padding: 7px 10px; }
.type-think-through { background: var(--lavender); color: var(--plum-dark); }
.type-verify { background: #fff0c7; color: #7d5a16; }
.type-decide { background: var(--rose); color: #8e3328; }
.type-do { background: var(--sage); color: #52602f; }
.agreement-pill { padding: 7px 10px; background: #f0edef; color: #625a65; }
.topic-progress { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.contribution-progress { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.contribution-progress.not-answered { background: #f2f0ed; color: #6d6862; }
.contribution-progress.answered { background: #e9efff; color: #2d49bd; }
.contribution-progress.done { background: #e2f3e7; color: #23673d; }
.agreement-agreement-reached { background: var(--sage); color: #52602f; }
.agreement-ready-to-compare { background: var(--lavender); color: var(--plum-dark); }
.agreement-needs-evidence { background: #fff0c7; color: #7d5a16; }
.agreement-parked { background: #ecebea; color: #5f5d5b; }
.topic-body { display: grid; gap: 18px; padding: 0 20px 22px; border-top: 1px solid #eee8ec; }
.topic-framing { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #f8f6f0; }
.topic-framing > span, .outcome-read span { color: var(--plum-dark); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.topic-framing p { margin: 7px 0 0; color: var(--ink); font-size: .93rem; white-space: pre-wrap; }
.thinking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.thinking-panel { min-width: 0; min-height: 238px; display: flex; flex-direction: column; gap: 13px; padding: 18px; border: 1px solid rgba(20,47,49,.12); border-radius: 16px; }
.thinking-panel.carissa { background: var(--lavender); border-color: rgba(66,87,223,.2); }
.thinking-panel.partner { background: var(--rose); border-color: rgba(255,101,79,.2); }
.thinking-panel-heading { display: flex; align-items: center; gap: 10px; }
.thinking-panel-heading > div { min-width: 0; }
.thinking-panel-heading span:not(.thinking-avatar), .thinking-panel-heading small { display: block; }
.thinking-panel-heading span:not(.thinking-avatar) { color: var(--ink); font-weight: 800; }
.thinking-panel-heading small { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.thinking-avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--paper); font-size: .82rem; font-weight: 850; }
.thinking-panel textarea { flex: 1; min-height: 116px; resize: vertical; background: rgba(255,255,255,.82); line-height: 1.5; }
.thinking-complete { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: .82rem; font-weight: 750; cursor: pointer; }
.thinking-complete input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.thinking-panel .btn { align-self: flex-start; }
.thinking-copy { margin: 0; color: var(--ink); font-size: .92rem; white-space: pre-wrap; }
.thinking-copy.empty-copy { color: var(--muted); font-style: italic; }
.form-hint { margin: -2px 0 0 !important; color: var(--muted); font-size: .75rem !important; }
.outcome-panel { display: grid; gap: 14px; padding: 20px; border-radius: 16px; background: var(--brand); }
.outcome-panel h3, .outcome-panel label { color: var(--paper); }
.outcome-panel .eyebrow { color: var(--lime); }
.outcome-panel label { display: grid; gap: 7px; font-size: .82rem; font-weight: 750; }
.outcome-panel textarea, .outcome-panel select { background: rgba(255,255,255,.97); }
.outcome-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.outcome-fields { display: grid; grid-template-columns: minmax(180px,.42fr) 1fr; gap: 12px; }
.outcome-panel .btn { justify-self: start; background: var(--lime); color: var(--brand); box-shadow: none; }
.readonly-outcome { color: var(--paper); }
.outcome-read { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.outcome-read > div { padding: 14px; border: 1px solid rgba(244,240,229,.16); border-radius: 12px; background: rgba(255,255,255,.05); }
.outcome-read span { color: var(--lime); }
.outcome-read p { margin: 7px 0 0; color: var(--paper); white-space: pre-wrap; }
.topic-row { width: 100%; border: 0; text-align: left; cursor: pointer; }
.type-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--plum); }
.type-dot.type-verify { background: var(--gold); }
.type-dot.type-decide { background: var(--coral); }
.type-dot.type-do { background: var(--sage-dark); }
.response-list { display: grid; gap: 10px; }
.response-row { padding: 15px 16px; border-radius: 14px; background: #faf8fa; border: 1px solid #eee8ec; }
.response-row-top { display: flex; align-items: center; gap: 9px; }
.response-row p { margin: 7px 0; color: var(--ink); }
.response-row small { color: var(--muted); font-size: .72rem; }
.message-type { padding: 3px 7px; border-radius: 999px; background: var(--lavender); color: var(--plum-dark); font-size: .68rem; font-weight: 800; }

.alignment-heading { margin-bottom: 18px; }
.visibility-summary, .release-pill, .alignment-status { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.visibility-summary { padding: 8px 11px; background: #eee9ed; color: #625a65; }
.boundary-note { margin-bottom: 22px; padding: 18px 20px; border: 1px solid rgba(189,140,56,.3); border-radius: 16px; background: #fff8e8; }
.boundary-note strong { color: #6e511b; }
.boundary-note p { margin: 6px 0 0; color: #655b49; font-size: .86rem; }
.alignment-sections { display: grid; gap: 22px; }
.alignment-section-card { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-soft); }
.alignment-section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.alignment-section-heading h2 { font-size: 2rem; }
.alignment-section-heading p:not(.eyebrow) { margin: 8px 0 0; max-width: 700px; }
.release-pill { padding: 8px 11px; }
.release-hidden { background: #eee9ed; color: #625a65; }
.release-available { background: #e7f0ff; color: #2d49bd; }
.release-locked { background: #fff0c7; color: #7d5a16; }
.release-final { background: var(--sage); color: #52602f; }
.alignment-release { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(260px,1fr) auto; align-items: end; gap: 14px; margin: 20px 0 14px; padding: 17px; border-radius: 15px; background: #f7f5f1; }
.alignment-release label { display: grid; gap: 6px; color: var(--ink); font-size: .78rem; font-weight: 800; }
.comparison-control { grid-template-columns: auto 1fr !important; align-items: center; column-gap: 9px !important; }
.comparison-control input, .alignment-confirm input { width: 18px; height: 18px; margin: 0; accent-color: var(--plum); }
.comparison-control small { grid-column: 2; color: var(--muted); font-size: .7rem; font-weight: 500; }
.section-guidance { margin: 14px 0; padding: 13px 15px; border-left: 4px solid var(--plum); border-radius: 0 12px 12px 0; background: #f7f6ff; color: #55516b; font-size: .82rem; }
.section-guidance strong { color: var(--plum-dark); }
.alignment-progress { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.alignment-progress span { padding: 6px 9px; border-radius: 999px; background: #f3f0f1; color: var(--muted); font-size: .7rem; font-weight: 750; }
.alignment-topic-list { display: grid; gap: 10px; }
.alignment-topic { overflow: hidden; border: 1px solid #e8e2e6; border-radius: 15px; background: #fffefa; }
.alignment-topic[open] { box-shadow: 0 8px 22px rgba(20,47,49,.055); }
.alignment-topic > summary { min-height: 76px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 16px 18px; list-style: none; cursor: pointer; }
.alignment-topic > summary::-webkit-details-marker { display: none; }
.alignment-topic > summary strong, .alignment-topic > summary small { display: block; }
.alignment-topic > summary strong { font-size: .96rem; }
.alignment-topic > summary small { margin-top: 5px; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.alignment-topic[open] > summary .topic-chevron { transform: rotate(180deg); }
.alignment-status { padding: 6px 9px; background: #efedef; color: #625a65; }
.status-discussed { background: #fff0c7; color: #7d5a16; }
.status-aligned { background: #e2f3e7; color: #23673d; }
.status-reflected-in-agreement { background: var(--brand); color: var(--paper); }
.alignment-topic-body { display: grid; gap: 14px; padding: 0 18px 18px; border-top: 1px solid #eee8ec; }
.alignment-answer-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
.alignment-answer-grid.two-up { grid-template-columns: 1fr 1fr; }
.alignment-answer { min-width: 0; display: grid; align-content: start; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid rgba(20,47,49,.12); }
.alignment-answer.carissa { background: var(--lavender); border-color: rgba(66,87,223,.2); }
.alignment-answer.partner { background: var(--rose); border-color: rgba(255,101,79,.2); }
.alignment-answer label { display: grid; gap: 7px; color: var(--ink); font-size: .78rem; font-weight: 800; }
.alignment-answer textarea { resize: vertical; background: rgba(255,255,255,.88); line-height: 1.5; }
.alignment-answer .btn { justify-self: start; }
.alignment-answer-heading { display: flex; align-items: center; gap: 10px; }
.alignment-answer-heading strong, .alignment-answer-heading small { display: block; }
.alignment-answer-heading small { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.readonly-alignment-answer p, .response-received p { margin: 0; color: var(--ink); white-space: pre-wrap; font-size: .86rem; }
.readonly-alignment-answer .empty-copy, .response-received p { color: var(--muted); font-style: italic; }
.alignment-choice { display: inline-flex; width: fit-content; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.76); color: var(--ink); }
.alignment-outcome { display: grid; gap: 12px; padding: 17px; border-radius: 14px; background: var(--brand); }
.alignment-outcome h3, .alignment-outcome label { color: var(--paper); }
.alignment-outcome .eyebrow { color: var(--lime); }
.alignment-outcome-fields { display: grid; grid-template-columns: minmax(190px,.42fr) 1fr; gap: 12px; }
.alignment-outcome label { display: grid; gap: 7px; font-size: .78rem; font-weight: 800; }
.alignment-outcome textarea, .alignment-outcome select { background: white; }
.alignment-outcome .btn { justify-self: start; background: var(--lime); color: var(--brand); box-shadow: none; }
.alignment-confirm { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.alignment-outcome .form-hint { color: rgba(244,240,229,.7); }
.alignment-outcome.readonly-outcome p { margin: 0; color: var(--paper); }

.opportunity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.opportunity-card-item { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 18px; min-height: 220px; display: flex; flex-direction: column; }
.opportunity-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.opportunity-top h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 500; }
.opportunity-company { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.record-attribution { margin-top: 5px; color: var(--plum-dark); font-size: .72rem; font-weight: 750; }
.contact-details { display: grid; gap: 3px; margin-top: 12px; color: #5f5962; font-size: .78rem; overflow-wrap: anywhere; }
.stage-pill { padding: 6px 9px; border-radius: 999px; background: #f0ebf1; color: var(--plum-dark); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.opportunity-notes { margin: 18px 0; font-size: .88rem; flex: 1; }
.next-step { padding-top: 14px; border-top: 1px solid #f0ebef; color: #514b55; font-size: .82rem; }
.next-step strong { color: var(--ink); }
.opportunity-image-preview { position: relative; margin-top: 16px; padding: 0; width: 100%; aspect-ratio: 1.72 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f7f4f6; color: var(--muted); }
.opportunity-image-preview img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .18s ease; }
.opportunity-image-preview.ready img { opacity: 1; }
.opportunity-image-preview span { position: absolute; inset: auto 10px 10px; padding: 6px 9px; border-radius: 8px; background: rgba(20,47,49,.88); color: white; font-size: .72rem; font-weight: 750; }
.lead-image-field { gap: 7px; }
.lead-image-field input { padding: 10px; background: #fbf9fb; }
.lead-image-field small { color: var(--muted); font-size: .75rem; font-weight: 500; }
.extraction-status { padding: 12px 14px; border-radius: 12px; font-size: .84rem; line-height: 1.45; }
.extraction-status.working { background: #f0f3ff; color: #2d49bd; }
.extraction-status.success { background: #e8f4ec; color: #245f3b; }
.extraction-status.notice { background: #f7f2e7; color: #6c5720; }
.extraction-status.error { background: #fff0ed; color: #8b3c31; }
.optional-label { color: var(--muted); font-size: .72rem; font-weight: 600; }
.image-modal { width: min(820px, calc(100% - 28px)); }
.opportunity-image-full { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 14px; object-fit: contain; }

.concept-intro { margin-bottom: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.concept-intro p { margin: 0; color: var(--ink); }
.concept-intro .concept-ip-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.concept-framework { display: grid; grid-template-columns: 1fr minmax(250px,.38fr); gap: 24px; align-items: center; margin-bottom: 20px; padding: 22px 24px; border: 1px solid rgba(189,140,56,.3); border-radius: 18px; background: #fff8e8; }
.concept-framework h2 { font-size: 1.55rem; }
.concept-framework p { margin: 8px 0 0; font-size: .88rem; }
.concept-framework .concept-governing-rule { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(189,140,56,.3); }
.framework-action { display: grid; justify-items: start; gap: 10px; }
.framework-action small { color: #655b49; line-height: 1.45; }
.legal-review-pill { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: #fff0c7; color: #755416; font-size: .7rem; font-weight: 800; }
.framework-acknowledged { color: #23673d; font-size: .8rem; font-weight: 800; }
.framework-confirm { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 9px !important; padding: 13px 14px; border-radius: 12px; background: #f7f5f1; color: var(--ink); font-size: .82rem; font-weight: 700; line-height: 1.4; }
.framework-confirm input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--plum); }
.concept-metrics { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin: 20px 0 28px; }
.concept-metric { min-height: 105px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.concept-metric strong { font-family: Georgia, "Times New Roman", serif; color: var(--ink); font-size: 1.75rem; font-weight: 500; }
.concept-metric span { margin-top: 5px; color: var(--muted); font-size: .73rem; line-height: 1.3; }
.concept-overview { margin-bottom: 28px; }
.concept-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; }
.concept-table { width: 100%; min-width: 1160px; border-collapse: collapse; font-size: .78rem; }
.concept-table th { padding: 13px 14px; color: var(--muted); background: #f8f5ef; text-align: left; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.concept-table td { max-width: 220px; padding: 14px; border-top: 1px solid #eee9e1; color: #4f5e5d; line-height: 1.4; vertical-align: top; }
.concept-table-link { border: 0; padding: 0; background: transparent; color: var(--plum-dark); font-weight: 800; text-align: left; }
.table-countdown { color: var(--plum-dark); font-weight: 800; }
.concept-list { display: grid; gap: 14px; }
.concept-record { overflow: hidden; scroll-margin-top: 110px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 22px rgba(20,47,49,.045); }
.concept-record[open] { box-shadow: var(--shadow-soft); }
.concept-record > summary { min-height: 96px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 20px 22px; list-style: none; cursor: pointer; }
.concept-record > summary::-webkit-details-marker { display: none; }
.concept-record > summary h2 { margin-top: 9px; font-size: 1.5rem; }
.concept-record > summary p { margin: 5px 0 0; font-size: .78rem; }
.concept-record[open] > summary .topic-chevron { transform: rotate(180deg); }
.concept-status { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 999px; background: #f0edef; color: #625a65; font-size: .69rem; font-weight: 800; white-space: nowrap; }
.status-possible-concept { background: var(--lavender); color: var(--plum-dark); }
.status-under-discussion, .status-awaiting-participation, .status-validation { background: #fff0c7; color: #755416; }
.status-active-development, .status-converted-to-active-initiative { background: var(--sage); color: #52602f; }
.status-available-for-independent-development { background: #e8f4ec; color: #245f3b; }
.concept-record-body { display: grid; gap: 22px; padding: 0 22px 24px; border-top: 1px solid #eee9e1; }
.concept-admin-actions { display: flex; justify-content: flex-end; padding-top: 18px; }
.concept-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.concept-field { min-width: 0; padding: 15px 16px; border-radius: 13px; background: #faf8f3; }
.concept-field.wide { grid-column: 1 / -1; }
.concept-field span { color: var(--plum-dark); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.concept-field p { margin: 7px 0 0; color: var(--ink); font-size: .86rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.concept-field a { color: var(--plum-dark); font-weight: 750; }
.concept-participation { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #f8f6f0; }
.concept-participation.active-window { border-color: rgba(66,87,223,.25); background: #f5f6ff; }
.concept-participation h3 { font-size: 1.3rem; }
.concept-participation > p { margin: 10px 0; font-size: .84rem; }
.participation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.participation-countdown { color: var(--plum-dark); }
.participation-countdown.closed { color: var(--muted); }
.participation-facts { display: grid; grid-template-columns: repeat(5,1fr); gap: 9px; margin-top: 15px; }
.participation-facts > div { padding: 12px; border-radius: 11px; background: rgba(255,255,255,.78); }
.participation-facts span, .participation-facts strong { display: block; }
.participation-facts span { color: var(--muted); font-size: .66rem; font-weight: 750; text-transform: uppercase; }
.participation-facts strong { margin-top: 5px; color: var(--ink); font-size: .78rem; line-height: 1.35; overflow-wrap: anywhere; }
.participation-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.participation-response-controls { display: grid; gap: 12px; margin-top: 16px; }
.participation-response-controls textarea { width: 100%; margin-top: 7px; }
.established-acceptance { display: flex; gap: 9px; align-items: flex-start; padding: 13px; border: 1px solid rgba(189,140,56,.35); border-radius: 11px; background: #fffaf0; font-size: .82rem; }
.established-acceptance input { margin-top: 2px; }
.established-ip-boundary { margin-top: 14px; padding: 14px 15px; border: 1px solid rgba(84,66,88,.2); border-radius: 12px; background: white; }
.established-ip-boundary strong { color: var(--plum-dark); font-size: .78rem; }
.established-ip-boundary p { margin: 7px 0 0; color: var(--ink); font-size: .8rem; }
.participation-note { padding: 11px 13px; border-radius: 11px; background: #fff0c7; color: #6f5219 !important; }
.participation-evidence { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaf7; }
.participation-evidence > div { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.evidence-state { padding: 7px 10px; border-radius: 999px; background: #efedeb; color: var(--muted); font-size: .72rem; font-weight: 750; }
.evidence-state.met { background: #e4f1e9; color: #2f6145; }
.participation-evidence small { color: var(--muted); }
.success-note { background: #e2f3e7; color: #23673d !important; }
.expiration-copy { padding: 13px 15px; border-left: 4px solid var(--gold); background: #fff8e8; color: #655b49 !important; }
.danger-text { color: #8e3328; }
.notification-log { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.notification-log summary { color: var(--plum-dark); cursor: pointer; font-size: .78rem; font-weight: 800; }
.notification-log ul { display: grid; gap: 7px; padding: 0; list-style: none; }
.notification-log li { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; padding: 9px 10px; border-radius: 9px; background: white; color: var(--muted); font-size: .7rem; }
.notification-log li strong { color: var(--ink); }
.notification-log p { font-size: .72rem; }
.concept-history h3 { font-size: 1.15rem; }
.concept-activity { position: relative; display: grid; gap: 10px; margin: 15px 0 0; padding: 0; list-style: none; }
.concept-activity li { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: flex-start; }
.concept-activity li > span { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--plum); }
.concept-activity strong, .concept-activity small { display: block; }
.concept-activity strong { font-size: .82rem; }
.concept-activity small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.concept-form-grid label { align-content: start; }
.concept-form-grid textarea { resize: vertical; }
.modal-explainer { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff8e8; color: #655b49; font-size: .82rem; }

.file-layout { display: grid; gap: 34px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title h2 { font-size: 1.7rem; }
.file-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.file-item { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.file-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--lavender); font-size: 1.25rem; }
.file-item h3 { font-size: .94rem; margin-top: 18px; word-break: break-word; }
.file-item p { font-size: .76rem; margin: 5px 0 0; }
.file-actions { display: flex; gap: 8px; margin-top: 14px; }
.file-actions button { border: 0; background: #f3eef4; color: var(--plum-dark); padding: 8px 10px; border-radius: 9px; font-size: .78rem; font-weight: 700; }

.modal { border: 0; padding: 0; border-radius: 22px; width: min(680px, calc(100% - 28px)); box-shadow: 0 24px 80px rgba(42,36,48,.24); }
.modal::backdrop { background: rgba(37, 30, 42, .44); backdrop-filter: blur(6px); }
.modal-card { padding: 28px; display: grid; gap: 18px; background: white; }
.modal-card.wide { width: min(840px, 100%); }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-heading h2 { font-size: 2rem; }
.modal-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f3eef3; color: #625a65; font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.document-editor { min-height: 330px; resize: vertical; line-height: 1.6; }
.upload-drop { padding: 34px 22px !important; display: grid !important; justify-items: center; text-align: center; border: 1.5px dashed #cabcca; border-radius: 18px; background: #fbf9fb; cursor: pointer; }
.upload-drop:hover { background: #f7f2f7; border-color: #a992aa; }
.upload-drop input { margin-top: 10px; max-width: 360px; }
.upload-drop span { color: var(--muted); font-weight: 400; font-size: .82rem; }
.upload-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--lavender); color: var(--plum); font-size: 1.35rem !important; font-weight: 800 !important; }
.progress { height: 8px; background: #eee9ed; border-radius: 999px; overflow: hidden; }
.progress span { display: block; width: 35%; height: 100%; background: var(--plum); animation: progress 1.2s ease-in-out infinite alternate; }
@keyframes progress { from { width: 15%; } to { width: 88%; } }
.conversation-detail { display: grid; gap: 18px; }
.conversation-detail section { padding: 16px 18px; background: #faf8fa; border-radius: 14px; }
.conversation-detail h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--plum); margin-bottom: 6px; }
.conversation-detail p { margin: 0; white-space: pre-wrap; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #2d2731; color: white; padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow); transition: all .2s ease; font-size: .9rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .topnav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .home-grid { grid-template-columns: 1fr; }
  .opportunity-grid { grid-template-columns: repeat(2, 1fr); }
  .file-grid { grid-template-columns: repeat(2, 1fr); }
  .concept-metrics { grid-template-columns: repeat(3,1fr); }
  .participation-facts { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-card { padding: 38px 24px; }
  .topbar { padding: 0 16px; }
  .brand-logo { width: 138px; }
  .brand-divider, .brand-sub { display: none; }
  .app-shell { width: min(100% - 28px, 1280px); padding-top: 26px; }
  .hero-card { grid-template-columns: 1fr; min-height: 0; }
  .hero-graphic { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .thinking-grid { grid-template-columns: 1fr; }
  .outcome-fields { grid-template-columns: 1fr; }
  .alignment-release { grid-template-columns: 1fr; align-items: stretch; }
  .alignment-answer-grid.two-up, .alignment-outcome-fields { grid-template-columns: 1fr; }
  .concept-framework { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .metric-grid, .opportunity-grid, .file-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 150px; }
  .page-heading.split { align-items: flex-start; flex-direction: column; }
  .alignment-section-heading { display: grid; }
  .alignment-topic > summary { grid-template-columns: 1fr auto; }
  .alignment-topic > summary .alignment-status { grid-column: 1; grid-row: 2; justify-self: start; }
  .alignment-topic > summary .topic-chevron { grid-column: 2; grid-row: 1; }
  .topic-summary { grid-template-columns: 1fr auto; gap: 10px; }
  .topic-summary .type-pill { grid-column: 1; grid-row: 1; justify-self: start; }
  .topic-summary-copy { grid-column: 1 / -1; grid-row: 2; }
  .topic-summary .topic-progress { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
  .topic-summary .agreement-pill { grid-column: 1; grid-row: 4; justify-self: start; }
  .topic-summary .topic-chevron { grid-column: 2; grid-row: 1; }
  .topic-chevron { grid-column: 2; grid-row: 1; }
  .outcome-heading, .outcome-read { grid-template-columns: 1fr; }
  .outcome-heading { display: grid; }
  .outcome-heading .agreement-pill { justify-self: start; }
  .header-actions .btn { display: none; }
  .concept-metrics, .concept-field-grid, .participation-facts { grid-template-columns: 1fr; }
  .concept-field.wide { grid-column: auto; }
  .concept-record > summary { padding: 18px; }
  .concept-record-body { padding: 0 16px 18px; }
  .participation-heading { display: grid; }
  .notification-log li { grid-template-columns: 1fr; }
  .hero-copy { padding: 34px 26px; }
  .hero-copy h1 { font-size: 2.9rem; }
  .account-menu, .add-menu { right: 12px; top: 76px; }
}

.preview-banner {
  position: sticky;
  top: 72px;
  z-index: 35;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 9px 18px;
  background: #3f3450;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: .84rem;
}
.preview-banner .text-button { color: #fff; text-decoration: underline; }
.admin-tools { display: grid; gap: 8px; padding: 18px 20px; margin: 0; background: var(--panel); }
.admin-tools label { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.admin-tools p { margin: 0 0 4px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.admin-tools select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; font: inherit; color: var(--ink); }
.preview-mode [data-add] { opacity: .42; cursor: not-allowed; }
.preview-mode .hero-actions, .preview-mode #add-button { visibility: hidden; }
/* Ask OCM owner-only pilot */
.ask-ocm-control-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr); gap: 22px; margin: 24px 0 34px; }
.ask-ocm-control-grid .panel { margin: 0; }
.ask-ocm-availability-actions { flex-wrap: wrap; margin-top: 18px; }
.muted-copy { color: var(--muted); }
.readiness-list { display: grid; gap: 10px; }
.readiness-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.readiness-row:last-child { border-bottom: 0; }
.readiness-state { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 800; }
.readiness-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #a6adb4; }
.readiness-state.ready { color: #287a54; }
.readiness-state.ready::before { background: #287a54; }
.ask-ocm-queue-section { margin-top: 24px; }
.ask-ocm-support-section { margin: 24px 0 34px; }
.ask-ocm-support-list { display: grid; gap: 10px; }
.ask-ocm-support-request { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.ask-ocm-support-request small { display: block; margin-top: 3px; color: var(--muted); }
.ask-ocm-usage-signals { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.ask-ocm-usage-signals h3 { margin: 0 0 4px; }
.ask-ocm-queue { display: grid; gap: 18px; }
.ask-ocm-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.ask-ocm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.ask-ocm-card-head h3 { margin: 4px 0 0; font-size: 1.2rem; }
.ask-ocm-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.ask-ocm-meta span { padding: 5px 9px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .75rem; font-weight: 800; }
.ask-ocm-classification.green { color: #216a48; background: #eaf6ef; }
.ask-ocm-classification.yellow { color: #815715; background: #fff6e4; }
.ask-ocm-classification.red { color: #932f2f; background: #fff0f0; }
.ask-ocm-card-body { display: grid; gap: 18px; padding: 22px 24px 24px; }
.ask-ocm-question { margin: 0; font-size: 1.02rem; line-height: 1.6; white-space: pre-wrap; }
.ask-ocm-response-editor textarea { width: 100%; min-height: 180px; margin-top: 8px; resize: vertical; }
.ask-ocm-version-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-ocm-version-tabs button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.ask-ocm-version-tabs button.active { color: var(--plum); border-color: var(--plum); background: var(--lavender); }
.ask-ocm-action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-ocm-detail-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ask-ocm-detail { padding: 12px; border-radius: 10px; background: var(--paper); }
.ask-ocm-detail small { display: block; color: var(--muted); }
.ask-ocm-detail strong { display: block; margin-top: 3px; }
.ask-ocm-sla.overdue { color: #932f2f; }
.ask-ocm-sla.paused { color: #815715; }

@media (max-width: 900px) {
  .ask-ocm-control-grid { grid-template-columns: 1fr; }
  .ask-ocm-detail-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ask-ocm-card-head { flex-direction: column; }
  .ask-ocm-card-head, .ask-ocm-card-body { padding-left: 16px; padding-right: 16px; }
  .ask-ocm-action-row .btn, .ask-ocm-availability-actions .btn { width: 100%; }
}

/* Owner-only advisor review center */
.advisor-review-toolbar { display: grid; grid-template-columns: repeat(3, minmax(170px, .65fr)) minmax(240px, 1.3fr); gap: 14px; margin: 24px 0 16px; }
.advisor-review-toolbar label { display: grid; gap: 7px; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.advisor-review-toolbar select, .advisor-review-toolbar input { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); font: inherit; text-transform: none; letter-spacing: 0; }
.advisor-review-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.advisor-review-summary span { padding: 8px 11px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .8rem; }
.advisor-review-summary strong { color: var(--ink); }
.advisor-review-list { display: grid; gap: 16px; }
.advisor-review-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.advisor-review-card > summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px; cursor: pointer; list-style: none; }
.advisor-review-card > summary::-webkit-details-marker { display: none; }
.advisor-review-card > summary h3 { margin: 6px 0 5px; font-size: 1.16rem; }
.advisor-review-card > summary p { margin: 0; color: var(--muted); font-size: .84rem; }
.advisor-review-card[open] .topic-chevron { transform: rotate(180deg); }
.advisor-review-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.advisor-review-meta span { padding: 5px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .71rem; font-weight: 800; }
.advisor-review-meta .conversation-requested { background: #fff2d8; color: #805313; }
.advisor-review-body { display: grid; gap: 20px; padding: 22px; border-top: 1px solid var(--line); }
.advisor-review-body h4 { margin: 0 0 8px; }
.advisor-review-body p, .advisor-review-body li { line-height: 1.55; }
.advisor-review-body ol, .advisor-review-body ul { margin: 8px 0 0; padding-left: 22px; }
.advisor-review-body li { margin-bottom: 7px; }
.advisor-finding, .advisor-commercial { padding: 18px; border-radius: 13px; background: var(--paper); }
.advisor-commercial { border-left: 5px solid var(--teal); }
.advisor-review-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.advisor-review-actions { display: flex; gap: 10px; }
.advisor-review-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.advisor-review-form label { display: grid; gap: 7px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.advisor-review-form select, .advisor-review-form input, .advisor-review-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.advisor-review-save { display: flex; justify-content: flex-end; }

@media (max-width: 900px) {
  .advisor-review-toolbar { grid-template-columns: 1fr 1fr; }
  .advisor-search { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .advisor-review-toolbar, .advisor-review-columns, .advisor-review-form { grid-template-columns: 1fr; }
  .advisor-search, .advisor-review-form .span-2 { grid-column: auto; }
  .advisor-review-save .btn, .advisor-review-actions .btn { width: 100%; }
}

/* v0.16.5 owner console + shared topic documents */
.owner-console {
  position: fixed;
  top: 82px;
  right: 26px;
  z-index: 90;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.owner-console[hidden] { display: none !important; }
.owner-console-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:18px; }
.owner-console-head strong { display:block; margin-top:5px; font-size:1.2rem; }
.owner-console-section { display:grid; gap:7px; padding:16px 0; border-top:1px solid var(--line); }
.owner-console-section label { font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.owner-console-section p { margin:0; font-size:.8rem; }
.owner-console-links { display:grid; gap:9px; padding-top:16px; border-top:1px solid var(--line); }
.preview-mode #owner-console-button { display:none !important; }

.topic-view-toggle { display:inline-flex; width:fit-content; gap:4px; padding:4px; border-radius:12px; background:#f1ecef; }
.topic-view-toggle button { border:0; padding:8px 12px; border-radius:9px; background:transparent; color:var(--muted); font-weight:750; font-size:.82rem; }
.topic-view-toggle button.active { background:white; color:var(--plum-dark); box-shadow:0 3px 10px rgba(54,43,61,.08); }
.shared-topic-document { display:grid; gap:14px; padding:18px; border:1px solid rgba(20,47,49,.14); border-radius:16px; background:#fffefa; }
.shared-topic-document h3 { font-size:1.3rem; }
.shared-topic-document textarea { min-height:320px; resize:vertical; line-height:1.58; background:white; }
.shared-topic-document .shared-document-meta { margin:0; font-size:.78rem; }
.shared-topic-document.readonly textarea { background:#f8f6f0; }
@media (max-width: 600px) {
  .owner-console { right:12px; top:76px; }
  #owner-console-button { padding:9px 11px; font-size:.8rem; }
}

/* v0.16.6 persistent owner workspace filter */
.owner-workspace-bar {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 28px;
  border-bottom:1px solid var(--line);
  background:var(--paper);
  position:sticky;
  top:0;
  z-index:72;
}
.owner-workspace-bar[hidden] { display:none !important; }
.owner-workspace-bar label {
  font-size:.76rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
}
.owner-workspace-bar select {
  min-width:180px;
  max-width:260px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 34px 8px 10px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-weight:700;
}
.preview-mode #owner-workspace-bar { display:none !important; }
@media (max-width: 700px) {
  .owner-workspace-bar { padding:10px 16px; flex-wrap:wrap; }
  .owner-workspace-bar label { width:100%; }
  .owner-workspace-bar select { min-width:0; flex:1 1 180px; }
  .owner-workspace-bar .btn { flex:1 1 auto; }
}
