:root {
  --blue: #00338d;
  --mid-blue: #005eb8;
  --light-blue: #0091da;
  --purple: #483698;
  --violet: #6d2077;
  --teal: #00a3a1;
  --pink: #bc4e9c;
  --ink: #1b1b28;
  --muted: #6c7180;
  --paper: #ffffff;
  --canvas: #f1f4f8;
  --line: #dce2eb;
  --nav-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #e3e7ed;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: #e3e7ed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  color: inherit;
  cursor: pointer;
}

button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: min(100%, 540px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--canvas);
  box-shadow: 0 0 30px rgba(0, 51, 141, 0.13);
}

.app-header {
  position: sticky;
  z-index: 25;
  top: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.brand-lockup img {
  width: 72px;
  height: 31px;
  object-fit: contain;
}

.brand-lockup div {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding-left: 12px;
  border-left: 1px solid #cbd3df;
}

.brand-lockup strong {
  overflow: hidden;
  color: var(--blue);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-lockup span {
  color: var(--muted);
  font-size: 9px;
}

.header-tools {
  display: flex;
  gap: 4px;
}

.header-tools button,
.profile-header > button {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.header-tools svg,
.profile-header > button svg {
  width: 21px;
  height: 21px;
}

.header-tools b {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: var(--pink);
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 8px;
}

main {
  min-height: calc(100dvh - 70px);
  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;
}

.home-hero {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  padding: 28px 20px 24px;
  color: #fff;
  background: var(--blue);
}

.hero-grid {
  position: absolute;
  top: 0;
  right: 0;
  width: 152px;
  height: 152px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  opacity: 0.96;
}

.hero-grid span:nth-child(1) {
  background: var(--mid-blue);
}

.hero-grid span:nth-child(2) {
  background: var(--light-blue);
}

.hero-grid span:nth-child(3) {
  background: var(--purple);
}

.hero-grid span:nth-child(4) {
  background: var(--teal);
}

.eyebrow,
.section-heading span,
.project-header > span,
.service-header > span,
.mail-header span,
.detail-kicker {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 6px;
  color: #b9dbff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.home-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 0;
  font-size: 31px;
  line-height: 1.1;
}

.home-hero h1 span {
  color: #8fe7e1;
}

.home-hero p {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 13px 0 0;
  color: #d8e8fa;
  font-size: 11px;
  line-height: 1.45;
}

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

.pulse-strip button {
  min-width: 0;
  min-height: 67px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 7px;
  text-align: left;
  background: #fff;
  border: 0;
  border-left: 1px solid var(--line);
}

.pulse-strip button:first-child {
  border-left: 0;
}

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

.pulse-strip strong {
  color: var(--blue);
  font-size: 17px;
}

.pulse-strip span {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading span {
  margin-bottom: 4px;
  color: var(--mid-blue);
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.section-heading > button {
  min-height: 33px;
  padding: 0 3px;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 9px;
  font-weight: 800;
}

.agenda-list {
  display: grid;
}

.agenda-item {
  min-height: 67px;
  display: grid;
  grid-template-columns: 43px 35px minmax(0, 1fr) 17px;
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
}

.agenda-item:first-child {
  border-top: 0;
}

.agenda-item > time {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.agenda-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--mid-blue);
}

.agenda-item:nth-child(2) .agenda-icon {
  background: var(--purple);
}

.agenda-item:nth-child(3) .agenda-icon {
  background: var(--teal);
}

.agenda-item:nth-child(4) .agenda-icon {
  background: var(--pink);
}

.agenda-icon svg {
  width: 17px;
  height: 17px;
}

.agenda-copy,
.task-copy,
.project-copy,
.case-copy,
.mail-copy {
  min-width: 0;
}

.agenda-copy strong,
.agenda-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-copy strong {
  font-size: 11px;
}

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

.agenda-item > svg {
  width: 15px;
  height: 15px;
  color: #a8adba;
}

.task-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.task-tile {
  min-height: 120px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 13px;
  text-align: left;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.task-accent {
  width: 34px;
  height: 5px;
  background: var(--mid-blue);
}

.task-tile[data-accent="purple"] .task-accent {
  background: var(--purple);
}

.task-tile[data-accent="teal"] .task-accent {
  background: var(--teal);
}

.task-tile[data-accent="pink"] .task-accent {
  background: var(--pink);
}

.task-copy strong {
  display: block;
  font-size: 11px;
  line-height: 1.3;
}

.task-copy span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.task-tile > small {
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
}

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

.insight-item {
  min-height: 116px;
  display: grid;
  align-content: space-between;
  padding: 14px;
  text-align: left;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 5px;
}

.insight-item:nth-child(2) {
  background: var(--violet);
}

.insight-item span {
  color: #b9dbff;
  font-size: 8px;
  font-weight: 800;
}

.insight-item strong {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.3;
}

.insight-item small {
  color: #d2d8e8;
  font-size: 8px;
}

.project-header {
  position: relative;
  overflow: hidden;
  padding: 25px 20px 0;
  color: #fff;
  background: var(--blue);
}

.project-header::after {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 130px;
  height: 130px;
  border: 24px solid var(--light-blue);
  content: "";
}

.project-header > span {
  color: #b9dbff;
}

.project-header h1,
.service-header h1,
.mail-header h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 27px;
}

.project-header > p,
.service-header > p {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 8px 0 20px;
  font-size: 10px;
  line-height: 1.45;
}

.project-header > p {
  color: #d8e8fa;
}

.portfolio-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  color: var(--ink);
}

.portfolio-metrics div {
  min-height: 66px;
  display: grid;
  align-content: center;
  padding: 10px 12px;
  border-left: 1px solid var(--line);
}

.portfolio-metrics div:first-child {
  border-left: 0;
}

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

.portfolio-metrics strong {
  color: var(--blue);
  font-size: 17px;
}

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

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

.project-filter button {
  height: 38px;
  color: var(--muted);
  background: #fff;
  border: 0;
  border-left: 1px solid var(--line);
  font-size: 9px;
  font-weight: 750;
}

.project-filter button:first-child {
  border-left: 0;
}

.project-filter button.active {
  color: #fff;
  background: var(--blue);
}

.project-list {
  display: grid;
  gap: 9px;
  padding: 0 18px 20px;
}

.project-card {
  display: grid;
  padding: 14px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--mid-blue);
  border-radius: 5px;
}

.project-card.watch {
  border-top-color: var(--pink);
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.project-topline span:last-child {
  color: var(--teal);
}

.project-card.watch .project-topline span:last-child {
  color: var(--pink);
}

.project-card h3 {
  margin: 10px 0 4px;
  font-size: 16px;
}

.project-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  background: #e5e9f0;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--mid-blue);
}

.project-card.watch .progress-track span {
  background: var(--pink);
}

.progress-row strong {
  color: var(--blue);
  font-size: 10px;
}

.project-next {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.project-next svg {
  width: 15px;
  height: 15px;
  color: var(--purple);
}

.service-header {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 27px 20px 22px;
  color: #fff;
  background: var(--purple);
}

.service-blocks {
  position: absolute;
  top: 0;
  right: 0;
  width: 126px;
  height: 180px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.service-blocks span:nth-child(1) {
  background: var(--blue);
}

.service-blocks span:nth-child(2) {
  background: var(--violet);
}

.service-blocks span:nth-child(3) {
  background: var(--pink);
}

.service-header > span {
  color: #dcd4fa;
}

.service-header > p {
  color: #e5e0f5;
}

.service-header > button {
  position: relative;
  z-index: 1;
  height: 39px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--purple);
  background: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

.service-header > button svg {
  width: 16px;
  height: 16px;
}

.service-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 12px 18px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-category {
  min-height: 100px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-content: center;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-category > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--mid-blue);
}

.service-category[data-tone="purple"] > span {
  background: var(--purple);
}

.service-category[data-tone="teal"] > span {
  background: var(--teal);
}

.service-category[data-tone="pink"] > span {
  background: var(--pink);
}

.service-category svg {
  width: 16px;
  height: 16px;
}

.service-category div {
  min-width: 0;
}

.service-category strong,
.service-category small {
  display: block;
}

.service-category strong {
  font-size: 10px;
}

.service-category small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.3;
}

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

.case-list {
  display: grid;
}

.case-item {
  min-height: 79px;
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto 17px;
  gap: 11px;
  align-items: center;
  padding: 10px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
}

.case-item:first-child {
  border-top: 0;
}

.case-accent {
  width: 5px;
  height: 48px;
  background: var(--mid-blue);
}

.case-item:nth-child(2) .case-accent {
  background: var(--purple);
}

.case-item:nth-child(3) .case-accent {
  background: var(--teal);
}

.case-copy > small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.case-copy strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.case-status {
  max-width: 72px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
  text-align: right;
}

.case-item > svg {
  width: 15px;
  height: 15px;
  color: #a7adba;
}

.mail-header {
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 18px;
  color: #fff;
  background: var(--blue);
  border-bottom: 8px solid var(--light-blue);
}

.mail-header span {
  color: #b9dbff;
}

.mail-header > button {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--blue);
  background: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
}

.mail-header > button svg {
  width: 16px;
  height: 16px;
}

.search-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 18px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.search-field svg {
  width: 18px;
  height: 18px;
  color: #8b91a0;
}

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

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

.mail-summary div {
  min-height: 59px;
  display: grid;
  align-content: center;
  padding: 9px 11px;
  border-left: 1px solid var(--line);
}

.mail-summary div:first-child {
  border-left: 0;
}

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

.mail-summary strong {
  color: var(--blue);
  font-size: 16px;
}

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

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

.mail-filters button {
  height: 37px;
  color: var(--muted);
  background: #fff;
  border: 0;
  border-left: 1px solid var(--line);
  font-size: 9px;
  font-weight: 750;
}

.mail-filters button:first-child {
  border-left: 0;
}

.mail-filters button.active {
  color: #fff;
  background: var(--blue);
}

.mail-list {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.mail-item {
  min-height: 126px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid transparent;
  border-radius: 5px;
}

.mail-item.unread {
  border-left-color: var(--mid-blue);
}

.mail-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.mail-item:nth-child(2) .mail-avatar {
  background: var(--purple);
}

.mail-item:nth-child(3) .mail-avatar {
  background: var(--teal);
}

.mail-copy > strong {
  display: block;
  overflow: hidden;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.mail-copy p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mail-attachment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 7px;
  color: var(--purple);
  font-size: 8px;
}

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

.mail-side {
  display: grid;
  justify-items: end;
  align-content: space-between;
  min-height: 97px;
}

.mail-side time {
  color: var(--muted);
  font-size: 8px;
}

.mail-star {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #abb0bd;
  background: transparent;
  border: 0;
}

.mail-star.active {
  color: var(--purple);
}

.mail-star svg {
  width: 17px;
  height: 17px;
}

.profile-header {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  padding: 28px 20px 22px;
  color: #fff;
  background: var(--blue);
}

.profile-mosaic {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.profile-mosaic span:nth-child(1) {
  grid-row: 1 / 3;
  background: var(--purple);
}

.profile-mosaic span:nth-child(2) {
  background: var(--light-blue);
}

.profile-mosaic span:nth-child(3) {
  background: var(--teal);
}

.profile-header > button {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  color: #fff;
}

.avatar {
  position: relative;
  z-index: 1;
  width: 67px;
  height: 67px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  color: var(--blue);
  background: #fff;
  border: 4px solid rgba(255, 255, 255, 0.42);
  font-size: 19px;
  font-weight: 850;
}

.availability {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  color: #fff;
  background: var(--teal);
  font-size: 8px;
  font-weight: 800;
}

.profile-header h1,
.profile-header p,
.profile-header small {
  position: relative;
  z-index: 1;
}

.profile-header h1 {
  margin: 10px 0 4px;
  font-size: 25px;
}

.profile-header p {
  margin: 0;
  font-size: 12px;
}

.profile-header small {
  display: block;
  margin-top: 5px;
  color: #d7e6f7;
  font-size: 9px;
}

.employee-card {
  width: calc(100% - 36px);
  min-height: 70px;
  display: grid;
  grid-template-columns: 71px minmax(0, 1fr) 27px;
  gap: 12px;
  align-items: center;
  margin: -16px 18px 0;
  padding: 12px;
  position: relative;
  z-index: 3;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(0, 51, 141, 0.12);
}

.employee-card img {
  width: 65px;
  height: 28px;
  object-fit: contain;
}

.employee-card div {
  min-width: 0;
  padding-left: 11px;
  border-left: 1px solid var(--line);
}

.employee-card strong,
.employee-card span {
  display: block;
}

.employee-card strong {
  font-size: 10px;
}

.employee-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.employee-card > svg {
  width: 20px;
  height: 20px;
  color: var(--purple);
}

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

.me-stats div {
  min-height: 62px;
  display: grid;
  align-content: center;
  padding: 9px 10px;
  border-left: 1px solid var(--line);
}

.me-stats div:first-child {
  border-left: 0;
}

.me-stats strong,
.me-stats span {
  display: block;
}

.me-stats strong {
  color: var(--blue);
  font-size: 16px;
}

.me-stats span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.me-menu {
  margin: 0 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.me-menu button {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 17px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  text-align: left;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
}

.me-menu button:first-child {
  border-top: 0;
}

.me-menu button > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--mid-blue);
}

.me-menu button:nth-child(2) > span {
  background: var(--purple);
}

.me-menu button:nth-child(3) > span {
  background: var(--teal);
}

.me-menu button:nth-child(4) > span {
  background: var(--pink);
}

.me-menu button:nth-child(5) > span {
  background: var(--light-blue);
}

.me-menu button:nth-child(6) > span {
  background: var(--violet);
}

.me-menu svg {
  width: 16px;
  height: 16px;
}

.me-menu > button > svg {
  color: #a7adba;
}

.me-menu div {
  min-width: 0;
}

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

.me-menu strong {
  font-size: 11px;
}

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

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

.bottom-nav > button {
  position: relative;
  min-width: 0;
  height: 62px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  padding: 0;
  color: #747b8b;
  background: transparent;
  border: 0;
}

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

.bottom-nav svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.bottom-nav small {
  overflow: hidden;
  max-width: 100%;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav button.active {
  color: var(--blue);
}

.bottom-nav button.active > span {
  color: #fff;
  background: var(--blue);
}

.bottom-nav b {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: var(--pink);
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 8px;
}

.detail-page {
  position: fixed;
  z-index: 60;
  inset: 0;
  width: min(100%, 540px);
  margin: 0 auto;
  overflow-y: auto;
  color: var(--ink);
  background: var(--canvas);
  animation: detail-in 180ms ease-out;
}

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

.detail-header {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 59px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  padding: 0 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.detail-header::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--blue);
  content: "";
}

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

.detail-header svg {
  width: 20px;
  height: 20px;
}

.detail-header h2 {
  margin: 0;
  overflow: hidden;
  color: var(--blue);
  font-size: 13px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 20px;
  color: #fff;
  background: var(--blue);
}

.detail-hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  background: var(--light-blue);
  box-shadow: -96px 96px 0 var(--purple), 0 96px 0 var(--teal);
  content: "";
  opacity: 0.94;
}

.detail-kicker {
  color: #b9dbff;
}

.detail-hero h1,
.detail-hero p {
  position: relative;
  z-index: 1;
  max-width: 350px;
}

.detail-hero h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.12;
}

