:root {
  --ink: #17212b;
  --muted: #647281;
  --line: #d9e1e8;
  --paper: #f6f8fb;
  --white: #ffffff;
  --teal: #0f766e;
  --blue: #2563eb;
  --amber: #c2410c;
  --green: #15803d;
  --rose: #be123c;
  --shadow-soft: 0 14px 36px rgba(23, 33, 43, 0.09);
  --shadow-lift: 0 18px 48px rgba(23, 33, 43, 0.14);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--ink);
}

[data-theme="dark"] {
  --ink: #e5edf5;
  --muted: #9fb0c2;
  --line: #263646;
  --paper: #0b1117;
  --white: #111a23;
  --teal: #2dd4bf;
  --blue: #60a5fa;
  --amber: #f59e0b;
  --green: #34d399;
  --rose: #fb7185;
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.32);
  --shadow-lift: 0 18px 48px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: 0.65; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.glyph {
  display: inline-grid;
  place-items: center;
  min-width: 1.45em;
  height: 1.45em;
  font-weight: 850;
  line-height: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

[data-theme="dark"] .topbar {
  background: rgba(17, 26, 35, 0.94);
}

.themeToggle {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  min-height: 40px;
  padding: 0 13px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
}

.languageToggle {
  position: fixed;
  right: 14px;
  bottom: 62px;
  z-index: 20;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
}

.languageToggle button {
  min-width: 34px;
  min-height: 32px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.languageToggle button.active {
  color: var(--white);
  background: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
}

.brand strong, .brand small { display: block; text-align: left; }
.brand small { color: var(--muted); font-size: 12px; }

.logoMark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  font-weight: 850;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 8px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-left: auto;
  padding: 4px;
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tabs button, .rail button {
  border: 0;
  background: transparent;
}

.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  border-radius: 6px;
}

.tabs button.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 8px rgba(20, 32, 43, 0.08);
}

.mobileActionBar {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 28px;
  padding: 46px clamp(18px, 4vw, 56px) 34px;
  background:
    linear-gradient(125deg, rgba(15, 118, 110, 0.10), transparent 42%),
    linear-gradient(310deg, rgba(190, 18, 60, 0.08), transparent 38%),
    #ffffff;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--teal);
  font-weight: 800;
}

h1 {
  max-width: 840px;
  margin-bottom: 16px;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p, .sectionHead p, .note {
  color: var(--muted);
  line-height: 1.7;
}

.heroStats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: end;
}

.stat, .adminTile, .tripCard, .matchCard, .estimate, .orderTable, .orderCard, .empty, .notice, .adminColumns > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat {
  min-height: 116px;
  padding: 16px;
}

.stat .glyph, .adminTile .glyph { color: var(--teal); }

.stat span, .adminTile span, .miniMeta, .tagRow, .tableHead, .tableRow small, .compactList small {
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 20px;
  font-size: 24px;
}

.heroProduct {
  align-items: stretch;
  min-height: 620px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 46%, rgba(255, 255, 255, 0.62) 100%),
    url('./images/bondmai-hero-handoff.webp') center right / cover no-repeat;
}

.heroCopy {
  display: grid;
  align-content: center;
  max-width: 760px;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 14px;
}

.primaryAction,
.secondaryAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
}

.primaryAction {
  color: white;
  background: var(--teal);
  border: 1px solid var(--teal);
}

.secondaryAction {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.trustRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.trustRow span {
  padding: 6px 9px;
  color: var(--teal);
  background: #e7f5f3;
  border: 1px solid #b7ded8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.quickStartPanel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 33, 43, 0.08);
}

.heroVisual {
  position: relative;
  height: 292px;
  min-height: 292px;
  margin: 0;
  overflow: hidden;
  background: #eaf3f1;
  border-radius: 8px;
}

.heroVisual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 56%;
}

.matchPreview {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 3px;
  width: min(260px, calc(100% - 24px));
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 225, 232, 0.88);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.16);
  backdrop-filter: blur(12px);
}

.matchPreview span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.matchPreview strong {
  font-size: 16px;
}

.matchPreview small {
  color: var(--muted);
}

.quickStartHead {
  display: grid;
  gap: 3px;
}

.quickStartHead span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.quickStartHead strong {
  font-size: 22px;
}

.quickStartGrid {
  display: grid;
  gap: 10px;
}

.quickStartCard {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 12px;
  color: inherit;
  text-align: left;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quickStartCard:hover,
.quickStartCard:focus-visible,
.stepGrid button:hover,
.stepGrid button:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.12);
}

.quickIcon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--teal);
  background: #e7f5f3;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
}

.quickStartCard strong,
.quickStartCard small {
  grid-column: 2;
}

.quickStartCard strong {
  margin-bottom: 2px;
}

.quickStartCard small {
  color: var(--muted);
  line-height: 1.45;
}

.quickStartCard b {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--teal);
  white-space: nowrap;
}

.heroStats.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.heroStats.compact .stat {
  min-height: 88px;
  padding: 12px;
}

.heroStats.compact .stat strong {
  margin-top: 10px;
  font-size: 18px;
}

.howItWorks {
  margin-bottom: 22px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stepGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stepGrid button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  min-height: 112px;
  padding: 12px;
  color: inherit;
  text-align: left;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stepGrid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  font-weight: 900;
}

.stepGrid strong,
.stepGrid small {
  grid-column: 2;
}

.stepGrid small {
  color: var(--muted);
  line-height: 1.5;
}

.trendBoard {
  margin-bottom: 22px;
}

.featuredWishStrip {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.featuredWishScroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
}

.featuredWishCard {
  display: grid;
  grid-template-rows: 170px minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}

.featuredWishCard .wishVisual {
  min-height: 170px;
  border: 0;
  border-radius: 0;
}

.featuredWishCard > div:last-child {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.featuredWishCard strong {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.featuredWishCard small {
  color: var(--muted);
  line-height: 1.45;
}

.featuredWishCard span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.departureBoard {
  margin-bottom: 22px;
}

.boardSummary {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--muted);
}

.boardSummary strong {
  color: var(--ink);
  font-size: 22px;
}

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

.departureCard {
  display: grid;
  gap: 12px;
  width: 100%;
  min-height: 142px;
  padding: 14px;
  color: inherit;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.departureCard:hover,
.departureCard:focus-visible,
.departureCard.active {
  border-color: var(--teal);
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.14);
  transform: translateY(-1px);
}

.departureCard:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.24);
  outline-offset: 2px;
}

