/* ===========================================================
   The Lit Desk — shared styles
   =========================================================== */

:root {
  --navy: #1a1a1a;
  --navy-light: #262626;
  --navy-lighter: #3d3d3d;
  --gold: #ff1a1a;
  --gold-light: #ff4d4d;
  --cream: #f4f4f5;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #5b5f66;
  --border: #e2e2e4;
  --success: #2f7a4f;
  --amber: #b8862f;
  --red: #c62828;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 84px 0; }

.section-cream { background: var(--cream); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.lede {
  font-size: 1.15rem;
  max-width: 640px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: #ffffff;
}
.btn-primary:hover { background: var(--gold-light); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--paper);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-navy {
  background: var(--navy);
  color: var(--paper);
}
.btn-navy:hover { background: var(--navy-light); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--cream); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand-logo {
  height: 24px;
  width: auto;
  display: block;
}
.brand-logo-lg {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Wordmark used on dark backgrounds where the (white-background) logo file
   would show a box — plain type instead, still carrying the brand accent dot. */
.brand-on-dark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.brand-on-dark .accent-dot { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-cta .btn-navy { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #222222 55%, var(--navy-lighter) 100%);
  color: var(--paper);
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255,26,26,0.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,26,26,0.10), transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

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

.hero h1 { color: var(--paper); }

.hero .lede { color: rgba(255,255,255,0.78); font-size: 1.1rem; }

.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-stat {
  display: block;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.hero-stat:hover {
  opacity: 0.8;
}
.hero-stat:hover .num {
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
}
.hero-stat .num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--gold-light);
  font-weight: 700;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-card-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero-card-row:last-child { border-bottom: none; }
.hero-card-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,26,26,0.18);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.hero-card-title { color: var(--paper); font-weight: 600; font-size: 0.95rem; }
.hero-card-sub { color: rgba(255,255,255,0.6); font-size: 0.82rem; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Cards that are also links (<a class="card">) — reset anchor defaults,
   keep the same hover lift as a normal card. */
a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* Step tiles that are also links (<a class="step">) */
a.step {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.step:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); }
a.step:hover .step-num { background: var(--gold); color: var(--paper); transition: background 0.15s ease; }

/* Hero activity card, when it's also a link to the portal */
a.hero-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
a.hero-card:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.09);
}

.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.demo-video-wrap {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.demo-video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--navy);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding-top: 8px; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--serif);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--paper);
  border-radius: 16px;
  padding: 56px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(255,255,255,0.75); }
.cta-band .btn-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--paper); font-family: var(--serif); font-size: 1.1rem; margin-bottom: 12px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-lighter) 100%);
  color: var(--paper);
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { color: var(--paper); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; }
.breadcrumb { font-size: 0.82rem; color: var(--gold-light); margin-bottom: 14px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Table-ish list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  background: var(--cream);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  margin-top: 1px;
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,26,26,0.16);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 8px; }

.form-success {
  display: none;
  background: #eef7f0;
  border: 1px solid #cfe9d6;
  color: var(--success);
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.form-success.show { display: block; }

/* ---------- Contact info cards ---------- */
.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-card:last-child { border-bottom: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-amber { background: #fbf1e0; color: var(--amber); }
.badge-navy { background: #ececec; color: var(--navy); }
.badge-green { background: #e8f5ec; color: var(--success); }
.badge-gray { background: #eee; color: #666; }

/* ===========================================================
   Portal (prototype)
   =========================================================== */

.portal-shell {
  min-height: calc(100vh - 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 60px 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 44px 38px;
  border: 1px solid var(--border);
}

.login-card .brand {
  justify-content: center;
  margin-bottom: 6px;
}

.login-head {
  text-align: center;
  margin-bottom: 30px;
}
.login-head p { font-size: 0.9rem; margin: 0; }

.login-demo-note {
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.login-error {
  display: none;
  background: #fbeaea;
  color: var(--red);
  border: 1px solid #f0c9c9;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.login-error.show { display: block; }

/* ---- Dashboard layout ---- */
.portal-app { display: none; }
.portal-app.active { display: block; }
.auth-view { display: none; }
.auth-view.active { display: block; }

.portal-topbar {
  background: var(--navy);
  color: var(--paper);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-topbar .brand { color: var(--paper); }
.portal-user { display: flex; align-items: center; gap: 14px; font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.portal-user .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}

.portal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 100px);
}
@media (max-width: 900px) {
  .portal-layout { grid-template-columns: 1fr; }
}

.portal-sidebar {
  background: var(--paper);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
}
.portal-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 6px;
}
.portal-sidebar-head h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.case-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.case-item {
  padding: 14px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}
.case-item:hover { background: var(--cream); }
.case-item.active { background: #f0f0f0; border-color: #d8d8da; }
.case-item .case-name { font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-bottom: 6px; }
.case-item .case-sub { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 8px; }

.portal-main { padding: 30px 34px; }

.case-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.upload-section { margin-bottom: 34px; }
.upload-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.upload-section-head h4 { margin: 0; font-family: var(--sans); font-size: 1rem; color: var(--navy); }
.upload-section-desc { font-size: 0.82rem; color: var(--ink-soft); margin: -8px 0 14px; }

.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 26px;
  text-align: center;
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: #fff1f1; }
.dropzone-icon { font-size: 1.6rem; margin-bottom: 8px; }
.dropzone p { margin: 0; font-size: 0.88rem; }
.dropzone .dz-sub { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }

.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}
.file-row .file-icon {
  width: 34px; height: 34px;
  border-radius: 7px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.file-row .file-meta { flex: 1; min-width: 0; }
.file-row .file-name { font-size: 0.88rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row .file-sub { font-size: 0.76rem; color: var(--ink-soft); }
.file-row .file-remove {
  background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 1rem; padding: 4px 8px;
}
.file-row .file-remove:hover { color: var(--red); }
.file-empty { font-size: 0.85rem; color: var(--ink-soft); padding: 10px 2px; }

.new-matter-form {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  display: none;
}
.new-matter-form.show { display: block; }

.file-group { margin-bottom: 18px; }
.file-group:last-child { margin-bottom: 0; }
.file-group-label {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.matter-deadline {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--red);
  margin: 4px 0 0;
}
.matter-deadline .deadline-caps {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.deadline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.deadline-row input[type="date"] {
  font-family: var(--sans);
  font-size: 0.82rem;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
}

.case-lead-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.case-lead-row label {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.case-lead-row input[type="text"] {
  font-family: var(--sans);
  font-size: 0.82rem;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  width: 160px;
}

.notify-btn {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  border: none;
  border-radius: 6px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.notify-btn:hover { background: var(--gold-light); }
.notify-btn:disabled { opacity: 0.6; cursor: default; }
.notify-note {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

/* ---------- Upload-tag modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 100%;
  max-width: 420px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-10 { gap: 10px; }
.text-sm { font-size: 0.88rem; }
.muted { color: var(--ink-soft); }
