/* ------------------------------------------------------------------
   落脚 · 团队地址簿
   A warm, editorial interface built around places and people.
------------------------------------------------------------------- */

:root {
  --paper: #f6f1e7;
  --paper-deep: #eee5d5;
  --cream: #fbf8f1;
  --white: #ffffff;
  --ink: #1c2a22;
  --ink-soft: #3f4d43;
  --muted: #788176;
  --muted-light: #9ba295;
  --line: #e5dccd;
  --line-strong: #d7cbb8;
  --forest: #1f3a2d;
  --forest-deep: #172c22;
  --forest-soft: #2a4c3b;
  --coral: #d95d39;
  --coral-deep: #bd4828;
  --coral-soft: #f6e3d9;
  --coral-pale: #fbf0ea;
  --sage: #a7b59a;
  --sage-soft: #e9ede2;
  --sage-deep: #61735a;
  --blue: #5e7f94;
  --blue-soft: #e5edf1;
  --gold: #c49a4c;
  --gold-soft: #f5ecd8;
  --danger: #b33b27;
  --danger-soft: #faeae5;
  --shadow-xs: 0 1px 2px rgba(28, 42, 34, 0.04);
  --shadow-sm: 0 4px 14px rgba(28, 42, 34, 0.05);
  --shadow-md: 0 18px 44px rgba(28, 42, 34, 0.09);
  --shadow-lg: 0 34px 80px rgba(20, 34, 26, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --font-ui: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
    sans-serif;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-height: 78px;
  --page-max: 1260px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--coral);
  color: var(--white);
}

img,
svg {
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

em {
  font-style: normal;
}

mark {
  padding: 0 1px;
  border-radius: 3px;
  background: #f8d9a8;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
  background: var(--forest);
  color: var(--cream);
  font-size: 13px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 0;
}

.icon {
  flex: 0 0 auto;
}

/* ---------------------------------------------
   Typography & small shared pieces
--------------------------------------------- */

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(248, 241, 228, 0.58);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.accent {
  color: var(--coral);
}

.page-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.page-sub strong {
  color: var(--ink);
  font-weight: 650;
}

.field-label {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.field-label em {
  color: var(--coral);
  font-style: normal;
  margin-left: 2px;
}

.field-hint {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.optional {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}

/* ---------------------------------------------
   Brand
--------------------------------------------- */

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

.brand-mark {
  display: inline-flex;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 9px rgba(31, 58, 45, 0.14));
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.05;
  color: var(--ink);
}

.brand-sub {
  color: var(--muted-light);
  font-family: var(--font-ui);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand--light .brand-word {
  color: var(--cream);
}

.brand--light .brand-sub {
  color: rgba(248, 241, 228, 0.42);
}

.brand--light .brand-mark {
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.2));
}

.brand--compact .brand-sub {
  display: none;
}

.brand--compact .brand-word {
  font-size: 20px;
}

.brand--boot {
  flex-direction: column;
  gap: 16px;
}

.brand--boot .brand-word {
  font-size: 34px;
}

.brand-link {
  display: inline-flex;
  border-radius: 12px;
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(217, 93, 57, 0.2);
}

.btn--primary:hover {
  background: var(--coral-deep);
  box-shadow: 0 12px 24px rgba(189, 72, 40, 0.24);
}

.btn--ink {
  background: var(--forest);
  color: var(--cream);
}

.btn--ink:hover {
  background: var(--forest-deep);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  background: var(--white);
}

.btn--light {
  background: var(--cream);
  color: var(--forest);
}

.btn--light:hover {
  background: var(--white);
}

.btn--danger {
  background: var(--danger);
  color: var(--white);
}

.btn--lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 14.5px;
}

.btn--sm {
  min-height: 36px;
  gap: 6px;
  padding: 0 13px;
  font-size: 12.5px;
}

.btn--block {
  width: 100%;
}

.btn.is-busy {
  pointer-events: none;
}

.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  transition: color 160ms ease;
}

.text-button:hover {
  color: var(--coral);
}

.text-button--muted {
  color: var(--muted);
}

.text-button--danger {
  color: var(--danger);
}

.text-button--danger:hover {
  color: #8d2615;
}

.icon-button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.icon-button:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.icon-button--danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.icon-button--dark {
  color: rgba(248, 241, 228, 0.6);
}

.icon-button--dark:hover {
  background: rgba(248, 241, 228, 0.1);
  color: var(--cream);
}

/* ---------------------------------------------
   Forms
--------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
}

.field:last-child {
  margin-bottom: 0;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.4;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.input::placeholder {
  color: var(--muted-light);
}

.input:hover {
  border-color: var(--line-strong);
}

.input:focus {
  border-color: var(--forest-soft);
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 76, 59, 0.09);
}

.textarea {
  min-height: 84px;
  padding: 12px 14px;
  resize: vertical;
}

.select {
  padding-right: 34px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23788176' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.input-wrap {
  position: relative;
  display: block;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.input--with-icon {
  padding-left: 43px;
}

.input--with-action {
  padding-right: 49px;
}

.input-action {
  position: absolute;
  top: 50%;
  right: 7px;
  display: inline-flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.input-action:hover {
  background: var(--paper);
  color: var(--ink);
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.form-error {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border: 1px solid #f1d0c6;
  border-radius: 10px;
  background: var(--coral-pale);
  color: #a63c23;
  font-size: 12.5px;
  line-height: 1.5;
}

.is-shaking {
  animation: shake 380ms ease;
}

.form-error:empty {
  display: none;
}

/* ---------------------------------------------
   Boot, progress & toasts
--------------------------------------------- */

.boot-screen {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(217, 93, 57, 0.07), transparent 32%),
    var(--paper);
}

.boot-screen__text {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.boot-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.route-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  width: 100%;
  height: 2px;
  background: var(--coral);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    transform 380ms ease,
    opacity 180ms ease;
}

.route-progress.is-active {
  opacity: 1;
  transform: scaleX(0.78);
  transition:
    transform 2.4s cubic-bezier(0.1, 0.7, 0.3, 1),
    opacity 160ms ease;
}

.route-loading {
  display: flex;
  min-height: 60vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12.5px;
}

.toast-region {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 4000;
  display: flex;
  width: min(380px, calc(100vw - 36px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: var(--forest);
  color: var(--cream);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(8px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--error {
  background: #7e2d1d;
}

.toast--info {
  background: var(--forest-soft);
}

.toast__icon {
  display: inline-flex;
  margin-top: 1px;
  color: var(--coral-soft);
}

.connection-banner {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #7e2d1d;
  color: var(--cream);
  font-size: 12px;
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
}

/* ---------------------------------------------
   Login
--------------------------------------------- */

.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, 0.92fr);
  background: var(--paper);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 42px clamp(36px, 5vw, 76px) 34px;
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 93, 57, 0.16), transparent 28%),
    radial-gradient(circle at 12% 94%, rgba(167, 181, 154, 0.12), transparent 32%),
    linear-gradient(144deg, #294a39 0%, #1f3a2d 46%, #162a20 100%);
  color: var(--cream);
}

.login-story::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 241, 228, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 241, 228, 0.032) 1px, transparent 1px);
  background-size: 74px 74px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

.login-story__grain {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  pointer-events: none;
}