.departureCard strong {
  display: block;
  margin: 8px 0 4px;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.departureCard p {
  margin: 0;
  color: var(--muted);
}

.departBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.trendGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trustedMembersPanel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.trustedMemberGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trustedMemberCard {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.memberAvatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 8px;
  font-weight: 900;
}

.trustedMemberCard strong,
.trustedMemberCard small {
  display: block;
}

.trustedMemberCard small {
  color: var(--muted);
  line-height: 1.45;
}

.memberTrustStats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.memberTrustStats span {
  display: grid;
  gap: 2px;
  padding: 7px;
  color: var(--muted);
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}

[data-theme="dark"] .memberTrustStats span {
  background: #0f1821;
}

.memberTrustStats b {
  color: var(--ink);
  font-size: 15px;
}

.profileLinkButton {
  grid-column: 1 / -1;
  width: 100%;
  border: 1px solid #b7ded8;
  border-radius: 8px;
  background: #f4fbfa;
  color: var(--teal);
  font-weight: 900;
  padding: 9px 10px;
  cursor: pointer;
}

.profileLinkButton.compact {
  grid-column: auto;
  width: auto;
  padding: 7px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.travelerTrustBadge {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.travelerTrustBadge.verified {
  border-color: #b7ded8;
  background: #f2fbf9;
}

.travelerTrustBadge span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.travelerTrustBadge b {
  color: var(--ink);
}

.cardActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.profileSheetOverlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 18, 32, 0.48);
  backdrop-filter: blur(6px);
}

.profileSheet {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  padding: 18px;
}

.profileSheetHead {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.memberAvatar.large {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.profileSheetHead h2,
.profileSheetHead p {
  margin: 0;
}

.profileSheetHead p {
  color: var(--muted);
}

.profileTrustGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.profileTrustGrid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}

.profileTrustGrid b {
  color: var(--ink);
  font-size: 20px;
}

.profileReviewList {
  display: grid;
  gap: 10px;
}

.profileReviewList article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profileReviewList article div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.profileReviewList article p {
  margin: 0;
  line-height: 1.55;
}

[data-theme="dark"] .profileLinkButton {
  background: #102421;
}

[data-theme="dark"] .travelerTrustBadge,
[data-theme="dark"] .profileTrustGrid span,
[data-theme="dark"] .profileReviewList article {
  background: #0f1821;
}

[data-theme="dark"] .travelerTrustBadge span {
  background: #121f2b;
}

.trendCard {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 126px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trendCard strong {
  display: block;
  overflow-wrap: anywhere;
  margin-bottom: 6px;
}

.trendCard p {
  margin: 0 0 10px;
  color: var(--muted);
}

.rankBadge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-weight: 900;
}

.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px clamp(18px, 4vw, 56px) 0;
  padding: 12px 14px;
  color: var(--green);
  font-weight: 800;
}

.sessionNotice {
  color: var(--ink);
  border-left: 4px solid var(--amber);
  flex-wrap: wrap;
}

.sessionNotice span {
  flex: 1 1 260px;
}

.pwaPrompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px clamp(18px, 4vw, 56px) 0;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.pwaPrompt span {
  flex: 1;
  color: var(--ink);
  line-height: 1.45;
}

.sensitiveOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 33, 43, 0.48);
}

.sensitiveDialog {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(23, 33, 43, 0.24);
}

.sensitiveDialog label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sensitiveDialog input,
.sensitiveDialog textarea {
  width: 100%;
  color: var(--ink);
}

.sensitiveDialog small {
  color: var(--muted);
  line-height: 1.5;
}

.workspace {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 22px;
  padding: 24px clamp(18px, 4vw, 56px) 56px;
}

.rail {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.rail button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  color: var(--muted);
  border-radius: 8px;
}

.rail button .badge {
  margin-left: auto;
}

.rail button.active {
  color: var(--teal);
  background: #e7f5f3;
}

.panel { min-width: 0; }

.viewGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 22px;
}

.sectionHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sectionHead h2 { margin-bottom: 6px; font-size: 24px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filters button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters button.active {
  color: var(--teal);
  background: #e7f5f3;
  border-color: #b7ded8;
}

.searchInput {
  width: 100%;
  min-height: 42px;
  margin-bottom: 12px;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.orderSummary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.orderSummary button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.orderSummary button.active {
  border-color: #b7ded8;
  background: #e7f5f3;
}

.orderSummary small {
  color: var(--teal);
  font-size: 20px;
  font-weight: 850;
}

.tripSummary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.tripSummary button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tripSummary button.active {
  border-color: #b7ded8;
  background: #e7f5f3;
}

.tripSummary small {
  color: var(--teal);
  font-size: 20px;
  font-weight: 850;
}

.orderFilters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
  gap: 10px;
  margin-bottom: 10px;
}

.tripFilters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 10px;
  margin-bottom: 10px;
}

.orderFilters .searchInput,
.tripFilters .searchInput {
  margin-bottom: 0;
}

.orderFilters select,
.tripFilters select {
  min-height: 42px;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resultSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.softButton, .primaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
}

