/* Silverlight Intelligence — Unified Stylesheet */

@font-face { font-family: 'Cardo'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/cardo_normal_400.subset.woff2') format('woff2'); }
@font-face { font-family: 'Cardo'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/cardo_normal_700.subset.woff2') format('woff2'); }
@font-face { font-family: 'Cardo'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/cardo_italic_400.subset.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/fonts/Inter-Variable.woff2') format('woff2'); }

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --shaded: #f7f7f7;
  --text: #111111;
  --text-muted: #4d4d4d;
  --text-light: #595959;
  --border: #e1e1e1;
  --accent: #2b2f35;
  --accent-hover: #3d4249;
  --gold: #b58a39;
  --green: #166534;
  --amber: #92400e;
  --red: #991b1b;
  --radius: 4px;
  --type-sm: 1rem;
  --type-base: clamp(1rem, calc(0.9rem + 0.25vw), 1.125rem);
  --type-md: clamp(1.05rem, calc(0.95rem + 0.25vw), 1.2rem);
  --type-lg: clamp(1.2rem, calc(1rem + 0.5vw), 1.5rem);
  --serif: 'Cardo', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --max-width: 1100px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --header-row-brand: 52px;
  --header-row-nav: 40px;
}

html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--accent);
  color: var(--text);
  font-size: var(--type-base);
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, a, span, li, td, th, label, input, button, textarea, select {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga' 1;
}

a { color: var(--text); text-decoration: underline; text-underline-offset: 0.25em; font-weight: 600; }
a:hover { text-decoration-color: var(--text-muted); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.site-header-inner {
  display: block;
  text-align: center;
  padding: 1.35em 0;
}
.site-header-inner .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-row-brand);
}
.site-header-inner .site-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-row-nav);
}
.header-offset {
  height: calc(var(--header-row-brand) + var(--header-row-nav) + 2.7em);
  background: var(--bg);
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand, .brand:hover { text-decoration: none; }
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}
.nav-menu a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}
.nav-menu a:hover { color: var(--text); text-decoration: none; }

.nav-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
}
.nav-icon {
  display: block;
  width: 24px;
  height: 24px;
  background-color: var(--text);
  -webkit-mask-image: url('/icons/menu.svg');
  mask-image: url('/icons/menu.svg');
  -webkit-mask-size: 100%;
  mask-size: 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
}
.nav-dropdown-trigger:hover { color: var(--text); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  padding: 0.25rem 0;
  z-index: 101;
}
.nav-dropdown[data-state="open"] .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: var(--type-sm);
  color: var(--text-muted);
}
.nav-dropdown-menu a:hover {
  background: var(--shaded);
  color: var(--text);
}

.brand-text { display: inline; }
@media (max-width: 600px) {
  .brand-text { display: none; }
  .nav-trigger { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  }
  .site-nav-links[data-state="open"] .nav-menu { display: flex; }
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu a,
  .nav-menu button {
    display: block;
    padding: 0.85rem var(--gutter);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
    width: 100%;
    text-align: left;
  }
  .nav-dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-dropdown[data-state="open"] .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding-left: calc(var(--gutter) + 1rem); }
}