.login-story__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.login-story__badge {
  padding: 6px 11px;
  border: 1px solid rgba(248, 241, 228, 0.16);
  border-radius: 999px;
  color: rgba(248, 241, 228, 0.62);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.login-story__body {
  position: relative;
  z-index: 2;
  width: min(610px, 100%);
  margin-top: auto;
  margin-bottom: auto;
  padding: 72px 0 46px;
}

.login-display {
  margin-bottom: 24px;
  color: var(--cream);
  font-size: clamp(48px, 5.4vw, 74px);
  line-height: 1.14;
}

.login-display em {
  color: #edb79f;
  font-family: var(--font-display);
}

.login-story__lead {
  max-width: 470px;
  color: rgba(248, 241, 228, 0.62);
  font-size: 14.5px;
  line-height: 1.85;
}

.login-features {
  display: grid;
  max-width: 610px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid rgba(248, 241, 228, 0.13);
}

.login-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 20px 18px 0 0;
}

.login-features li + li {
  padding-left: 18px;
  border-left: 1px solid rgba(248, 241, 228, 0.11);
}

.login-features li > span {
  margin-top: 2px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.login-features div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-features strong {
  color: rgba(248, 241, 228, 0.88);
  font-size: 12.5px;
  font-weight: 600;
}

.login-features small {
  color: rgba(248, 241, 228, 0.4);
  font-size: 10.5px;
  line-height: 1.5;
}

.login-story__map {
  position: absolute;
  right: -10%;
  bottom: 40px;
  z-index: 1;
  width: 72%;
  opacity: 0.82;
  pointer-events: none;
}

.login-story__map svg {
  width: 100%;
}

.login-story__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(248, 241, 228, 0.09);
  color: rgba(248, 241, 228, 0.32);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.login-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px clamp(28px, 4vw, 72px);
  background:
    radial-gradient(circle at 92% 4%, rgba(217, 93, 57, 0.08), transparent 26%),
    var(--paper);
}

.login-panel::after {
  position: absolute;
  right: -100px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(31, 58, 45, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(31, 58, 45, 0.025),
    0 0 0 84px rgba(31, 58, 45, 0.018);
  content: "";
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
}

.login-mobile-brand {
  display: none;
  margin-bottom: 38px;
}

.login-card__head {
  margin-bottom: 28px;
}

.login-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.login-heading .accent {
  margin-left: 1px;
}

.login-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.login-form .field {
  margin-bottom: 16px;
}

.login-form .input {
  min-height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 17px;
}

.login-retain {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-light);
  font-size: 10.5px;
}

.login-form .btn--primary {
  min-height: 52px;
  margin-top: 4px;
  border-radius: 14px;
  font-size: 14px;
}

.login-form .btn--primary .icon {
  transition: transform 180ms ease;
}

.login-form .btn--primary:hover .icon {
  transform: translateX(3px);
}

.login-form .form-error {
  margin: 0 0 10px;
}

.demo-access {
  margin-top: 28px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.47);
}

.demo-access__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px 9px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.demo-access__head small {
  color: var(--muted-light);
  font-size: 9.5px;
  letter-spacing: 0;
}

