/*
Theme Name: Nora
Theme URI: https://shownora.com
Author: Brian Stewart
Description: Custom marketing theme for ShowNora.com — a calm, supportive AI communication assistant for people navigating divorce proceedings.
Version: 1.0
Text Domain: nora-theme
*/

:root {
  --bg-dark: #171f1e;
  --bg-dark-2: #1d2726;
  --bg-dark-3: #223030;
  --surface: #fffaf3;
  --accent: #7fc8a9;
  --accent-2: #a3dcc1;
  --accent-soft: rgba(127, 200, 169, 0.14);
  --warm: #f2b880;
  --text-light: #eef2f0;
  --text-muted: #9fb0ac;
  --text-dark: #21302c;
  --text-dark-muted: #5f7871;
  --border-dark: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-sm: 9px;
  --max-width: 1140px;
  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #10231a; }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(127, 200, 169, 0.3); background: var(--accent-2); }

.btn-ghost { background: transparent; border-color: var(--border-dark); color: var(--text-light); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); }

.btn-light { background: var(--surface); color: var(--text-dark); }
.btn-light:hover { box-shadow: 0 12px 30px rgba(255, 250, 243, 0.15); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 31, 30, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: padding 0.2s ease;
}
.site-header.is-shrunk .container { padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text-light); }
.brand .brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #10231a;
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--text-muted); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--text-light); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-flex; background: transparent; border: 1px solid var(--border-dark);
    color: var(--text-light); border-radius: var(--radius-sm); padding: 8px 12px;
  }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 130px 0 90px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.6; }
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); color: var(--text-light); }
.hero h1 span { color: var(--accent-2); }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-note { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- Trust bar (replaces fake metrics) ---------- */
.trust-bar { border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); background: var(--bg-dark-2); }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding: 34px 0; text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trust-item .trust-icon { font-size: 20px; }
.trust-item span { font-size: 14px; color: var(--text-muted); font-weight: 500; }