.detail-hero p {
  margin: 8px 0 0;
  color: #d8e8fa;
  font-size: 10px;
  line-height: 1.45;
}

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

.detail-section h3 {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 14px;
}

.detail-row {
  min-height: 57px;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.detail-row:first-of-type {
  border-top: 0;
}

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

.detail-row strong {
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}

.detail-body {
  white-space: pre-line;
  color: #4f5667;
  font-size: 11px;
  line-height: 1.65;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.detail-actions button,
.primary-action {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: #fff;
  background: var(--purple);
  border: 0;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
}

.detail-actions button:last-child,
.primary-action {
  background: var(--blue);
}

.detail-actions svg,
.primary-action svg {
  width: 16px;
  height: 16px;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  min-height: 64px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
}

.timeline-item > span {
  position: relative;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
}

.timeline-item.pending > span {
  background: #aeb5c1;
}

.timeline-item:not(:last-child) > span::after {
  position: absolute;
  top: 16px;
  left: 7px;
  width: 2px;
  height: 48px;
  background: var(--line);
  content: "";
}

.timeline-item svg {
  width: 10px;
  height: 10px;
}

.timeline-item strong,
.timeline-item small {
  display: block;
}

.timeline-item strong {
  font-size: 10px;
}

.timeline-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.credential-page {
  min-height: calc(100dvh - 59px);
  padding: 28px 20px;
  color: #fff;
  background: var(--blue);
}

.credential-page > img {
  width: 92px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.credential-card {
  margin-top: 28px;
  padding: 20px;
  color: var(--ink);
  background: #fff;
  border-top: 9px solid var(--light-blue);
}

.credential-card h1 {
  margin: 16px 0 5px;
  color: var(--blue);
  font-size: 24px;
}

.credential-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.qr-placeholder {
  width: 142px;
  height: 142px;
  margin: 24px auto 14px;
  background:
    linear-gradient(90deg, var(--blue) 9px, transparent 9px) 0 0 / 25px 25px,
    linear-gradient(var(--blue) 9px, transparent 9px) 0 0 / 25px 25px,
    #fff;
  border: 9px solid #fff;
  outline: 1px solid var(--line);
}

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

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

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

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: -8px auto 13px;
  background: #d6dbe4;
  border-radius: 2px;
}

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

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

.action-sheet h2 {
  margin: 0 44px 4px 0;
  color: var(--blue);
  font-size: 20px;
}

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

.sheet-choice-list {
  display: grid;
  gap: 8px;
}

.sheet-choice-list button {
  min-height: 63px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 17px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  text-align: left;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.sheet-choice-list button > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
}

.sheet-choice-list button:nth-child(2n) > span {
  background: var(--purple);
}

.sheet-choice-list svg {
  width: 17px;
  height: 17px;
}

.sheet-choice-list div {
  min-width: 0;
}

.sheet-choice-list strong,
.sheet-choice-list small {
  display: block;
}

.sheet-choice-list strong {
  font-size: 10px;
}

.sheet-choice-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

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

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

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

.compose-form input {
  height: 43px;
  padding: 0 11px;
}

.compose-form textarea {
  min-height: 112px;
  padding: 11px;
  resize: vertical;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: calc(var(--nav-height) + 18px + env(safe-area-inset-bottom));
  left: 18px;
  width: min(calc(100% - 36px), 504px);
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
  border-left: 5px solid var(--light-blue);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.empty-state {
  padding: 27px 12px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

@keyframes detail-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@media (max-width: 390px) {
  .home-hero h1 {
    font-size: 28px;
  }

  .home-section,
  .case-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .project-filter,
  .project-list,
  .service-category-grid,
  .search-field,
  .mail-summary,
  .mail-filters,
  .mail-list,
  .employee-card,
  .me-stats,
  .me-menu {
    margin-right: 14px;
    margin-left: 14px;
  }

  .project-list,
  .mail-list {
    padding-right: 0;
    padding-left: 0;
  }

  .employee-card {
    width: calc(100% - 28px);
  }

  .agenda-item {
    grid-template-columns: 39px 32px minmax(0, 1fr) 15px;
    gap: 7px;
  }

  .case-item {
    grid-template-columns: 5px minmax(0, 1fr) 17px;
  }

  .case-status {
    display: none;
  }

  .bottom-nav small {
    font-size: 8px;
  }
}

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