.demo-access__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.demo-account {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.demo-account:hover {
  border-color: var(--line);
  background: var(--white);
}

.demo-account.is-picked {
  border-color: var(--coral);
  background: var(--coral-pale);
}

.demo-account__role {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 9.5px;
}

.demo-account__identity {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: baseline;
  gap: 7px;
}

.demo-account__identity strong {
  font-size: 12px;
  font-weight: 600;
}

.demo-account__identity small {
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.demo-account > .icon {
  color: var(--muted-light);
}

.login-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 24px;
  color: var(--muted-light);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------
   Shell / site header
--------------------------------------------- */

.app-frame {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(31, 58, 45, 0.07);
  background: rgba(246, 241, 231, 0.84);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.site-header__inner {
  display: flex;
  width: min(var(--page-max), 100%);
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 20px;
  margin-right: auto;
}

.site-nav a {
  position: relative;
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-install {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px 5px 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.user-chip:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.user-chip__meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.user-chip__meta strong {
  max-width: 90px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip__meta small {
  color: var(--muted-light);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.user-chip > .icon {
  color: var(--muted-light);
}

.mobile-avatar {
  display: none;
}

.mobile-tabbar {
  display: none;
}

.page {
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  padding: 44px 32px 90px;
}

/* ---------------------------------------------
   Avatars, tags & badges
--------------------------------------------- */

.avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 58, 45, 0.06);
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.avatar--coral {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.avatar--sage {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.avatar--blue {
  background: var(--blue-soft);
  color: #4b6c80;
}

.avatar--gold {
  background: var(--gold-soft);
  color: #927034;
}

.avatar--xs {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

.avatar--sm {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.avatar--md {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.avatar--lg {
  width: 54px;
  height: 54px;
  font-size: 19px;
}

.avatar--xl {
  width: 84px;
  height: 84px;
  font-size: 30px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
}

.category-tag,
.soft-tag,
.role-badge,
.status-pill,
.badge,
.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.5;
  white-space: nowrap;
}

.category-tag--coral {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.category-tag--sage {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.category-tag--blue {
  background: var(--blue-soft);
  color: #4b6c80;
}

.category-tag--gold {
  background: var(--gold-soft);
  color: #8a672e;
}

.soft-tag {
  background: var(--paper-deep);
  color: var(--muted);
}

.badge--all {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.badge--selected {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.badge--hidden {
  background: var(--paper-deep);
  color: var(--muted);
}

.role-badge--admin {
  background: var(--forest);
  color: var(--cream);
}

.role-badge--employee {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.status-pill--active {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.status-pill--active::before,
.status-pill--inactive::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill--inactive {
  background: var(--paper-deep);
  color: var(--muted);
}

.mini-tag {
  margin-left: 5px;
  background: var(--gold-soft);
  color: #8a672e;
}

/* ---------------------------------------------
   Empty states & skeletons
--------------------------------------------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 24px;
  text-align: center;
}

.empty-state__art {
  position: relative;
  display: flex;
  width: 104px;
  height: 104px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.empty-state__disc {
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.empty-state__disc::after {
  position: absolute;
  inset: 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  content: "";
}

.empty-state__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 8px 20px rgba(31, 58, 45, 0.18);
}

.empty-state__dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.empty-state__dot--a {
  top: 16px;
  right: 10px;
}

.empty-state__dot--b {
  bottom: 20px;
  left: 4px;
  width: 4px;
  height: 4px;
  background: var(--sage);
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.empty-state p {
  max-width: 360px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.empty-state .btn {
  margin-top: 18px;
}

.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.skeleton-stack {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
}

.skeleton {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #eee7da 25%, #f6f1e7 50%, #eee7da 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton--avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.skeleton--line {
  height: 11px;
  margin: 4px 0;
}

.skeleton--w25 {
  width: 25%;
}

.skeleton--w40 {
  width: 40%;
}

.skeleton--w60 {
  width: 60%;
}

.skeleton--w90 {
  width: 90%;
}

/* ---------------------------------------------
   Animations
--------------------------------------------- */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------
   Employee directory
--------------------------------------------- */

.directory-page {
  animation: riseIn 420ms cubic-bezier(0.18, 0.8, 0.25, 1) both;
}

.directory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.directory-head__copy {
  max-width: 680px;
}

.directory-head .page-sub {
  max-width: 540px;
}

.location-button {
  display: flex;
  min-width: 246px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  text-align: left;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.location-button:hover {
  border-color: var(--line-strong);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.location-button__icon {
  display: inline-flex;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.location-button.is-located .location-button__icon {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.location-button__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.location-button__copy small {
  color: var(--muted-light);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.location-button__copy strong {
  max-width: 155px;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-button__action {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
  transition: transform 300ms ease;
}

.location-button.is-loading .location-button__action {
  animation: spin 900ms linear infinite;
}

.directory-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 28px;
}

.directory-main {
  min-width: 0;
}

.directory-tools {
  position: relative;
}

.search-field {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-xs);
  color: var(--muted);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.search-field:focus-within {
  border-color: rgba(31, 58, 45, 0.42);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(31, 58, 45, 0.06);
}

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

.search-field input::placeholder {
  color: var(--muted-light);
}

.search-field input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-key {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 10px;
}

.search-field--compact {
  min-height: 44px;
  max-width: 340px;
  flex: 1;
  border-radius: 13px;
  background: var(--white);
}

.search-field--compact input {
  font-size: 12.5px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.filter-chips {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.filter-chip span {
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 9.5px;
  transition: color 160ms ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.filter-chip.is-active {
  background: var(--forest);
  color: var(--cream);
}

.filter-chip.is-active span {
  color: rgba(248, 241, 228, 0.55);
}

.filter-chips--small .filter-chip {
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.sort-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.sort-button:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.sort-button[aria-pressed="true"] {
  background: var(--paper-deep);
  color: var(--ink);
}

.result-summary {
  display: flex;
  min-height: 28px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 2px 12px;
  color: var(--muted-light);
  font-size: 11px;
  letter-spacing: 0.015em;
}

.result-summary__hint {
  color: var(--coral-deep);
}

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

.contact-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease;
}

.contact-card:hover {
  border-color: var(--line-strong);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-card:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.contact-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-card__identity {
  min-width: 0;
  flex: 1;
  padding-top: 1px;
}

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

.contact-name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-company {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.distance-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.contact-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.contact-line .icon {
  margin-top: 1px;
  color: var(--muted-light);
}

.contact-line span {
  min-width: 0;
}

.contact-line--address span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.contact-line--phone {
  width: fit-content;
  transition: color 160ms ease;
}

.contact-line--phone:hover {
  color: var(--coral-deep);
}

.contact-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 2px;
  padding: 8px 9px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.contact-note .icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--coral);
}

.contact-note span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.contact-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}

.updated-label {
  flex: 0 0 auto;
  color: var(--muted-light);
  font-size: 9.5px;
  letter-spacing: 0.01em;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-actions .btn {
  min-height: 33px;
  padding: 0 11px;
  font-size: 11px;
}

.card-actions .btn--ghost {
  border-color: transparent;
  background: transparent;
}

.card-actions .btn--ghost:hover {
  border-color: var(--line);
  background: var(--paper);
}

.directory-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 2px;
}

.side-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.side-card--forest {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 4%, rgba(217, 93, 57, 0.2), transparent 31%),
    linear-gradient(150deg, #2a4b3a 0%, #1f3a2d 58%, #172c22 100%);
  color: var(--cream);
  box-shadow: 0 20px 38px rgba(31, 58, 45, 0.16);
}

.side-card--forest::before {
  position: absolute;
  right: -66px;
  bottom: -76px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(248, 241, 228, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(248, 241, 228, 0.025),
    0 0 0 56px rgba(248, 241, 228, 0.018);
  content: "";
}

.side-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(248, 241, 228, 0.44);
}

.side-card__top .eyebrow {
  margin: 0;
}

.side-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.side-number span {
  color: rgba(248, 241, 228, 0.46);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 23px 0 20px;
}

.breakdown-row {
  display: grid;
  align-items: center;
  grid-template-columns: 40px minmax(0, 1fr) 19px;
  gap: 9px;
  color: rgba(248, 241, 228, 0.54);
  font-size: 10px;
}

.breakdown-row strong {
  color: rgba(248, 241, 228, 0.72);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  text-align: right;
}

.breakdown-track {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(248, 241, 228, 0.12);
}

.breakdown-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.breakdown-row[data-tone="sage"] .breakdown-track > span {
  background: var(--sage);
}

.breakdown-row[data-tone="blue"] .breakdown-track > span {
  background: #8aaab8;
}

.breakdown-row[data-tone="gold"] .breakdown-track > span {
  background: var(--gold);
}

.side-card__foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid rgba(248, 241, 228, 0.11);
  color: rgba(248, 241, 228, 0.4);
}

.side-card__foot p {
  font-size: 9.5px;
  line-height: 1.65;
}

.side-card--tip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.side-tip-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.side-card--tip h3 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.side-card--tip p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.side-tip-rule {
  height: 1px;
  margin: 17px 0 10px;
  background: var(--line);
}

.side-tip-foot {
  color: var(--muted-light);
  font-size: 9px;
  letter-spacing: 0.03em;
}

/* ---------------------------------------------
   Contact detail
--------------------------------------------- */

.detail-page {
  animation: fadeIn 380ms ease both;
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  transition: color 160ms ease;
}

.back-link:hover {
  color: var(--ink);
}

.detail-updated {
  color: var(--muted-light);
  font-size: 10px;
}

.detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 4%, rgba(217, 93, 57, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.6);
}

.detail-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.detail-identity__copy {
  min-width: 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.detail-name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-company {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.detail-hero__actions .btn {
  min-height: 46px;
}

.detail-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 18px;
  margin-top: 18px;
}

.detail-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.detail-card {
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.detail-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.detail-card__head .field-label {
  flex: 1;
}

.detail-card__head .icon-button {
  width: 32px;
  height: 32px;
}

.detail-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--paper-deep);
  color: var(--muted);
}

.detail-icon--coral {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.detail-icon--sage {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.detail-icon--gold {
  background: var(--gold-soft);
  color: #8a672e;
}

.detail-icon--blue {
  background: var(--blue-soft);
  color: #4b6c80;
}

.detail-address {
  max-width: 680px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.detail-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}

.precision-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-light);
  font-size: 10px;
}

.detail-phone {
  display: inline-block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(25px, 2.6vw, 31px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  transition: color 160ms ease;
}

.detail-phone:hover {
  color: var(--coral-deep);
}

.detail-hint {
  margin-top: 5px;
  color: var(--muted-light);
  font-size: 10.5px;
}

.detail-note {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.visibility-detail strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.visibility-detail p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.assigned-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.assigned-person {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 10.5px;
}

.route-card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 93, 57, 0.17), transparent 31%),
    linear-gradient(150deg, #294a39 0%, #1f3a2d 64%, #172c22 100%);
  color: var(--cream);
  box-shadow: 0 22px 48px rgba(31, 58, 45, 0.16);
}

.route-card__art {
  position: absolute;
  top: 12px;
  right: -14px;
  width: 72%;
  opacity: 0.8;
  pointer-events: none;
}

.route-card__art svg {
  width: 100%;
}

.route-card > *:not(.route-card__art) {
  position: relative;
  z-index: 1;
}

.route-card h2 {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.route-card__copy {
  margin-top: 9px;
  color: rgba(248, 241, 228, 0.55);
  font-size: 11.5px;
  line-height: 1.75;
}

.route-modes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin: 18px 0 20px;
  color: rgba(248, 241, 228, 0.55);
  font-size: 9.5px;
}

.route-modes span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.route-card .btn--light {
  min-height: 48px;
  border-radius: 14px;
}

.route-card__foot {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 12px;
  color: rgba(248, 241, 228, 0.34);
  font-size: 9px;
  line-height: 1.55;
}

.meta-card {
  margin-top: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.45);
}

.meta-card .field-label {
  margin-bottom: 11px;
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
}

.meta-row span {
  color: var(--muted);
}

.meta-row strong {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  text-align: right;
}

.detail-sticky-actions {
  display: none;
}

.detail-page--empty {
  max-width: 640px;
  margin: 30px auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------
   Admin shell
--------------------------------------------- */

.admin-frame {
  min-height: 100vh;
  background: var(--paper);
}

.admin-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: flex;
  width: 264px;
  flex-direction: column;
  padding: 30px 20px 22px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 18% 100%, rgba(217, 93, 57, 0.13), transparent 31%),
    linear-gradient(162deg, #294a39 0%, #1f3a2d 47%, #172c22 100%);
  color: var(--cream);
}

.admin-sidebar::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 241, 228, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 241, 228, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 66%);
  pointer-events: none;
}

.admin-sidebar > * {
  position: relative;
  z-index: 1;
}

.admin-sidebar .brand {
  padding: 0 8px;
}

.sidebar-label {
  margin: 42px 10px 11px;
  color: rgba(248, 241, 228, 0.32);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 11px;
  color: rgba(248, 241, 228, 0.54);
  font-size: 12.5px;
  font-weight: 500;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.sidebar-nav a:hover {
  background: rgba(248, 241, 228, 0.06);
  color: var(--cream);
}

.sidebar-nav a.is-active {
  background: rgba(248, 241, 228, 0.1);
  color: var(--cream);
}

.sidebar-active-dot {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--coral);
}

.sidebar-note {
  position: relative;
  margin: 32px 6px 0;
  padding: 16px 15px;
  border: 1px solid rgba(248, 241, 228, 0.09);
  border-radius: 14px;
  background: rgba(248, 241, 228, 0.035);
}

.sidebar-note__icon {
  display: inline-flex;
  color: var(--coral);
}

.sidebar-note p {
  margin-top: 9px;
  color: rgba(248, 241, 228, 0.42);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.7;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}

.sidebar-preview {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 9px;
  color: rgba(248, 241, 228, 0.38);
  font-size: 10px;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.sidebar-preview:hover {
  background: rgba(248, 241, 228, 0.05);
  color: rgba(248, 241, 228, 0.7);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 12px 7px 0;
  border-top: 1px solid rgba(248, 241, 228, 0.1);
}

.sidebar-user .avatar {
  border-color: transparent;
}

.sidebar-user > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.3;
}

.sidebar-user strong {
  overflow: hidden;
  color: rgba(248, 241, 228, 0.8);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user small {
  color: rgba(248, 241, 228, 0.32);
  font-size: 9px;
}

.admin-body {
  width: calc(100% - 264px);
  min-height: 100vh;
  margin-left: 264px;
}

.admin-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 44px 40px 80px;
}

.admin-mobile-header {
  display: none;
}

.admin-page {
  animation: riseIn 380ms cubic-bezier(0.18, 0.8, 0.25, 1) both;
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.admin-page-head .page-title {
  font-size: clamp(34px, 3.7vw, 46px);
}

.admin-page-head__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

/* ---------------------------------------------
   Admin overview
--------------------------------------------- */

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

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.stat-card::after {
  position: absolute;
  right: -30px;
  bottom: -52px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(31, 58, 45, 0.05);
  border-radius: 50%;
  content: "";
}

.stat-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--paper-deep);
  color: var(--muted);
}

.stat-icon--coral {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.stat-icon--sage {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.stat-icon--blue {
  background: var(--blue-soft);
  color: #4b6c80;
}

.stat-icon--gold {
  background: var(--gold-soft);
  color: #8a672e;
}

.stat-label {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 550;
}

.stat-value {
  display: block;
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.stat-foot {
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.admin-overview-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.65);
}

.recent-panel {
  padding: 22px;
}

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

.panel-head .eyebrow {
  margin-bottom: 5px;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.panel-head > .text-button {
  margin-top: 15px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.panel-head > .text-button:hover {
  color: var(--coral-deep);
}

.panel-head--compact {
  margin-bottom: 8px;
}

.panel-head--compact h2 {
  font-size: 20px;
}

.recent-list {
  display: flex;
  flex-direction: column;
}

.recent-item {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 11px;
  margin: 0 -8px;
  padding: 9px 8px;
  border-radius: 12px;
  transition: background-color 160ms ease;
}

.recent-item + .recent-item {
  border-top: 1px solid var(--line);
}

.recent-item:hover {
  background: var(--paper);
}

.recent-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.recent-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.recent-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-time {
  flex: 0 0 auto;
  color: var(--muted-light);
  font-size: 9px;
}

.recent-item > .icon {
  color: var(--muted-light);
}

.overview-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insight-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 93, 57, 0.19), transparent 33%),
    linear-gradient(150deg, #294a39 0%, #1f3a2d 64%, #172c22 100%);
  color: var(--cream);
  box-shadow: 0 18px 36px rgba(31, 58, 45, 0.14);
}

.insight-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(248, 241, 228, 0.38);
}

.insight-card__top .eyebrow {
  margin: 0;
}

.insight-card h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-top: 19px;
}

.donut {
  display: flex;
  width: 122px;
  height: 122px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--coral) 0 calc(var(--all) * 1%),
    var(--sage) 0 calc(var(--all-selected) * 1%),
    rgba(248, 241, 228, 0.16) 0
  );
  transform: rotate(-35deg);
}

.donut__hole {
  display: flex;
  width: 86px;
  height: 86px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1e382b;
  transform: rotate(35deg);
}

.donut__hole strong {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
}

.donut__hole span {
  margin-top: 4px;
  color: rgba(248, 241, 228, 0.38);
  font-size: 8.5px;
}

.donut-legend {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 9px;
}

.donut-legend > div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(248, 241, 228, 0.47);
  font-size: 9.5px;
}

.donut-legend strong {
  margin-left: auto;
  color: rgba(248, 241, 228, 0.72);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
}

.legend-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.legend-dot--coral {
  background: var(--coral);
}

.legend-dot--sage {
  background: var(--sage);
}

.legend-dot--ghost {
  background: rgba(248, 241, 228, 0.25);
}

.insight-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid rgba(248, 241, 228, 0.1);
  color: rgba(248, 241, 228, 0.52);
  font-size: 10px;
  transition: color 160ms ease;
}

.insight-link:hover {
  color: var(--cream);
}

.quick-panel {
  padding: 18px;
}

.quick-action {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 5px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.quick-action__icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
}

.quick-action > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.quick-action strong {
  font-size: 10.5px;
  font-weight: 600;
}

.quick-action small {
  color: var(--muted-light);
  font-size: 9px;
}

.quick-action > .icon {
  color: var(--muted-light);
}

.quick-action:hover strong {
  color: var(--coral-deep);
}

/* ---------------------------------------------
   Admin tables
--------------------------------------------- */

.table-panel {
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.table-toolbar .filter-chips {
  justify-content: flex-end;
  flex-wrap: wrap;
  overflow: visible;
}

.table-toolbar__hint {
  color: var(--muted-light);
  font-size: 10px;
}

.table-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 9.5px;
}

.table-summary > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table th:first-child,
.admin-table td:first-child {
  padding-left: 20px;
}

.admin-table th:last-child,
.admin-table td:last-child {
  padding-right: 20px;
}

.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(229, 220, 205, 0.68);
  color: var(--ink-soft);
  font-size: 11px;
  vertical-align: middle;
}

.admin-table tbody tr {
  cursor: pointer;
  transition: background-color 160ms ease;
}

.admin-table tbody tr:hover {
  background: rgba(246, 241, 231, 0.62);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 130px;
}

.table-person > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.table-person strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.table-person small {
  overflow: hidden;
  max-width: 180px;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-phone {
  font-family: var(--font-mono);
  font-size: 9.5px;
  white-space: nowrap;
}

.table-address {
  max-width: 260px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-note {
  max-width: 260px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.row-actions .icon-button {
  width: 30px;
  height: 30px;
}

.row-actions--text {
  gap: 10px;
}

.row-actions--text .text-button {
  font-size: 10px;
  white-space: nowrap;
}

.table-number {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.table-unit {
  margin-left: 2px;
  color: var(--muted-light);
  font-size: 9px;
}

.table-muted {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}

.col-actions {
  width: 92px;
  text-align: right;
}

.admin-table td:last-child {
  text-align: right;
}

.admin-table .badge {
  font-size: 9px;
}

.admin-table--team td {
  padding-top: 15px;
  padding-bottom: 15px;
}

.team-summary {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 16px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
}

.team-summary__metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.team-summary__metric strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.team-summary__metric span {
  color: var(--muted);
  font-size: 10px;
}

.team-summary__divider {
  width: 1px;
  height: 25px;
  background: var(--line);
}

.team-summary__note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--muted-light);
  font-size: 9.5px;
}

.error-panel {
  padding: 18px;
}

.error-panel .empty-state {
  padding: 30px 24px;
}

/* ---------------------------------------------
   Modals
--------------------------------------------- */

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 18, 0.52);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.modal-panel {
  position: relative;
  display: flex;
  width: min(560px, 100%);
  max-height: min(88vh, 900px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 230ms ease,
    transform 260ms cubic-bezier(0.2, 0.7, 0.25, 1);
}

.modal-layer.is-open .modal-backdrop {
  opacity: 1;
}

.modal-layer.is-open .modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-panel--small {
  width: min(430px, 100%);
}

.modal-head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 25px 26px 0;
}

.modal-head .eyebrow {
  margin-bottom: 5px;
}

.modal-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.modal-close {
  margin-top: -5px;
  margin-right: -6px;
}

.modal-body {
  overflow-y: auto;
  padding: 18px 26px 22px;
  overscroll-behavior: contain;
}

.modal-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 26px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.94);
}

.modal-lead {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

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

.modal-layer:has(.modal-panel--sheet) {
  align-items: flex-end;
  padding: 0;
}

.modal-layer:has(.modal-panel--sheet) .modal-panel {
  width: min(550px, 100%);
  max-height: min(92dvh, 860px);
  border-radius: 26px 26px 0 0;
  transform: translateY(28px);
}

.modal-layer:has(.modal-panel--sheet).is-open .modal-panel {
  transform: translateY(0);
}

.sheet-handle {
  display: none;
  width: 38px;
  height: 4px;
  flex: 0 0 auto;
  align-self: center;
  margin-top: 9px;
  border-radius: 99px;
  background: var(--line-strong);
}

.modal-layer:has(.modal-panel--sheet) .sheet-handle {
  display: block;
}

.modal-layer:has(.modal-panel--sheet) .modal-head {
  padding-top: 15px;
}

.modal-layer:has(.modal-panel--drawer) {
  justify-content: flex-end;
  padding: 0;
}

.modal-layer:has(.modal-panel--drawer) .modal-panel {
  width: min(600px, 100%);
  height: 100%;
  max-height: 100dvh;
  border-radius: 0;
  transform: translateX(42px);
}

.modal-layer:has(.modal-panel--drawer).is-open .modal-panel {
  transform: translateX(0);
}

.modal-layer:has(.modal-panel--drawer) .modal-head {
  padding: 27px 30px 0;
}

.modal-layer:has(.modal-panel--drawer) .modal-body {
  padding: 14px 30px 24px;
}

.modal-layer:has(.modal-panel--drawer) .modal-foot {
  padding-right: 30px;
  padding-left: 30px;
}

.confirm-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------------------------------------------
   Navigation sheet
--------------------------------------------- */

.nav-sheet__intro {
  margin-bottom: 18px;
}

.nav-sheet__intro .eyebrow {
  margin-bottom: 3px;
}

.nav-sheet__intro h2 {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.nav-sheet__destination {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.nav-sheet__destination strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.nav-sheet__destination span {
  margin-left: 7px;
  color: var(--muted-light);
}

.nav-sheet__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
}

.nav-sheet__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.55;
}

.travel-mode {
  margin-bottom: 18px;
}

.travel-mode .field-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}

.segmented__item {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.segmented__item:hover {
  color: var(--ink);
}

.segmented__item.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(31, 58, 45, 0.08);
}

.map-apps__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.map-apps__head .field-label {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-apps__head > span {
  color: var(--muted-light);
  font-size: 8.5px;
  text-align: right;
}

.map-app-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.map-app {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.map-app:hover {
  border-color: var(--line-strong);
  background: var(--white);
  transform: translateX(2px);
}

.map-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.map-mark--auto {
  background: var(--forest);
  color: var(--cream);
}

.map-mark--amap {
  background: #e5f0fb;
  color: #2f76b5;
}

.map-mark--baidu {
  background: #e8efff;
  color: #345cba;
}

.map-mark--tencent {
  background: #e3f4ea;
  color: #2c8a57;
}

.map-mark--apple {
  background: #edf1ed;
  color: #3e5546;
}

.map-mark--google {
  background: #f2eee5;
  color: #5e6d5d;
  font-family: var(--font-ui);
  font-size: 16px;
}

.map-app__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.map-app__copy strong {
  font-size: 12px;
  font-weight: 600;
}

.map-app__copy small {
  overflow: hidden;
  color: var(--muted-light);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-app__chevron {
  flex: 0 0 auto;
  color: var(--muted-light);
}

.nav-sheet__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.nav-sheet__foot .text-button {
  color: var(--muted);
  font-size: 10.5px;
}

.nav-sheet__foot .text-button:hover {
  color: var(--coral-deep);
}

.sheet-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 13px;
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.65;
}

.modal-panel--sheet .modal-head {
  padding-bottom: 0;
}

.modal-panel--sheet .modal-close {
  margin-top: 0;
}

/* ---------------------------------------------
   Contact editor
--------------------------------------------- */

.contact-editor {
  padding-top: 3px;
}

.editor-intro {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.form-section {
  margin-bottom: 24px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.form-section__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.form-step {
  display: inline-flex;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--paper-deep);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.form-section__head h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.form-section__head p {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.55;
}

.form-section .field {
  margin-bottom: 14px;
}

.form-section .field:last-child {
  margin-bottom: 0;
}

.category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-option {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 11px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.category-option:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.category-option.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
}

.location-capture {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(246, 241, 231, 0.55);
}

.location-capture.has-location {
  border-style: solid;
  border-color: var(--sage);
  background: var(--sage-soft);
}

.location-capture__icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--white);
  color: var(--muted);
}

.location-capture.has-location .location-capture__icon {
  color: var(--sage-deep);
}

.location-capture__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.location-capture__copy strong {
  font-size: 11px;
  font-weight: 600;
}

.location-capture__copy small {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-capture__actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.location-capture__actions .text-button {
  font-size: 9.5px;
}

.visibility-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.visibility-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.66);
  text-align: left;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.visibility-option:hover {
  border-color: var(--line-strong);
  background: var(--white);
}

.visibility-option.is-active {
  border-color: var(--forest);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--forest);
}

.visibility-option__icon {
  display: inline-flex;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
}

.visibility-option.is-active .visibility-option__icon {
  background: var(--forest);
  color: var(--cream);
}

.visibility-option > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.visibility-option strong {
  font-size: 11.5px;
  font-weight: 600;
}

.visibility-option small {
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.45;
}

.radio-dot {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 4px var(--white);
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.visibility-option.is-active .radio-dot {
  border-color: var(--coral);
  background: var(--coral);
}

.employee-picker {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(246, 241, 231, 0.58);
}

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

.employee-picker__head > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.employee-picker__head strong {
  font-size: 11px;
  font-weight: 600;
}

.employee-picker__head small {
  color: var(--muted-light);
  font-size: 9px;
}

.employee-picker__head .text-button {
  font-size: 9.5px;
}

.employee-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--muted);
}

.employee-search input {
  width: 100%;
  height: 33px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10.5px;
}

.employee-list {
  display: grid;
  max-height: 190px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  overflow-y: auto;
}

.employee-choice {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.employee-choice:hover {
  background: var(--white);
}

.employee-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.employee-choice > span:nth-of-type(1) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.employee-choice strong {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-choice small {
  overflow: hidden;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-indicator {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--white);
  color: transparent;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.employee-choice input:checked ~ .check-indicator {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
}

.employee-choice:has(input:checked) {
  border-color: rgba(31, 58, 45, 0.14);
  background: var(--sage-soft);
}

.inline-empty {
  padding: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.credentials-modal .credential-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.credential-row span {
  flex: 0 0 64px;
  color: var(--muted);
  font-size: 9.5px;
}

.credential-row strong {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.install-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 11px;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.6;
}

/* ---------------------------------------------
   Profile & settings
--------------------------------------------- */

.profile-page {
  animation: riseIn 380ms cubic-bezier(0.18, 0.8, 0.25, 1) both;
}

.profile-head {
  margin-bottom: 28px;
}

.profile-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.account-card__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.account-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-name-row h2 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.account-username {
  margin-top: 1px;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 10px;
}

.account-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9.5px;
}

.account-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.settings-card {
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
}

.settings-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 17px;
}

.settings-icon {
  display: inline-flex;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.settings-icon--coral {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.settings-card__head h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.settings-card__head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.settings-form .field {
  margin-bottom: 13px;
}

.settings-form__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
}

.install-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.install-os {
  display: inline-flex;
  min-width: 54px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 9px;
}

.install-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.install-copy strong {
  font-size: 11px;
  font-weight: 600;
}

.install-copy small {
  color: var(--muted-light);
  font-size: 9px;
}

.profile-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-note {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 93, 57, 0.2), transparent 33%),
    linear-gradient(150deg, #294a39 0%, #1f3a2d 64%, #172c22 100%);
  color: var(--cream);
}

.profile-note::after {
  position: absolute;
  right: -50px;
  bottom: -64px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(248, 241, 228, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(248, 241, 228, 0.025),
    0 0 0 48px rgba(248, 241, 228, 0.014);
  content: "";
}

.profile-quote {
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.55;
}

.profile-note__rule {
  width: 34px;
  height: 1px;
  margin: 19px 0 13px;
  background: var(--coral);
}

.profile-note__copy {
  max-width: 240px;
  color: rgba(248, 241, 228, 0.4);
  font-size: 9.5px;
  line-height: 1.75;
}

.profile-security {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.profile-security > span {
  color: var(--sage-deep);
}

.profile-security strong {
  font-size: 10.5px;
  font-weight: 600;
}

.profile-security p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.65;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.install-steps > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.install-steps span {
  display: inline-flex;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 9px;
}

.install-steps p {
  color: var(--ink-soft);
  font-size: 11px;
}

/* ---------------------------------------------
   Standalone (change password, errors)
--------------------------------------------- */

.standalone-page {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 93, 57, 0.08), transparent 34%),
    var(--paper);
}

.standalone-page::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 58, 45, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 58, 45, 0.026) 1px, transparent 1px);
  background-size: 68px 68px;
  content: "";
  mask-image: radial-gradient(ellipse at center, black, transparent 73%);
  pointer-events: none;
}

.standalone-top {
  position: absolute;
  top: 26px;
  right: 30px;
  left: 30px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.standalone-card {
  position: relative;
  z-index: 1;
  width: min(450px, 100%);
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(251, 248, 241, 0.86);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.standalone-card--center {
  text-align: center;
}

.standalone-card--center .empty-state {
  padding: 10px 0 4px;
}

.standalone-icon {
  display: inline-flex;
  width: 47px;
  height: 47px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.standalone-card h1 {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.standalone-lead {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.standalone-form .field {
  margin-bottom: 14px;
}

.standalone-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.boot-error .standalone-card {
  text-align: center;
}

.boot-error .standalone-icon {
  margin-right: auto;
  margin-left: auto;
}

.boot-error .standalone-card .btn {
  margin-bottom: 0;
}

/* ---------------------------------------------
   Responsive
--------------------------------------------- */

/* ---------------------------------------------
   WeChat importer
--------------------------------------------- */

.wechat-import-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.wechat-import-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.wechat-import-intro h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.wechat-import-intro p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.wechat-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
}

.wechat-steps > div {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px;
  border-radius: 9px;
  background: var(--paper);
}

.wechat-steps span {
  display: inline-flex;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 8px;
}

.wechat-steps p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.wechat-source {
  min-height: 124px;
  font-size: 12px;
  line-height: 1.6;
}

.wechat-source-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: -8px;
}

.wechat-source-actions #wechat-parse {
  margin-left: auto;
}

.wechat-status {
  min-height: 18px;
  margin: 9px 0 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.wechat-ocr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(246, 241, 231, 0.65);
}

.wechat-ocr__body {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
}

.wechat-ocr__icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--white);
  color: var(--sage-deep);
}

.wechat-ocr__body strong {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
}

.wechat-ocr__body small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.wechat-ocr__actions {
  flex: 0 0 auto;
}

.wechat-ocr__actions .btn {
  min-height: 33px;
  padding: 0 10px;
  font-size: 10px;
}

.wechat-ocr-note {
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.55;
}

.wechat-preview {
  margin-top: 13px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.wechat-preview__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.wechat-preview__head > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wechat-preview__head strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.wechat-preview__head small {
  color: var(--muted-light);
  font-size: 9px;
}

.wechat-preview__head .text-button {
  font-size: 10px;
}

.wechat-records {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wechat-record {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.wechat-record__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.wechat-record__select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.wechat-record__select input {
  width: 14px;
  height: 14px;
  accent-color: var(--coral);
}

.wechat-record__head [data-record-remove] {
  margin-left: auto;
  font-size: 9.5px;
}

.coord-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 8.5px;
  white-space: nowrap;
}

.wechat-record .field {
  gap: 4px;
  margin-bottom: 9px;
}

.wechat-record .field-label {
  font-size: 9.5px;
}

.wechat-record .input {
  min-height: 38px;
  border-radius: 9px;
  font-size: 11.5px;
}

.wechat-record .form-grid {
  gap: 8px;
}

.record-warnings {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.record-warnings span {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--coral-pale);
  color: #a63c23;
  font-size: 8.5px;
}

.wechat-settings {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.wechat-settings .field {
  margin-bottom: 0;
}

.wechat-settings .select {
  padding-right: 30px;
}

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

.wechat-visibility .visibility-option {
  min-height: 38px;
  justify-content: center;
  padding: 5px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  text-align: center;
}

.wechat-visibility .visibility-option.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
  box-shadow: none;
}

.wechat-visibility .visibility-option:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.wechat-employees {
  margin-top: 10px;
}

.contact-line--empty {
  color: var(--muted-light);
}

.contact-line--empty .icon {
  opacity: 0.7;
}

.detail-phone--empty {
  color: var(--muted-light);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.01em;
}

.nav-sheet__no-phone {
  color: var(--muted-light);
  font-size: 10px;
}

.contact-editor .optional {
  margin-left: 3px;
}

@media (max-width: 760px) {
  .wechat-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .wechat-steps > div {
    align-items: center;
  }

  .wechat-record .form-grid--two {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .wechat-record .field {
    margin-bottom: 8px;
  }

  .wechat-source-actions {
    flex-wrap: wrap;
  }

  .wechat-source-actions #wechat-parse {
    flex: 1;
  }

  .wechat-ocr {
    align-items: flex-start;
    flex-direction: column;
  }

  .wechat-ocr__actions {
    width: 100%;
  }

  .wechat-ocr__actions .btn {
    width: 100%;
  }

  .wechat-visibility {
    grid-template-columns: minmax(0, 1fr);
  }

  .wechat-visibility .visibility-option {
    justify-content: flex-start;
    padding-left: 11px;
    text-align: left;
  }
}

@media (max-width: 1180px) {
  .admin-sidebar {
    width: 236px;
  }

  .admin-body {
    width: calc(100% - 236px);
    margin-left: 236px;
  }

  .admin-content {
    padding: 38px 28px 76px;
  }

  .directory-grid {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 20px;
  }

  .contact-grid {
    gap: 13px;
  }

  .contact-card {
    padding: 17px;
  }

  .contact-name {
    font-size: 20px;
  }

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

@media (max-width: 1020px) {
  .login-page {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
  }

  .login-story {
    padding-right: 42px;
    padding-left: 42px;
  }

  .login-display {
    font-size: 52px;
  }

  .login-features {
    margin-top: 40px;
  }

  .login-features li {
    display: block;
  }

  .login-features li > span {
    display: block;
    margin-bottom: 5px;
  }

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

  .directory-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }

  .side-card--forest {
    grid-row: span 1;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .admin-overview-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

.modal-open .toast-region {
  bottom: calc(env(safe-area-inset-bottom) + 104px);
}

@media (max-width: 900px) {
  .admin-sidebar {
    display: none;
  }

  body[data-route="contact"] .mobile-tabbar {
    display: none;
  }

  body[data-route="contact"] .toast-region {
    bottom: calc(env(safe-area-inset-bottom) + 82px);
  }

  .admin-body {
    width: 100%;
    margin-left: 0;
  }

  .admin-mobile-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(68px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 22px 0;
    border-bottom: 1px solid rgba(31, 58, 45, 0.07);
    background: rgba(246, 241, 231, 0.86);
    backdrop-filter: blur(18px);
  }

  .admin-content {
    padding: 30px 22px 105px;
  }

  .admin-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .insight-card,
  .quick-panel {
    height: 100%;
  }

  .admin-page {
    padding-bottom: 10px;
  }

  .site-header__inner {
    padding: 0 22px;
  }

  .site-nav {
    gap: 20px;
  }

  .page {
    padding: 34px 22px 110px;
  }

  .mobile-tabbar {
    position: fixed;
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 14px;
    z-index: 80;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-around;
    padding: 5px 8px;
    border: 1px solid rgba(229, 220, 205, 0.9);
    border-radius: 19px;
    background: rgba(251, 248, 241, 0.9);
    box-shadow: 0 12px 32px rgba(31, 58, 45, 0.12);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }

  .mobile-tabbar a {
    display: flex;
    min-width: 70px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 10px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 9.5px;
    transition:
      background-color 160ms ease,
      color 160ms ease;
  }

  .mobile-tabbar a.is-active {
    background: var(--forest);
    color: var(--cream);
  }

  .mobile-tabbar--admin {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: initial;
  }

  .mobile-tabbar--admin a {
    min-width: 0;
    padding: 5px 4px;
  }

  .toast-region {
    bottom: calc(env(safe-area-inset-bottom) + 86px);
  }

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

  .detail-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
    align-items: start;
  }

  .detail-aside .meta-card {
    margin-top: 0;
  }

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

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

@media (max-width: 760px) {
  .login-page {
    display: block;
    min-height: 100vh;
  }

  .login-story {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    align-items: flex-start;
    padding: max(34px, env(safe-area-inset-top)) 22px 38px;
  }

  .login-panel::after {
    right: -150px;
    bottom: -160px;
    opacity: 0.6;
  }

  .login-card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding-top: 10px;
  }

  .login-mobile-brand {
    display: flex;
    margin-bottom: 44px;
  }

  .login-heading {
    font-size: 34px;
  }

  .login-sub {
    font-size: 12px;
  }

  .login-form .input {
    min-height: 53px;
    font-size: 16px;
  }

  .login-privacy {
    margin-top: 22px;
  }

  .site-header__inner {
    min-height: 66px;
    gap: 14px;
    padding: 0 18px;
  }

  .site-nav {
    display: none;
  }

  .site-actions .user-chip {
    display: none;
  }

  .site-actions .site-install {
    display: none;
  }

  .mobile-avatar {
    display: inline-flex;
  }

  .page {
    padding: 28px 18px 110px;
  }

  .directory-head {
    display: block;
    margin-bottom: 22px;
  }

  .page-title {
    font-size: clamp(31px, 8.5vw, 38px);
  }

  .page-sub {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.65;
  }

  .directory-head .location-button {
    width: 100%;
    margin-top: 18px;
  }

  .directory-head__copy {
    max-width: 100%;
  }

  .search-field {
    min-height: 50px;
    border-radius: 14px;
  }

  .search-field input {
    font-size: 16px;
  }

  .search-key {
    display: none;
  }

  .filter-row {
    align-items: center;
    gap: 6px;
    margin-top: 9px;
  }

  .filter-chip {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .sort-button {
    padding: 5px 7px;
  }

  .result-summary {
    margin-top: 17px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .contact-card {
    gap: 13px;
    padding: 16px;
    border-radius: 20px;
  }

  .contact-card:hover {
    transform: none;
  }

  .contact-name {
    font-size: 21px;
  }

  .contact-line {
    font-size: 12px;
  }

  .contact-card__foot {
    padding-top: 11px;
  }

  .updated-label {
    display: none;
  }

  .card-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .card-actions .btn {
    min-height: 35px;
    padding: 0 12px;
  }

  .directory-aside {
    display: none;
  }

  .detail-topline {
    margin-bottom: 12px;
  }

  .detail-hero {
    display: block;
    padding: 18px;
    border-radius: 22px;
  }

  .detail-identity {
    gap: 13px;
  }

  .detail-name {
    font-size: 36px;
  }

  .detail-hero__actions {
    display: none;
  }

  .avatar--xl {
    width: 68px;
    height: 68px;
    font-size: 25px;
  }

  .detail-grid {
    margin-top: 13px;
  }

  .detail-card {
    padding: 17px;
    border-radius: 20px;
  }

  .detail-address {
    font-size: 21px;
    line-height: 1.55;
  }

  .detail-phone {
    font-size: 26px;
  }

  .detail-card__foot {
    align-items: flex-start;
  }

  .precision-note {
    font-size: 9px;
  }

  .detail-card__foot .text-button {
    font-size: 10.5px;
  }

  .detail-aside {
    display: flex;
    flex-direction: column;
  }

  .detail-aside .meta-card {
    order: 2;
    margin-top: 0;
  }

  .route-card {
    padding: 20px;
    border-radius: 22px;
  }

  .route-card h2 {
    font-size: 26px;
  }

  .detail-sticky-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: flex;
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(229, 220, 205, 0.85);
    background: rgba(251, 248, 241, 0.94);
    backdrop-filter: blur(16px);
  }

  .detail-sticky-actions .btn {
    flex: 1;
    min-height: 46px;
  }

  .detail-page {
    padding-bottom: 66px;
  }

  .account-card {
    display: block;
    padding: 17px;
  }

  .account-card__identity {
    gap: 12px;
  }

  .account-name-row h2 {
    font-size: 22px;
  }

  .account-actions {
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
  }

  .settings-card {
    padding: 17px;
  }

  .profile-aside {
    display: flex;
    flex-direction: column;
  }

  .form-grid--two {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .input,
  .textarea {
    font-size: 16px;
  }

  .textarea {
    line-height: 1.5;
  }

  .admin-content {
    padding: 24px 16px 100px;
  }

  .admin-page-head {
    display: block;
    margin-bottom: 20px;
  }

  .admin-page-head__actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
  }

  .admin-page-head__actions .btn {
    width: auto;
    flex: 1 1 140px;
  }

  .stat-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 14px;
    border-radius: 16px;
  }

  .stat-value {
    font-size: 34px;
  }

  .stat-label {
    font-size: 9.5px;
  }

  .stat-foot {
    font-size: 8.5px;
  }

  .admin-overview-grid {
    gap: 12px;
    margin-top: 12px;
  }

  .recent-panel {
    padding: 17px;
  }

  .recent-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 4px;
  }

  .recent-copy {
    flex-basis: calc(100% - 60px);
  }

  .recent-item .badge {
    margin-left: 43px;
  }

  .recent-time {
    margin-left: auto;
  }

  .recent-item > .icon {
    display: none;
  }

  .overview-aside {
    display: flex;
    flex-direction: column;
  }

  .insight-card,
  .quick-panel {
    height: auto;
  }

  .team-summary {
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 14px;
  }

  .team-summary__note {
    width: 100%;
    margin-left: 0;
    padding-top: 9px;
    border-top: 1px dashed var(--line);
    line-height: 1.5;
  }

  .table-toolbar {
    display: block;
    padding: 13px;
  }

  .table-toolbar .search-field {
    max-width: none;
  }

  .table-toolbar .filter-chips {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 10px;
  }

  .table-toolbar__hint {
    display: block;
    margin-top: 9px;
  }

  .table-summary {
    padding: 8px 13px;
    font-size: 8.5px;
  }

  .table-summary > span:last-child {
    display: none;
  }

  .table-wrap {
    overflow: visible;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody {
    padding: 8px;
  }

  .admin-table tbody tr {
    margin-bottom: 8px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.7);
  }

  .admin-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .admin-table td,
  .admin-table th:first-child,
  .admin-table td:first-child {
    position: relative;
    padding: 5px 0 5px 72px;
    border: 0;
    text-align: left;
  }

  .admin-table td::before {
    position: absolute;
    top: 6px;
    left: 0;
    width: 62px;
    color: var(--muted-light);
    content: attr(data-label);
    font-size: 8.5px;
    letter-spacing: 0.03em;
  }

  .admin-table td:first-child {
    padding-left: 0;
    padding-bottom: 9px;
    margin-bottom: 5px;
    border-bottom: 1px dashed var(--line);
  }

  .admin-table td:first-child::before {
    display: none;
  }

  .admin-table td:last-child {
    padding-left: 0;
    padding-top: 9px;
    margin-top: 5px;
    border-top: 1px dashed var(--line);
    text-align: left;
  }

  .admin-table td:last-child::before {
    display: none;
  }

  .admin-table .row-actions {
    justify-content: flex-end;
  }

  .admin-table .row-actions--text {
    justify-content: flex-start;
  }

  .admin-table .badge {
    font-size: 9.5px;
  }

  .table-address,
  .table-note {
    max-width: none;
    white-space: normal;
  }

  .table-person {
    min-width: 0;
  }

  .table-person strong {
    font-size: 18px;
  }

  .table-person small {
    max-width: none;
  }

  .col-actions {
    width: auto;
  }

  .modal-layer {
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 94dvh;
    border-radius: 22px 22px 0 0;
    align-self: flex-end;
    transform: translateY(30px);
  }

  .modal-layer {
    align-items: flex-end;
  }

  .modal-head {
    padding: 20px 19px 0;
  }

  .modal-head h2 {
    font-size: 25px;
  }

  .modal-body {
    padding: 16px 19px 19px;
  }

  .modal-foot {
    padding: 13px 19px calc(16px + env(safe-area-inset-bottom));
  }

  .modal-foot .btn {
    flex: 1;
  }

  .modal-panel--small {
    width: 100%;
  }

  .modal-layer:has(.modal-panel--drawer) .modal-panel {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .modal-layer:has(.modal-panel--drawer) .modal-head {
    padding: 22px 19px 0;
  }

  .modal-layer:has(.modal-panel--drawer) .modal-body {
    padding: 14px 19px 20px;
  }

  .modal-layer:has(.modal-panel--drawer) .modal-foot {
    padding-right: 19px;
    padding-left: 19px;
  }

  .modal-layer:has(.modal-panel--sheet) .modal-panel {
    width: 100%;
    border-radius: 23px 23px 0 0;
  }

  .modal-layer:has(.modal-panel--sheet) .modal-head {
    padding-top: 12px;
  }

  .sheet-handle {
    display: block;
  }

  .modal-foot .btn--ghost {
    flex: 0 0 auto;
  }

  .employee-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-capture {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .location-capture__actions {
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
    padding-top: 2px;
    border-top: 1px dashed rgba(31, 58, 45, 0.08);
  }

  .form-section__head {
    margin-bottom: 13px;
  }

  .standalone-top {
    top: 18px;
    right: 18px;
    left: 18px;
  }

  .standalone-top .brand-sub {
    display: none;
  }

  .standalone-page {
    justify-content: flex-start;
    padding: 92px 16px 28px;
  }

  .standalone-card {
    padding: 23px 19px;
    border-radius: 22px;
  }

  .standalone-card h1 {
    font-size: 28px;
  }

  .nav-sheet__intro h2 {
    font-size: 26px;
  }

  .travel-mode .segmented__item {
    min-height: 42px;
    font-size: 10px;
  }

  .nav-sheet__foot {
    flex-wrap: wrap;
  }

  .toast-region {
    right: 14px;
    left: 14px;
    width: auto;
    bottom: calc(env(safe-area-inset-bottom) + 80px);
  }

  .toast {
    padding: 11px 12px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-header__inner {
    padding: 0 14px;
  }

  .brand-word {
    font-size: 20px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .login-panel {
    padding-right: 17px;
    padding-left: 17px;
  }

  .login-heading {
    font-size: 31px;
  }

  .detail-name {
    font-size: 32px;
  }

  .detail-identity {
    gap: 10px;
  }

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

  .stat-card {
    padding: 12px;
  }

  .admin-table td,
  .admin-table th:first-child,
  .admin-table td:first-child {
    padding-left: 64px;
  }

  .admin-table td::before {
    width: 56px;
  }
}