@media (max-width: 720px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Section shared ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); color: var(--text-light); }
.section-head p { font-size: 16.5px; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-card {
  background: var(--bg-dark-3); border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: 30px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(127, 200, 169, 0.4); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 21px;
}
.feature-card h3 { font-size: 18.5px; color: var(--text-light); margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 14.5px; }

@media (max-width: 720px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { text-align: center; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--accent);
  color: var(--accent-2); display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin: 0 auto 16px;
}
.step h3 { font-size: 17.5px; color: var(--text-light); }
.step p { font-size: 14.5px; }

@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-card { background: var(--surface); color: var(--text-dark); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-card); }
.split-card h3 { color: var(--text-dark); }
.split-card p { color: var(--text-dark-muted); }
.guardrail-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff3e2; color: #8a5a1f;
  border: 1px solid #f0d6ab; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-top: 14px;
}

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Pricing (placeholder) ---------- */
.pricing-placeholder-note {
  text-align: center; font-size: 13.5px; color: var(--text-muted);
  background: var(--accent-soft); border: 1px dashed rgba(127, 200, 169, 0.4);
  border-radius: var(--radius-sm); padding: 10px 18px; max-width: 480px; margin: -30px auto 46px;
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { background: var(--bg-dark-3); border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 34px 28px; display: flex; flex-direction: column; }
.price-card.is-featured { border-color: var(--accent); position: relative; background: linear-gradient(180deg, rgba(127, 200, 169, 0.08), var(--bg-dark-3) 40%); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #10231a; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.price-card h3 { color: var(--text-light); font-size: 17.5px; margin-bottom: 6px; }
.price-amount { font-size: 36px; font-weight: 800; color: var(--text-light); margin-bottom: 4px; }
.price-amount span { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.price-desc { font-size: 14px; margin-bottom: 22px; }
.price-list { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price-list li { font-size: 14px; color: var(--text-light); padding: 9px 0; border-top: 1px solid var(--border-dark); display: flex; gap: 10px; }
.price-list li:first-child { border-top: none; }
.price-list li::before { content: "✓"; color: var(--accent-2); font-weight: 700; }

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- Contact / CTA ---------- */
.cta-band { background: var(--bg-dark-2); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); text-align: center; }
.cta-band h2 { color: var(--text-light); }
.cta-band .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { padding: 54px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 38px; }
.footer-brand p { max-width: 320px; font-size: 14px; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text-light); }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Client Portal (Cases / Documents) ---------- */
.btn-small { padding: 9px 16px; font-size: 14px; }

.portal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.portal-head h3 { color: var(--text-light); margin: 0; }

.case-switcher { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.case-pill {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-dark);
  background: transparent; color: var(--text-muted); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.15s ease;
}
.case-pill:hover { color: var(--text-light); border-color: var(--accent); }
.case-pill.is-active { background: var(--accent); color: #10231a; border-color: var(--accent); }

.ask-nora-panel { margin-top: 4px; }
.prompt-box {
  display: flex; gap: 10px; background: var(--bg-dark-2); border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: 10px;
}
.prompt-input {
  flex: 1; background: transparent; border: none; outline: none; color: var(--text-light);
  font-size: 15px; padding: 10px 12px; font-family: inherit;
}
.prompt-input::placeholder { color: var(--text-muted); }

/* ---------- Ask Nora chat thread ---------- */
.chat-thread {
  background: var(--bg-dark-2); border: 1px solid var(--border-dark); border-radius: var(--radius);
  padding: 18px; max-height: 420px; overflow-y: auto; margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 14px;
}
.chat-msg { display: flex; max-width: 82%; }
.chat-msg-user { align-self: flex-end; justify-content: flex-end; }
.chat-msg-nora { align-self: flex-start; flex-direction: column; align-items: flex-start; gap: 6px; }
.chat-bubble { border-radius: 14px; padding: 12px 15px; font-size: 14.5px; line-height: 1.55; }
.chat-msg-user .chat-bubble { background: var(--accent); color: #10231a; border-bottom-right-radius: 4px; font-weight: 500; }
.chat-msg-nora .chat-bubble { background: var(--surface); color: var(--text-dark); border-bottom-left-radius: 4px; box-shadow: var(--shadow-card); }
.chat-msg-nora .chat-bubble .doc-summary-p:last-child,
.chat-msg-nora .chat-bubble .doc-summary-list:last-child { margin-bottom: 0; }
.chat-msg-error { align-self: center; font-size: 13px; color: #b23a3a; text-align: center; }

.chat-msg-actions { display: flex; gap: 12px; padding-left: 2px; }
.chat-action-btn {
  background: none; border: none; cursor: pointer; padding: 0; font-size: 12.5px; font-weight: 600;
  color: var(--text-muted); transition: color 0.15s ease;
}
.chat-action-btn:hover { color: var(--accent-2); }
.chat-action-btn:disabled { cursor: default; color: var(--text-muted); }

.chat-typing { display: flex; gap: 4px; padding: 14px 15px; }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-dark-muted);
  opacity: 0.5; animation: nora-typing-bounce 1.1s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes nora-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.dropzone {
  border: 1.5px dashed rgba(127, 200, 169, 0.4); border-radius: var(--radius-sm);
  padding: 32px 20px; text-align: center; cursor: pointer; background: var(--accent-soft);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dropzone:hover, .dropzone.is-dragover { background: rgba(127, 200, 169, 0.22); border-color: var(--accent); }
.dropzone-icon { font-size: 26px; margin-bottom: 6px; }
.dropzone p { margin: 0 0 4px; color: var(--text-dark); }
.dropzone-hint { color: var(--text-dark-muted); font-size: 13px; }

.doc-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-empty { color: var(--text-muted); font-size: 14.5px; }

.doc-card {
  background: var(--surface); border-radius: var(--radius-sm); padding: 20px 22px;
  box-shadow: var(--shadow-card);
}
.doc-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.doc-title { font-weight: 700; color: var(--text-dark); font-size: 15.5px; }
.doc-meta { font-size: 12.5px; color: var(--text-dark-muted); margin-top: 2px; }
.doc-card-actions { display: flex; align-items: center; gap: 10px; }

.doc-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.doc-badge-processing { background: rgba(242, 184, 128, 0.25); color: #8a5a1c; }
.doc-badge-error { background: rgba(220, 90, 90, 0.15); color: #b23a3a; }
.doc-badge-done { background: var(--accent-soft); color: #2e6b52; }

.doc-delete-btn {
  background: none; border: none; color: var(--text-dark-muted); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 4px;
}
.doc-delete-btn:hover { color: #b23a3a; }

.doc-summary { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(33, 48, 44, 0.08); font-size: 14.5px; color: var(--text-dark-muted); line-height: 1.6; }
.doc-summary.is-collapsed {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Markdown rendering (AI doc summaries + timeline excerpts) ---------- */
.doc-summary-heading, .timeline-doc-events .doc-summary-heading {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: #2e6b52; margin: 16px 0 6px;
}
.doc-summary-heading-lg { font-size: 15.5px; text-transform: none; letter-spacing: 0; color: var(--text-dark); }
.doc-summary-list { margin: 0 0 10px; padding-left: 18px; }
.doc-summary-list li { margin-bottom: 6px; }
.doc-summary-p { margin: 0 0 10px; color: inherit; }
.doc-summary-hr { border: none; border-top: 1px solid rgba(33, 48, 44, 0.1); margin: 14px 0; }
.doc-summary > *:first-child, .timeline-doc-events > *:first-child { margin-top: 0; }
.doc-summary > *:last-child, .timeline-doc-events > *:last-child { margin-bottom: 0; }
.doc-toggle-btn {
  margin-top: 10px; background: none; border: none; cursor: pointer; padding: 0;
  font-size: 13.5px; font-weight: 600; color: #2e6b52;
}
.doc-toggle-btn:hover { text-decoration: underline; }
.doc-view-link { color: #2e6b52; font-weight: 600; text-decoration: none; }
.doc-view-link:hover { text-decoration: underline; }
.doc-processing-text, .doc-error-text { margin-top: 12px; font-size: 14px; }
.doc-processing-text { color: var(--text-dark-muted); font-style: italic; }
.doc-error-text { color: #b23a3a; }

/* ---------- Jurisdiction ---------- */
.jurisdiction-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.jurisdiction-pill {
  font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: var(--accent-soft); color: #2e6b52; white-space: nowrap;
}
.jurisdiction-pill-secondary { background: rgba(242, 184, 128, 0.2); color: #8a5a1c; }
.jurisdiction-pill-empty { background: transparent; border: 1px dashed var(--border-dark); color: var(--text-muted); }
.jurisdiction-edit-btn {
  background: none; border: none; color: var(--text-muted); font-size: 12.5px;
  text-decoration: underline; cursor: pointer; padding: 0;
}
.jurisdiction-edit-btn:hover { color: var(--text-light); }

/* ---------- Portal two-column layout: main content + persistent Timeline sidebar ---------- */
.portal-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.portal-main { min-width: 0; }
.portal-sidebar {
  position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
}
.sidebar-card {
  background: var(--bg-dark-2); border: 1px solid var(--border-dark); border-radius: var(--radius);
  padding: 22px;
}
.sidebar-card-head { display: flex; align-items: center; justify-content: space-between; }
.sidebar-card-head .eyebrow { margin-bottom: 0; }
.timeline-panel .timeline-list { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 980px) {
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar { position: static; max-height: none; }
}

/* ---------- Calendar (sidebar) ---------- */
.calendar-nav { display: flex; align-items: center; gap: 6px; }
.calendar-nav-btn {
  background: transparent; border: 1px solid var(--border-dark); color: var(--text-light);
  width: 24px; height: 24px; border-radius: 6px; cursor: pointer; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.calendar-nav-btn:hover { background: rgba(255, 255, 255, 0.06); }
.calendar-label { font-size: 12.5px; font-weight: 600; color: var(--text-light); min-width: 84px; text-align: center; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 16px; }
.calendar-weekday { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); text-align: center; padding-bottom: 2px; }
.calendar-day {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-muted); border-radius: 7px;
}
.calendar-day.is-outside { color: rgba(159, 176, 172, 0.3); }
.calendar-day.is-today { border: 1px solid var(--accent); color: var(--text-light); font-weight: 700; }
.calendar-day.has-deadline { background: var(--accent-soft); color: var(--text-light); font-weight: 700; cursor: pointer; }
.calendar-day.has-deadline:hover { background: rgba(127, 200, 169, 0.32); }
.calendar-day-dot { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); }

/* ---------- To Do (sidebar) ---------- */
.todo-list { display: flex; flex-direction: column; gap: 12px; }
.todo-item { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-card); }
.todo-item-date { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.todo-item-date.is-soon { color: #b23a3a; }
.todo-item-date.is-later { color: #8a5a1c; }
.todo-item-label { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-top: 4px; line-height: 1.4; }
.todo-item-doc { font-size: 12px; color: var(--text-dark-muted); margin-top: 3px; }
.todo-action-btn {
  margin-top: 10px; background: var(--accent); color: #10231a; border: none; border-radius: 999px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background 0.15s ease;
}
.todo-action-btn:hover { background: var(--accent-2); }

/* ---------- Portal toolbar: Add Documents button + tabs ---------- */
.portal-toolbar { display: flex; align-items: center; gap: 20px; margin: 22px 0 24px; flex-wrap: wrap; }
.portal-add-btn { white-space: nowrap; box-shadow: 0 8px 22px rgba(127, 200, 169, 0.25); }
.portal-add-btn.is-active { background: var(--accent-2); box-shadow: 0 10px 26px rgba(127, 200, 169, 0.4); }

.portal-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-dark); flex: 1; }
.portal-tab {
  background: none; border: none; padding: 10px 4px; margin-right: 22px; font-size: 14.5px;
  font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.portal-tab:hover { color: var(--text-light); }
.portal-tab.is-active { color: var(--accent-2); border-bottom-color: var(--accent); }

/* ---------- File Cabinet (Year / Month / Day) ---------- */
.file-cabinet { display: flex; flex-direction: column; gap: 8px; }

.cabinet-year { border: 1px solid var(--border-dark); border-radius: var(--radius-sm); overflow: hidden; }
.cabinet-year-header {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: var(--bg-dark-2); border: none; cursor: pointer; text-align: left;
}
.cabinet-year-header:hover { background: var(--bg-dark-3); }
.cabinet-year-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; }

.cabinet-month { border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; overflow: hidden; }
.cabinet-month-header {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: transparent; border: none; cursor: pointer; text-align: left;
}
.cabinet-month-header:hover { background: rgba(255,255,255,0.03); }
.cabinet-month-body { padding: 4px 14px 14px 30px; display: flex; flex-direction: column; gap: 18px; }

.cabinet-chevron { color: var(--accent-2); font-size: 20px; width: 20px; text-align: center; line-height: 1; }
.cabinet-label { flex: 1; font-weight: 600; color: var(--text-light); font-size: 14.5px; }
.cabinet-count {
  font-size: 12px; font-weight: 600; color: var(--text-muted); background: rgba(255,255,255,0.06);
  padding: 2px 9px; border-radius: 999px;
}

.cabinet-day-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.cabinet-day .doc-list { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Outgoing empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 30px; margin-bottom: 10px; }
.empty-state h3 { color: var(--text-light); font-size: 18px; margin-bottom: 8px; }
.empty-state p { max-width: 440px; margin: 0 auto; font-size: 14.5px; }

/* ---------- Timeline tab ---------- */
.timeline-note { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.timeline-doc-group { background: var(--surface); border-radius: var(--radius-sm); padding: 18px 22px; box-shadow: var(--shadow-card); margin-bottom: 12px; }
.timeline-doc-title { font-weight: 700; color: var(--text-dark); font-size: 15px; }
.timeline-doc-date { font-weight: 500; color: var(--text-dark-muted); font-size: 12.5px; }
.timeline-doc-events { margin-top: 10px; font-size: 14px; color: var(--text-dark-muted); line-height: 1.6; }

/* ---------- Case create/edit modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 16, 15, 0.6); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
  background: var(--surface); border-radius: var(--radius); padding: 30px; width: 100%;
  max-width: 420px; box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.modal-card h3 { color: var(--text-dark); margin-bottom: 18px; }
.modal-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin: 14px 0 6px; }
.modal-input {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(33,48,44,0.15);
  font-size: 14.5px; font-family: inherit; color: var(--text-dark); background: #fff;
}
.modal-hint { font-size: 12.5px; color: var(--text-dark-muted); margin-top: 6px; }
.modal-checkbox-row {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 13.5px;
  color: var(--text-dark-muted); cursor: pointer;
}
.modal-checkbox-row input { margin-top: 3px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

@media (max-width: 640px) {
  .portal-head { flex-direction: column; align-items: flex-start; }
  .prompt-box { flex-direction: column; }
  .portal-toolbar { flex-direction: column; align-items: stretch; }
  .portal-add-btn { width: 100%; }
  .portal-tabs { overflow-x: auto; }
  .cabinet-month-body { padding-left: 16px; }
  .sidebar-card { padding: 16px; }
  .calendar-day { font-size: 11.5px; }
  .calendar-label { min-width: 76px; font-size: 12px; }
}
