:root {
  --paper: #f4f4f0;
  --surface: #ffffff;
  --ink: #1c2023;
  --muted: #6d7376;
  --line: #dedfd9;
  --graphite: #24292d;
  --oxblood: #7b2437;
  --forest: #315c52;
  --blue: #325c86;
  --violet: #6a4c83;
  --gold: #9a7844;
  --nav-h: 68px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: #e7e8e5; }
body {
  margin: 0;
  background: #e7e8e5;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input, textarea { color: inherit; font: inherit; letter-spacing: 0; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
svg { display: block; }

.app-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: calc(57px + env(safe-area-inset-top));
  align-items: flex-end;
  justify-content: space-between;
  padding: calc(8px + env(safe-area-inset-top)) 16px 9px;
  border-bottom: 1px solid rgba(28, 32, 35, .08);
  background: rgba(244, 244, 240, .94);
  backdrop-filter: blur(18px) saturate(1.2);
}
.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  flex: none;
  place-items: center;
  border: 1px solid var(--graphite);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}
.brand-lockup strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 14px; font-weight: 500; line-height: 1.05; }
.brand-lockup small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.top-actions { display: flex; gap: 4px; }
.icon-button, .round-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.icon-button svg, .round-button svg { width: 20px; height: 20px; stroke-width: 1.8; }
.icon-button.alert:after {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -19px 0 0 19px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--oxblood);
  content: "";
}

