:root {
  --ink: #111111;
  --muted: #66706a;
  --line: #e2e7e3;
  --surface: #ffffff;
  --canvas: #eff2f0;
  --green: #86bc25;
  --green-dark: #5f8f0d;
  --green-soft: #eef7de;
  --blue: #1c69a7;
  --blue-soft: #e9f3fa;
  --purple: #7156a4;
  --purple-soft: #f1edfa;
  --amber: #b87416;
  --amber-soft: #fff3df;
  --danger: #c83c45;
  --radius: 8px;
  --nav-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  background: #dce1de;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: #dce1de;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  color: inherit;
  cursor: pointer;
}

.app-shell {
  position: relative;
  width: min(100%, 540px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--canvas);
  box-shadow: 0 0 34px rgba(12, 24, 16, 0.12);
}

.brand-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(70px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 18px 0;
  background: #000;
  border-bottom: 1px solid #252525;
}

.brand-logo {
  width: 112px;
  height: 45px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.brand-header-actions {
  display: flex;
  gap: 6px;
}

.header-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
}

.header-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}

.header-icon.light {
  color: var(--ink);
}

.notification-button span {
  position: absolute;
  top: 4px;
  right: 2px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  color: #000;
  background: var(--green);
  border: 2px solid #000;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

.app-main {
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
}

.page {
  display: none;
  min-height: calc(100dvh - 70px - var(--nav-height));
}

.page.active {
  display: block;
}

.mode-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 18px 20px;
  color: #fff;
  background: #000;
}

.mode-band p,
.mode-band h1 {
  margin: 0;
}

.mode-band p {
  margin-bottom: 7px;
  color: #aeb5b0;
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
}

.mode-band h1 {
  max-width: 310px;
  font-size: 27px;
  line-height: 1.12;
}

.mode-switch {
  display: flex;
  flex: 0 0 auto;
  padding: 3px;
  background: #242424;
  border-radius: 7px;
}

.mode-switch button {
  min-width: 52px;
  height: 34px;
  padding: 0 11px;
  color: #afb4b1;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.mode-switch button.active {
  color: #000;
  background: var(--green);
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #111;
  border-top: 1px solid #252525;
}

.impact-strip div {
  min-width: 0;
  padding: 17px 12px 18px;
  border-right: 1px solid #333;
}

.impact-strip div:last-child {
  border-right: 0;
}

.impact-strip strong,
.impact-strip span {
  display: block;
}

.impact-strip strong {
  color: #fff;
  font-size: 21px;
  line-height: 1.1;
}

.impact-strip span {
  margin-top: 5px;
  color: #9da49f;
  font-size: 12px;
}

.content-section {
  margin-top: 8px;
  padding: 20px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading,
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-heading {
  margin-bottom: 15px;
}

.section-heading span,
.page-header > div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-heading h2,
.page-header h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.section-heading button {
  padding: 7px 0;
  color: var(--green-dark);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 750;
}

.priority-list,
.open-item-list,
.engagement-list {
  display: grid;
  gap: 10px;
}

.priority-item,
.open-item,
.engagement-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  padding: 14px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.priority-item .item-icon,
.open-item .item-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 7px;
}

.priority-item .item-icon svg,
.open-item .item-icon svg {
  width: 21px;
  height: 21px;
}

.priority-item > div:nth-child(2),
.open-item > div:nth-child(2),
.engagement-item > div {
  min-width: 0;
  flex: 1;
}

.priority-item strong,
.open-item strong,
.engagement-item strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-item p,
.open-item p,
.engagement-item p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-item > svg,
.open-item > svg,
.engagement-item > svg {
  flex: 0 0 auto;
  width: 18px;
  color: #9ba29d;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 63px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px 10px 1fr;
  gap: 9px;
  min-height: 69px;
  padding: 6px 0 12px;
  text-align: left;
  background: transparent;
  border: 0;
}

.timeline-time strong,
.timeline-time span {
  display: block;
}

.timeline-time strong {
  font-size: 13px;
}

.timeline-time span {
  margin-top: 2px;
  color: #89908b;
  font-size: 10px;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  background: var(--green);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--green);
}

