:root {
  --blue: #0672e5;
  --deep: #102f4f;
  --green: #20c997;
  --cyan: #28a7c7;
  --violet: #6957c8;
  --coral: #f36c5b;
  --yellow: #f1be36;
  --ink: #172330;
  --muted: #687684;
  --line: #dce3e7;
  --paper: #f5f7f8;
  --white: #ffffff;
  --shadow: 0 10px 26px rgba(26, 58, 83, 0.09);
}

* { box-sizing: border-box; }

html {
  background: #e0e6e9;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #e0e6e9;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
svg { display: block; width: 20px; height: 20px; stroke-width: 1.9; }
[hidden] { display: none !important; }

.app-shell {
  position: relative;
  width: min(100%, 540px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--paper);
  box-shadow: 0 0 40px rgba(21, 50, 72, 0.12);
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: env(safe-area-inset-top) 16px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.97);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.brand img {
  width: 34px;
  height: 42px;
  object-fit: contain;
}

.brand span { display: grid; gap: 1px; }
.brand strong { color: var(--deep); font-size: 14px; }
.brand small { color: var(--muted); font-size: 10px; }

.top-actions { display: flex; gap: 2px; }
.top-actions button { position: relative; display: grid; width: 42px; height: 42px; place-items: center; background: transparent; }
.top-actions svg { width: 23px; height: 23px; }
.top-actions span {
  position: absolute;
  top: 3px;
  right: 2px;
  display: grid;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  place-items: center;
  border: 2px solid white;
  border-radius: 20px;
  background: var(--coral);
  color: white;
  font-size: 8px;
  font-weight: 800;
}

.page {
  display: none;
  min-height: calc(100vh - 70px);
  padding-bottom: 88px;
  animation: page-enter 220ms ease-out;
}

.page.active { display: block; }

@keyframes page-enter {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.market-clock {
  display: grid;
  grid-auto-columns: 116px;
  grid-auto-flow: column;
  gap: 1px;
  overflow-x: auto;
  border-bottom: 1px solid #cfe0e9;
  background: #cfe0e9;
  scrollbar-width: none;
}

.market-clock::-webkit-scrollbar { display: none; }

.clock-item {
  min-height: 62px;
  padding: 11px 13px;
  background: #eaf5fb;
}

.clock-item strong,
.clock-item span,
.clock-item small { display: block; }
.clock-item strong { font-size: 13px; }
.clock-item span { margin-top: 2px; color: var(--deep); font-size: 11px; font-weight: 800; }
.clock-item small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.clock-item:first-child { border-top: 3px solid var(--green); background: white; }

.today-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 16px;
  min-height: 236px;
  padding: 30px 20px;
  overflow: hidden;
  background: var(--deep);
  color: white;
}

.today-hero::after {
  position: absolute;
  right: -52px;
  bottom: -48px;
  width: 145px;
  height: 190px;
  background: var(--green);
  content: "";
  transform: rotate(19deg);
}

.hero-copy { position: relative; z-index: 1; }
.hero-copy > span,
.section-title span,
.network-head > span,
.mail-head span,
.profile-hero > div > span,
.ai-head > span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 14px 0 10px;
  font-size: 37px;
  line-height: 1.03;
}

.hero-copy p {
  max-width: 300px;
  margin: 0;
  opacity: 0.75;
  font-size: 12px;
  line-height: 1.5;
}

.ai-orb {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: start;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
}

.ai-orb svg { width: 25px; height: 25px; }
.ai-orb span { margin-top: -9px; font-size: 9px; font-weight: 800; }

.work-mode {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: -24px 14px 12px;
  padding: 16px;
  border-radius: 7px;
  background: white;
  box-shadow: var(--shadow);
}

.work-mode span,
.work-mode strong,
.work-mode small { display: block; }
.work-mode span { color: var(--blue); font-size: 8px; font-weight: 800; }
.work-mode strong { margin: 5px 0 3px; font-size: 13px; }
.work-mode small { color: var(--muted); font-size: 9px; }