.page-stack { min-height: calc(100dvh - var(--nav-h)); }
.app-page {
  display: none;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom));
}
.app-page.active { display: block; }
.page-intro { padding: 25px 18px 18px; }
.page-intro.compact { padding-top: 20px; }
.page-intro h1 { margin: 4px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400; line-height: 1.08; }
.eyebrow { margin: 0; color: var(--oxblood); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.intro-copy { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.page-content { display: grid; gap: 14px; padding: 0 14px 18px; }

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--graphite);
  color: white;
  text-align: left;
}
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,21,24,.82), rgba(18,21,24,.18) 72%, rgba(18,21,24,.05)); }
.hero-copy { position: absolute; bottom: 16px; left: 16px; display: block; max-width: 70%; }
.hero-copy small { display: block; color: #ddd2bd; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.hero-copy strong { display: block; margin-top: 6px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 400; line-height: 1.12; }
.hero-copy span { display: block; margin-top: 5px; color: rgba(255,255,255,.76); font-size: 10px; }
.hero-action { position: absolute; right: 13px; bottom: 13px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.hero-action svg { width: 16px; height: 16px; }

.status-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.status-item { min-width: 0; padding: 11px 7px 10px; border: 0; border-right: 1px solid var(--line); background: transparent; text-align: left; }
.status-item:last-child { border-right: 0; }
.status-item i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 6px; background: #f1f2ef; }
.status-item svg { width: 14px; height: 14px; }
.status-item strong { display: block; margin-top: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; line-height: 1; }
.status-item small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.status-item.oxblood i, .tool-icon.oxblood { background: #f6eaed; color: var(--oxblood); }
.status-item.green i, .tool-icon.green { background: #eaf2ef; color: var(--forest); }
.status-item.blue i, .tool-icon.blue { background: #eaf0f6; color: var(--blue); }
.status-item.violet i, .tool-icon.violet { background: #f0ebf3; color: var(--violet); }
.tool-icon.gold { background: #f5efe5; color: var(--gold); }
.tool-icon.gray { background: #eef0f0; color: #5c6468; }

.surface { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.section-title { display: flex; min-height: 61px; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.section-title p { margin: 0 0 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.section-title h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 400; }
.section-title > button:not(.round-button) { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0 6px 8px; border: 0; background: transparent; color: var(--blue); font-size: 10px; }
.section-title > button svg { width: 14px; height: 14px; }
.round-button { width: 32px; height: 32px; border: 1px solid var(--line); }
.round-button svg { width: 15px; height: 15px; }

.agenda-list, .signal-list, .maison-list, .program-list, .action-list, .experience-list, .service-list { display: grid; }
.agenda-row, .signal-row, .maison-row, .program-row, .action-row, .experience-row, .service-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.agenda-row:last-child, .signal-row:last-child, .maison-row:last-child, .program-row:last-child, .action-row:last-child, .experience-row:last-child, .service-row:last-child { border-bottom: 0; }
.agenda-row { display: grid; grid-template-columns: 47px 3px minmax(0, 1fr) auto; min-height: 67px; align-items: center; gap: 10px; padding: 10px 13px; }
.agenda-time strong { display: block; font-size: 11px; }.agenda-time small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.agenda-accent { width: 3px; height: 35px; border-radius: 2px; }
.agenda-copy, .signal-copy, .program-copy, .action-copy, .service-copy { min-width: 0; }
.agenda-copy strong, .signal-copy strong, .program-copy strong, .action-copy strong, .service-copy strong { display: block; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-copy small, .signal-copy small, .program-copy small, .action-copy small, .service-copy small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-row > svg, .signal-row > svg, .maison-row > svg, .program-row > svg, .action-row > svg, .service-row > svg { width: 16px; height: 16px; color: #949a9d; }

.signal-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; min-height: 71px; align-items: center; gap: 10px; padding: 10px 13px; }
.city-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: white; font: 500 13px/1 Georgia, serif; }
.signal-value { min-width: 47px; text-align: right; }
.signal-value strong { display: block; font-family: Georgia, serif; font-size: 17px; font-weight: 500; }.signal-value small { display: block; margin-top: 4px; color: var(--forest); font-size: 8px; }

.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px 5px 11px; }
.tool-button { display: grid; min-width: 0; min-height: 67px; justify-items: center; gap: 6px; padding: 7px 3px; border: 0; background: transparent; }
.tool-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 7px; }
.tool-icon svg { width: 17px; height: 17px; }
.tool-button span:last-child { max-width: 100%; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.maisons-intro { color: white; background: var(--graphite); }
.maisons-intro .eyebrow { color: #cdb58b; }
.portfolio-summary { display: grid; grid-template-columns: 1.25fr .8fr 1fr; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.2); }
.portfolio-summary span { min-width: 0; padding: 12px 10px 2px 0; }
.portfolio-summary strong { display: block; font-family: Georgia, serif; font-size: 22px; font-weight: 400; }.portfolio-summary small { display: block; margin-top: 3px; color: rgba(255,255,255,.62); font-size: 8px; line-height: 1.25; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 0; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row button { flex: none; min-height: 31px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 9.5px; }
.filter-row button.active { border-color: var(--graphite); background: var(--graphite); color: white; }
.maison-row { display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; min-height: 76px; align-items: center; gap: 10px; padding: 10px 13px; }
.maison-code { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 500 11px/1 Georgia, serif; }
.maison-copy { min-width: 0; }
.maison-copy strong { display: block; font-family: Georgia, serif; font-size: 13px; font-weight: 500; }
.maison-copy span { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.maison-metric { text-align: right; }.maison-metric strong { display: block; font-family: Georgia, serif; font-size: 17px; font-weight: 500; }.maison-metric small { display: block; max-width: 74px; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.2; }
.program-row, .action-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; min-height: 69px; align-items: center; gap: 10px; padding: 10px 13px; }
.row-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 7px; color: white; }
.row-icon svg { width: 17px; height: 17px; }
.program-meta, .action-meta { display: block; min-width: 62px; text-align: right; }.program-meta strong, .action-meta strong { display: block; font-size: 9px; }.program-meta small, .action-meta small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }

.retail-intro { padding-bottom: 21px; border-bottom: 1px solid var(--line); background: #edf2ef; }
.retail-score { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--forest); color: white; }
.retail-score span { display: block; font-size: 8px; font-weight: 800; letter-spacing: .12em; }.retail-score strong { display: block; margin-top: 5px; font-family: Georgia, serif; font-size: 34px; font-weight: 400; }.retail-score small { display: block; margin-top: 4px; color: rgba(255,255,255,.7); font-size: 9px; }
.precision-ring { display: grid; width: 67px; height: 67px; align-content: center; border: 4px solid rgba(255,255,255,.26); border-top-color: white; border-radius: 50%; text-align: center; }.precision-ring span { font-size: 13px; letter-spacing: 0; }.precision-ring small { margin-top: 2px; font-size: 7px; }
.action-meta .priority { color: var(--oxblood); }.action-meta .priority.Medium { color: var(--blue); }.action-meta .priority.Normal { color: var(--forest); }
.experience-row { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; min-height: 67px; align-items: center; gap: 10px; padding: 10px 13px; }
.experience-score { text-align: right; }.experience-score strong { display: block; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }.experience-score small { display: block; margin-top: 3px; color: var(--forest); font-size: 8px; }

.mail-intro { padding-bottom: 12px; background: #eef1f4; }
.mail-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compose-button { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; padding: 0 13px; border: 0; border-radius: 7px; background: var(--graphite); color: white; font-size: 10px; font-weight: 700; }
.compose-button svg { width: 16px; height: 16px; }
.search-field { display: flex; min-height: 39px; align-items: center; gap: 9px; margin-top: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.search-field svg { width: 17px; height: 17px; color: #81898e; }.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 11px; }.search-field input::placeholder { color: #9aa0a4; }
.mail-filters { margin-top: 9px; }
.mail-content { padding-top: 0; }
.mail-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.mail-row { position: relative; display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; min-height: 91px; align-items: start; gap: 10px; padding: 12px 12px 11px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; }
.mail-row:last-child { border-bottom: 0; }
.mail-row.unread:before { position: absolute; top: 17px; left: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--oxblood); content: ""; }
.sender-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #edf0ef; color: var(--graphite); font-size: 10px; font-weight: 800; }
.mail-copy { min-width: 0; }
.mail-top { display: flex; justify-content: space-between; gap: 8px; }.mail-top strong { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }.mail-top time { flex: none; color: var(--muted); font-size: 8.5px; }
.mail-subject { display: block; margin-top: 4px; overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }.mail-preview { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.mail-tags { display: flex; gap: 6px; margin-top: 7px; }.mail-tags span { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 4px; background: #f1f2ef; color: #62696d; font-size: 7.5px; }.mail-tags svg { width: 10px; height: 10px; }
.star-button { width: 28px; height: 28px; padding: 5px; border: 0; background: transparent; color: #9ba1a4; }.star-button svg { width: 17px; height: 17px; }.star-button.starred { color: #a97820; }.star-button.starred svg { fill: currentColor; }
.empty-state { padding: 42px 20px; color: var(--muted); font-size: 11px; text-align: center; }

.profile-intro { background: var(--graphite); color: white; }
.profile-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) 38px; align-items: center; gap: 12px; }
.profile-head .eyebrow { color: #d5c29c; }.profile-head h1 { margin-top: 3px; color: white; font-size: 25px; }.profile-head p:last-child { margin: 0; overflow: hidden; color: rgba(255,255,255,.65); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-head .icon-button { color: white; }
.avatar { display: grid; width: 56px; height: 56px; overflow: hidden; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: #eef0ea; color: var(--graphite); font-family: Georgia, serif; font-size: 17px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.identity-pass { display: grid; width: 100%; grid-template-columns: 29px minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: 17px; padding: 11px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.18); background: transparent; color: white; text-align: left; }
.identity-pass > svg:first-child { width: 22px; height: 22px; color: #d5c29c; }.identity-pass > svg:last-child { width: 16px; height: 16px; color: rgba(255,255,255,.55); }.identity-pass strong { display: block; font-size: 11.5px; }.identity-pass small { display: block; margin-top: 3px; color: rgba(255,255,255,.6); font-size: 8.5px; }
.profile-content { padding-top: 14px; }
.profile-data { display: grid; grid-template-columns: 1fr 1fr; }
.profile-data-item { min-width: 0; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.profile-data-item:nth-child(even) { border-right: 0; }.profile-data-item:nth-last-child(-n+2) { border-bottom: 0; }.profile-data-item small { display: block; color: var(--muted); font-size: 8px; }.profile-data-item strong { display: block; margin-top: 4px; overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.profile-data-item.full { grid-column: 1 / -1; border-right: 0; }
.profile-data-item.full strong { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.service-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; min-height: 63px; align-items: center; gap: 10px; padding: 10px 13px; }
.service-icon { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 7px; background: #f0f2ef; color: var(--graphite); }.service-icon svg { width: 16px; height: 16px; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: min(100%, 520px);
  min-height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 auto;
  padding: 6px 6px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px) saturate(1.25);
}
.bottom-nav > button { display: grid; min-width: 0; align-content: center; justify-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: #777e82; font-size: 8.5px; }
.bottom-nav > button.active { color: var(--graphite); font-weight: 700; }
.nav-icon { position: relative; display: grid; width: 25px; height: 25px; place-items: center; }
.nav-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.bottom-nav > button.active .nav-icon:after { position: absolute; bottom: -4px; width: 14px; height: 2px; border-radius: 2px; background: var(--oxblood); content: ""; }
.nav-badge { position: absolute; top: -5px; right: -8px; display: grid; min-width: 16px; height: 16px; padding: 0 4px; place-items: center; border: 2px solid white; border-radius: 9px; background: var(--oxblood); color: white; font-size: 7px; line-height: 1; }

.detail-page {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .28s cubic-bezier(.22,.72,.2,1), opacity .18s ease, visibility 0s linear .28s;
}
.detail-page.open { opacity: 1; pointer-events: auto; transform: translateX(0); visibility: visible; transition-delay: 0s; }
.detail-header { position: sticky; z-index: 5; top: 0; display: grid; min-height: calc(55px + env(safe-area-inset-top)); grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: end; padding: calc(6px + env(safe-area-inset-top)) 8px 6px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(18px); }
.detail-header strong { align-self: center; overflow: hidden; font-family: Georgia, serif; font-size: 16px; font-weight: 500; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.detail-content { height: calc(100dvh - 55px - env(safe-area-inset-top)); overflow-y: auto; padding: 16px 14px calc(26px + env(safe-area-inset-bottom)); }
.detail-hero { padding: 19px 17px; border-radius: var(--radius); background: var(--graphite); color: white; }
.detail-hero .detail-kicker { margin: 0; color: #d5c29c; font-size: 8px; font-weight: 800; letter-spacing: .12em; }.detail-hero h2 { margin: 7px 0 6px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1.12; }.detail-hero p { margin: 0; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.55; }
.detail-section { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.detail-section > h3 { margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: Georgia, serif; font-size: 16px; font-weight: 400; }
.detail-row { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 10px; line-height: 1.45; }.detail-row:last-child { border-bottom: 0; }.detail-row span:first-child { color: var(--muted); }.detail-row strong { min-width: 0; overflow-wrap: anywhere; }
.detail-copy { padding: 14px; color: #4f575b; font-size: 10.5px; line-height: 1.65; white-space: pre-line; }
.detail-actions { display: flex; gap: 8px; margin-top: 14px; }.primary-action, .secondary-action { min-height: 40px; flex: 1; padding: 0 13px; border-radius: 7px; font-size: 10px; font-weight: 700; }.primary-action { border: 1px solid var(--graphite); background: var(--graphite); color: white; }.secondary-action { border: 1px solid var(--line); background: white; }
.step-list { display: grid; padding: 8px 14px; }.step-item { position: relative; display: grid; min-height: 42px; grid-template-columns: 21px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 10px; }.step-item:before { display: grid; width: 16px; height: 16px; place-items: center; border: 1px solid #a8adaf; border-radius: 50%; color: white; content: ""; }.step-item.done:before { border-color: var(--forest); background: var(--forest); content: "✓"; font-size: 9px; }.step-item:not(:last-child):after { position: absolute; top: 29px; bottom: -7px; left: 7px; width: 1px; background: var(--line); content: ""; }
.attachment-list { display: grid; }.attachment-row { display: flex; min-height: 45px; align-items: center; gap: 9px; padding: 9px 14px; border: 0; border-bottom: 1px solid var(--line); background: white; font-size: 9.5px; text-align: left; }.attachment-row:last-child { border-bottom: 0; }.attachment-row svg { width: 16px; height: 16px; color: var(--blue); }.attachment-row span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.attachment-row small { color: var(--muted); }
.compose-form { display: grid; padding: 2px 0; }.compose-form label { display: grid; min-height: 51px; grid-template-columns: 50px minmax(0, 1fr); align-items: center; padding: 0 13px; border-bottom: 1px solid var(--line); }.compose-form label span { color: var(--muted); font-size: 9.5px; }.compose-form input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }.compose-form textarea { width: 100%; min-height: 245px; resize: none; padding: 14px 13px; border: 0; outline: 0; font-size: 11px; line-height: 1.55; }
.mail-body { padding: 15px; font-size: 11px; line-height: 1.7; white-space: pre-line; }.mail-detail-sender { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); }.mail-detail-sender strong { display: block; font-size: 11px; }.mail-detail-sender small { display: block; margin-top: 3px; color: var(--muted); font-size: 8.5px; }
.profile-detail-head { display: grid; justify-items: center; padding: 23px 16px; border-radius: var(--radius); background: var(--graphite); color: white; text-align: center; }.profile-detail-head .avatar { width: 72px; height: 72px; }.profile-detail-head h2 { margin: 12px 0 4px; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }.profile-detail-head p { margin: 0; color: rgba(255,255,255,.65); font-size: 10px; }
.qr-placeholder { display: grid; width: 142px; height: 142px; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); gap: 2px; margin: 18px auto; padding: 8px; border: 1px solid var(--line); background: white; }.qr-placeholder i { background: var(--graphite); }.qr-placeholder i.light { background: transparent; }

.toast { position: fixed; z-index: 100; bottom: calc(82px + env(safe-area-inset-bottom)); left: 50%; max-width: calc(100% - 44px); padding: 10px 14px; border-radius: 6px; background: rgba(28,32,35,.94); color: white; font-size: 9.5px; opacity: 0; pointer-events: none; transform: translate(-50%, 9px); transition: .2s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  .app-shell { box-shadow: 0 0 38px rgba(28,32,35,.15); }
  .detail-page { box-shadow: 0 0 38px rgba(28,32,35,.18); }
}

@media (max-width: 360px) {
  .page-intro { padding-right: 14px; padding-left: 14px; }
  .page-content { padding-right: 10px; padding-left: 10px; }
  .page-intro h1 { font-size: 27px; }
  .hero-copy strong { font-size: 18px; }
  .status-item { padding-right: 5px; padding-left: 5px; }
  .status-item small { font-size: 7.5px; }
  .tool-button span:last-child { font-size: 8px; }
  .portfolio-summary small { font-size: 7px; }
  .profile-head { grid-template-columns: 50px minmax(0, 1fr) 34px; gap: 9px; }
  .avatar { width: 50px; height: 50px; }
  .compose-button span { display: none; }
  .compose-button { width: 38px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