.softButton {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.dangerButton {
  color: #b42318;
  background: #fff1f0;
  border-color: #ffccc7;
}

.primaryButton {
  color: white;
  background: var(--teal);
  border: 1px solid var(--teal);
}

.softButton:disabled,
.primaryButton:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.tripList, .matchList, .orderCards, .compactList {
  display: grid;
  gap: 12px;
}

.tripCard {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: white;
  font-weight: 850;
  background: #263241;
  border-radius: 8px;
}

.cardTop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cardTop h3, .matchCard h3 { margin-bottom: 6px; }
.cardTop p, .miniMeta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.status {
  align-self: flex-start;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  background: #eaf0ff;
  border-radius: 999px;
}

.status.open { color: var(--green); background: #eaf8ef; }
.status.review { color: var(--amber); background: #fff2e8; }
.status.matching, .status.new { color: var(--rose); background: #fff0f4; }
.status.ordered { color: var(--teal); background: #e7f5f3; }

.meter {
  height: 8px;
  overflow: hidden;
  background: #e8eef3;
  border-radius: 999px;
}

.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.tagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tagRow span {
  padding: 5px 8px;
  background: #f1f5f8;
  border-radius: 999px;
}

.note {
  margin: 10px 0 0;
  font-size: 13px;
}

.tripActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tripEditForm {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tripEditForm input,
.tripEditForm textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tripEditForm textarea,
.tripEditForm .buttonRow {
  grid-column: 1 / -1;
}

.tripEditForm textarea {
  min-height: 76px;
  padding-top: 10px;
  resize: vertical;
}

.matchCard, .orderCard {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.wishVisual {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 190px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.94), rgba(37, 99, 235, 0.72)),
    linear-gradient(45deg, rgba(194, 65, 12, 0.18), transparent 54%),
    #0f766e;
  border-radius: 8px;
  box-shadow: inset 0 -80px 90px rgba(0, 0, 0, 0.18);
}

.wishVisual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.wishVisual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 64%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.wishVisual small {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 20px);
  margin: 0 10px 10px;
  padding: 7px 10px;
  color: white;
  background: rgba(23, 33, 43, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 850;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.wishVisualGallery {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  align-self: end;
  padding: 0 12px 2px;
}

.wishVisualGallery img {
  position: static;
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.wishVisualPlaceholder {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  text-align: center;
}

.wishVisualPlaceholder strong {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--teal);
  background: white;
  border-radius: 18px;
  font-size: 26px;
  box-shadow: 0 16px 30px rgba(23, 33, 43, 0.16);
}

.wishVisualPlaceholder span {
  font-weight: 850;
}

.matchCard .wishVisual {
  min-height: 210px;
}

.matchCard p { color: var(--muted); line-height: 1.6; }

.matchInsight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #cfe7e3;
  border-radius: 8px;
  background: #f5fbfa;
}

.matchInsight div,
.alternativeTrips span {
  display: grid;
  gap: 3px;
}

.matchInsight span,
.alternativeTrips small {
  color: var(--muted);
  font-size: 12px;
}

.reasonPills,
.alternativeTrips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reasonPills span {
  padding: 5px 9px;
  border: 1px solid #ffd2df;
  border-radius: 999px;
  color: #914254;
  background: #fff6f8;
  font-size: 12px;
}

.alternativeTrips span {
  flex: 1 1 150px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.aiBox {
  display: flex;
  gap: 10px;
  padding: 12px;
  color: #23443f;
  background: #e7f5f3;
  border-radius: 8px;
}

.matchFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.formView { max-width: 980px; }

.wishForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.draftPanel,
.duplicateBox {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wishReadiness {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.wishReadiness.ready {
  background: #f1fbf8;
  border-left-color: var(--teal);
}

.wishReadiness strong {
  color: var(--ink);
}

.wishReadiness small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.wishReadinessPills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wishReadinessPills span {
  padding: 6px 9px;
  color: #7a4b00;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.wishReadinessPills span.done {
  color: #0f766e;
  background: #ecfdf5;
  border-color: #99f6e4;
}

.quickHintRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quickHintRow button {
  padding: 7px 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.quickHintRow button:hover,
.quickHintRow button:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #d9f1ed;
}

.draftList {
  display: grid;
  gap: 8px;
}

.draftList button,
.draftList span,
.duplicateBox span {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.draftList button.active {
  border-color: #b7ded8;
  background: #e7f5f3;
}

.draftList small,
.duplicateBox small {
  color: var(--muted);
  line-height: 1.45;
}

.duplicateBox {
  background: #fff9ed;
  border-color: #efd8a4;
}

.wishForm label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.wishForm input, .wishForm select, .wishForm textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wishForm textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.wishPhotoUpload {
  padding: 14px;
  background: #f5fbfa;
  border: 1px dashed #9ed5cc;
  border-radius: 8px;
}

.wishPhotoUpload span {
  color: var(--ink);
}

.wishPhotoUpload input {
  padding: 10px;
  background: white;
}

.wishPhotoUpload small {
  color: var(--muted);
  line-height: 1.45;
}

.wide { grid-column: 1 / -1; }

.splitAction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: end;
}

.estimate {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.estimate p { margin-bottom: 0; color: var(--muted); }

.riskBox {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.riskBox p { margin: 6px 0; color: var(--muted); }
.riskBox small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.riskBox.safe { border-color: #b7ded8; background: #edf9f7; }
.riskBox.review { border-color: #ffd5a8; background: #fff8ed; }
.riskBox.block { border-color: #fecdd3; background: #fff1f2; }

.policyBanner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}

.policyBanner.compact {
  margin: 14px 0 0;
}

.policyBanner span,
.policyBanner small {
  color: var(--muted);
}

.policyBanner button {
  margin-left: auto;
}

.progress {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.progress span {
  height: 8px;
  background: #e5edf3;
  border-radius: 999px;
}

.progress span.done { background: var(--teal); }

.nextActions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.nextActions span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 10px 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
}

.nextActions strong {
  font-size: 14px;
}

.nextActions small {
  color: var(--muted);
  line-height: 1.45;
}

.nextActions .next-primary { border-left-color: var(--teal); }
.nextActions .next-warning { border-left-color: var(--amber); }
.nextActions .next-info { border-left-color: var(--blue); }
.nextActions .next-done { border-left-color: var(--green); }

.internalRiskSummary {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
}

.internalRiskSummary.high {
  background: #fff7ed;
  border-color: #fdba74;
  border-left-color: #ea580c;
}

.internalRiskSummary strong {
  font-size: 14px;
}

.internalRiskSummary span,
.internalRiskSummary small {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.disputeSummary {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px;
  background: #fff8ed;
  border: 1px solid #ffd5a8;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
}

.disputeSummary.resolved {
  background: #edf9f2;
  border-color: #bbebca;
  border-left-color: var(--green);
}

.disputeSummary strong {
  font-size: 14px;
}

.disputeSummary span,
.disputeSummary small {
  color: var(--muted);
  line-height: 1.45;
}

.slaSummary {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px;
  background: #fff8ed;
  border: 1px solid #ffd5a8;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
}

.slaSummary.critical {
  background: #fff1f2;
  border-color: #fecdd3;
  border-left-color: #e11d48;
}

.slaSummary strong {
  font-size: 14px;
}

.slaSummary span {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-weight: 850;
}

.slaSummary small {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.buttonRow {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.subHead h3 {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  color: #ffffff;
  background: #b42318;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.tinyButton .badge {
  margin-left: 6px;
  background: var(--teal);
}

.tinyButton {
  min-height: 30px;
  padding: 0 10px;
  color: var(--teal);
  background: #e7f5f3;
  border: 1px solid #b7ded8;
  border-radius: 7px;
}

.tinyButton:disabled {
  color: var(--muted);
  background: #f4f6f8;
  border-color: var(--line);
  cursor: not-allowed;
}

.mutedButton {
  color: var(--muted);
  background: #f8fafc;
  border-color: var(--line);
}

.inlineCheck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.inlineCheck input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.compactButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.miniLedger {
  display: grid;
  gap: 8px;
}

.miniLedger span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.miniLedger span:first-child {
  border-top: 0;
}

.thread {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.thread h4 { margin: 0; }

.supportTimelineBox {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.supportTimelineBox h4 {
  margin: 0;
}

.supportTimelineList {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.supportTimelineItem {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}

.supportTimelineItem.critical {
  border-left-color: #b42318;
}

.supportTimelineItem.warning {
  border-left-color: #b7791f;
}

.supportTimelineItem span,
.supportTimelineItem small {
  color: var(--muted);
  font-size: 12px;
}

.supportTimelineItem em {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-style: normal;
}

.messages {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.messages p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.messages span,
.muted { color: var(--muted); }

.messageDigest {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
}

.messageDigest.hasUnread {
  background: #eff6ff;
  border-left-color: var(--blue);
}

.messageDigest strong {
  color: var(--ink);
  font-size: .84rem;
  white-space: nowrap;
}

.messageDigest span {
  min-width: 0;
  color: var(--muted);
  font-size: .86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messageDigest small {
  color: var(--muted);
  font-size: .76rem;
  white-space: nowrap;
}

.fileLink {
  width: fit-content;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.inlineForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.internalNoteForm {
  display: grid;
  grid-template-columns: 120px 120px auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.inlineForm input,
.internalNoteForm input,
.internalNoteForm select,
.twoTools input,
.twoTools select,
.settingsGrid input,
.settingsGrid select {
  min-height: 40px;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkLine {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.checkLine input {
  min-height: auto;
  width: 16px;
  height: 16px;
  padding: 0;
}

.twoTools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.uploadLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--teal);
  font-weight: 800;
  background: #e7f5f3;
  border: 1px dashed #8bc9bf;
  border-radius: 8px;
}

.uploadLine input {
  max-width: 240px;
}

.evidenceUploadControls {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.evidenceUploadControls select {
  min-width: 0;
}

.evidenceUploadControls small {
  min-width: 0;
  color: #475569;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.timelineBox {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timelineList {
  display: grid;
  gap: 8px;
}

.timelineItem {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
}

.timelineItem.payment { border-left-color: var(--teal); }
.timelineItem.system { border-left-color: #f59e0b; }
.timelineItem.message { border-left-color: #64748b; }
.timelineItem.stage { border-left-color: #6366f1; }

.timelineItem span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}

.timelineItem strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.timelineItem small {
  color: var(--muted);
  white-space: nowrap;
}

.stageAuditSummary {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  color: #3730a3;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
}

.stageAuditSummary strong,
.stageAuditSummary span,
.stageAuditSummary small {
  min-width: 0;
}

.stageAuditSummary strong {
  font-size: .86rem;
}

.stageAuditSummary span {
  overflow-wrap: anywhere;
  font-weight: 850;
}

.stageAuditSummary small {
  color: #4338ca;
  font-weight: 750;
}

.handoffBox {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.handoffBox p {
  margin: 0;
}

.handoffCode {
  width: fit-content;
  padding: 8px 14px;
  color: #1d4ed8;
  font-size: 1.4rem;
  font-weight: 950;
  letter-spacing: 2px;
  background: white;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.deliveryChecklistPanel {
  display: grid;
  gap: 10px;
  padding: 12px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.deliveryChecklistPanel.confirmed {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.deliveryChecklistHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deliveryChecklistHead strong {
  font-size: .95rem;
}

.deliveryChecklistHead span {
  padding: 4px 8px;
  color: #1d4ed8;
  font-size: .78rem;
  font-weight: 850;
  background: #dbeafe;
  border-radius: 999px;
}

.deliveryChecklistPanel.confirmed .deliveryChecklistHead span {
  color: #0f766e;
  background: #ccfbf1;
}

.deliveryChecklistPanel form {
  display: grid;
  gap: 10px;
}

.deliveryChecklistItems {
  display: grid;
  gap: 8px;
}

.deliveryChecklistItems label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.deliveryChecklistItems input {
  width: 16px;
  height: 16px;
  min-height: auto;
  margin-top: 2px;
}

.deliveryChecklistItems span,
.deliveryChecklistPanel p,
.deliveryChecklistPanel small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.deliveryChecklistPanel p {
  margin: 0;
  color: #0f766e;
  font-weight: 800;
}

.handoffFlowGuide {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.handoffFlowHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.handoffFlowHeader strong {
  font-size: .95rem;
}

.handoffFlowHeader span {
  padding: 4px 8px;
  color: #0f766e;
  font-size: .78rem;
  font-weight: 850;
  background: #ccfbf1;
  border-radius: 999px;
}

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

.handoffStep {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 5px;
  min-width: 0;
  min-height: 104px;
  padding: 10px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.handoffStep span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #64748b;
  font-weight: 900;
  background: #f1f5f9;
  border-radius: 999px;
}

.handoffStep strong,
.handoffStep small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.handoffStep strong {
  color: #0f172a;
  font-size: .86rem;
}

.handoffStep small {
  color: #64748b;
  line-height: 1.35;
}

.handoffStep.done {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.handoffStep.done span {
  color: white;
  background: #0f766e;
}

.handoffStep.active {
  border-color: #fbbf24;
  box-shadow: inset 0 0 0 1px #fbbf24;
}

.handoffStep.active span {
  color: #92400e;
  background: #fef3c7;
}

.logisticsScamNotice {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
}

.logisticsScamNotice strong {
  color: #9a3412;
  font-size: .9rem;
}

.logisticsScamNotice span,
.logisticsScamNotice small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.logisticsScamNotice span {
  font-weight: 800;
}

.logisticsScamNotice small {
  color: #9a3412;
  line-height: 1.45;
}

.logisticsScamNotice.compact {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.logisticsScamNotice.compact small {
  grid-column: 1 / -1;
}

.riskSignalPanel {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.riskSignalPanel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.riskSignalPanel strong {
  font-size: .92rem;
}

.riskSignalPanel span {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: #991b1b;
  font-size: .78rem;
  font-weight: 850;
  background: #fee2e2;
  border-radius: 999px;
}

.riskSignalPanel small {
  color: #991b1b;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.shippingPanel {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.shippingPanelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shippingPanelHead strong {
  font-size: .95rem;
}

.shippingPanelHead span {
  padding: 4px 8px;
  color: #1d4ed8;
  font-size: .78rem;
  font-weight: 850;
  background: #dbeafe;
  border-radius: 999px;
}

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

.shippingSnapshot span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  color: #475569;
  font-size: .78rem;
  font-weight: 800;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.shippingSnapshot small {
  min-width: 0;
  color: #0f172a;
  font-size: .86rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.shippingForm {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.shippingForm input,
.shippingForm select {
  min-width: 0;
}

.shippingForm input:nth-of-type(2),
.shippingForm button {
  grid-column: span 3;
}

.payoutPreflightPanel,
.evidenceGapPanel {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.payoutPreflightPanel.ready,
.evidenceGapPanel.complete {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.payoutPreflightPanel.blocked,
.evidenceGapPanel.missing {
  background: #fff7ed;
  border-color: #fed7aa;
}

.payoutPreflightHead,
.evidenceGapHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payoutPreflightHead strong,
.evidenceGapHead strong {
  font-size: .92rem;
}

.payoutPreflightHead span,
.evidenceGapHead span {
  padding: 4px 8px;
  color: #7c2d12;
  font-size: .78rem;
  font-weight: 850;
  background: #ffedd5;
  border-radius: 999px;
}

.payoutPreflightPanel.ready .payoutPreflightHead span,
.evidenceGapPanel.complete .evidenceGapHead span {
  color: #0f766e;
  background: #ccfbf1;
}

.payoutPreflightList,
.evidenceGapList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payoutPreflightList span,
.evidenceGapList span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.payoutPreflightList b,
.evidenceGapList b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #7c2d12;
  background: #fed7aa;
  border-radius: 999px;
}

.payoutPreflightList .ok b,
.evidenceGapList .ok b {
  color: white;
  background: #0f766e;
}

.payoutPreflightList small,
.evidenceGapList small {
  min-width: 0;
  color: #334155;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .handoffSteps {
    grid-template-columns: 1fr;
  }

  .handoffStep {
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .handoffStep span {
    grid-row: 1 / span 2;
  }

  .logisticsScamNotice.compact {
    grid-template-columns: 1fr;
  }

  .shippingSnapshot,
  .shippingForm {
    grid-template-columns: 1fr;
  }

  .payoutPreflightList,
  .evidenceGapList {
    grid-template-columns: 1fr;
  }

  .shippingForm input:nth-of-type(2),
  .shippingForm button {
    grid-column: auto;
  }
}

.internalNoteBox {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.internalNoteList {
  display: grid;
  gap: 8px;
}

.internalNoteList span {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: white;
  border: 1px solid #f5d56b;
  border-radius: 8px;
}

.internalNoteList span.pinned {
  border-color: #d97706;
  box-shadow: inset 3px 0 0 #d97706;
}

.internalNoteList span.severity-high {
  background: #fff7ed;
  border-color: #fdba74;
}

.internalNoteList span.severity-low {
  background: #f8fafc;
}

.internalNoteList small {
  color: var(--muted);
}

.internalNoteList em {
  font-style: normal;
  overflow-wrap: anywhere;
}

.evidenceBox {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fffaf0;
  border: 1px solid #f3d28b;
  border-radius: 8px;
}

.evidenceList {
  display: grid;
  gap: 8px;
}

.evidenceList a {
  display: grid;
  gap: 3px;
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.evidenceList a span {
  color: var(--muted);
  font-size: .82rem;
}

@media (max-width: 760px) {
  .evidenceUploadControls {
    grid-template-columns: 1fr;
  }

  .uploadLine {
    display: grid;
  }

  .uploadLine input {
    max-width: 100%;
  }
}

.settingsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settingsPanel {
  display: grid;
  gap: 16px;
}

.settingGroup {
  display: grid;
  gap: 10px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.settingGroup:first-child {
  border-top: 0;
  padding-top: 0;
}

.compactForm {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.compactForm input {
  grid-column: span 3;
}

.compactForm .buttonRow {
  grid-column: span 3;
}

.settingsGrid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.settingsGrid .checkLine {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
}

.checkLine input {
  width: 16px;
  height: 16px;
}

.preferenceGrid {
  display: grid;
  gap: 10px;
}

.preferenceGroup {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preferenceGroup > strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.preferenceItem {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preferenceItem input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.preferenceItem span {
  display: grid;
  gap: 3px;
}

.preferenceItem small {
  color: var(--muted);
  line-height: 1.45;
}

.preferenceItem.locked {
  background: #eef6f5;
}

[data-theme="dark"] .preferenceItem {
  background: #162230;
}

[data-theme="dark"] .preferenceItem.locked {
  background: #132b2a;
}

.compactSelect {
  min-height: 40px;
  max-width: 220px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.twoTools > div {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.adminGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.countryGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mapBoard {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.mapCanvas {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), transparent 45%),
    linear-gradient(310deg, rgba(37, 99, 235, 0.10), transparent 42%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mapCanvas::before {
  content: "";
  position: absolute;
  inset: 32px;
  background:
    radial-gradient(circle at 28% 38%, rgba(15, 118, 110, 0.16), transparent 18%),
    radial-gradient(circle at 62% 36%, rgba(194, 65, 12, 0.14), transparent 18%),
    radial-gradient(circle at 54% 68%, rgba(37, 99, 235, 0.12), transparent 20%);
  border: 1px dashed #cbd8e4;
  border-radius: 999px;
}

.mapBubble {
  position: absolute;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: white;
  background: var(--teal);
  border: 3px solid white;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(15, 31, 45, 0.18);
}

.mapBubble small {
  font-size: 11px;
  opacity: 0.9;
}

.mapBubble.need_travelers,
.areaInsight.need_travelers {
  background: #b42318;
}

.mapBubble.high_demand,
.areaInsight.high_demand {
  background: #b45309;
}

.mapBubble.need_wishes,
.areaInsight.need_wishes {
  background: #1d4ed8;
}

.areaInsightGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.areaInsight {
  min-height: 132px;
  padding: 14px;
  color: white;
  background: var(--teal);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 31, 45, 0.12);
}

.areaInsight span,
.areaInsight small,
.areaInsight p {
  display: block;
  color: rgba(255, 255, 255, 0.86);
}

.areaInsight strong {
  display: block;
  margin: 8px 0;
  font-size: 18px;
}

.areaInsight p {
  margin: 10px 0 0;
  line-height: 1.45;
}

.areaList {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.areaRow {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

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

.areaRow small {
  color: var(--muted);
}

.areaRow span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.areaRow b {
  flex: 0 0 auto;
  padding: 3px 8px;
  color: var(--teal);
  background: #e7f5f3;
  border-radius: 999px;
  font-size: 12px;
}

.policyGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.policyItem {
  min-height: 220px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policyItem .glyph {
  color: var(--teal);
}

.policyItem h3 {
  margin: 14px 0 8px;
}

.policyItem p {
  line-height: 1.65;
  color: var(--ink);
}

.policyItem small {
  color: var(--muted);
  line-height: 1.5;
}

.policyQaView {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.onboardingPanel {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

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

.mobileQuickTasks {
  display: none;
}

.onboardingCard {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 190px;
  padding: 14px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.onboardingCard .glyph {
  color: var(--teal);
}

.onboardingCard h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.onboardingCard p {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

[data-theme="dark"] .onboardingCard {
  background: #0f1821;
}

.faqSearchBox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faqSearchBox input {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.faqSearchBox small {
  color: var(--muted);
  font-weight: 800;
}

.selfServiceGuide {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.selfServiceTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selfServiceTabs button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.selfServiceTabs button.active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.selfServiceCard {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

[data-theme="dark"] .selfServiceTabs button,
[data-theme="dark"] .selfServiceCard {
  background: #0f1821;
}

.selfServiceCard h3 {
  margin-bottom: 0;
}

.selfServiceCard ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.supportRequestForm {
  display: grid;
  gap: 9px;
}

.supportRequestForm textarea,
.supportRequestForm select {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.supportRequestForm textarea {
  min-height: 94px;
  resize: vertical;
}

.policyFaqGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.policyFaqItem,
.policyQaColumns > div,
.policyFinanceNote {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policyFaqItem h3,
.policyQaColumns h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.policyFaqItem p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.policyQaColumns {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 14px;
}

.policyMatrix {
  display: grid;
  gap: 8px;
}

.policyMatrix span {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}

.policyMatrix small {
  color: var(--muted);
  line-height: 1.45;
}

.policyFinanceNote {
  display: flex;
  align-items: center;
  gap: 12px;
  border-color: #b7ded8;
  background: #eefaf7;
}

.policyFinanceNote strong {
  color: var(--teal);
  white-space: nowrap;
}

.policyFinanceNote span {
  color: var(--muted);
  line-height: 1.55;
}

.adminTile { padding: 16px; }
.adminTile strong { display: block; margin: 16px 0 6px; font-size: 24px; }
.adminTile p { margin-bottom: 0; color: var(--muted); line-height: 1.5; }

.adminTools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 18px;
}

.supportDesk {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.supportDesk .miniLedger {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.supportDesk .miniLedger span {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.supportDesk .miniLedger small {
  color: var(--ink);
  font-weight: 800;
}

.supportDesk .adminColumns {
  margin-bottom: 0;
}

.riskCommandPanel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

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

.riskCommandTile {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}

.riskCommandTile.hot {
  border-left-color: var(--rose);
  background: #fff1f2;
}

.riskCommandTile.warm {
  border-left-color: var(--amber);
  background: #fff8ed;
}

[data-theme="dark"] .riskCommandTile,
[data-theme="dark"] .riskCommandList span {
  background: #0f1821;
}

[data-theme="dark"] .riskCommandTile.hot {
  background: #2a1219;
}

[data-theme="dark"] .riskCommandTile.warm {
  background: #261b0d;
}

.riskCommandTile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.riskCommandTile strong {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
}

.riskCommandTile small {
  color: var(--muted);
}

.riskCommandTypeStrip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.riskCommandTypeStrip > strong {
  margin-right: 4px;
}

.riskCommandTypeStrip > small {
  flex: 1 1 220px;
  color: var(--muted);
  line-height: 1.45;
}

.riskCommandTypeStrip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 9px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.riskCommandTypeStrip b {
  color: var(--teal);
}

[data-theme="dark"] .riskCommandTypeStrip {
  background: #0f1821;
}

.riskCommandList {
  display: grid;
  gap: 8px;
}

.riskCommandList span {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.riskCommandList small,
.riskCommandList em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.adminColumns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.adminColumns > div { padding: 16px; }
.compactList span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.compactList span:first-child { border-top: 0; }

.compactList .quickActions {
  width: 100%;
  padding: 4px 0 0;
  border-top: 0;
  justify-content: flex-start;
}

.compactList .quickActions .tinyButton {
  min-height: 30px;
  padding: 6px 9px;
}

.supportRequestQueue span {
  display: grid;
  justify-content: stretch;
}

.supportRequestFilters {
  margin: 8px 0 10px;
}

.supportRequestSummary {
  margin: 8px 0;
}

.supportRequestQueue small {
  overflow-wrap: anywhere;
}

.supportStatusList span {
  display: grid;
  justify-content: stretch;
}

.supportStatusList small {
  overflow-wrap: anywhere;
}

.slaStrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.slaStrip span {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.slaStrip strong {
  color: var(--ink);
  font-size: 20px;
}

.healthList span {
  border-left: 4px solid var(--line);
  padding-left: 10px;
}

.healthList .health-critical {
  border-left-color: #b42318;
}

.healthList .health-warning {
  border-left-color: #b7791f;
}

.healthList .health-info {
  border-left-color: var(--teal);
}

.orderTable { overflow: hidden; }

.tableHead, .tableRow {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.tableHead {
  font-weight: 850;
  background: #eef3f7;
}

.tableRow { border-top: 1px solid var(--line); }
.tableRow small { display: block; margin-top: 4px; }

.empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--muted);
}

.empty strong {
  color: var(--ink);
  font-size: 18px;
}

.empty p {
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

.emptyActionState {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.emptyActionState strong {
  color: var(--ink);
  font-size: 22px;
}

.emptyActionState p {
  max-width: 560px;
  margin: 0;
  line-height: 1.65;
}

.accountGrid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.readinessPanel {
  margin-bottom: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.securityUpgradeMount {
  margin-bottom: 18px;
}

.selfPublicProfileCard {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .9fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #b7ded8;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2fbf9, #f8fafc);
}

.selfPublicProfileCard h3,
.selfPublicProfileCard p {
  margin: 0;
}

.selfPublicProfileCard p {
  color: var(--muted);
  line-height: 1.55;
}

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

.selfPublicProfileStats span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.selfPublicProfileStats b {
  color: var(--ink);
  font-size: 18px;
}

[data-theme="dark"] .selfPublicProfileCard {
  background: #0f1821;
}

[data-theme="dark"] .selfPublicProfileStats span {
  background: #121f2b;
}

.securityUpgradePanel {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.securityMiniCard {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 180px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.securityMiniCard strong {
  color: var(--ink);
  font-size: .95rem;
}

.securityMiniCard small {
  color: var(--muted);
  line-height: 1.45;
}

.securityMiniCard input,
.securityMiniCard select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.searchResults {
  display: grid;
  gap: 7px;
  max-height: 170px;
  overflow: auto;
}

.searchResults span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.searchResults strong,
.searchResults small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.searchResults small {
  grid-column: 1 / 2;
}

.searchResults button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.searchResults .searchResultMeta {
  background: #f8fafc;
  border-style: dashed;
}

.productPreviewCard {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.productPreviewCard img {
  width: 88px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.productPreviewCard strong,
.productPreviewCard small,
.productPreviewCard p {
  display: block;
  margin: 0;
}

.productPreviewCard small,
.productPreviewCard p {
  color: var(--muted);
  line-height: 1.45;
}

.warningText {
  color: var(--amber) !important;
  font-weight: 800;
}

.unreadNotice {
  padding: 9px 11px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  font-weight: 850;
}

.messages p.unreadMessage {
  border-left: 4px solid var(--blue);
  background: #eff6ff;
}

[data-theme="dark"] .messages p.unreadMessage {
  background: #12243a;
}

.orderTimelineWrap {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

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

.orderTimelineSummary span {
  display: grid;
  gap: 3px;
  padding: 10px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 800;
}

.orderTimelineSummary strong {
  color: var(--ink);
  font-size: .95rem;
  overflow-wrap: anywhere;
}

.orderTimelineRail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.orderTimelineNode {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 6px 4px 6px 20px;
  color: var(--muted);
}

.orderTimelineNode i {
  position: absolute;
  left: 3px;
  top: 10px;
  width: 11px;
  height: 11px;
  background: #cbd5e1;
  border-radius: 999px;
}

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

.orderTimelineNode.done,
.orderTimelineNode.active {
  color: var(--ink);
}

.orderTimelineNode.done i {
  background: var(--green);
}

.orderTimelineNode.active i {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .16);
}

.orderTimelineNode strong,
.orderTimelineNode small {
  display: block;
  line-height: 1.35;
}

.orderTimelineNode strong {
  font-size: .82rem;
}

.orderTimelineNode small {
  font-size: .75rem;
  color: var(--muted);
}

.readinessHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.readinessHead h3 {
  margin-bottom: 4px;
}

.readinessHead p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.readinessHead strong {
  display: grid;
  place-items: center;
  min-width: 62px;
  min-height: 62px;
  color: var(--teal);
  font-size: 20px;
  border: 8px solid #d9f1ed;
  border-radius: 999px;
}

.readinessGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.readinessGrid span {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 10px 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
}

.readinessGrid .ready-done { border-left-color: var(--green); }
.readinessGrid .ready-warn { border-left-color: var(--amber); }
.readinessGrid .ready-todo { border-left-color: var(--blue); }

.readinessGrid small {
  color: var(--muted);
  line-height: 1.45;
}

.founderOsPanel {
  margin-bottom: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.launchReadinessPanel {
  margin-bottom: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.launchReadinessGrid {
  margin-top: 12px;
}

.adminOpsPanel {
  margin-bottom: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.founderMetricGrid,
.founderColumns {
  display: grid;
  gap: 10px;
}

.founderMetricGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.founderColumns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.founderMetricGrid span,
.founderColumns > div {
  padding: 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
}

.founderMetricGrid span {
  display: grid;
  gap: 5px;
  min-height: 88px;
  font-weight: 850;
}

.founderMetricGrid small {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.founderMetric.healthy { border-left-color: var(--green); }
.founderMetric.watch { border-left-color: var(--amber); }
.founderMetric.risk { border-left-color: #b42318; }

.founderColumns h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.accountCard {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mobileAccountHome {
  display: none;
}

.mobileDetailPanel {
  display: none;
}

.sessionPanel {
  margin-bottom: 14px;
}

.sessionPanel .compactList span {
  align-items: start;
}

.securityPanel {
  padding: 16px;
  margin-bottom: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sectionHead.tight {
  margin-bottom: 12px;
}

.securityGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.securityItem {
  display: grid;
  gap: 5px;
  min-height: 116px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.securityItem span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}

.securityItem strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.securityItem small {
  color: var(--muted);
  line-height: 1.45;
}

.mobilePushCard {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #ecfeff, #f8fafc);
  border: 1px solid #bae6fd;
  border-radius: 8px;
}

.mobilePushCard span {
  color: var(--teal);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mobilePushCard strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.mobilePushCard small {
  color: var(--muted);
  line-height: 1.45;
}

.loginForm {
  display: grid;
  gap: 12px;
}

.oauthGrid {
  display: grid;
  gap: 9px;
}

.oauthButton {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 46px;
  padding: 7px 12px 7px 7px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.oauthButton span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  font-weight: 950;
  border-radius: 8px;
}

.oauthButton strong {
  font-size: .92rem;
  text-align: center;
}

.oauth-google span { background: #4285f4; }
.oauth-line span { background: #06c755; }
.oauth-facebook span { background: #1877f2; }
.oauth-apple span { background: #111827; }

.loginForm label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.loginForm input,
.loginForm select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.passwordMeter {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.passwordMeterBar {
  height: 7px;
  overflow: hidden;
  background: #e7edf2;
  border-radius: 999px;
}

.passwordMeterBar span {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: inherit;
}

.passwordMeter.strength-medium .passwordMeterBar span { background: var(--amber); }
.passwordMeter.strength-strong .passwordMeterBar span { background: var(--green); }

.passwordMeter strong {
  color: var(--ink);
  font-size: .9rem;
}

.passwordMeter small {
  color: var(--muted);
  line-height: 1.45;
}

.scoreRing {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 16px 0;
  color: var(--teal);
  font-size: 34px;
  font-weight: 900;
  border: 10px solid #d9f1ed;
  border-radius: 999px;
}

@media (max-width: 1060px) {
  .hero, .workspace, .viewGrid { grid-template-columns: 1fr; }
  .rail {
    position: static;
    display: flex;
    overflow-x: auto;
  }
  .rail button { min-width: 128px; justify-content: center; }
  .adminGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policyGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .countryGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areaInsightGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .departureGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heroStats.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trustedMemberGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepGrid { grid-template-columns: 1fr; }
  .mapBoard { grid-template-columns: 1fr; }
  .accountGrid { grid-template-columns: 1fr; }
  .readinessGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .securityUpgradeGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .securityGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orderTimelineSummary { grid-template-columns: 1fr; }
  .orderTimelineRail { grid-template-columns: 1fr; }
  .orderTimelineNode { min-height: 54px; }
  .supportDesk .miniLedger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .riskCommandGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .languageToggle {
    right: 10px;
    bottom: 68px;
  }

  .themeToggle {
    right: 10px;
    bottom: 116px;
  }

  .onboardingPanel {
    width: calc(100% - 20px);
    margin-top: 12px;
    padding: 12px;
  }

  .mobileQuickTasks {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 42vw);
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
  }

  .mobileQuickTasks button {
    display: grid;
    gap: 5px;
    min-height: 104px;
    padding: 12px;
    text-align: left;
    background: #f8fbfd;
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    scroll-snap-align: start;
  }

  .mobileQuickTasks .glyph {
    color: var(--teal);
  }

  .mobileQuickTasks span {
    color: var(--ink);
    font-weight: 900;
  }

  .mobileQuickTasks small {
    color: var(--muted);
    line-height: 1.35;
  }

  .onboardingGrid {
    grid-template-columns: 1fr;
  }

  .onboardingCard {
    min-height: 0;
  }

  .onboardingCard p {
    min-height: 0;
  }

  .securityUpgradeGrid {
    grid-template-columns: 1fr;
  }

  .selfPublicProfileCard {
    grid-template-columns: 1fr;
  }

  .selfPublicProfileStats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body {
    background:
      linear-gradient(180deg, #eef7f4 0, #f6f8fb 180px),
      var(--paper);
  }
  .topbar {
    gap: 10px;
    min-height: auto;
    padding: 10px 14px 9px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 28px rgba(23, 33, 43, 0.08);
  }
  .brand {
    min-width: 0;
  }
  .brand strong {
    font-size: 15px;
    letter-spacing: .2px;
  }
  .brand small { display: none; }
  .brand .logoMark {
    width: 36px;
    height: 36px;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.24);
  }
  .tabs {
    display: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button {
    flex: 0 0 auto;
    min-width: 82px;
    padding: 0 12px;
  }
  .hero {
    gap: 18px;
    padding: 24px 14px 18px;
    min-height: auto;
  }
  .heroProduct {
    overflow: hidden;
    border-bottom: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 48px rgba(23, 33, 43, 0.08);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 48%, rgba(255, 255, 255, 0.64) 100%),
      url('./images/bondmai-hero-handoff.webp') 56% 72% / cover no-repeat;
  }
  .heroProduct h1 {
    font-size: 32px;
    line-height: 1.16;
  }
  .heroProduct p {
    font-size: 15px;
    line-height: 1.65;
  }
  .heroActions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
  .primaryAction,
  .secondaryAction {
    width: 100%;
    min-height: 50px;
    box-shadow: 0 10px 24px rgba(23, 33, 43, 0.08);
  }
  .primaryAction {
    background: linear-gradient(135deg, #0f766e, #2563eb);
    border-color: transparent;
  }
  .quickStartPanel {
    padding: 12px;
  }
  .heroVisual {
    order: 3;
    height: 220px;
    min-height: 230px;
  }
  .heroVisual img {
    object-position: 55% 58%;
  }
  .quickStartHead { order: 1; }
  .quickStartGrid { order: 2; }
  .heroStats.compact { order: 4; }
  .matchPreview {
    right: 10px;
    bottom: 10px;
    width: min(250px, calc(100% - 20px));
    padding: 10px;
  }
  .quickStartCard {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 96px;
  }
  .quickIcon {
    width: 36px;
    height: 36px;
  }
  .quickStartCard b {
    grid-column: 2;
    grid-row: auto;
    margin-top: 4px;
  }
  .trustRow span {
    flex: 1 1 120px;
    text-align: center;
  }
  .workspace {
    padding: 14px 14px 112px;
  }
  .rail {
    display: none;
  }
  .howItWorks {
    padding: 12px;
  }
  h1 { font-size: 34px; }
  .heroStats, .heroStats.compact, .wishForm, .adminGrid, .policyGrid, .policyFaqGrid, .policyQaColumns, .countryGrid, .areaInsightGrid, .departureGrid, .trendGrid, .adminColumns, .founderMetricGrid, .founderColumns, .tableHead, .tableRow, .splitAction, .inlineForm, .internalNoteForm, .twoTools, .securityGrid, .readinessGrid, .nextActions, .orderFilters, .orderSummary, .tripFilters, .tripSummary, .slaStrip, .settingsGrid, .tripEditForm {
    grid-template-columns: 1fr;
  }
  .featuredWishStrip {
    margin-right: -14px;
  }
  .featuredWishScroller {
    grid-auto-columns: minmax(210px, 76vw);
    padding-right: 14px;
  }
  .featuredWishCard {
    grid-template-rows: 150px minmax(0, 1fr);
  }
  .featuredWishCard .wishVisual {
    min-height: 150px;
  }
  .trustedMemberGrid { grid-template-columns: 1fr; }
  .profileSheetOverlay {
    align-items: end;
    padding: 0;
  }
  .profileSheet {
    width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    padding: 16px;
  }
  .profileSheetHead {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .memberAvatar.large {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }
  .profileTrustGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profileReviewList article div {
    display: grid;
  }
  .cardActions {
    justify-content: flex-start;
  }
  .policyFinanceNote {
    display: grid;
  }
  .ordersView .orderSummary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ordersView .orderSummary button {
    min-height: 54px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(23, 33, 43, 0.06);
  }
  .ordersView .orderSummary small {
    font-size: 18px;
  }
  .ordersView.isEmpty .orderSummary button:nth-child(n+5),
  .ordersView.isEmpty .orderFilters,
  .ordersView.isEmpty .resultSummary {
    display: none;
  }
  .ordersView.isEmpty .emptyActionState {
    margin-top: 8px;
    margin-bottom: 96px;
  }
  .supportDesk .miniLedger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .riskCommandGrid { grid-template-columns: 1fr; }
  .timelineItem { grid-template-columns: 1fr; }
  .messageDigest { grid-template-columns: 1fr; }
  .messageDigest span,
  .messageDigest small { white-space: normal; }
  .mapCanvas { min-height: 360px; }
  .sectionHead, .matchFooter, .matchInsight, .cardTop { flex-direction: column; }
  .policyBanner { align-items: stretch; }
  .policyBanner button { margin-left: 0; }
  .tripCard { grid-template-columns: 1fr; }
  .compactList span {
    display: grid;
    grid-template-columns: 1fr;
  }
  .compactForm input,
  .compactForm .buttonRow {
    grid-column: auto;
  }
  .buttonRow {
    width: 100%;
  }
  .buttonRow > * {
    flex: 1 1 120px;
  }
  .mobileActionBar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 52px rgba(23, 33, 43, 0.22);
    backdrop-filter: blur(14px);
  }
  .mobileActionBar button {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-height: 52px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 14px;
    transition: transform .16s ease, background .16s ease, color .16s ease;
  }
  .mobileActionBar span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--teal);
    background: #e7f5f3;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
  }
  .mobileActionBar strong {
    font-size: 12px;
  }
  .mobileActionBar button.active {
    color: var(--ink);
    background: linear-gradient(180deg, #eefaf7, #ffffff);
    box-shadow: inset 0 0 0 1px #b7ded8, 0 8px 18px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
  }
  .mobileActionBar button.active span {
    color: white;
    background: linear-gradient(135deg, var(--teal), var(--blue));
  }
  .mobileAccountHome {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
  }
  .accountHeroCard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 12px;
    align-items: center;
    padding: 16px;
    background:
      linear-gradient(135deg, rgba(15, 118, 110, 0.09), rgba(37, 99, 235, 0.05)),
      var(--white);
    border: 1px solid #c8e4df;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }
  .accountHeroCard span {
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
  }
  .accountHeroCard h3 {
    margin: 4px 0;
    font-size: 24px;
  }
  .accountHeroCard p {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
  }
  .accountHeroCard > strong {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    color: var(--teal);
    font-size: 24px;
    border: 8px solid #d9f1ed;
    border-radius: 999px;
    background: white;
    box-shadow: inset 0 0 0 1px #b7ded8;
  }
  .accountHeroCard > small {
    grid-column: 2;
    margin-top: -18px;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
  }
  .accountStatusStrip,
  .accountShortcutGrid {
    display: grid;
    gap: 8px;
  }
  .accountStatusStrip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .accountStatusStrip span,
  .accountShortcutGrid button {
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(23, 33, 43, 0.05);
  }
  .accountStatusStrip span {
    color: var(--teal);
    text-align: center;
    font-size: 13px;
    font-weight: 850;
  }
  .mobileTrustProfileCard {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 13px 14px;
    color: inherit;
    text-align: left;
    background:
      linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(20, 184, 166, 0.08)),
      var(--white);
    border: 1px solid #d7eadb;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(23, 33, 43, 0.07);
  }
  .mobileTrustProfileCard span {
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
  }
  .mobileTrustProfileCard strong {
    font-size: 17px;
  }
  .mobileTrustProfileCard small {
    color: var(--muted);
    line-height: 1.45;
  }
  .mobileTrustProfileCard:focus-visible {
    outline: 3px solid #d9f1ed;
    outline-offset: 2px;
  }
  .accountShortcutGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .accountShortcutGrid button {
    display: grid;
    gap: 5px;
    min-height: 104px;
    color: inherit;
    text-align: left;
    cursor: pointer;
  }
  .accountShortcutGrid button.active {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px #d9f1ed;
  }
  .accountShortcutGrid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
  }
  .accountShortcutGrid strong {
    font-size: 22px;
  }
  .accountShortcutGrid small {
    color: var(--muted);
    line-height: 1.45;
  }
  .accountLogout {
    width: 100%;
  }
  .mobileDetailPanel {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
  }
  .mobileDetailTabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .mobileDetailTabs::-webkit-scrollbar {
    display: none;
  }
  .mobileDetailTabs button {
    flex: 0 0 92px;
    min-height: 38px;
    padding: 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(23, 33, 43, 0.04);
  }
  .mobileDetailTabs button.active {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
  }
  .mobileDetailCard {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }
  .mobileDetailCard .compactList {
    gap: 8px;
  }
  .mobileDetailCard .compactList span {
    min-height: 58px;
  }
  .mobileDetailCard .settingsGrid,
  .mobileDetailCard .compactForm {
    grid-template-columns: 1fr;
  }
  .mobileProgress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    background: #f3faf8;
    border: 1px solid #d9f1ed;
    border-radius: 14px;
  }
  .mobileProgress strong {
    color: var(--teal);
    font-size: 24px;
  }
  .mobileProgress span {
    color: var(--muted);
    font-weight: 850;
  }
  .orderCard.isClosed .stageAuditSummary,
  .orderCard.isClosed .slaSummary,
  .orderCard.isClosed .internalRiskSummary,
  .orderCard.isClosed .disputeSummary {
    display: none;
  }
  .orderCard.isClosed .nextActions span:nth-child(n+2) {
    display: none;
  }
  .orderCard.isClosed .nextActions {
    margin-bottom: 4px;
  }
  .orderCard.isClosed .nextActions span:first-child {
    min-height: 64px;
    background: #f1fbf8;
    border-left-color: var(--teal);
  }
  .orderCard.isClosed .nextActions strong {
    font-size: 15px;
  }
  .tripCard,
  .matchCard,
  .orderCard,
  .estimate,
  .notice,
  .pwaPrompt,
  .empty,
  .adminTile,
  .accountCard,
  .orderTable {
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }
  .pwaPrompt {
    align-items: stretch;
    flex-direction: column;
    margin: 10px 14px 0;
  }
  .pwaPrompt button {
    width: 100%;
  }
  .tripCard,
  .matchCard,
  .orderCard {
    position: relative;
    overflow: hidden;
  }
  .tripCard::before,
  .matchCard::before,
  .orderCard::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--blue));
  }
  .orderCard {
    padding-top: 18px;
  }
  .orderCard.isClosed::before {
    background: linear-gradient(90deg, var(--green), #7cc7a0);
  }
  .orderCard.hasRisk::before,
  .orderCard.hasDispute::before {
    background: linear-gradient(90deg, var(--amber), var(--rose));
  }
  .progress {
    gap: 5px;
    padding: 4px;
    background: #edf3f7;
    border-radius: 999px;
  }
  .progress span {
    height: 7px;
  }
  .nextActions {
    gap: 10px;
  }
  .nextActions span {
    min-height: 82px;
    padding: 12px 13px;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
    border-left-width: 5px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(23, 33, 43, 0.05);
  }
  .nextActions span:first-child {
    background: linear-gradient(135deg, #edf9f7, #ffffff);
    border-color: #b7ded8;
    border-left-color: var(--teal);
  }
  .nextActions strong {
    font-size: 15px;
  }
  .status {
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  }
  input,
  select,
  textarea {
    min-height: 44px;
    border-radius: 12px;
  }
  textarea {
    min-height: 96px;
  }
  .compactList span,
  .evidenceList a,
  .internalNoteList span {
    border-radius: 14px;
  }
  .orderCard .matchFooter .buttonRow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .orderCard .matchFooter .buttonRow > * {
    min-width: 0;
  }
  .matchCard {
    padding: 12px;
    gap: 12px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96)),
      var(--white);
  }
  .matchCard .wishVisual {
    min-height: 235px;
    margin: -2px -2px 0;
    border-radius: 14px;
  }
  .wishVisual small {
    max-width: calc(100% - 18px);
    margin: 0 9px 9px;
    font-size: 12px;
  }
  .wishVisualGallery {
    padding-inline: 9px;
  }
  .wishVisualGallery img {
    width: 38px;
    height: 38px;
  }
  .matchMain h3 {
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.25;
  }
  .matchMain > p {
    margin-bottom: 8px;
  }
  .matchInsight {
    display: grid;
    padding: 12px;
    background: linear-gradient(180deg, #f5fbfa, #ffffff);
    border-radius: 14px;
  }
  .reasonPills {
    gap: 7px;
  }
  .reasonPills span,
  .tagRow span {
    border-radius: 999px;
  }
  .orderTimelineRail {
    padding: 10px;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
    border-radius: 14px;
  }
  .orderTimelineNode {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 2px 8px;
    min-height: 48px;
    padding: 5px 2px;
  }
  .orderTimelineNode i {
    position: static;
    grid-row: 1 / span 2;
    align-self: start;
    width: 12px;
    height: 12px;
    margin-top: 3px;
  }
  .orderTimelineNode::before {
    left: 7px;
    top: 20px;
    bottom: -16px;
  }
  .orderTimelineNode strong,
  .orderTimelineNode small {
    grid-column: 2;
  }
  .messageDigest,
  .stageAuditSummary,
  .slaSummary,
  .internalRiskSummary,
  .disputeSummary {
    border-radius: 14px;
  }
  .accountView.hasUser > .accountGrid,
  .accountView.hasUser > .readinessPanel,
  .accountView.hasUser > .adminColumns {
    display: none;
  }
  .accountView.guestAccount .accountGrid {
    grid-template-columns: 1fr;
  }
  .accountView.guestAccount .accountGrid > .accountCard:nth-child(2) {
    display: none;
  }
  .accountView.guestAccount > .adminColumns,
  .accountView.guestAccount > .securityPanel,
  .accountView.guestAccount > .readinessPanel {
    display: none;
  }
  .ordersView .sectionHead,
  .accountView .sectionHead {
    margin-top: 4px;
  }
}