.mode-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 6px;
  background: #eef2f4;
}

.mode-toggle button {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
}

.mode-toggle button.active { background: var(--deep); color: white; }
.mode-toggle svg { width: 17px; height: 17px; }

.action-lane,
.agenda-section {
  padding: 18px 0 6px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 18px 13px;
}

.section-title span { color: var(--blue); }
.section-title h2 { margin: 4px 0 0; font-size: 23px; }
.section-title > button { display: grid; min-width: 36px; min-height: 36px; place-items: center; padding: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 800; }
.section-title button svg { width: 19px; }

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 14px;
}

.action-card {
  min-width: 0;
  min-height: 126px;
  padding: 13px;
  border-radius: 6px;
  background: white;
  box-shadow: 0 5px 18px rgba(26,58,83,0.06);
  text-align: left;
}

.action-card > span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 5px;
  background: #e7f2ff;
  color: var(--blue);
}

.action-card.green > span { background: #e5f8f2; color: #168765; }
.action-card.coral > span { background: #ffebe8; color: var(--coral); }
.action-card svg { width: 18px; }
.action-card strong, .action-card small { display: block; overflow-wrap: anywhere; }
.action-card strong { font-size: 11px; line-height: 1.25; }
.action-card small { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.35; }

.agenda-section {
  margin-top: 12px;
  border-top: 8px solid #e9eef1;
  background: white;
}

.agenda-item {
  display: grid;
  grid-template-columns: 46px 38px 1fr auto;
  gap: 10px;
  align-items: center;
  width: calc(100% - 36px);
  min-height: 75px;
  margin: 0 18px;
  border-top: 1px solid #e8edef;
  background: transparent;
  text-align: left;
}

.agenda-item time { color: var(--deep); font-size: 11px; font-weight: 800; }
.agenda-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 5px;
  background: #e7f2ff;
  color: var(--blue);
}

.agenda-icon svg { width: 18px; }
.agenda-item strong, .agenda-item small { display: block; }
.agenda-item strong { margin-bottom: 4px; font-size: 12px; }
.agenda-item small { color: var(--muted); font-size: 9px; }
.market-tag { padding: 4px 6px; border-radius: 3px; background: #e7f2ff; color: var(--blue); font-size: 8px; font-weight: 800; }

.network-head {
  padding: 34px 20px 26px;
  background: var(--deep);
  color: white;
}

.network-head h1,
.mail-head h1,
.profile-hero h1,
.ai-head h1 {
  margin: 8px 0;
  font-size: 36px;
}

.network-head p {
  max-width: 420px;
  margin: 0;
  opacity: 0.72;
  font-size: 12px;
  line-height: 1.55;
}

.network-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 132px;
  padding: 28px 14px 18px;
  overflow: hidden;
  background: white;
}

.map-line {
  position: absolute;
  top: 48px;
  right: 50px;
  left: 50px;
  height: 2px;
  background: #bfd1db;
}

.network-map button {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  justify-items: center;
  background: transparent;
}

.network-map button::before {
  width: 15px;
  height: 15px;
  margin: 12px 0 13px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px #a8bfcc;
  content: "";
}

.network-map button:first-of-type::before { background: var(--green); }
.network-map strong { font-size: 11px; }
.network-map small { margin-top: 3px; color: var(--muted); font-size: 8px; }

.flow-filter,
.mail-filters {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  scrollbar-width: none;
}

.flow-filter::-webkit-scrollbar,
.mail-filters::-webkit-scrollbar { display: none; }

.flow-filter button,
.mail-filters button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 18px;
  background: #edf2f4;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.flow-filter button.active,
.mail-filters button.active { background: var(--deep); color: white; }

.workstream-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.workstream-card {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  text-align: left;
}

.stream-top,
.stream-bottom,
.mail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stream-top > span {
  padding: 4px 7px;
  border-radius: 3px;
  background: #e7f2ff;
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
}

.stream-top small { color: #178564; font-size: 9px; font-weight: 800; }
.stream-top small.attention { color: var(--coral); }
.workstream-card h3 { margin: 13px 0 4px; font-size: 16px; }
.workstream-card > p { margin: 0; color: var(--muted); font-size: 10px; }
.market-chips { display: flex; gap: 5px; margin: 14px 0; }
.market-chips span { padding: 4px 6px; border: 1px solid #bfd1db; border-radius: 3px; color: var(--deep); font-size: 8px; font-weight: 800; }
.progress-track { height: 5px; margin: 12px 0 8px; overflow: hidden; border-radius: 4px; background: #e8edef; }
.progress-track span { display: block; height: 100%; background: var(--green); }
.stream-bottom small { color: var(--muted); font-size: 9px; }
.stream-bottom strong { color: var(--deep); font-size: 9px; }

.ai-page { background: #edf6fa; }

.ai-head {
  position: relative;
  padding: 34px 20px 28px 94px;
  border-bottom: 1px solid #cfe1e9;
  background: #e3f3f8;
}

.ai-mark {
  position: absolute;
  top: 34px;
  left: 20px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--green);
}

.ai-mark svg { width: 27px; height: 27px; }
.ai-head > span { color: var(--blue); }
.ai-head h1 { margin-top: 5px; color: var(--deep); }
.ai-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.ai-conversation {
  min-height: 162px;
  padding: 20px;
}

.ai-message {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.ai-message > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--green);
}

.ai-message svg { width: 16px; }
.ai-message p { margin: 0; padding: 12px 14px; border-radius: 4px 8px 8px 8px; background: white; box-shadow: 0 4px 14px rgba(20,60,80,0.05); font-size: 12px; line-height: 1.5; }
.ai-message.user { grid-template-columns: 1fr; padding-left: 52px; }
.ai-message.user p { background: var(--deep); color: white; }

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 14px 16px;
}

.prompt-grid button {
  min-height: 70px;
  padding: 12px;
  border: 1px solid #cfe1e9;
  border-radius: 6px;
  background: white;
  color: var(--deep);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.ai-composer {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 8px;
  margin: 0 14px;
  padding: 8px;
  border: 1px solid #bcd3df;
  border-radius: 7px;
  background: white;
}

.ai-composer textarea { min-width: 0; max-height: 100px; padding: 9px; resize: none; border: 0; outline: 0; background: transparent; font-size: 12px; }
.ai-composer button { display: grid; width: 40px; height: 40px; place-items: center; align-self: end; border-radius: 50%; background: var(--blue); color: white; }
.ai-composer svg { width: 18px; }
.ai-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 28px; color: var(--muted); font-size: 9px; }
.ai-note svg { width: 13px; color: var(--green); }

.mail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 34px 18px 16px;
  background: white;
}

.mail-head span { color: var(--blue); }
.mail-head h1 { margin-bottom: 0; }
.mail-head > button { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--deep); color: white; font-size: 10px; font-weight: 800; }
.mail-head > button svg { width: 17px; }

