:root {
  --cream: #F6F1E4;
  --cream-deep: #EFE7D3;
  --white: #FFFFFF;
  --emerald: #167d5a;
  --emerald-dark: #0d3d2c;
  --ink-deep: #101816;
  --gold: #c99a3d;
  --gold-light: #e8c77a;
  --ink: #17211e;
  --muted: #6b7772;
  --border: #e5dfcd;
  --danger: #b33a34;
  --danger-bg: #fae4e1;
  --warning-bg: #fff3df;
  --warning-ink: #9a5c00;
  --ok-bg: #dff1e8;
  --ok-ink: #106748;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16,24,22,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.5 "Georgia", "Iowan Old Style", ui-serif, serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.sans { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; }
h1, h2, h3, h4 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; margin: 0 0 6px; color: var(--ink-deep); }
p { margin: 0 0 10px; }
a { color: var(--emerald); }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink-deep);
  color: #eef4f0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.topbar .brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: #fff;
  color: var(--ink-deep); display: grid; place-items: center; font-weight: 800; font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  overflow: hidden;
}
.mark img { width: 100%; height: 100%; object-fit: contain; }
.topbar .brand small { display: block; color: #9caaa4; font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.topbar .who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #cfd8d3; }
.topbar button.linklike {
  background: transparent; border: 1px solid #33413c; color: #eef4f0; border-radius: 8px;
  padding: 7px 12px; cursor: pointer; font-size: 12px;
}
.topbar button.linklike:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- Login ---------- */
.login-screen {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(circle at 20% 10%, #16301f 0%, var(--ink-deep) 55%, #0a1210 100%);
  padding: 24px;
}
.login-card {
  background: var(--white); border-radius: 20px; width: min(420px, 100%);
  padding: 36px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.login-card .mark { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 16px;
  background: #fff; color: var(--ink-deep); overflow: hidden;
  display: grid; place-items: center; font-weight: 800; font-family: -apple-system, sans-serif; font-size: 18px; }
.login-card h1 { text-align: center; font-size: 20px; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.login-card .disclaimer { text-align: center; color: #9aa39d; font-size: 11px; margin-top: 18px; }

/* ---------- Forms ---------- */
label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-deep); margin-bottom: 5px; font-family: -apple-system, sans-serif; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 11px; color: var(--muted); margin-top: 4px; font-family: -apple-system, sans-serif; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], textarea, select {
  width: 100%; border: 1px solid var(--border); border-radius: 9px; background: var(--white);
  padding: 11px 12px; color: var(--ink); font-family: -apple-system, sans-serif; font-size: 14px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid #cfe6db; border-color: var(--emerald); }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; font-family: -apple-system, sans-serif; font-size: 13px; }
.checkbox-row input { width: 17px; height: 17px; margin-top: 2px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field-grid.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .field-grid, .field-grid.three { grid-template-columns: 1fr; } }

.req-mark { color: var(--danger); font-weight: 800; }
.required-note { background: var(--warning-bg); color: var(--warning-ink); border-radius: 9px; padding: 10px 14px; font-family: -apple-system, sans-serif; font-size: 13px; margin-bottom: 16px; }
.field-error { color: var(--danger); font-size: 12px; margin-top: 5px; font-family: -apple-system, sans-serif; display: none; }
.field-error.show { display: block; }
.input-invalid { border-color: var(--danger) !important; background: var(--danger-bg); }
.submit-summary-error { background: var(--danger-bg); color: var(--danger); border-radius: 9px; padding: 12px 14px; font-family: -apple-system, sans-serif; font-size: 13px; margin: 14px 0; display: none; }
.submit-summary-error.show { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; font-size: 13px;
  text-decoration: none;
}
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-dark); }
.btn-gold { background: var(--gold); color: var(--ink-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { background: var(--cream-deep); color: var(--ink-deep); }
.btn-ghost:hover { background: #e6dcc0; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Layout shell (portal + admin) ---------- */
.shell { display: flex; min-height: 100vh; }
.side-nav {
  width: 232px; flex: 0 0 auto; background: var(--white); border-right: 1px solid var(--border);
  padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-nav .company { padding: 8px 10px 18px; font-family: -apple-system, sans-serif; }
.side-nav .company b { display: block; font-size: 14px; color: var(--ink-deep); }
.side-nav .company small { color: var(--muted); font-size: 11px; }
.side-nav nav { display: grid; gap: 3px; }
.side-nav nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: transparent; border: 0; padding: 10px 12px; border-radius: 9px; cursor: pointer;
  color: #3f4a45; font-family: -apple-system, sans-serif; font-size: 13px; font-weight: 600;
}
.side-nav nav button:hover { background: var(--cream); }
.side-nav nav button.active { background: var(--emerald); color: #fff; }
.side-nav nav button .badge-count {
  margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800;
  border-radius: 10px; padding: 1px 7px;
}
.main-area { flex: 1; min-width: 0; }
.page { padding: 28px 24px 60px; max-width: 980px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 24px; }
.page-head p { color: var(--muted); font-family: -apple-system, sans-serif; font-size: 13px; }

.mobile-menu-btn { display: none; }
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side-nav { position: fixed; inset: 0 20% 0 0; z-index: 40; transform: translateX(-105%); transition: .2s; height: 100vh; width: 78%; max-width: 300px; }
  .side-nav.open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,.3); }
  .main-area { width: 100%; }
  .page { padding: 18px 16px 50px; }
  .mobile-menu-btn { display: inline-flex; }
  .nav-scrim { display: none; position: fixed; inset: 0; background: rgba(10,18,15,.5); z-index: 39; }
  .nav-scrim.show { display: block; }
}

/* ---------- Cards / content ---------- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card h2 { font-size: 17px; }
.card h3 { font-size: 14px; margin-top: 4px; }
.service-group-head { font-size: 15px; font-weight: 800; margin: 24px 0 10px; }
.service-group-head:first-child { margin-top: 0; }
.muted { color: var(--muted); font-family: -apple-system, sans-serif; font-size: 13px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

.badge { display: inline-block; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 20px; font-family: -apple-system, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.badge-pending { background: var(--warning-bg); color: var(--warning-ink); }
.badge-progress { background: #e6effb; color: #1d5aa8; }
.badge-done { background: var(--ok-bg); color: var(--ok-ink); }
.badge-required { background: var(--danger-bg); color: var(--danger); }
.badge-optional { background: var(--cream-deep); color: var(--ink-deep); }
.badge-gold { background: #f6e9cc; color: #8a6414; }

.list-row, .stage-row, .doc-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-top: 1px solid #f0ece0; }
.list-row:first-child, .stage-row:first-child, .doc-row:first-child { border-top: 0; }
.grow { flex: 1 1 0%; min-width: 0; }
.list-row b { display: block; font-size: 13.5px; font-family: -apple-system, sans-serif; }
.list-row .detail { color: var(--muted); font-size: 12px; margin-top: 3px; font-family: -apple-system, sans-serif; overflow-wrap: anywhere; }
.list-row .detail a { overflow-wrap: anywhere; }
.list-row select, .stage-row select, .doc-row select,
.list-row > .btn, .list-row > a.btn, .doc-row > .btn, .doc-row > a.btn { width: auto; flex: 0 0 auto; }
select.status-select { min-width: 150px; }
@media (max-width: 640px) { .list-row, .doc-row { flex-wrap: wrap; } select.status-select { min-width: 100%; } }

.progress-bar { height: 8px; border-radius: 999px; background: #ece5d2; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--emerald); border-radius: inherit; }
.stage-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #f0ece0; }
.stage-row:first-child { border-top: 0; }
.stage-dot { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: #cfc6a9; }
.stage-dot.complete { background: var(--emerald); }
.stage-dot.in_progress { background: var(--gold); color: var(--ink-deep); }
.stage-row .grow b { font-family: -apple-system, sans-serif; font-size: 14px; }
.stage-row .grow small { color: var(--muted); font-family: -apple-system, sans-serif; }

.upload-drop {
  border: 2px dashed var(--border); border-radius: 12px; padding: 26px; text-align: center;
  color: var(--muted); font-family: -apple-system, sans-serif; font-size: 13px; cursor: pointer; background: var(--cream);
}
.upload-drop.drag { border-color: var(--emerald); background: #eef7f2; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #f0ece0; font-family: -apple-system, sans-serif; }
.doc-row:first-child { border-top: 0; }
.doc-row .file-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--cream-deep); display: grid; place-items: center; flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--emerald-dark); }
.doc-row .grow { flex: 1; min-width: 0; }
.doc-row b { display: block; font-size: 13px; overflow-wrap: anywhere; }
.doc-row small { color: var(--muted); font-size: 11px; }

.update-item { padding: 12px 0; border-top: 1px solid #f0ece0; font-family: -apple-system, sans-serif; }
.update-item:first-child { border-top: 0; }
.update-item .meta { font-size: 11px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.update-item .meta b { color: var(--ink-deep); }
.update-item .meta.from-admin b { color: var(--emerald); }

.pay-hero { background: linear-gradient(135deg, var(--ink-deep), #16301f); color: #fff; border-radius: var(--radius); padding: 26px; }
.pay-hero .amount { font-size: 34px; font-weight: 800; font-family: -apple-system, sans-serif; }
.pay-hero .row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.14); font-family: -apple-system, sans-serif; font-size: 13px; }
.pay-hero .row:first-of-type { border-top: 0; }
.pay-hero .gold-text { color: var(--gold-light); }

table.simple { width: 100%; border-collapse: collapse; font-family: -apple-system, sans-serif; font-size: 13px; }
table.simple th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.simple td { padding: 10px; border-bottom: 1px solid #f0ece0; vertical-align: top; }
table.simple tr:hover td { background: #fbf8f0; }

.empty-note { color: var(--muted); font-family: -apple-system, sans-serif; font-size: 13px; padding: 10px 0; }
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--ink-deep); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 90; font-family: -apple-system, sans-serif; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.toast.error { background: var(--danger); }
.error-text { color: var(--danger); font-size: 13px; font-family: -apple-system, sans-serif; margin-top: 8px; }

.overlay { position: fixed; inset: 0; background: rgba(10,18,15,.55); z-index: 60; display: grid; place-items: center; justify-content: center; align-items: center; padding: 20px; overflow: auto; }
.modal { background: #fff; border-radius: 16px; width: min(520px, 100%); max-height: 88vh; overflow: auto; padding: 26px; position: relative; }
.modal h2 { margin-bottom: 4px; padding-right: 28px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px;
  border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.modal-close:hover { background: var(--cream); color: var(--ink-deep); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Post-submission Eden offer ---------- */
.eden-offer-modal { width: min(560px, 100%); }
.eden-offer-confirm { text-align: center; padding: 4px 0 14px; }
.eden-offer-check { width: 48px; height: 48px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink);
  display: grid; place-items: center; font-size: 22px; font-weight: 800; margin: 0 auto 12px; }
.eden-offer-divider { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.eden-offer-intro { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.eden-offer-avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--emerald); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-family: -apple-system, sans-serif; flex: 0 0 auto; }
.eden-offer-list { margin: 0 0 12px; padding-left: 20px; font-family: -apple-system, sans-serif; font-size: 13px; color: var(--ink); }
.eden-offer-list li { margin-bottom: 4px; }
@media (max-width: 640px) { .eden-offer-modal { padding: 20px; } }

.client-tile { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: #fff; cursor: pointer; margin-bottom: 10px; }
.client-tile:hover { border-color: var(--emerald); }
.client-tile .avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--emerald); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: -apple-system, sans-serif; flex: 0 0 auto; }
.client-tile .grow b { display: block; font-family: -apple-system, sans-serif; font-size: 14px; overflow-wrap: anywhere; }
.client-tile .grow small { display: block; color: var(--muted); font-family: -apple-system, sans-serif; overflow-wrap: anywhere; }

.welcome-hero { background: linear-gradient(160deg, #16301f, var(--ink-deep)); color: #fff; border-radius: 18px; padding: 30px 26px; margin-bottom: 20px; }
.welcome-hero h1 { color: #fff; font-size: 24px; }
.welcome-hero p { color: #cfe0d7; font-family: -apple-system, sans-serif; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--ink-deep); font-weight: 800; display: grid; place-items: center; font-size: 12px; flex: 0 0 auto; font-family: -apple-system, sans-serif; }

/* ---------- Service gateway ("What are you onboarding for?") ---------- */
.gateway-page { min-height: 100vh; background: var(--cream); padding: 48px 20px 60px; }
.gateway-header { max-width: 900px; margin: 0 auto 40px; text-align: center; }
.gateway-header .mark { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 18px; background: #fff;
  box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; }
.gateway-header .mark img { width: 100%; height: 100%; object-fit: contain; }
.gateway-header .eyebrow { font-family: -apple-system, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--emerald); margin-bottom: 8px; }
.gateway-header h1 { font-size: 30px; margin-bottom: 8px; }
.gateway-header p { color: var(--muted); font-family: -apple-system, sans-serif; font-size: 14px; max-width: 520px; margin: 0 auto; }

.gateway-video-placeholder {
  max-width: 900px; margin: 0 auto 32px; aspect-ratio: 16 / 9; background: var(--cream-deep);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; place-items: center; overflow: hidden;
}
.gateway-video-placeholder .video-placeholder-inner { text-align: center; color: var(--muted); font-family: -apple-system, sans-serif; }
.gateway-video-placeholder .play-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--white); color: var(--emerald-dark);
  display: grid; place-items: center; margin: 0 auto 12px; box-shadow: var(--shadow);
}
.gateway-video-placeholder .play-icon svg { width: 26px; height: 26px; stroke: none; }
.gateway-video-placeholder p { font-size: 14px; font-weight: 600; margin: 0; }

.gateway-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .gateway-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gateway-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
  text-align: left; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--emerald); box-shadow: 0 14px 34px rgba(16,24,22,.12); }