/* ── Footer ── */
.site-footer {
  padding: 2.5rem 0;
  font-size: var(--type-sm);
  background: var(--accent);
  color: #d4d4d4;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer a { color: #d4d4d4; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 0.25em; }

/* ── Main content area ── */
main { background: var(--bg); }
.page-content { background: var(--bg); padding-bottom: 3rem; }
.dashboard-wrap { background: var(--bg); min-height: 50vh; padding: 3rem 0; }

/* ── Hero ── */
.hero {
  position: relative;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 80vh;
  padding: 2rem 0;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: var(--type-md);
  font-weight: 600;
  max-width: 85%;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}
.hero--inverted {
  background: linear-gradient(150deg, var(--accent) 65%, var(--gold));
  color: #f0f0f0;
}
.hero--inverted h1 { color: #ffffff; text-shadow: 0 1px 3px var(--accent); }
.hero--inverted p { color: #b0b0b0; text-shadow: 0 1px 2px var(--accent); }
.hero--inverted .cta { box-shadow: 0 1px 3px var(--accent); }
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero .cta {
  display: inline-block;
  font-size: var(--type-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  cursor: pointer;
}
.hero .cta, .hero .cta:hover { text-decoration: none; }
.cta--outline {
  background: transparent;
  color: #f0f0f0;
  border: 2px solid #f0f0f0;
}
.cta--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ── Sections ── */
section {
  position: relative;
  display: block;
  width: 100%;
  padding: min(13vw, 9rem) 0;
}

main > section:nth-of-type(even) {
  background: var(--shaded);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.section-label {
  font-family: var(--sans);
  font-size: var(--type-sm);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}
.service h4 {
  font-family: var(--serif);
  font-size: var(--type-lg);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.service p {
  font-size: var(--type-md);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Process ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}
.step-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: #767676;
  line-height: 1;
  margin-bottom: 1rem;
}
.step h4 {
  font-family: var(--sans);
  font-size: var(--type-sm);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.step p {
  font-size: var(--type-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── About ── */
.about-section { overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-photo { flex-shrink: 0; }
.hex-frame {
  position: relative;
  width: 280px;
  height: 280px;
  overflow: visible;
}
.hex-frame-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -55%) scale(2);
  opacity: 0.0375;
  pointer-events: none;
}
.hex-frame-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -57.5%);
  object-fit: cover;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  z-index: 1;
}
.about-content .section-heading { margin-top: 0; }
.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.about-text + .about-text { margin-top: 1rem; }

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .about-text { max-width: 100%; }
  .about-content, .about-content * { text-align: left; }
  .hex-frame {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }
}

/* ── Mailing list ── */
.mailing { background: var(--bg); }
.mailing .wrap { display: block; }
.mailing-text { margin-bottom: 1.25rem; }
.mailing-text p { font-size: var(--type-sm); color: var(--text-muted); }
.mailing form { display: flex; gap: 0.5rem; max-width: 480px; }
.mailing input[type="email"] {
  flex: 1;
  font-family: var(--sans);
  font-size: var(--type-sm);
  padding: 0.65rem 1rem;
  border: 2px solid var(--text);
  border-radius: 3px;
  background: var(--shaded);
}
.mailing input[type="email"]:focus { outline: none; border-color: var(--text); }
.mailing button {
  font-family: var(--sans);
  font-size: var(--type-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.5rem;
  border-radius: 3px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
}
.mailing button:hover { background: var(--accent-hover); }

/* ── Dashboard ── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.stat-card .label { font-size: var(--type-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); }
.stat-card .value { font-size: 1.5rem; font-weight: 600; margin-top: 0.25rem; font-family: var(--mono); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
th { text-align: left; font-size: var(--type-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
td { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--border); font-size: var(--type-sm); }
tr:hover td { background: var(--shaded); }

/* Status badges */
.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--type-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.badge-prospect { background: #f3f4f6; color: #374151; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-paused { background: #fef3c7; color: #92400e; }
.badge-completed { background: #e5e7eb; color: #1f2937; }
.badge-lost { background: #fee2e2; color: #991b1b; }
.badge-draft { background: #f3f4f6; color: #374151; }
.badge-sent { background: #dbeafe; color: #1e40af; }
.badge-paid { background: #dcfce7; color: #166534; }
.badge-overdue { background: #fee2e2; color: #991b1b; }

/* Dashboard headings */
.dash-heading {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.dash-subheading {
  font-family: var(--sans);
  font-size: var(--type-sm);
  font-weight: 800;
  margin: 1.75rem 0 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Document tables */
.doc-table { table-layout: fixed; }
.doc-table th:nth-child(1),
.doc-table td:nth-child(1) { width: 55%; }
.doc-table th:nth-child(2),
.doc-table td:nth-child(2) { width: 27.5%; }
.doc-table th:nth-child(3),
.doc-table td:nth-child(3) { width: 17.5%; text-align: right; }
.doc-table-action { text-align: right; }

/* Document list */
.doc-list { list-style: none; }
.doc-list li {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.doc-list li:hover { background: var(--shaded); }
.doc-list .meta { font-size: var(--type-sm); color: var(--text-light); }

/* Document render */
.doc-render {
  background: var(--surface);
  padding: 1rem clamp(0.5rem, 3vw, 3rem) 2rem;
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.75;
}
.doc-masthead {
  text-align: center;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.doc-mark {
  display: inline-block;
  width: 70px;
  height: 70px;
  margin: 0 auto 0.5rem;
}
.doc-render h1 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.5rem; text-align: center; }
.doc-render h2 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: 0.5rem; text-decoration: underline; text-underline-offset: 0.2em; }
.doc-render h3 { font-size: var(--type-sm); margin-top: 1.5rem; margin-bottom: 0.5rem; text-transform: none; color: var(--text); letter-spacing: 0; }
.doc-render p { margin-bottom: 0.75rem; }
.doc-render strong { font-weight: 700; }
.doc-render hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.doc-render ul, .doc-render ol { margin: 0.5rem 0 0.75rem 1.5rem; }
.doc-render li { margin-bottom: 0.25rem; }
.doc-render table { font-family: var(--sans); font-size: var(--type-sm); font-weight: 500; margin: 1rem 0; table-layout: fixed; width: 100%; }
.doc-render th, .doc-render td { padding: 0.5rem 0.6rem; }

/* Header info — 35/65, right-align values */
.table-header table th:first-child, .table-header table td:first-child { width: 35%; }
.table-header table th:nth-child(2), .table-header table td:nth-child(2) { width: 65%; text-align: right; }

/* Schedule & Fees — 50/25/25, center mid, right-align last */
.table-schedule table th:first-child, .table-schedule table td:first-child { width: 50%; }
.table-schedule table th:nth-child(2), .table-schedule table td:nth-child(2) { width: 25%; text-align: center; }
.table-schedule table th:nth-child(3), .table-schedule table td:nth-child(3) { width: 25%; text-align: right; }
.table-fees table th:first-child, .table-fees table td:first-child { width: 50%; }
.table-fees table th:nth-child(2), .table-fees table td:nth-child(2) { width: 25%; text-align: center; }
.table-fees table th:nth-child(3), .table-fees table td:nth-child(3) { width: 25%; text-align: right; }

/* Expenses — 30/40/30, center mid, right-align last */
.table-expenses table th:first-child, .table-expenses table td:first-child { width: 30%; }
.table-expenses table th:nth-child(2), .table-expenses table td:nth-child(2) { width: 40%; text-align: center; }
.table-expenses table th:nth-child(3), .table-expenses table td:nth-child(3) { width: 30%; text-align: right; }

/* Total estimated cost — 70/30, right-align amount */
.table-total table th:first-child, .table-total table td:first-child { width: 70%; }
.table-total table th:nth-child(2), .table-total table td:nth-child(2) { width: 30%; text-align: right; white-space: nowrap; }

/* Acceptance — 30/35/35 */
.table-acceptance table th:first-child, .table-acceptance table td:first-child { width: 30%; }
.table-acceptance table th:nth-child(2), .table-acceptance table td:nth-child(2) { width: 35%; }
.table-acceptance table th:nth-child(3), .table-acceptance table td:nth-child(3) { width: 35%; }

.doc-toolbar {
  max-width: 800px;
  margin: 1rem auto 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  padding: 0.45rem 1rem;
  font-size: var(--type-sm);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--shaded); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }

.breadcrumb { font-size: var(--type-sm); color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--text); }

/* Client detail */
.client-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 1rem 0 1.5rem;
}
.client-header h2 { font-size: 1.35rem; margin-bottom: 0.15rem; }
.client-industry { font-size: var(--type-sm); color: var(--text-muted); }
.client-status-control select {
  font-family: var(--sans);
  padding: 0.35rem 0.6rem;
  font-size: var(--type-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.client-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: start;
}
.client-notes {
  font-size: var(--type-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--shaded);
  border-radius: var(--radius);
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.sidebar-label { font-size: var(--type-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); }
.sidebar-value { font-size: 1.25rem; font-weight: 600; font-family: var(--mono); margin-top: 0.2rem; }
.sidebar-sub { font-size: var(--type-sm); color: var(--text-light); }
.empty { color: var(--text-light); font-size: var(--type-sm); }

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

/* ── Responsive ── */
@media (max-width: 600px) {
  .mailing form { max-width: 100%; }
  .hero p { max-width: 100%; }
}

/* ── Print ── */
@media print {
  body { background: #fff; font-size: 11pt; margin: 0; padding: 0; }
  .site-header, .site-footer, .doc-toolbar, .header-offset, .no-print { display: none !important; }
  .page-content, .dashboard-wrap { padding: 0; }
  .doc-render { border: none; padding: 0; box-shadow: none; margin: 0; }
  .doc-render::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 0.25in;
    background: url('/images/silverlight-mark.svg') center / contain no-repeat;
  }
  table { page-break-inside: avoid; }
  h2 { page-break-after: avoid; }
  @page { margin: 0.5in 0.75in; }
}

/* ── Ops Dashboard ── */
.ops-page-title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 400; letter-spacing: -0.01em; margin-bottom: 2rem; }
.ops-section-label { font-family: var(--sans); font-size: var(--type-sm); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 2rem 0 1rem; }
.ops-category-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.ops-category-card { display: block; padding: 2rem 1.5rem; background: var(--shaded); border-radius: var(--radius); text-align: center; text-decoration: none; transition: background 0.15s; }
.ops-category-card:hover { background: var(--border); text-decoration: none; }
.ops-category-count { display: block; font-family: var(--serif); font-size: 2.5rem; font-weight: 400; line-height: 1; margin-bottom: 0.5rem; color: var(--text); }
.ops-category-label { display: block; font-family: var(--sans); font-size: var(--type-sm); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.ops-status-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 2rem; }
.ops-status-box { aspect-ratio: 4/3; padding: 1rem; background: var(--shaded); border: 2px solid transparent; border-radius: var(--radius); text-align: center; cursor: pointer; transition: opacity 0.15s, border-color 0.15s; font-family: var(--sans); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.ops-status-box[data-active="true"] { opacity: 1; border-color: var(--accent); }
.ops-status-box[data-active="false"] { opacity: 0.4; border-color: transparent; }
.ops-status-box:hover { opacity: 0.85; }
.ops-status-count { display: block; font-family: var(--serif); font-size: 2.25rem; order: 2; font-weight: 400; line-height: 1; margin-bottom: 0.25rem; color: var(--text); }
.ops-status-label { display: block; font-size: var(--type-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.ops-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ops-table th { text-align: left; font-size: var(--type-sm); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
.ops-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--border); font-size: var(--type-sm); }
.ops-table tr:hover td { background: var(--shaded); }
.ops-table a { text-decoration: none; }
.ops-table a:hover { text-decoration: underline; }

/* ── Inbox ── */
.message-card {
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.message-card--outbound {
  background: var(--shaded);
  border-left: 3px solid var(--accent);
}
.message-meta {
  font-size: var(--type-sm);
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
}
.message-body {
  font-size: var(--type-sm);
  line-height: 1.65;
  white-space: pre-wrap;
  margin-top: 0.75rem;
}
.message-iframe {
  width: 100%;
  min-height: 200px;
  border: none;
  margin-top: 0.75rem;
}
.thread-snippet {
  color: var(--text-muted);
  font-size: var(--type-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}
.reply-form .form-row {
  margin-bottom: 0.75rem;
}
.reply-form label {
  display: block;
  font-size: var(--type-sm);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.reply-form input[type="text"],
.reply-form input[type="email"] {
  width: 100%;
  font-family: var(--sans);
  font-size: var(--type-sm);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.reply-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: var(--type-sm);
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
}
.reply-form select {
  font-family: var(--sans);
  font-size: var(--type-sm);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
}
