/* ==========================================================================
   MeridianClad - design system
   ========================================================================== */

:root {
  --ink:        #0b2620;
  --ink-2:      #1d3d34;
  --body:       #40564e;
  --muted:      #6b8078;
  --line:       #e2eae6;
  --line-2:     #d0ddd7;
  --bg:         #ffffff;
  --bg-soft:    #f5f9f7;
  --bg-tint:    #eef5f1;

  --green:      #0e7c5a;
  --green-dk:   #0a5f45;
  --green-lt:   #e6f3ee;
  --gold:       #b58234;
  --gold-lt:    #fbf3e5;
  --navy:       #12324f;
  --blue:       #2f6fb0;
  --red:        #b3453f;
  --red-lt:     #fbeceb;

  --up:         #0e7c5a;
  --down:       #b3453f;

  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 2px rgba(11,38,32,.06), 0 2px 8px rgba(11,38,32,.05);
  --shadow:     0 4px 14px rgba(11,38,32,.08), 0 12px 36px rgba(11,38,32,.06);
  --shadow-lg:  0 18px 60px rgba(11,38,32,.14);

  /* Rounded geometric display face for headings, neutral companion for text.
     Both fall back to system faces so the app still reads correctly offline. */
  --display: "Nunito", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --sans: "Nunito Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;

  --wrap: 1220px;
  --head-h: 72px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  font-family: var(--display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}
h4, h5 { font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p  { margin: 0 0 1rem; }

a { color: var(--green-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 820px; }
.wrap-xs { max-width: 540px; }

.section { padding: 76px 0; }
.section-sm { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section-ink { background: var(--ink); color: #cfded8; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--green); margin-bottom: 12px;
}
.section-ink .eyebrow { color: #6fc9a5; }

.lead { font-size: 1.15rem; color: var(--body); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny  { font-size: .78rem; }
.mono  { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt1 { margin-top: .5rem; } .mt2 { margin-top: 1rem; } .mt3 { margin-top: 1.75rem; }
.mb2 { margin-bottom: 1rem; } .mb3 { margin-bottom: 1.75rem; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }

.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 26px; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; transition: .18s ease; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dk); color: #fff; box-shadow: 0 6px 18px rgba(14,124,90,.28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #071c17; color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green-dk); background: transparent; }
.btn-outline:hover { background: var(--green-lt); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dk); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f2f7f4; color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #99332e; color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 7px; }
.btn-lg { padding: 17px 34px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink); color: #a9c4bb; font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 20px; }
.topbar a { color: #cfe2db; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 22px; align-items: center; }

.site-head {
  position: sticky; top: 0; z-index: 60; background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-head.scrolled { box-shadow: var(--shadow-sm); }
.head-inner { display: flex; align-items: center; gap: 30px; height: var(--head-h); }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink);
        font-size: 20px; letter-spacing: -.03em; text-decoration: none; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; flex: 0 0 34px; }
.logo span em { font-style: normal; color: var(--green); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > li { list-style: none; position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: 7px;
  font-size: 15px; font-weight: 600; color: var(--ink-2); background: none; border: 0;
  font-family: inherit; cursor: pointer;
}
.nav-link:hover, .nav > li.open .nav-link { background: var(--bg-soft); color: var(--green-dk); text-decoration: none; }
.nav-link.active { color: var(--green-dk); }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px;
  background: var(--green); border-radius: 3px 3px 0 0;
}
.caret { width: 9px; height: 9px; opacity: .55; transition: transform .2s; }
.nav > li.open .caret { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(-8px);
  width: max-content; max-width: 720px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 22px; z-index: 70;
  opacity: 0; visibility: hidden; transition: .18s ease;
}
.nav > li.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(230px, 1fr)); gap: 4px 22px; }
.mega-grid.one { grid-template-columns: minmax(260px, 1fr); }
.mega h5 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
           margin: 8px 10px 6px; }
.mega a { display: block; padding: 9px 11px; border-radius: 8px; color: var(--ink); }
.mega a:hover { background: var(--bg-soft); text-decoration: none; }
.mega a strong { display: block; font-size: 14.5px; font-weight: 600; }
.mega a span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.mega-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
             display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.head-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-auth-sm { display: none; }
/* Menu buttons: three bars that fold into an X while the menu is open. The
   open state is read straight off aria-expanded, which the toggles already set. */
.burger, .side-burger {
  display: none; position: relative; flex: 0 0 auto; padding: 0; cursor: pointer;
  width: 40px; height: 40px; background: none; border: 0; border-radius: 10px;
  transition: background .18s ease, border-color .18s ease;
}
.burger:hover, .side-burger:hover { background: var(--bg-soft); }
.burger:focus-visible, .side-burger:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.burger span, .side-burger span {
  position: absolute; left: 11px; right: 11px; top: 50%; height: 2px; margin-top: -1px;
  background: var(--ink); border-radius: 2px;
  transition: transform .26s cubic-bezier(.2,.9,.3,1.2), opacity .18s ease;
}
.burger span:nth-child(1), .side-burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(3), .side-burger span:nth-child(3) { transform: translateY(6px); }

.burger[aria-expanded="true"] span:nth-child(1),
.side-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2),
.side-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.burger[aria-expanded="true"] span:nth-child(3),
.side-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink-2); overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); }
.ticker-track { display: flex; gap: 34px; padding: 9px 0; width: max-content;
                animation: slide 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: #b9d2c9; white-space: nowrap; }
.tick b { color: #fff; font-weight: 600; letter-spacing: .02em; }
.tick .up { color: #5dd0a3; } .tick .down { color: #ef8f88; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(150deg, #0b2620 0%, #10382c 46%, #145041 100%);
        color: #d7e7e0; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1000px 480px at 78% 12%, rgba(93,208,163,.16), transparent 62%),
              radial-gradient(700px 400px at 8% 92%, rgba(181,130,52,.14), transparent 60%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 60px; align-items: center;
             padding: 84px 0 92px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #6fd8ac; }
.hero p.lead { color: #bfd6cd; font-size: 1.18rem; max-width: 33em; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 11px; }
.hero-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: #cde0d8; }
.hero-points svg { flex: 0 0 19px; margin-top: 2px; color: #6fd8ac; }
.hero-note { font-size: 13px; color: #8fada2; margin-top: 22px; }

.hero-card {
  background: #fff; border-radius: var(--radius-lg); padding: 26px; color: var(--body);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 1.12rem; margin-bottom: 4px; }
.hero-card .muted { font-size: 13.5px; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: .2s ease;
}
.card-hover:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--green-lt); color: var(--green-dk);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon.gold { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.card-icon.navy { background: #e9f0f6; color: var(--navy); }
.card-icon.sm { width: 38px; height: 38px; border-radius: 10px; margin: 0; flex: 0 0 38px; }

/* A real, full-colour glyph in place of a single-tint stroked icon - no
   green/navy tint box needed since the glyph itself already carries colour. */
.card-icon.emoji {
  background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); font-size: 22px; line-height: 1;
}
.card-icon.sm.emoji { font-size: 17px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; margin-top: 14px; }
.card-link::after { content: "→"; transition: transform .18s; }
.card-hover:hover .card-link::after { transform: translateX(4px); }

/* ---------- Photo feature: real photography + a floating stat card ---------- */
.photo-feature { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-soft); }
.photo-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-feature-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(11,38,32,.6); backdrop-filter: blur(3px);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.photo-feature-card {
  position: absolute; left: 14px; right: 14px; bottom: 14px; background: #fff; border-radius: 12px;
  padding: 12px 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.photo-feature-card strong { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.3; }
.photo-feature-card span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.photo-feature-cap { margin-top: 18px; }
.photo-feature-cap h4 { margin-bottom: 5px; }
.photo-feature-cap p { font-size: 14px; margin-bottom: 10px; }

@media (max-width: 640px) {
  .photo-feature { aspect-ratio: 16 / 11; }
}

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--ink); font-weight: 700;
          letter-spacing: -.03em; line-height: 1.1; }
.section-ink .stat b { color: #fff; }
.stat span { font-size: 14px; color: var(--muted); }
.section-ink .stat span { color: #9fbcb1; }

/* Tags: no fill - just bold, coloured text, same as the status badges */
.pill { display: inline-block; padding: 0; background: none; font-size: 12px;
        font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pill-green { color: var(--green-dk); }
.pill-gold  { color: var(--gold); }
.pill-navy  { color: var(--navy); }
.pill-red   { color: var(--red); }
.pill-grey  { color: var(--muted); }

/* Status badges: no fill - the status lives in the text colour and a dot, not a block of colour */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; background: none;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 6px; }
.badge-active { color: var(--green-dk); }
.badge-pending { color: var(--gold); }
.badge-closed, .badge-cancelled, .badge-rejected { color: var(--red); }
.badge-info { color: var(--blue); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th {
  text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 14px 16px; background: var(--bg-soft);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--body); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafcfb; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .sym { font-weight: 700; color: var(--ink); letter-spacing: .02em; }
table.data td.strong { color: var(--ink); font-weight: 600; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label, .lbl { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=tel], input[type=search], select, textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 8px; background: #fff;
  transition: .15s; appearance: none;
}
select { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%236b8078' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
         background-repeat: no-repeat; background-position: right 13px center; background-size: 12px; padding-right: 36px; }
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,124,90,.13);
}
input[type=range] { width: 100%; padding: 0; border: 0; accent-color: var(--green); height: 26px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; }
.check input { margin-top: 3px; accent-color: var(--green); width: 16px; height: 16px; flex: 0 0 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
                     color: var(--muted); font-size: 15px; pointer-events: none; }
.input-prefix input { padding-left: 28px; }

.alert { padding: 13px 17px; border-radius: 9px; font-size: 14.5px; margin-bottom: 18px; border: 1px solid; }
.alert-success { background: var(--green-lt); border-color: #b9e0d0; color: #0a5f45; }
.alert-error   { background: var(--red-lt); border-color: #f0c6c3; color: #8f322d; }
.alert-info    { background: #eaf1f8; border-color: #c8dbee; color: #1b4c78; }
.alert-warning { background: #fff; border-color: var(--line-2); border-left: 4px solid var(--ink);
                 color: var(--ink-2); }

/* ---------- Auth pages ---------- */
.auth { min-height: calc(100vh - var(--head-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: linear-gradient(150deg, #0b2620, #14513f); color: #cadeD6; padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-side h2 { color: #fff; }
.auth-side ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; font-size: 15px; color: #bfd6cd; }
.auth-side svg { flex: 0 0 20px; color: #6fd8ac; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-box { width: 100%; max-width: 430px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #9db9b0; font-size: 14px; padding: 62px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding-bottom: 46px; }
.site-foot h5 { color: #fff; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-foot a { color: #9db9b0; }
.site-foot a:hover { color: #fff; }
.foot-brand .logo { color: #fff; margin-bottom: 14px; }
.foot-brand p { font-size: 13.5px; line-height: 1.65; max-width: 30em; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px;
            display: grid; place-items: center; }
.social a:hover { background: rgba(255,255,255,.09); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0 40px; font-size: 12.5px; line-height: 1.75; color: #7d9a91; }
.foot-bottom .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-bottom .row ul { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }

/* ---------- Dashboard shell ---------- */
.dash { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; background: var(--bg-soft); }
.side {
  background: var(--ink); color: #a9c4bb; padding: 20px 0 40px; position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
}
.side .logo { color: #fff; padding: 0 22px 22px; }
.side-group { padding: 14px 14px 0; }
.side-group h6 { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6d8b82;
                 margin: 0 0 8px 10px; font-weight: 700; }
.side a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px;
  color: #b9d2c9; font-size: 14.5px; font-weight: 500; margin-bottom: 2px;
}
.side a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.side a.active { background: var(--green); color: #fff; font-weight: 600; }
.side a svg { flex: 0 0 18px; opacity: .9; }
.side-foot { margin-top: 24px; padding: 18px 22px 0; border-top: 1px solid rgba(255,255,255,.09); font-size: 12.5px; }

.dash-main { min-width: 0; display: flex; flex-direction: column; }
.dash-head {
  background: #fff; border-bottom: 1px solid var(--line); padding: 0 30px; height: 68px;
  display: flex; align-items: center; gap: 18px; position: sticky; top: 0; z-index: 40;
}
.dash-head h1 { font-size: 1.3rem; margin: 0; }
.dash-head .spacer { margin-left: auto; }
/* Sizing and the fold-to-X animation are shared with .burger, up near the header. */
.side-burger { border: 1.5px solid var(--line-2); margin-right: 2px; }
.side-burger:hover { border-color: var(--green); }

/* The open drawer sits over the menu button, so it carries its own way out. */
.side-close {
  display: none; position: absolute; top: 15px; right: 15px; width: 34px; height: 34px;
  padding: 0; border: 0; border-radius: 9px; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: #cfe2db; place-items: center;
}
.side-close:hover { background: rgba(255, 255, 255, .17); color: #fff; }
.side-close:focus-visible { outline: 2px solid #6fd8ac; outline-offset: 2px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: .03em;
}
.dash-body { padding: 30px; flex: 1; }
.dash-body > .page-head { margin-bottom: 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h2 { margin: 0 0 4px; font-size: 1.55rem; }
.page-head p { margin: 0; font-size: 14.5px; }

/* Photographic welcome banner, dashboard overview */
.dash-welcome {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px;
  min-height: 176px; display: flex; align-items: center; color: #fff; isolation: isolate;
}
.dash-welcome::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center;
  background-image:
    linear-gradient(105deg, rgba(7,26,20,.93) 0%, rgba(9,45,34,.86) 38%, rgba(10,60,45,.55) 72%, rgba(10,60,45,.3) 100%),
    var(--dash-welcome-photo);
}
.dash-welcome-inner { padding: 30px 34px; max-width: 620px; }
.dash-welcome .eyebrow { color: #7fe0b3; }
.dash-welcome h2 { color: #fff; margin-bottom: 6px; }
.dash-welcome p { color: #cfe2db; margin: 0; font-size: 14.5px; }
.dash-welcome .btn-row { margin-top: 18px; }
@media (max-width: 640px) { .dash-welcome-inner { padding: 24px 20px; } }

/* Photographic accent on a panel (goals, planning, etc.) */
.panel-photo {
  height: 130px; background-size: cover; background-position: center; border-radius: var(--radius-lg)
    var(--radius-lg) 0 0; position: relative;
}
.panel-photo::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,38,32,.55), transparent 60%);
}

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 24px; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex;
              align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 1.05rem; }
.panel-body { padding: 22px; }
.panel-body.tight { padding: 0; }
.panel-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg-soft);
              border-radius: 0 0 var(--radius-lg) var(--radius-lg); font-size: 14px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.kpi .label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kpi .value { font-size: 1.72rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em;
              margin: 6px 0 3px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 13.5px; font-weight: 600; }
.kpi.accent { background: linear-gradient(140deg, #0b2620, #14513f); border-color: transparent; color: #bfd6cd; }
.kpi.accent .label { color: #8fb5a8; }
.kpi.accent .value { color: #fff; }

.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend .dot { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 11px; }
.legend .val { margin-left: auto; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.bar.gold > span { background: var(--gold); }
.bar.navy > span { background: var(--navy); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 11px 16px; font-size: 14.5px; font-weight: 600; color: var(--muted);
          border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--green-dk); border-bottom-color: var(--green); }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty svg { color: var(--line-2); margin-bottom: 12px; }
.empty h4 { color: var(--ink-2); }

.split { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* ---------- Charts (hand-rolled SVG) ---------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { font-size: 10.5px; fill: var(--muted); font-family: var(--sans); }
.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut-wrap svg { flex: 0 0 168px; }
.donut-center { font-size: 13px; fill: var(--muted); }
.donut-center.big { font-size: 19px; font-weight: 700; fill: var(--ink); }
.spark { width: 92px; height: 28px; }

/* ---------- Misc components ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 20px 46px 20px 2px; font-size: 1.02rem; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 17px; font-size: 24px;
                      font-weight: 400; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 46px 22px 2px; color: var(--body); }

.steps { counter-reset: step; display: grid; gap: 26px; }
.step { display: flex; gap: 20px; }
.step-num {
  flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--green-lt); color: var(--green-dk);
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.step h4 { margin-bottom: 5px; }
.step p { margin: 0; font-size: 15px; }

.quote { border-left: 3px solid var(--green); padding: 4px 0 4px 22px; font-family: var(--serif);
         font-size: 1.22rem; line-height: 1.6; color: var(--ink-2); font-style: italic; }
.quote cite { display: block; margin-top: 12px; font: 600 14px var(--sans); color: var(--muted); font-style: normal; }

.article-card { display: flex; flex-direction: column; height: 100%; }
.article-card .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px;
                      display: flex; gap: 10px; align-items: center; }
.article-card h3 { font-size: 1.12rem; }
.article-card p { font-size: 14.5px; }
.article-body { font-size: 1.06rem; line-height: 1.8; }
.article-body p { margin-bottom: 1.3em; }

.cta-band { background: linear-gradient(140deg, #0b2620, #14513f); color: #cadeD6;
            border-radius: var(--radius-lg); padding: 48px 52px; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 42em; color: #bfd6cd; }

.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.compare thead th { background: var(--bg-soft); font-size: 12px; text-transform: uppercase;
                    letter-spacing: .06em; color: var(--muted); }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--line-2); }

.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 22px; }
.filters .field { margin: 0; min-width: 155px; }
.filters .grow { flex: 1; min-width: 220px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; }
.pager a, .pager span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 7px;
                        font-size: 14px; color: var(--ink); background: #fff; }
.pager .current { background: var(--green); color: #fff; border-color: var(--green); }

.calc-out { background: linear-gradient(140deg, #0b2620, #14513f); color: #cadeD6;
            border-radius: var(--radius-lg); padding: 28px; }
.calc-out .big { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; color: #fff;
                 letter-spacing: -.03em; line-height: 1.1; }
.calc-out .sub { color: #8fb5a8; font-size: 14px; }
.calc-out .row { display: flex; justify-content: space-between; padding: 10px 0;
                 border-bottom: 1px solid rgba(255,255,255,.11); font-size: 14.5px; }
.calc-out .row:last-child { border-bottom: 0; }
.calc-out .row b { color: #fff; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px;
        color: var(--ink-2); background: #fff; cursor: pointer; }
.chip:hover { border-color: var(--green); color: var(--green-dk); text-decoration: none; }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

.trade-ticket { position: sticky; top: 92px; }
.order-summary { background: var(--bg-soft); border-radius: 10px; padding: 16px 18px; font-size: 14px; }
.order-summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.order-summary .row.total { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 11px;
                            font-weight: 700; color: var(--ink); font-size: 15.5px; }

.thread { display: grid; gap: 16px; }
.bubble { padding: 15px 18px; border-radius: 12px; font-size: 14.5px; max-width: 78%; }
.bubble .who { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.bubble.client { background: var(--green-lt); margin-left: auto; }
.bubble.client .who { color: var(--green-dk); }
.bubble.advisor { background: var(--bg-soft); border: 1px solid var(--line); }
.bubble.advisor .who { color: var(--navy); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 22px 26px; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px;
                       border-radius: 50%; background: #fff; border: 2.5px solid var(--green); }
.timeline .when { font-size: 12.5px; color: var(--muted); }

.print-only { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 68px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash { grid-template-columns: 210px 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav, .topbar-links .hide-sm { display: none; }
  .burger { display: block; }
  .nav.open {
    display: block; position: absolute; top: var(--head-h); left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px; max-height: 78vh;
    overflow-y: auto;
  }
  .nav.open > li { width: 100%; }
  .nav.open .nav-link { width: 100%; justify-content: space-between; }
  .nav.open .mega {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 4px 0 10px 12px;
    display: none; max-width: none; width: auto;
  }
  .nav.open > li.open .mega { display: block; transform: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .split, .split-even, .grid-2, .grid-3, .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 44px 30px; }
  .dash { grid-template-columns: 1fr; }
  /* The sidebar used to sit in normal flow above the content on mobile, so every
     fresh page load (a wizard step included) landed the visitor above the whole
     nav instead of the content they were mid-task on. It is an off-canvas drawer
     here instead, closed by default, so a new page always opens on the content. */
  .side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; width: 288px; max-width: 84vw;
    height: 100vh; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg);
  }
  .side.open { transform: translateX(0); }
  .side-backdrop {
    display: none; position: fixed; inset: 0; z-index: 190; background: rgba(8,26,21,.5);
  }
  .side-backdrop.show { display: block; }
  .side-close { display: grid; }
  .side-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 8px; }
  .side-group h6 { grid-column: 1 / -1; }
  .dash-head .side-burger { display: flex; }
  .cta-band { padding: 34px 26px; }
}

@media (min-width: 901px) {
  .side-backdrop, .dash-head .side-burger { display: none !important; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .wrap { padding: 0 18px; }
  .grid-4, .stat-row, .kpi-grid, .form-grid, .foot-grid { grid-template-columns: 1fr; }
  .foot-grid { gap: 30px; }
  /* Logo + one action + the menu button is all that fits; the secondary action
     moves into the menu itself (.nav-auth-sm) so nothing becomes unreachable. */
  .head-inner { gap: 14px; }
  .head-actions { gap: 8px; }
  .head-actions .btn { padding: 9px 12px; font-size: 13px; }
  .head-actions .btn-ghost { display: none; }
  .nav.open .nav-auth-sm { display: block; }
  .dash-body, .dash-head { padding-left: 18px; padding-right: 18px; }
  /* The title, two actions and the avatar do not fit on one line at this width.
     The menu button shares the title's line; the actions wrap under both. */
  .dash-head { height: auto; flex-wrap: wrap; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .dash-head h1 { flex: 1 1 calc(100% - 52px); font-size: 1.12rem; }
  .dash-head .spacer { display: none; }
  .dash-head .btn { flex: 1 1 auto; width: auto; padding: 9px 12px; font-size: 13px; }
  .dash-head .avatar { flex: 0 0 34px; width: 34px; height: 34px; margin-left: auto; }
  .card, .panel-body { padding: 20px; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
  .bubble { max-width: 92%; }
  .topbar .wrap { justify-content: center; }
  .topbar-links { gap: 14px; }
}

@media print {
  .side, .dash-head, .site-head, .site-foot, .topbar, .ticker, .btn, .no-print { display: none !important; }
  .dash { grid-template-columns: 1fr; }
  .print-only { display: block; }
  body { background: #fff; }
  .panel { break-inside: avoid; }
  .toast-stack, .modal-layer { display: none !important; }
}

/* ==========================================================================
   Multi-step request wizard
   ========================================================================== */
.wiz { max-width: 720px; margin: 0 auto; }
.wiz-wide { max-width: 940px; }

.wiz-progress { display: flex; align-items: center; gap: 0; margin-bottom: 30px; }
.wiz-progress li { list-style: none; flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.wiz-progress li + li::before {
  content: ""; flex: 1; height: 2px; background: var(--line); margin: 0 10px; border-radius: 2px;
}
.wiz-progress li.done + li::before, .wiz-progress li.done::before { background: var(--green); }
.wiz-dot {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line-2); color: var(--muted);
  font-size: 12.5px; font-weight: 700; font-family: var(--display);
}
.wiz-progress li.active .wiz-dot { border-color: var(--green); color: var(--green-dk); box-shadow: 0 0 0 4px var(--green-lt); }
.wiz-progress li.done .wiz-dot { background: var(--green); border-color: var(--green); color: #fff; }
.wiz-label { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.wiz-progress li.active .wiz-label { color: var(--ink); }
.wiz-progress li.done .wiz-label { color: var(--ink-2); }

.wiz-head { margin-bottom: 26px; }
.wiz-head .eyebrow { margin-bottom: 8px; }
.wiz-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.wiz-head p { color: var(--body); margin-bottom: 0; }
.wiz-account { font-size: 14px; color: var(--muted); letter-spacing: .02em; margin-bottom: 6px;
               text-transform: uppercase; font-weight: 700; }

.wiz-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.wiz-body > h3 { font-size: 1.22rem; margin: 30px 0 14px; }
.wiz-body > h3:first-child { margin-top: 0; }
.wiz-foot { display: flex; gap: 12px; justify-content: space-between; margin-top: 28px; flex-wrap: wrap; }
.wiz-foot .btn { min-width: 150px; }

/* Selectable rows, the way a plan-provider app presents choices */
.choice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: 11px; margin-bottom: 10px; background: #fff;
  transition: .15s ease;
}
.choice:hover { border-color: var(--green); background: #fbfdfc; }
.choice input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--green); }
.choice-text { min-width: 0; }
.choice-text strong { display: block; font-size: 15.5px; color: var(--ink); font-weight: 600; line-height: 1.4; }
.choice-text span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-lt); }
.choice:has(input:checked) .choice-text strong { color: var(--green-dk); }
.choice.plain { border: 0; padding: 11px 2px; margin-bottom: 2px; border-radius: 0; }
.choice.plain:hover { background: none; }
.choice.plain:has(input:checked) { background: none; }

.amount-input input {
  font-size: 1.7rem; font-weight: 700; font-family: var(--display); color: var(--ink);
  padding: 16px 18px; letter-spacing: -.02em;
}
.amount-input .input-prefix span { font-size: 1.5rem; left: 18px; color: var(--ink-2); }
.amount-input .input-prefix input { padding-left: 44px; }

.wiz-note {
  border-left: 4px solid var(--ink); background: #fff; border: 1px solid var(--line-2);
  border-left-width: 4px; border-radius: 10px; padding: 16px 20px; font-size: 14px; color: var(--ink-2);
}
.wiz-note strong { display: block; color: var(--ink); margin-bottom: 4px; font-family: var(--display); }
.wiz-note p:last-child { margin-bottom: 0; }

.breakdown { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.breakdown .row {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.breakdown .row:last-child { border-bottom: 0; }
.breakdown .row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.breakdown .row.sub { background: var(--bg-soft); color: var(--muted); font-size: 13.5px; }
.breakdown .row.net { background: var(--ink); color: #cfe2db; font-size: 16px; font-weight: 700; padding: 18px; }
.breakdown .row.net span:last-child { color: #fff; font-size: 1.25rem; font-family: var(--display); }

.review-group { border-top: 1px solid var(--line); padding: 18px 0; }
.review-group:first-of-type { border-top: 0; padding-top: 0; }
.review-group h4 { font-size: .82rem; letter-spacing: .09em; text-transform: uppercase;
                   color: var(--muted); margin-bottom: 12px; }
.review-line { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; font-size: 14.5px; }
.review-line span:first-child { color: var(--muted); }
.review-line span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.review-group .edit { font-size: 13px; font-weight: 600; }

/* Document slots */
.doc-slot { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.doc-slot.filled { border-color: var(--green); background: #fbfdfc; }
.doc-slot-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.doc-slot-head strong { display: inline; font-size: 15.5px; color: var(--ink); margin-right: 8px; }
.doc-slot-head .hint { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }

.doc-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; margin-bottom: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.doc-thumb {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; overflow: hidden;
  background: var(--bg-soft); display: grid; place-items: center; color: var(--muted);
}
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-meta { flex: 1; min-width: 0; }
.doc-meta a { display: block; font-weight: 600; font-size: 14.5px; word-break: break-all; }
.doc-meta > span { display: block; font-size: 12.5px; color: var(--muted); }
.doc-row form { margin: 0; }

.doc-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.doc-upload input[type=file] {
  flex: 1; min-width: 210px; font-size: 13.5px; padding: 9px 12px;
  border: 1.5px dashed var(--line-2); border-radius: 9px; background: #fff; cursor: pointer;
}
.doc-upload input[type=file]:hover { border-color: var(--green); }
.doc-upload input[type=file]::file-selector-button {
  font: inherit; font-size: 13px; font-weight: 600; margin-right: 11px; padding: 6px 13px;
  border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg-soft);
  color: var(--ink); cursor: pointer;
}

.status-track { list-style: none; padding: 0; margin: 0; }
.status-track li { position: relative; padding: 0 0 26px 32px; }
.status-track li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-2);
}
.status-track li::after {
  content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line);
}
.status-track li:last-child::after { display: none; }
.status-track li.done::before { background: var(--green); border-color: var(--green); }
.status-track li.done::after { background: var(--green); }
.status-track li.current::before { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-lt); }
/* Notification bell and inbox rows */
.bell-btn {
  position: relative; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  color: var(--ink-2); border: 1.5px solid var(--line-2); background: #fff; flex-shrink: 0;
}
.bell-btn:hover { border-color: var(--green); color: var(--green-dk); text-decoration: none; }
.bell-count {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff; font-family: var(--sans);
}

.notice-row {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.notice-row:last-child { border-bottom: 0; }
.notice-row.unread { background: linear-gradient(90deg, var(--green-lt), transparent 60%); }
.notice-icon {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink-2);
}
.notice-icon.tone-success { background: var(--green-lt); color: var(--green-dk); }
.notice-icon.tone-error   { background: var(--red-lt); color: var(--red); }
.notice-icon.tone-warning { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.notice-icon.tone-info    { background: #e9f0f6; color: var(--navy); }
.notice-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.notice-body strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.notice-body > span { font-size: 14px; color: var(--body); line-height: 1.5; }
.notice-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

@media (max-width: 640px) {
  .notice-row { flex-wrap: wrap; }
  .notice-actions { width: 100%; padding-left: 50px; }
}

/* Live-updating regions */
.live-dot {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-right: auto;
}
.live-dot > span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(14, 124, 90, .5); animation: live-pulse 2.2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(14, 124, 90, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(14, 124, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 124, 90, 0); }
}

.just-changed { animation: just-changed 1.6s ease-out; }
@keyframes just-changed {
  0%   { background: var(--green-lt); box-shadow: 0 0 0 6px var(--green-lt); }
  100% { background: transparent; box-shadow: 0 0 0 6px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot > span, .just-changed { animation: none; }
  .burger span, .side-burger span { transition: none; }
}

.status-track li.stopped::before { background: var(--red); border-color: var(--red); }
.status-track li.stopped strong { color: var(--red); }
.status-track li.todo strong { color: var(--muted); font-weight: 600; }
.status-track strong { display: block; font-size: 15px; color: var(--ink); }
.status-track span { font-size: 13.5px; color: var(--muted); }

.ref-badge {
  display: inline; font-family: inherit; font-size: inherit; letter-spacing: normal;
  background: none; border: 0; padding: 0; border-radius: 0;
  color: var(--ink); font-weight: 600;
}

@media (max-width: 780px) {
  .wiz-progress .wiz-label { display: none; }
  .wiz-progress li + li::before { margin: 0 6px; }
  .wiz-body { padding: 22px 18px; }
  .wiz-foot .btn { flex: 1 1 auto; min-width: 0; }
}

/* ==========================================================================
   Success / confirmation screens
   ========================================================================== */
.success-card { max-width: 640px; margin: 0 auto; text-align: center; }
.success-badge {
  width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(155deg, #13996a, var(--green-dk)); color: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 8px var(--green-lt), 0 14px 30px -10px rgba(10,95,69,.55);
}
.success-card .eyebrow { display: block; }
.success-card h2 { margin-bottom: 8px; }
.success-card > .lead { max-width: 46ch; margin-left: auto; margin-right: auto; }

.success-meta { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 26px; }

.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff;
}
.detail-grid .cell { padding: 16px 22px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.detail-grid .cell:nth-child(2n) { border-right: 0; }
.detail-grid .cell:nth-last-child(-n+2) { border-bottom: 0; }
.detail-grid .cell span {
  display: block; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 5px; font-weight: 700;
}
.detail-grid .cell strong { font-size: 15.5px; color: var(--ink); font-weight: 700; }
.detail-grid .cell.wide { grid-column: 1 / -1; border-right: 0; }
.detail-grid .cell.total { background: var(--bg-soft); }
.detail-grid .cell.total strong { font-size: 1.2rem; color: var(--green-dk); font-family: var(--display); }
@media (max-width: 560px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .cell { border-right: 0; }
  .detail-grid .cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-grid .cell:last-child { border-bottom: 0; }
}

.help-band {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 18px 20px;
  border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); text-align: left;
}
.help-band .card-icon { margin: 0; }
.help-band h4 { margin: 0 0 3px; font-size: 14.5px; }
.help-band p { margin: 0; font-size: 13.5px; color: var(--muted); }
.help-band a { font-weight: 600; }

/* ==========================================================================
   Notifications - toast stack
   ========================================================================== */
.toast-stack {
  position: fixed; top: 18px; right: 18px; z-index: 9000;
  display: flex; flex-direction: column; gap: 14px;
  width: min(400px, calc(100vw - 36px)); pointer-events: none;
}

/* Deep indigo card, washed from the left with the tone of whatever happened,
   a solid disc of that same colour for the icon, and the heading in it too. */
.toast {
  --toast-base:   #272151;
  --toast-accent: #00e08a;
  --toast-wash:   rgba(0, 190, 150, .42);

  pointer-events: auto; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 34px 1fr 20px; gap: 15px; align-items: flex-start;
  padding: 17px 17px 18px 19px;
  background: linear-gradient(100deg, var(--toast-wash), rgba(39, 33, 81, 0) 62%), var(--toast-base);
  border: 0; border-radius: 16px;
  box-shadow: 0 18px 44px rgba(10, 6, 34, .34), 0 3px 10px rgba(10, 6, 34, .2);
  transform: translateX(120%); opacity: 0;
  transition: transform .38s cubic-bezier(.2,.9,.3,1.2), opacity .3s ease, margin .28s ease;
}
.toast.in { transform: translateX(0); opacity: 1; }
.toast.out { transform: translateX(120%); opacity: 0; margin-bottom: -14px; }

.toast-icon {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--toast-accent); color: #fff; flex-shrink: 0; margin-top: 1px;
}
.toast-icon svg { width: 18px; height: 18px; stroke-width: 3; }
.toast-body { min-width: 0; }
.toast-title {
  font-size: 15px; font-weight: 800; color: var(--toast-accent);
  line-height: 1.3; margin-bottom: 3px; letter-spacing: -.01em;
}
.toast-msg { font-size: 14px; color: #c6c2dd; line-height: 1.5; word-wrap: break-word; }
.toast-msg a { color: #fff; font-weight: 600; text-decoration: underline; }
.toast-close {
  background: none; border: 0; padding: 0; width: 20px; height: 20px; border-radius: 50%;
  color: #837dad; cursor: pointer; display: grid; place-items: center; font-size: 16px; line-height: 1;
  align-self: flex-start; margin-top: 5px; opacity: 0; transition: opacity .16s ease, color .16s ease;
}
.toast:hover .toast-close, .toast-close:focus-visible { opacity: 1; }
.toast-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
/* The countdown is kept in the markup for the timer, but this design does not draw it. */
.toast-bar { display: none; }
@keyframes toast-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.toast-success { --toast-accent: #00e08a; --toast-wash: rgba(0, 186, 148, .42); }
.toast-error   { --toast-accent: #ff2060; --toast-wash: rgba(206, 28, 92, .42); }
.toast-warning { --toast-accent: #ffb61f; --toast-wash: rgba(196, 132, 16, .40); }
.toast-info    { --toast-accent: #8f9dff; --toast-wash: rgba(84, 98, 226, .42); }

/* ==========================================================================
   Notifications - modal dialog
   ========================================================================== */
.modal-layer {
  position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center;
  padding: 24px; background: rgba(8, 26, 21, .55); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .22s ease;
}
.modal-layer.in { opacity: 1; }

.modal {
  width: 100%; max-width: 470px; background: #fff; border-radius: 16px;
  box-shadow: 0 30px 80px rgba(8,26,21,.34); overflow: hidden;
  transform: translateY(14px) scale(.97); transition: transform .24s cubic-bezier(.2,.9,.3,1.1);
  max-height: calc(100vh - 48px); display: flex; flex-direction: column;
}
.modal-layer.in .modal { transform: none; }
.modal-lg { max-width: 620px; }

.modal-head { padding: 26px 28px 0; display: flex; gap: 15px; align-items: flex-start; }
.modal-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--green-lt); color: var(--green-dk);
}
.modal-icon.danger { background: var(--red-lt); color: var(--red); }
.modal-icon.warning { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.modal-icon.info { background: #e9f0f6; color: var(--navy); }
.modal-head h3 { margin: 0 0 4px; font-size: 1.22rem; }
.modal-head p { margin: 0; font-size: 14.5px; color: var(--body); line-height: 1.55; }

.modal-body { padding: 20px 28px 4px; overflow-y: auto; font-size: 14.5px; }
.modal-body .order-summary { background: var(--bg-soft); }
.modal-body p:last-child { margin-bottom: 0; }

.modal-foot {
  padding: 22px 28px 26px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
}
.modal-foot .btn { min-width: 118px; }

.modal-x {
  position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 8px;
  background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 19px; line-height: 1;
}
.modal-x:hover { background: var(--bg-soft); color: var(--ink); }
.modal { position: relative; }

body.modal-open { overflow: hidden; }

/* Inline notice panels keep their place for form-level validation */
.alert { display: flex; gap: 11px; align-items: flex-start; }
.alert svg { flex: 0 0 18px; margin-top: 1px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert li + li { margin-top: 4px; }
.alert strong { display: block; }

@media (max-width: 640px) {
  .toast-stack { top: auto; bottom: 14px; right: 14px; left: 14px; width: auto; }
  .toast { transform: translateY(140%); }
  .toast.out { transform: translateY(140%); }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .toast, .modal, .modal-layer { transition: none; }
  .toast-bar { animation: none; }
}

/* ==========================================================================
   Page transition loader - shown while a link or form takes the browser
   to a new page, so a full reload never feels dead.
   ========================================================================== */
.page-loader {
  position: fixed; inset: 0; z-index: 9900; display: grid; place-items: center;
  background: rgba(245, 249, 247, .82); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .18s ease;
}
.page-loader.show { opacity: 1; visibility: visible; }
.page-loader-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.page-loader-spin {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  border: 4px solid var(--line-2); border-top-color: var(--green);
  animation: page-loader-spin .75s linear infinite;
}
.page-loader-text {
  font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em;
  font-family: var(--display);
}

@keyframes page-loader-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .page-loader-spin { animation-duration: 1.8s; }
}

@media print {
  .page-loader { display: none !important; }
}