.service-card-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.service-card-disabled:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow); }
.service-card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--cream-deep); color: var(--emerald-dark);
  display: grid; place-items: center; }
.service-card .icon svg { width: 24px; height: 24px; stroke: var(--emerald-dark); fill: none; stroke-width: 1.6; }
.service-card h2 { font-size: 18px; margin: 4px 0 0; }
.service-card p.desc { color: var(--muted); font-family: -apple-system, sans-serif; font-size: 13px; flex: 1; margin: 0; }
.service-card .btn { align-self: flex-start; margin-top: 6px; }

.gateway-footer { max-width: 900px; margin: 36px auto 0; text-align: center; font-family: -apple-system, sans-serif; font-size: 13px; color: var(--muted); }

/* Password field + "Show password" toggle — shared across login, change-password,
   and the password-set page (public/js/passwordVisibility.js). */
.pw-field { display: flex; align-items: stretch; gap: 8px; }
.pw-field input { flex: 1; }
.pw-toggle-btn {
  flex: 0 0 auto; background: var(--cream-deep); border: 1px solid var(--border); border-radius: 8px;
  color: var(--ink-deep); font-size: 12px; font-family: -apple-system, sans-serif; padding: 0 12px; cursor: pointer;
}
.pw-toggle-btn:hover { border-color: var(--emerald); color: var(--emerald-dark); }
.gateway-footer a { color: var(--emerald); font-weight: 600; }