.mail-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  margin: 0 14px 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.mail-search svg { width: 18px; color: var(--muted); }
.mail-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; }
.mail-filters { border: 0; background: transparent; }

.mail-list {
  margin: 0 14px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.mail-item {
  display: grid;
  grid-template-columns: 42px 1fr 30px;
  gap: 11px;
  min-height: 112px;
  padding: 15px 13px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.mail-item:last-child { border-bottom: 0; }
.mail-item.unread { background: #f3f9ff; }
.mail-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: var(--deep);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.mail-item.unread .mail-avatar { background: var(--blue); }
.mail-copy { min-width: 0; }
.mail-meta strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mail-meta time { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.mail-copy h3 { overflow: hidden; margin: 6px 0 4px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.mail-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mail-market { display: inline-block; margin-top: 7px; padding: 3px 5px; border-radius: 3px; background: #e7f2ff; color: var(--blue); font-size: 8px; font-weight: 800; }
.star-button { display: grid; width: 30px; height: 30px; place-items: center; background: transparent; color: #9aa5ad; }
.star-button.active { color: var(--yellow); }
.star-button svg { width: 17px; }

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr 38px;
  gap: 14px;
  align-items: center;
  min-height: 180px;
  padding: 26px 18px;
  overflow: hidden;
  background: var(--deep);
  color: white;
}

.profile-hero::after {
  position: absolute;
  right: -30px;
  bottom: -65px;
  width: 120px;
  height: 180px;
  background: var(--green);
  content: "";
  transform: rotate(18deg);
}

.profile-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--deep);
  font-size: 21px;
  font-weight: 800;
  overflow: visible;
}

.profile-symbol > img {
  width: 100%;
  height: 100%;
  border: 3px solid white;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.profile-symbol > span {
  display: none;
}

.profile-symbol i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 3px solid var(--deep);
  border-radius: 50%;
  background: var(--green);
  color: white;
}

.profile-symbol i svg { width: 12px; height: 12px; }
.profile-hero > div:nth-child(2) { position: relative; z-index: 1; }
.profile-hero > div > span { color: var(--green); }
.profile-hero h1 { margin: 6px 0; font-size: 27px; }
.profile-hero p { margin: 0; opacity: 0.75; font-size: 10px; line-height: 1.4; }
.profile-hero > button { position: relative; z-index: 1; display: grid; width: 38px; height: 38px; place-items: center; background: transparent; color: white; }

.people-leader {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 14px;
  padding: 16px;
  border-radius: 7px;
  background: white;
  box-shadow: var(--shadow);
}

.people-leader small,
.people-leader strong,
.people-leader span { display: block; }
.people-leader small { color: var(--blue); font-size: 8px; font-weight: 800; }
.people-leader strong { margin: 6px 0 3px; font-size: 13px; }
.people-leader span { color: var(--muted); font-size: 9px; }
.people-leader button { display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 11px; border-radius: 19px; background: #e7f2ff; color: var(--blue); font-size: 9px; font-weight: 800; }
.people-leader button svg { width: 15px; }

.profile-pulse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 14px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.profile-pulse div { min-width: 0; padding: 14px 10px; border-right: 1px solid var(--line); }
.profile-pulse div:last-child { border-right: 0; }
.profile-pulse strong, .profile-pulse span { display: block; }
.profile-pulse strong { color: var(--deep); font-size: 16px; }
.profile-pulse span { margin-top: 4px; color: var(--muted); font-size: 8px; }

.profile-menu {
  margin: 0 14px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.profile-menu button {
  display: grid;
  grid-template-columns: 38px 1fr 16px;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.profile-menu button:last-child { border-bottom: 0; }
.menu-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 5px; }
.menu-icon.blue { background: #e7f2ff; color: var(--blue); }
.menu-icon.green { background: #e5f8f2; color: #168765; }
.menu-icon.violet { background: #eeeafd; color: var(--violet); }
.menu-icon.coral { background: #ffebe8; color: var(--coral); }
.menu-icon.cyan { background: #e5f6fa; color: var(--cyan); }
.menu-icon svg { width: 18px; }
.profile-menu strong, .profile-menu small { display: block; }
.profile-menu strong { margin-bottom: 4px; font-size: 11px; }
.profile-menu small { color: var(--muted); font-size: 9px; }
.profile-menu button > svg { width: 15px; color: #9aa5ad; }

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 540px);
  height: calc(66px + env(safe-area-inset-bottom));
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.98);
}

.bottom-nav button {
  position: relative;
  display: grid;
  grid-template-rows: 28px 15px;
  align-content: center;
  justify-items: center;
  min-width: 0;
  padding: 5px 0 2px;
  background: transparent;
  color: #75828d;
}

.bottom-nav button > svg,
.bottom-nav .nav-icon { width: 22px; height: 22px; }
.bottom-nav button > span:last-child { font-size: 9px; }
.bottom-nav button.active { color: var(--blue); }
.bottom-nav button.active::after {
  position: absolute;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.nav-icon { position: relative; }
.nav-icon svg { width: 22px; height: 22px; }
.nav-icon b {
  position: absolute;
  top: -6px;
  right: -8px;
  display: grid;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  place-items: center;
  border: 2px solid white;
  border-radius: 20px;
  background: var(--coral);
  color: white;
  font-size: 8px;
}

.detail-view {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: min(100%, 540px);
  margin: 0 auto;
  overflow-y: auto;
  background: var(--paper);
  animation: detail-enter 240ms ease-out;
}

@keyframes detail-enter {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.detail-view > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.97);
}

.detail-view > header button { display: grid; width: 44px; height: 44px; place-items: center; background: transparent; }
.detail-view > header h2 { overflow: hidden; margin: 0; color: var(--deep); font-size: 16px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.detail-hero { position: relative; padding: 30px 20px; overflow: hidden; background: var(--deep); color: white; }
.detail-hero::after { position: absolute; right: -38px; bottom: -72px; width: 110px; height: 170px; background: var(--green); content: ""; transform: rotate(20deg); }
.detail-hero .eyebrow { position: relative; z-index: 1; color: var(--green); font-size: 9px; font-weight: 800; }
.detail-hero h1 { position: relative; z-index: 1; margin: 9px 0; font-size: 30px; line-height: 1.12; }
.detail-hero p { position: relative; z-index: 1; max-width: 430px; margin: 0; opacity: 0.72; font-size: 11px; line-height: 1.5; }
.detail-section { padding: 22px 20px; border-bottom: 1px solid var(--line); background: white; }
.detail-section > h3 { margin: 0 0 14px; color: var(--deep); font-size: 18px; }
.detail-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid #e8edef; font-size: 11px; line-height: 1.45; }
.detail-row span { color: var(--muted); }
.detail-row strong { font-weight: 600; overflow-wrap: anywhere; }
.detail-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 16px 20px 30px; }
.detail-actions button,
.primary-action { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 6px; background: var(--deep); color: white; font-size: 11px; font-weight: 800; }
.detail-actions button.secondary { border: 1px solid var(--line); background: white; color: var(--deep); }
.detail-actions svg { width: 17px; }
.mail-body { white-space: pre-line; }
.attachment { display: flex; align-items: center; gap: 9px; margin-top: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font-size: 10px; }
.attachment svg { width: 16px; color: var(--blue); }

.sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.sheet-scrim { position: absolute; inset: 0; background: rgba(9,35,54,0.5); }
.action-sheet {
  position: relative;
  width: min(100%, 540px);
  max-height: 82vh;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 8px 8px 0 0;
  background: white;
  animation: sheet-enter 220ms ease-out;
}

@keyframes sheet-enter {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-grab { width: 42px; height: 4px; margin: 0 auto 18px; border-radius: 4px; background: #d6dfe4; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sheet-head h2 { margin: 0; color: var(--deep); font-size: 22px; }
.sheet-head button { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--paper); }
.sheet-form { display: grid; gap: 12px; }
.sheet-form label { color: var(--muted); font-size: 9px; font-weight: 800; }
.sheet-form input, .sheet-form textarea { width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; outline: 0; background: white; font-size: 12px; }
.sheet-form textarea { min-height: 130px; resize: vertical; }
.sheet-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.sheet-option > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 5px; background: #e7f2ff; color: var(--blue); }
.sheet-option strong, .sheet-option small { display: block; }
.sheet-option strong { font-size: 11px; }
.sheet-option small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 84px;
  left: 20px;
  z-index: 100;
  width: min(calc(100% - 40px), 500px);
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 5px;
  background: var(--deep);
  color: white;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
}

.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 380px) {
  .hero-copy h1 { font-size: 33px; }
  .action-grid { gap: 6px; }
  .action-card { padding: 11px; }
  .profile-pulse strong { font-size: 14px; }
}