.timeline-dot.blue { background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.timeline-dot.purple { background: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.timeline-dot.amber { background: var(--amber); box-shadow: 0 0 0 1px var(--amber); }

.timeline-copy strong,
.timeline-copy span {
  display: block;
}

.timeline-copy strong {
  font-size: 15px;
}

.timeline-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.feature-story {
  display: grid;
  width: 100%;
  grid-template-columns: 112px 1fr;
  gap: 15px;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
}

.feature-art {
  position: relative;
  display: grid;
  min-height: 122px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #0b0b0b;
  border-radius: var(--radius);
}

.feature-art span {
  position: absolute;
  width: 68px;
  height: 68px;
  border: 10px solid var(--green);
  border-radius: 50%;
}

.feature-art::after {
  position: absolute;
  width: 85px;
  height: 2px;
  background: #fff;
  content: "";
  transform: rotate(-35deg);
}

.feature-art b {
  position: relative;
  z-index: 1;
  padding: 4px 6px;
  color: #000;
  background: var(--green);
  font-size: 18px;
}

.feature-story > div:last-child > span {
  display: block;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.feature-story h3 {
  margin: 6px 0;
  font-size: 17px;
  line-height: 1.25;
}

.feature-story p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.page-header {
  padding: 22px 18px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: 27px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 18px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid #d9dfdb;
  border-radius: 7px;
}

.search-field svg {
  flex: 0 0 auto;
  width: 19px;
  color: #6f7772;
}

.search-field input {
  width: 100%;
  height: 44px;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.app-directory {
  margin-top: 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 8px;
}

.app-tile {
  min-width: 0;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
}

.app-tile > span {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin: 0 auto 8px;
  color: #1e2721;
  background: var(--green-soft);
  border-radius: 8px;
}

.app-tile:nth-child(4n + 2) > span {
  color: var(--blue);
  background: var(--blue-soft);
}

.app-tile:nth-child(4n + 3) > span {
  color: var(--purple);
  background: var(--purple-soft);
}

.app-tile:nth-child(4n + 4) > span {
  color: var(--amber);
  background: var(--amber-soft);
}

.app-tile svg {
  width: 23px;
  height: 23px;
}

.app-tile strong,
.app-tile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-tile strong {
  font-size: 12px;
  white-space: nowrap;
}

.app-tile small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.open-item .state {
  margin-top: 5px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 750;
}

.engagement-item {
  align-items: flex-start;
}

.engagement-mark {
  flex: 0 0 5px;
  width: 5px;
  height: 47px;
  background: var(--green);
  border-radius: 3px;
}

.engagement-item .engagement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: #375809;
  background: var(--green-soft);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

.status-pill.watch {
  color: #8a4b00;
  background: var(--amber-soft);
}

.mail-header {
  padding-bottom: 12px;
}

.compose-button {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: #000;
  background: var(--green);
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.compose-button svg {
  width: 18px;
}

.mail-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 18px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mail-summary div {
  padding: 12px;
  border-right: 1px solid var(--line);
}

.mail-summary div:last-child {
  border-right: 0;
}

.mail-summary strong,
.mail-summary span {
  display: block;
}

.mail-summary strong {
  font-size: 20px;
}

.mail-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  padding: 0 18px 12px;
}

.filter-tabs button {
  height: 34px;
  padding: 0 14px;
  color: #626964;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  font-size: 12px;
  font-weight: 700;
}

.filter-tabs button.active {
  color: #000;
  background: var(--green);
  border-color: var(--green);
}

.mail-list {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mail-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 15px 17px;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.mail-item:last-child {
  border-bottom: 0;
}

.mail-item.unread {
  background: #fbfdf7;
}

.mail-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #253019;
  background: var(--green-soft);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}

.mail-item:nth-child(2n) .mail-avatar {
  color: #24445a;
  background: var(--blue-soft);
}

.mail-copy {
  min-width: 0;
}

.mail-sender-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mail-sender-row strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unread-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}

.mail-copy h3 {
  margin: 4px 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-tags {
  display: flex;
  gap: 8px;
  margin-top: 7px;
  color: #747c77;
  font-size: 10px;
}

.mail-tags span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.mail-tags svg {
  width: 12px;
  height: 12px;
}

.mail-side {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.mail-side time {
  color: #7a817d;
  font-size: 11px;
}

.star-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  color: #a2a8a4;
  background: transparent;
  border: 0;
}

.star-button.active {
  color: #c98a00;
}

.star-button svg {
  width: 18px;
  height: 18px;
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 28px 20px 24px;
  color: #fff;
  background: #000;
}

.profile-settings {
  position: absolute;
  top: 17px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 0;
}

.profile-settings svg {
  width: 21px;
}

.avatar {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: #000;
  background: var(--green);
  border-radius: 8px;
  font-size: 23px;
  font-weight: 900;
}

.profile-hero > div:last-child {
  align-self: center;
  min-width: 0;
  padding-right: 28px;
}

.profile-hero > div:last-child > span {
  display: inline-block;
  margin-bottom: 5px;
  padding: 3px 7px;
  color: #b8e86b;
  background: #1d2a11;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 750;
}

.profile-hero h1,
.profile-hero p,
.profile-hero small {
  margin: 0;
}

.profile-hero h1 {
  font-size: 25px;
}

.profile-hero p {
  margin-top: 4px;
  color: #e2e6e3;
  font-size: 15px;
}

.profile-hero small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #9fa6a1;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.profile-metrics div {
  padding: 15px 12px;
  border-right: 1px solid var(--line);
}

.profile-metrics div:last-child {
  border-right: 0;
}

.profile-metrics strong,
.profile-metrics span {
  display: block;
}

.profile-metrics strong {
  font-size: 18px;
}

.profile-metrics span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.profile-menu {
  margin-top: 8px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-menu button {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.profile-menu button:last-child {
  border-bottom: 0;
}

.menu-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
}

.menu-icon.green { color: var(--green-dark); background: var(--green-soft); }
.menu-icon.blue { color: var(--blue); background: var(--blue-soft); }
.menu-icon.purple { color: var(--purple); background: var(--purple-soft); }
.menu-icon.amber { color: var(--amber); background: var(--amber-soft); }
.menu-icon.gray { color: #4e5751; background: #edf0ee; }

.menu-icon svg {
  width: 21px;
  height: 21px;
}

.profile-menu button > div {
  min-width: 0;
}

.profile-menu strong,
.profile-menu small {
  display: block;
}

.profile-menu strong {
  font-size: 14px;
}

.profile-menu small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu button > svg {
  width: 18px;
  color: #a2a8a4;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 50%;
  display: grid;
  width: min(100%, 540px);
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 7px env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #d6dcd8;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.bottom-nav > button {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: 33px 18px;
  align-items: center;
  justify-items: center;
  padding: 0;
  color: #6f7772;
  background: transparent;
  border: 0;
}

.bottom-nav > button > span {
  position: relative;
  display: grid;
  width: 40px;
  height: 33px;
  place-items: center;
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.bottom-nav small {
  align-self: start;
  font-size: 10px;
  font-weight: 700;
}

.bottom-nav button.active {
  color: #2d4f08;
}

.bottom-nav button.active > span::after {
  position: absolute;
  bottom: -1px;
  width: 18px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  content: "";
}

.bottom-nav b {
  position: absolute;
  top: -3px;
  right: -1px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: #c83c45;
  border: 2px solid #fff;
  border-radius: 10px;
  font-size: 9px;
  font-style: normal;
}

.bottom-nav .create-nav > span {
  width: 46px;
  height: 46px;
  margin-top: -14px;
  color: #000;
  background: var(--green);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(59, 85, 13, 0.25);
}

.bottom-nav .create-nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.bottom-nav .create-nav small {
  margin-top: -3px;
}

.bottom-nav .create-nav.active > span::after {
  display: none;
}

.detail-page {
  position: fixed;
  z-index: 45;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, 540px);
  overflow-y: auto;
  background: var(--canvas);
  transform: translateX(-50%);
  animation: slide-in 180ms ease-out;
}

.detail-page[hidden],
.sheet-layer[hidden] {
  display: none;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  height: calc(58px + env(safe-area-inset-top));
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: end;
  padding: env(safe-area-inset-top) 8px 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.detail-header button {
  display: grid;
  width: 46px;
  height: 52px;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.detail-header button svg {
  width: 24px;
}

.detail-header h2 {
  align-self: center;
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-body {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.detail-banner {
  padding: 25px 20px;
  color: #fff;
  background: #000;
}

.detail-banner .eyebrow {
  color: var(--green);
}

.detail-banner h1 {
  margin: 7px 0;
  font-size: 27px;
  line-height: 1.15;
}

.detail-banner p {
  margin: 0;
  color: #c7ccc8;
  font-size: 13px;
  line-height: 1.5;
}

.eyebrow {
  display: block;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-section {
  margin-top: 8px;
  padding: 20px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 15px;
  font-size: 17px;
}

.detail-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-kpis div {
  padding: 14px 10px;
  border-right: 1px solid var(--line);
}

.detail-kpis div:last-child {
  border-right: 0;
}

.detail-kpis strong,
.detail-kpis span {
  display: block;
}

.detail-kpis strong {
  font-size: 17px;
}

.detail-kpis span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.detail-rows {
  border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row span {
  color: var(--muted);
  font-size: 12px;
}

.detail-row strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-align: right;
  overflow-wrap: anywhere;
}

.task-list {
  display: grid;
  gap: 9px;
}

.task-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f6f8f6;
  border-radius: 6px;
  font-size: 13px;
}

.task-list svg {
  width: 17px;
  color: var(--green-dark);
}

.mail-detail {
  padding: 22px 19px;
  background: #fff;
}

.mail-detail h1 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.22;
}

.mail-detail-sender {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.mail-detail-sender strong,
.mail-detail-sender span {
  display: block;
}

.mail-detail-sender span,
.mail-detail-sender time {
  color: var(--muted);
  font-size: 11px;
}

.mail-body {
  padding: 22px 0;
  color: #313733;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

.attachment-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  background: #f4f6f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.attachment-box svg {
  width: 18px;
}

.mail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.mail-actions button,
.primary-action {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #cdd4cf;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
}

.primary-action {
  color: #000;
  background: var(--green);
  border-color: var(--green);
}

.sheet-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
}

.sheet-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.48);
  border: 0;
}

.action-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 540px);
  max-height: 82dvh;
  margin: 0 auto;
  overflow-y: auto;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 12px 12px 0 0;
  animation: sheet-up 180ms ease-out;
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #313633;
  background: #f1f3f1;
  border: 0;
  border-radius: 50%;
}

.sheet-close svg {
  width: 18px;
  height: 18px;
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: -6px auto 14px;
  background: #d1d5d2;
  border-radius: 2px;
}

.action-sheet h2 {
  margin: 0 0 4px;
  font-size: 21px;
}

.action-sheet > p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 12px;
}

.quick-create-list {
  display: grid;
  gap: 8px;
}

.quick-create-list button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  text-align: left;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.quick-create-list button > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 7px;
}

.quick-create-list strong,
.quick-create-list small {
  display: block;
}

.quick-create-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.quick-create-list button > svg {
  width: 17px;
  color: #8f9691;
}

.compose-form {
  display: grid;
  gap: 11px;
}

.compose-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.compose-form input,
.compose-form textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ccd3ce;
  border-radius: 6px;
  outline: 0;
  font-size: 14px;
}

.compose-form textarea {
  min-height: 150px;
  resize: vertical;
}

.toast {
  position: fixed;
  z-index: 120;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 14px);
  left: 50%;
  max-width: calc(100% - 36px);
  padding: 10px 15px;
  color: #fff;
  background: #111;
  border-radius: 6px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty-state {
  padding: 34px 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@keyframes slide-in {
  from { transform: translateX(calc(-50% + 36px)); opacity: 0; }
  to { transform: translateX(-50%); opacity: 1; }
}

@keyframes sheet-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 390px) {
  .mode-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .mode-switch {
    align-self: stretch;
  }

  .mode-switch button {
    flex: 1;
  }

  .feature-story {
    grid-template-columns: 96px 1fr;
  }

  .app-grid {
    gap-inline: 4px;
  }

  .detail-row {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

@media (min-width: 541px) {
  .bottom-nav,
  .detail-page {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
  }
}