/* My Documents (founder-approved design 2026-10-13) */
.doc-row .file-icon.pdf { background: #f6e3e0; color: #9b2c1f; }
.doc-row .file-icon.zip { background: #f6e9cc; color: #8a6414; }
.doc-row .file-icon.doc { background: #e1ebf6; color: #1f4f8a; }
.doc-cat-head { display: flex; align-items: baseline; justify-content: space-between; }
.doc-cat-head h2 { margin-bottom: 4px; }
.doc-cat-head span { color: var(--muted); font-size: 12px; font-family: -apple-system, sans-serif; }
#my-documents-list .doc-row, #posted-docs-list .doc-row { align-items: center; }
#my-documents-list .doc-row b, #posted-docs-list .doc-row b { display: block; font-size: 13.5px; font-family: -apple-system, sans-serif; }
#my-documents-list .doc-row small, #posted-docs-list .doc-row small { color: var(--muted); font-size: 12px; font-family: -apple-system, sans-serif; }
.doc-group-toggle { background: none; border: 0; padding: 0; color: var(--emerald-dark, #0d5c46); font: 600 12px -apple-system, sans-serif; cursor: pointer; margin-top: 3px; }
.doc-sublist { margin: 2px 0 4px 46px; border-left: 2px solid #f0ece0; padding-left: 14px; }
.doc-sublist .doc-row { padding: 8px 0; }
.doc-sublist .doc-row .file-icon { width: 28px; height: 28px; font-size: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 2px 0 0; color: var(--muted); font: 12px -apple-system, sans-serif; }
.cat-chip { display: inline-block; font: 600 11px -apple-system, sans-serif; padding: 2px 8px; border-radius: 20px; background: var(--cream-deep); color: var(--ink-deep); margin-right: 6px; }
.sent-ok { color: var(--ok-ink, #1d6b3a); }
.doc-meta2 { display: block; margin-top: 2px; }

/* ---------- Account menu, My Profile, photo crop (2026-10-21) ---------- */
.account-avatar {
  display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  background: var(--emerald); color: var(--cream); font-weight: 800; letter-spacing: .02em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  box-shadow: inset 0 0 0 2px rgba(232,199,122,.55);
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-menu { position: relative; }
.account-trigger {
  display: flex; align-items: center; gap: 9px; background: transparent; border: 1px solid #33413c;
  color: #eef4f0; border-radius: 999px; padding: 3px 12px 3px 3px; cursor: pointer; font-size: 13px;
}
.account-trigger:hover, .account-trigger[aria-expanded="true"] { border-color: var(--gold); }
.account-trigger-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-caret { color: #9caaa4; font-size: 10px; }
.account-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); width: 260px; z-index: 70;
  background: #fff; color: var(--ink); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(16,24,22,.18); padding: 6px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}
.account-dropdown-head { display: flex; gap: 11px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid #f0ece0; margin-bottom: 4px; }
.account-dropdown-head b { display: block; font-size: 14px; color: var(--ink-deep); }
.account-dropdown-head small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.account-dropdown button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 8px;
  padding: 10px 10px; font-size: 13.5px; color: var(--ink-deep); cursor: pointer;
}
.account-dropdown button:hover, .account-dropdown button:focus-visible { background: var(--cream); outline: none; }
.account-dropdown .account-signout { color: var(--danger); }
@media (max-width: 640px) { .account-trigger-name, .account-caret { display: none; } .account-trigger { padding: 3px; } }

.profile-photo-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-photo-row .btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.profile-complete { display: flex; align-items: center; gap: 16px; }
.profile-complete .progress-bar { flex: 1 1 auto; }
.profile-checklist { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: -apple-system, sans-serif; font-size: 13px; }
.profile-checklist li.done { color: var(--ok-ink); }
.profile-checklist li:not(.done) { color: var(--muted); }
.toggle-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid #f0ece0; font-family: -apple-system, sans-serif; }
.toggle-row:first-of-type { border-top: 0; }
.toggle-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--emerald); }
.toggle-row b { display: block; font-size: 13.5px; }
.toggle-row small { color: var(--muted); font-size: 12px; }
.pending-note { background: var(--warning-bg); color: var(--warning-ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-family: -apple-system, sans-serif; margin-top: 10px; }

.profile-prompt {
  display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #fffaf0, #f6efdc);
  border: 1px solid #ead9ad; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; position: relative;
}
.profile-prompt .grow b { display: block; font-family: -apple-system, sans-serif; font-size: 14px; color: var(--ink-deep); }
.profile-prompt .grow small { color: var(--muted); font-family: -apple-system, sans-serif; font-size: 12.5px; }
.profile-prompt .progress-bar { margin-top: 8px; max-width: 280px; }
.profile-prompt .dismiss { position: absolute; top: 8px; right: 10px; background: transparent; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 4px; }
@media (max-width: 640px) { .profile-prompt { flex-wrap: wrap; } }

.crop-modal { text-align: center; width: min(380px, 100%); }
.crop-canvas { display: block; margin: 12px auto; border-radius: 12px; touch-action: none; cursor: grab; max-width: 100%; height: auto !important; }
.crop-zoom { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--muted); }
.crop-zoom input { width: 200px; accent-color: var(--emerald); }
.crop-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.signed-out-note { background: var(--ok-bg); color: var(--ok-ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; font-family: -apple-system, sans-serif; }
.linklike-inline { background: none; border: 0; padding: 0; color: var(--emerald); text-decoration: underline; cursor: pointer; font: inherit; }
