:root {
      --bg: #f5f8f7;
      --surface: #ffffff;
      --surface-soft: #f0f6f4;
      --text: #20312d;
      --muted: #71807b;
      --line: #e3ebe7;
      --primary: #177b68;
      --primary-dark: #116454;
      --primary-soft: #e4f3ee;
      --warning: #a96c16;
      --warning-soft: #fff4df;
      --shadow: 0 10px 30px rgba(30, 70, 58, .06);
      --radius: 18px;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      color: var(--text);
      background: var(--bg);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.5;
    }
    button, input { font: inherit; }
    button { cursor: pointer; }
    .app { min-height: 100vh; }
    .topbar {
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 max(24px, calc((100vw - 1180px) / 2));
      background: rgba(255,255,255,.88);
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 5;
      backdrop-filter: blur(12px);
    }
    .brand { display: flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -.5px; font-size: 20px; }
    .brand-mark {
      width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
      color: white; background: var(--primary); font-size: 21px; font-weight: 500;
    }
    .top-right { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
    .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
    .layout { max-width: 1180px; margin: 0 auto; padding: 32px 24px 60px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; }
    .sidebar { padding-top: 8px; }
    .nav-label { color: #9aa7a2; text-transform: uppercase; letter-spacing: 1.2px; font-size: 10px; font-weight: 750; padding: 0 12px; margin: 12px 0 10px; }
    .nav { display: grid; gap: 5px; }
    .nav button {
      display: flex; gap: 12px; align-items: center; width: 100%; border: 0; background: transparent;
      color: #61716b; text-align: left; border-radius: 12px; padding: 11px 13px; font-size: 14px; font-weight: 600;
    }
    .nav button:hover { background: #edf4f1; color: var(--text); }
    .nav button.active { background: var(--primary-soft); color: var(--primary-dark); }
    .nav-icon { width: 20px; text-align: center; font-size: 17px; }
    .side-note { margin: 34px 5px 0; background: #edf4f1; border: 1px solid #e3ece7; border-radius: 15px; padding: 14px; color: #63736d; font-size: 12px; }
    .side-note strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 5px; }
    main { min-width: 0; }
    .page { display: none; animation: appear .18s ease-out; }
    .page.active { display: block; }
    @keyframes appear { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: none; } }
    .eyebrow { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .3px; margin-bottom: 5px; }
    h1 { margin: 0; font-size: clamp(27px, 4vw, 34px); letter-spacing: -1.1px; line-height: 1.2; }
    .subheading { color: var(--muted); margin: 9px 0 0; font-size: 14px; }
    .header-row { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 26px; }
    .primary-btn, .secondary-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 12px;
      padding: 12px 17px; font-weight: 700; font-size: 13px; transition: .15s ease;
    }
    .primary-btn { color: white; background: var(--primary); border: 1px solid var(--primary); box-shadow: 0 4px 10px rgba(23,123,104,.14); }
    .primary-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
    .secondary-btn { background: white; border: 1px solid var(--line); color: var(--text); }
    .secondary-btn:hover { background: var(--surface-soft); }
    .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
    .upload-card { padding: 22px; margin-bottom: 22px; }
    .upload-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
    h2 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
    .small-muted { color: var(--muted); font-size: 12px; }
    .dropzone {
      border: 1.5px dashed #b9d4ca; border-radius: 15px; background: #f8fbfa; padding: 28px 18px;
      text-align: center; transition: .15s ease;
    }
    .dropzone.dragover { border-color: var(--primary); background: var(--primary-soft); }
    .upload-icon { width: 49px; height: 49px; margin: 0 auto 12px; border-radius: 15px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 24px; }
    .dropzone strong { display: block; font-size: 15px; margin-bottom: 5px; }
    .dropzone p { color: var(--muted); font-size: 12px; margin: 0 0 15px; }
    .file-hint { color: #98a49f; font-size: 11px; margin-top: 12px; }
    .selected-file { display: none; margin-top: 14px; border: 1px solid var(--line); background: white; padding: 12px 14px; border-radius: 12px; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
    .selected-file.visible { display: flex; }
    .file-info { min-width: 0; display: flex; gap: 10px; align-items: center; }
    .selected-file-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .upload-submit-btn { padding: 9px 13px; font-size: 12px; white-space: nowrap; }
    .upload-submit-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
    .file-badge { width: 35px; height: 35px; display: grid; place-items: center; background: #f0f3ff; border-radius: 10px; color: #596bb0; }
    .file-name { font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
    .file-size { color: var(--muted); font-size: 11px; }
    .remove-file {
      width: 42px;
      height: 36px;
      flex: 0 0 42px;
      padding: 0;
      font-size: 20px;
      line-height: 1;
      background: #984653;
      border-color: #984653;
      box-shadow: 0 4px 10px rgba(152, 70, 83, .2);
    }
    .remove-file.primary-btn:hover {
      background: #7f3744;
      border-color: #7f3744;
      box-shadow: 0 6px 14px rgba(127, 55, 68, .24);
    }
    .notice { display: flex; gap: 9px; align-items: flex-start; background: #f7f9f8; border: 1px solid var(--line); padding: 11px 13px; border-radius: 12px; color: #697872; font-size: 11px; margin-top: 15px; }
    .notice b { color: #465750; }
    .section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 27px 0 13px; }
    .empty-card { padding: 25px; display: flex; align-items: center; gap: 16px; }
    .empty-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: #f1f5f3; color: #83938c; font-size: 22px; }
    .empty-card strong { font-size: 13px; display: block; margin-bottom: 3px; }
    .empty-card p { color: var(--muted); font-size: 12px; margin: 0; }
    .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
    .step { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.65); }
    .step-num { color: var(--primary); font-size: 11px; font-weight: 800; margin-bottom: 8px; }
    .step strong { display: block; font-size: 12px; margin-bottom: 4px; }
    .step p { color: var(--muted); font-size: 11px; margin: 0; }
    .content-card { padding: 22px; }
    .empty-large { text-align: center; padding: 48px 20px; }
    .empty-large .upload-icon { width: 58px; height: 58px; font-size: 27px; }
    .empty-large h2 { font-size: 18px; margin-bottom: 7px; }
    .empty-large p { max-width: 390px; margin: 0 auto 18px; color: var(--muted); font-size: 13px; }
    .reports-section-head { margin-top: 0; }
    .reports-toolbar { display: flex; align-items: center; gap: 12px; }
    .reports-toolbar .secondary-btn { padding: 8px 12px; font-size: 12px; }
    .reports-message { margin-bottom: 14px; color: var(--muted); font-size: 13px; }
    .reports-error { color: #9b3d32; background: #fff8f6; border-color: #f0d7d2; }
    .reports-list { display: grid; gap: 12px; }
    .report-card { padding: 18px 20px; }
    .report-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
    .report-file { min-width: 0; display: flex; align-items: center; gap: 12px; }
    .report-file-name { min-width: 0; display: grid; gap: 3px; }
    .report-file-name strong { font-size: 13px; overflow-wrap: anywhere; }
    .report-file-name span { color: var(--muted); font-size: 11px; }
    .report-card-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
    .report-delete-btn { border: 1px solid #efd7d3; border-radius: 9px; background: #fff; color: #a04439; padding: 5px 10px; font-size: 11px; font-weight: 700; }
    .report-delete-btn:hover { background: #fff5f3; }
    .report-delete-btn:disabled { opacity: .55; cursor: wait; }
    .report-status { flex: 0 0 auto; display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: #f0f3f2; color: #63716b; font-size: 10px; font-weight: 750; }
    .report-status.is-draft { background: var(--warning-soft); color: #8b5c17; }
    .report-status.is-approved { background: var(--primary-soft); color: var(--primary-dark); }
    .report-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); margin-top: 15px; padding-top: 13px; }
    .report-detail { min-width: 0; display: grid; gap: 3px; }
    .report-detail span { color: var(--muted); font-size: 10px; }
    .report-detail strong { font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
    .profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
    .profile-field { padding: 15px; border: 1px solid var(--line); border-radius: 13px; }
    .profile-field span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
    .profile-field strong { font-size: 13px; font-weight: 650; }
    .prototype-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--warning-soft); color: #8b5c17; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 750; }
    .toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #20312d; color: white; border-radius: 12px; padding: 11px 16px; font-size: 12px; box-shadow: var(--shadow); transition: .2s ease; z-index: 20; max-width: calc(100vw - 30px); }
    .toast.show { opacity: 1; transform: translate(-50%, 0); }
    .mobile-nav { display: none; }
    @media (max-width: 760px) {
      .topbar { height: 62px; padding: 0 17px; }
      .top-right .user-label { display: none; }
      .layout { display: block; padding: 25px 16px 95px; }
      .sidebar { display: none; }
      .header-row { align-items: flex-start; flex-direction: column; }
      .header-row .primary-btn { width: 100%; }
      .upload-card { padding: 16px; }
      .steps { grid-template-columns: 1fr; }
      .step { display: flex; align-items: flex-start; gap: 12px; }
      .step-num { min-width: 24px; margin: 1px 0 0; }
      .profile-grid { grid-template-columns: 1fr; }
      .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 8px 5px calc(8px + env(safe-area-inset-bottom)); z-index: 10; backdrop-filter: blur(12px); }
      .mobile-nav button { border: 0; background: transparent; color: #829089; display: grid; justify-items: center; gap: 3px; font-size: 10px; padding: 4px 2px; }
      .mobile-nav button.active { color: var(--primary); font-weight: 750; }
      .mobile-nav .nav-icon { font-size: 18px; }
      .empty-card { align-items: flex-start; padding: 17px; }
      .report-card { padding: 15px; }
      .report-card-header { flex-direction: column; }
      .report-status { align-self: flex-start; }
      .report-details { grid-template-columns: 1fr 1fr; }
    }

    .report-preview-btn { border: 1px solid #cfe3da; border-radius: 9px; background: #f5faf7; color: #176b55; padding: 5px 10px; font-size: 11px; font-weight: 700; }
    .report-preview-btn:hover { background: #e8f4ed; }
    .report-preview-btn:disabled { opacity: .55; cursor: wait; }
    .pdf-preview[hidden] { display: none; }
    .pdf-preview { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
    .pdf-preview-backdrop { position: absolute; inset: 0; background: rgba(13, 25, 21, .72); }
    .pdf-preview-panel { position: relative; display: flex; flex-direction: column; width: min(1100px, 100%); height: min(900px, calc(100vh - 40px)); background: #f4f6f5; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
    .pdf-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; background: white; border-bottom: 1px solid var(--line); }
    .pdf-preview-heading { min-width: 0; display: grid; gap: 2px; }
    .pdf-preview-heading strong { overflow-wrap: anywhere; font-size: 13px; }
    .pdf-preview-heading span { color: var(--muted); font-size: 10px; }
    .pdf-preview-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
    .pdf-preview-actions .secondary-btn { padding: 8px 11px; font-size: 11px; }
    .pdf-preview-close { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #f1f4f2; color: #52635b; font-size: 24px; line-height: 1; }
    .pdf-preview-panel iframe { flex: 1; width: 100%; min-height: 0; border: 0; background: #dce2df; }
    .pdf-preview-status { padding: 12px 16px; color: var(--muted); background: white; font-size: 12px; }
    .pdf-preview-error { color: #9b3d32; background: #fff8f6; }
    body.pdf-preview-open { overflow: hidden; }
    .pdf-preview-panel:fullscreen { width: 100%; height: 100%; max-width: none; border-radius: 0; }
    .pdf-preview-panel:fullscreen .pdf-preview-header { padding: 10px 18px; }
    @media (max-width: 760px) {
      .pdf-preview { padding: 0; }
      .pdf-preview-panel { width: 100%; height: 100%; border-radius: 0; }
      .pdf-preview-header { padding: 10px 12px; }
      .pdf-preview-actions .secondary-btn { padding: 7px 9px; }
      .report-card-actions { flex-wrap: wrap; }
    }


/* --- Leletke visual polish: calm, modern and approachable --- */
:root {
  --bg: #f3f7f5;
  --surface: #ffffff;
  --surface-soft: #edf5f1;
  --text: #1d302b;
  --muted: #71817a;
  --line: #e1ebe6;
  --primary: #187765;
  --primary-dark: #105e50;
  --primary-soft: #e4f2ec;
  --shadow: 0 12px 34px rgba(29, 66, 54, .065);
  --radius: 20px;
}
body {
  background:
    radial-gradient(ellipse at 78% 0%, rgba(221, 239, 231, .58), transparent 34rem),
    var(--bg);
  letter-spacing: -.08px;
}
.topbar {
  height: 70px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 2px 16px rgba(31, 63, 52, .035);
}
.brand { font-size: 21px; letter-spacing: -.7px; }
.brand-mark {
  border-radius: 13px;
  background: linear-gradient(145deg, #218a75, #126655);
  box-shadow: 0 5px 12px rgba(24, 119, 101, .2);
}
.layout {
  padding-top: 36px;
  gap: 30px;
}
.sidebar {
  align-self: start;
  position: sticky;
  top: 94px;
  padding: 15px 11px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(225,235,230,.9);
  border-radius: 19px;
  box-shadow: 0 8px 24px rgba(29,66,54,.035);
}
.nav-label { margin-top: 5px; }
.nav { gap: 7px; }
.nav button {
  min-height: 44px;
  border-radius: 12px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav button:hover { transform: translateX(2px); }
.nav button.active {
  background: linear-gradient(100deg, #e5f3ed, #edf6f1);
  box-shadow: inset 3px 0 0 var(--primary);
}
h1 {
  font-size: clamp(29px, 4vw, 37px);
  letter-spacing: -1.35px;
  line-height: 1.16;
}
.subheading { font-size: 14px; line-height: 1.65; }
.header-row { margin-bottom: 30px; }
.primary-btn, .secondary-btn {
  min-height: 42px;
  border-radius: 13px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-btn {
  background: linear-gradient(135deg, #218873, #146b5a);
  border-color: #187765;
  box-shadow: 0 5px 13px rgba(24,119,101,.17);
}
.primary-btn:hover {
  background: linear-gradient(135deg, #197965, #105e50);
  box-shadow: 0 7px 17px rgba(24,119,101,.22);
  transform: translateY(-2px);
}
.secondary-btn {
  background: rgba(255,255,255,.88);
  border-color: #dfe9e4;
}
.secondary-btn:hover { background: #f1f7f4; transform: translateY(-1px); }
.card {
  border-color: #e2ebe6;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(29,66,54,.055);
}
.upload-card {
  padding: 25px;
  background: linear-gradient(145deg, #fff 0%, #fff 72%, #f8fbf9 100%);
}
.upload-card-head { margin-bottom: 19px; }
h2 { letter-spacing: -.45px; }
.dropzone {
  border: 1.5px dashed #b8d5c9;
  border-radius: 17px;
  background: linear-gradient(145deg, #f8fcfa, #f3f9f6);
  padding: 31px 18px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.dropzone:hover, .dropzone:focus-visible {
  border-color: #65a993;
  background: #f0f8f4;
  box-shadow: inset 0 0 0 1px rgba(24,119,101,.06);
  outline: none;
}
.dropzone.dragover {
  border-color: var(--primary);
  background: #eaf6ef;
  box-shadow: 0 0 0 4px rgba(24,119,101,.07);
}
.upload-icon {
  border-radius: 16px;
  background: linear-gradient(145deg, #e1f1e9, #edf7f1);
  color: #197563;
}
.notice {
  background: #f5f8f6;
  border-color: #e7eeea;
  border-radius: 13px;
  line-height: 1.6;
}
.section-head { margin-top: 31px; }
.empty-card {
  border-radius: 18px;
  background: rgba(255,255,255,.86);
}
.empty-icon { background: #eef5f1; color: #6d9283; }
.step {
  border-color: #e3ece7;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  padding: 17px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29,66,54,.055);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 10px;
  background: #e8f4ed;
  color: #187765;
}
.content-card, .report-card {
  border-radius: 18px;
}
.report-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 7px 22px rgba(29,66,54,.045);
  transition: box-shadow .18s ease, transform .18s ease;
}
.report-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 26px rgba(29,66,54,.075);
}
.report-preview-btn {
  border-color: #cfe4d9;
  border-radius: 10px;
  background: #eff7f2;
  color: #176b55;
  padding: 7px 11px;
}
.report-preview-btn:hover { background: #e4f2e9; }
.report-delete-btn { border-radius: 10px; }
.profile-field {
  border-color: #e4ece7;
  border-radius: 15px;
  background: #fcfdfc;
}
.toast { border-radius: 14px; }
:focus-visible {
  outline: 3px solid rgba(24,119,101,.24);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .layout { padding-top: 25px; }
  .sidebar { display: none; }
  .upload-card { padding: 18px; }
  .mobile-nav {
    background: rgba(255,255,255,.94);
    box-shadow: 0 -5px 22px rgba(29,66,54,.045);
  }
  .mobile-nav button.active { color: #176f5d; }
}


/* --- Leletke visual redesign: warm editorial health dashboard --- */
:root {
  --bg: #f1f4ef;
  --surface: #fffefa;
  --surface-soft: #f4f3eb;
  --text: #20352e;
  --muted: #77837a;
  --line: #e5e8dd;
  --primary: #236b56;
  --primary-dark: #174d3e;
  --primary-soft: #e5eee4;
  --warning: #a86b32;
  --warning-soft: #f8eee0;
  --shadow: 0 16px 42px rgba(36, 58, 45, .075);
  --radius: 22px;
}
body {
  color: var(--text);
  background:
    radial-gradient(ellipse at 12% 5%, rgba(222, 231, 210, .62), transparent 30rem),
    radial-gradient(ellipse at 96% 35%, rgba(231, 221, 198, .34), transparent 27rem),
    #f1f4ef;
}
.topbar {
  height: 76px;
  background: rgba(250, 250, 245, .91);
  border-bottom-color: rgba(218, 225, 214, .9);
  padding-left: max(28px, calc((100vw - 1240px) / 2));
  padding-right: max(28px, calc((100vw - 1240px) / 2));
}
.brand { font-size: 22px; letter-spacing: -.9px; }
.brand-mark {
  width: 39px; height: 39px; border-radius: 14px;
  background: linear-gradient(145deg, #397e63, #1d5946);
  box-shadow: 0 7px 16px rgba(35, 107, 86, .22);
}
.layout {
  max-width: 1240px;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 34px;
  padding-top: 35px;
}
.sidebar {
  position: sticky; top: 98px; align-self: start;
  padding: 19px 13px;
  border: 1px solid rgba(224, 229, 217, .95);
  border-radius: 21px;
  background: rgba(255, 254, 250, .82);
  box-shadow: 0 12px 30px rgba(36, 58, 45, .045);
}
.nav-label { color: #9a9f91; padding-left: 13px; margin-bottom: 13px; }
.nav { gap: 8px; }
.nav button {
  min-height: 46px; padding: 12px 13px; border-radius: 13px;
  color: #69786e; font-weight: 620;
}
.nav button.active {
  color: #1e5d49;
  background: linear-gradient(100deg, #e6efe3, #f0f3e9);
  box-shadow: inset 3px 0 0 #34785d;
}
main { min-width: 0; }
#page-home .header-row {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 218px; align-items: center;
  margin: 0 0 25px; padding: 34px 38px;
  border-radius: 25px;
  color: #fffdf5;
  background: linear-gradient(116deg, #244f40 0%, #2f7057 58%, #58836a 100%);
  box-shadow: 0 18px 40px rgba(35, 79, 61, .19);
}
#page-home .header-row::before,
#page-home .header-row::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  border: 1px solid rgba(245, 246, 225, .17); border-radius: 50%;
}
#page-home .header-row::before {
  width: 330px; height: 330px; right: 4%; top: -190px;
  box-shadow: 0 0 0 28px rgba(245,246,225,.035), 0 0 0 58px rgba(245,246,225,.025);
}
#page-home .header-row::after {
  width: 180px; height: 180px; right: 22%; bottom: -140px;
  box-shadow: 0 0 0 22px rgba(245,246,225,.04);
}
#page-home .header-row h1 {
  color: #fffdf5; font-size: clamp(32px, 4.1vw, 43px);
  letter-spacing: -1.7px; line-height: 1.12;
}
#page-home .header-row .subheading {
  max-width: 440px; color: rgba(255, 253, 245, .78);
  font-size: 14px; margin-top: 13px;
}
#page-home .header-row > div { max-width: 590px; }
#page-home .header-row .primary-btn {
  position: relative; z-index: 1; flex-shrink: 0;
  color: #244f40; background: #f4edda; border-color: #f4edda;
  box-shadow: 0 8px 20px rgba(17, 43, 32, .16);
}
#page-home .header-row .primary-btn:hover {
  background: #fff8e9; box-shadow: 0 10px 24px rgba(17,43,32,.2);
}
h1 { letter-spacing: -1.3px; }
.eyebrow {
  color: #9a7047; text-transform: uppercase;
  font-size: 10px; letter-spacing: 1.25px; font-weight: 800;
}
h2 { font-size: 18px; letter-spacing: -.55px; }
.subheading { line-height: 1.7; }
.primary-btn, .secondary-btn {
  min-height: 43px; border-radius: 13px; padding: 12px 17px;
}
.primary-btn {
  background: linear-gradient(140deg, #347a5e, #205d48);
  border-color: #28694f;
  box-shadow: 0 6px 15px rgba(35,107,86,.17);
}
.primary-btn:hover {
  background: linear-gradient(140deg, #286b51, #174d3e);
  box-shadow: 0 9px 20px rgba(35,107,86,.22);
}
.secondary-btn { background: #fffefa; border-color: #e2e5da; }
.card {
  background: #fffefa; border-color: #e4e7dc;
  border-radius: 21px; box-shadow: 0 12px 32px rgba(36,58,45,.055);
}
.upload-card {
  position: relative; overflow: hidden;
  padding: 27px 29px 24px;
  background: linear-gradient(135deg, #fffefa 0%, #fffefa 68%, #f2f4e9 100%);
}
.upload-card::before {
  content: ""; position: absolute; width: 170px; height: 170px;
  right: -88px; top: -94px; border-radius: 50%;
  border: 1px solid rgba(92, 131, 95, .13);
  box-shadow: 0 0 0 18px rgba(92,131,95,.035), 0 0 0 38px rgba(92,131,95,.025);
  pointer-events: none;
}
.upload-card-head { position: relative; margin-bottom: 21px; }
.upload-card-head h2 { font-size: 19px; }
.prototype-tag {
  background: #f3ead9; color: #94643a;
  border: 1px solid #eee1ca; letter-spacing: .55px;
}
.dropzone {
  border: 1.5px dashed #b8cbb7; border-radius: 18px;
  padding: 33px 20px;
  background: linear-gradient(135deg, #f7faf4, #f1f5ed);
}
.dropzone:hover, .dropzone:focus-visible {
  border-color: #6f9c7a; background: #edf5eb;
  box-shadow: 0 0 0 4px rgba(68,119,79,.07);
}
.upload-icon {
  width: 53px; height: 53px; border-radius: 17px;
  background: linear-gradient(145deg, #e2eddd, #f0f2e5);
  color: #397354;
}
.dropzone strong { font-size: 15px; }
.dropzone p { font-size: 13px; }
.file-hint { color: #929b8c; }
.notice {
  background: #f5f5ed; border-color: #e9e9dd;
  border-radius: 14px; color: #737d70; line-height: 1.65;
}
.notice b { color: #465d4c; }
.section-head { margin: 34px 0 15px; }
.section-head h2 { font-size: 19px; }
#page-home .section-head .small-muted {
  padding: 6px 10px; border-radius: 999px;
  background: #ecefe5; color: #77806e; font-weight: 650;
}
.empty-card {
  min-height: 112px; padding: 23px 25px;
  background: linear-gradient(110deg, #fffefa, #f8f8f0);
  border-color: #e7e9df;
}
.empty-icon {
  width: 53px; height: 53px; border-radius: 17px;
  background: #eaf0e5; color: #628168; font-size: 24px;
}
.empty-card strong { font-size: 14px; }
.empty-card p { font-size: 13px; line-height: 1.6; }
.steps { gap: 14px; margin-top: 18px; }
.step {
  min-height: 145px; padding: 19px;
  border: 1px solid #e5e8dc; border-radius: 18px;
  background: linear-gradient(145deg, #fffefa, #f7f7ef);
  box-shadow: 0 7px 20px rgba(36,58,45,.035);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 33px; height: 33px; margin-bottom: 13px;
  border-radius: 11px; background: #e7efe2; color: #397354;
  font-size: 11px; font-weight: 850;
}
.step strong { font-size: 13px; }
.step p { font-size: 12px; line-height: 1.6; }
.content-card { padding: 25px; }
.empty-large {
  min-height: 260px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-style: dashed; background: linear-gradient(145deg, #fffefa, #f6f7ef);
}
.empty-large h2 { margin-top: 3px; }
.report-card {
  padding: 20px 22px; border: 1px solid #e5e8dd;
  border-radius: 18px; background: #fffefa;
  box-shadow: 0 8px 24px rgba(36,58,45,.045);
}
.report-card:hover { box-shadow: 0 13px 28px rgba(36,58,45,.085); }
.report-status.is-approved { background: #e6efe3; color: #286347; }
.report-status.is-draft { background: #f7eddf; color: #98632e; }
.report-preview-btn {
  border-color: #d4e1cf; background: #edf3e9; color: #2c694e;
  border-radius: 10px; padding: 7px 12px;
}
.profile-field {
  background: linear-gradient(140deg, #fffefa, #f7f7ef);
  border-color: #e5e8dc; border-radius: 16px; padding: 17px;
}
.toast { background: #244f40; border-radius: 14px; }
@media (max-width: 760px) {
  .topbar { height: 65px; padding: 0 17px; }
  .layout { padding: 20px 15px 100px; }
  #page-home .header-row {
    min-height: 0; align-items: flex-start; gap: 22px;
    padding: 27px 23px; border-radius: 21px;
  }
  #page-home .header-row h1 { font-size: 33px; }
  #page-home .header-row .primary-btn { width: 100%; }
  #page-home .header-row::before { right: -110px; }
  .upload-card { padding: 20px 17px; }
  .upload-card-head { align-items: flex-start; }
  .prototype-tag { font-size: 8px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; display: grid; grid-template-columns: 36px 1fr; gap: 0 11px; }
  .step-num { grid-row: span 2; margin: 0; }
  .section-head { margin-top: 28px; }
  .mobile-nav {
    background: rgba(250,250,245,.96);
    border-top-color: #e2e6db;
    box-shadow: 0 -8px 25px rgba(36,58,45,.06);
  }
  .mobile-nav button.active { color: #28694f; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* Upload progress indicator */
.upload-submit-btn.is-loading {
  cursor: wait;
  transform: none;
}
.upload-submit-btn.is-loading:hover {
  transform: none;
}
.upload-submit-btn.is-loading::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: upload-spinner-spin .7s linear infinite;
}
@keyframes upload-spinner-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .upload-submit-btn.is-loading::before {
    animation-duration: 1.8s;
  }
}


/* Larger, more readable success and error notifications */
.toast {
  padding: 20px 28px;
  min-width: min(360px, calc(100vw - 32px));
  max-width: min(560px, calc(100vw - 32px));
  border-radius: 18px;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 650;
  text-align: center;
  box-shadow: 0 14px 36px rgba(20, 45, 35, .22);
}
@media (max-width: 760px) {
  .toast {
    bottom: 18px;
    min-width: 0;
    width: calc(100vw - 32px);
    padding: 18px 20px;
    font-size: 19px;
  }
}


/* Small heart accent beside the Leletke brand name */
.brand-heart {
  display: inline-block;
  margin-left: 5px;
  color: #d87580;
  font-size: .76em;
  line-height: 1;
  transform: rotate(12deg) translateY(-1px);
  vertical-align: middle;
}


/* Compact feedback notifications, matched to the primary upload button */
.toast {
  min-height: 43px;
  min-width: 0;
  width: max-content;
  max-width: calc(100vw - 30px);
  padding: 12px 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  border-radius: 13px;
  box-shadow: 0 6px 15px rgba(35,107,86,.17);
}

/* Keep the file removal action burgundy in its default state */
.primary-btn.remove-file {
  background: #984653;
  border-color: #984653;
  box-shadow: 0 4px 10px rgba(152, 70, 83, .2);
}
.primary-btn.remove-file:hover {
  background: #7f3744;
  border-color: #7f3744;
  box-shadow: 0 6px 14px rgba(127, 55, 68, .24);
}


/* Force the remove-file button to stay burgundy even with later primary button rules */
#removeFile.primary-btn {
  background: #984653 !important;
  background-image: none !important;
  border-color: #984653 !important;
  box-shadow: 0 4px 10px rgba(152, 70, 83, .2) !important;
}
#removeFile.primary-btn:hover,
#removeFile.primary-btn:focus-visible {
  background: #7f3744 !important;
  background-image: none !important;
  border-color: #7f3744 !important;
  box-shadow: 0 6px 14px rgba(127, 55, 68, .24) !important;
}
