@charset "UTF-8";

:root {
  --bg: #f3f6f2;
  --bg-tint: #edf3ed;
  --surface: #ffffff;
  --surface-2: #f8faf7;
  --surface-3: #f1f5f0;
  --ink: #14231f;
  --ink-2: #4c6059;
  --ink-3: #83948d;
  --ink-4: #a9b7b0;
  --line: #e4ebe5;
  --line-strong: #d4dfd7;
  --brand: #0d8a65;
  --brand-deep: #086d4f;
  --brand-soft: #e5f5ed;
  --mint: #3dd9a0;
  --navy: #0a2622;
  --navy-2: #0d2f29;
  --amber: #d48b26;
  --amber-soft: #fcf2df;
  --red: #cf5b49;
  --red-soft: #fcece9;
  --blue: #4d7e9a;
  --blue-soft: #eaf2f7;
  --shadow-sm: 0 1px 2px rgba(17, 48, 39, 0.04), 0 8px 24px rgba(17, 48, 39, 0.045);
  --shadow-md: 0 2px 4px rgba(17, 48, 39, 0.04), 0 18px 46px rgba(17, 48, 39, 0.09);
  --shadow-lg: 0 30px 80px rgba(7, 30, 24, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-w: 252px;
  --font: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at -10% -10%, rgba(24, 164, 122, 0.07), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(228, 162, 60, 0.05), transparent 50%),
    var(--bg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

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

img,
svg {
  display: block;
}

::selection {
  background: rgba(61, 217, 160, 0.28);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: #cbd6cf;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.icon {
  flex: 0 0 auto;
}

.boot-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #f6f8f4;
  z-index: 50;
}

.boot-logo {
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(11, 39, 35, 0.18);
  animation: bootFloat 2.4s ease-in-out infinite;
}

.boot-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.boot-name span {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.boot-bar {
  width: 150px;
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e1e9e2;
}

.boot-bar span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--mint));
  animation: bootSlide 1.2s ease-in-out infinite;
}

.boot-caption {
  color: var(--ink-3);
  font-size: 12px;
}

@keyframes bootFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes bootSlide {
  from { transform: translateX(-110%); }
  to { transform: translateX(330%); }
}

/* ---------- Login ---------- */
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(430px, 0.93fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: #f7f9f5;
}

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 42px 56px 36px;
  color: #fff;
  background:
    radial-gradient(900px 600px at 85% 8%, rgba(48, 194, 149, 0.2), transparent 50%),
    radial-gradient(700px 500px at 5% 100%, rgba(232, 166, 63, 0.12), transparent 52%),
    linear-gradient(145deg, #0a2823 0%, #08201d 58%, #061a17 100%);
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 55% 40%, #000 10%, transparent 78%);
  pointer-events: none;
}

.login-visual::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -210px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(61, 217, 160, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(61, 217, 160, 0.025),
    0 0 0 140px rgba(61, 217, 160, 0.018);
  pointer-events: none;
}

.login-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
}

.login-brand img {
  border-radius: 13px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.25);
}

.login-brand div {
  display: flex;
  flex-direction: column;
}

.login-brand strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.login-brand span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.login-copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
  margin-top: clamp(56px, 10vh, 122px);
}

.visual-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(61, 217, 160, 0.12);
}

.login-copy h1 {
  margin: 21px 0 22px;
  font-size: clamp(38px, 4.25vw, 62px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.login-copy h1 span {
  color: var(--mint);
}

.login-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: 0.015em;
}

.route-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.route-art svg {
  width: 100%;
  height: 100%;
}

.route-label {
  position: absolute;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(6, 25, 22, 0.68);
  font-size: 9px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.route-label-a {
  left: 52%;
  top: 47%;
}

.route-label-b {
  right: 11%;
  top: 12%;
}

.visual-card {
  position: relative;
  z-index: 2;
  width: min(432px, 100%);
  margin-top: auto;
  padding: 20px 22px 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.visual-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.visual-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint);
  font-size: 9px;
}

.visual-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(61, 217, 160, 0.12);
}

.visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 16px;
}

.visual-stats div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.visual-stats strong {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.visual-stats strong em {
  font-size: 14px;
  font-style: normal;
  color: var(--mint);
}

.visual-stats span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 9.5px;
}

.visual-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.visual-bar span {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1ba87c, var(--mint));
  box-shadow: 0 0 14px rgba(61, 217, 160, 0.38);
}

.visual-card-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 8.5px;
}

.login-visual-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(23, 149, 111, 0.055), transparent 55%),
    #f8faf6;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 55, 45, 0.095) 0.6px, transparent 0.6px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 52%);
  pointer-events: none;
}

.login-form-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 392px;
  animation: loginRise 0.5s ease both;
}

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

.login-mobile-brand {
  display: none;
  align-items: center;
  gap: 11px;
  margin-bottom: 44px;
}

.login-mobile-brand img {
  border-radius: 12px;
}

.login-mobile-brand div {
  display: flex;
  flex-direction: column;
}

.login-mobile-brand strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

.login-mobile-brand span {
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.login-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid #d9e9df;
  border-radius: 99px;
  color: var(--brand-deep);
  background: #eef8f2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.login-form-wrap h2 {
  margin: 22px 0 8px;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.login-sub {
  margin: 0 0 30px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field > span {
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.login-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 51px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 49, 39, 0.02);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-input:focus-within {
  border-color: #72bea0;
  box-shadow: 0 0 0 4px rgba(20, 155, 113, 0.09);
}

.login-input > .icon {
  color: var(--ink-4);
}

.login-input input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
}

.login-input input::placeholder {
  color: #b6c2bc;
}

.password-toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink-3);
  background: transparent;
}

.password-toggle:hover {
  color: var(--ink);
  background: var(--surface-3);
}

.login-error {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid #f2d3ce;
  border-radius: 10px;
  color: #b34635;
  background: var(--red-soft);
  font-size: 11.5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 41px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

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

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #11976e, #087453);
  box-shadow: 0 7px 18px rgba(9, 122, 88, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #13a477, #087355);
  box-shadow: 0 9px 24px rgba(9, 122, 88, 0.3);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--ink-2);
  background: #fff;
  box-shadow: 0 1px 2px rgba(19, 47, 38, 0.03);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface-2);
}

.btn-ghost {
  border-color: transparent;
  color: var(--ink-2);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-3);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #dd6a56, #c54d3a);
  box-shadow: 0 7px 18px rgba(197, 77, 58, 0.2);
}

.btn.sm {
  height: 35px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 11.5px;
}

.login-submit {
  height: 51px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.login-submit .icon {
  opacity: 0.7;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-secondary .btn-spinner,
.btn-ghost .btn-spinner {
  border-color: rgba(20, 50, 40, 0.18);
  border-top-color: var(--ink);
}

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

.demo-account {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  padding: 12px 13px;
  border: 1px dashed #d8e4db;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.demo-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
}

.demo-account > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.demo-account strong {
  font-size: 10.5px;
  font-weight: 600;
}

.demo-account span {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10.5px;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.text-btn:hover {
  color: var(--brand-deep);
}

.login-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  color: var(--ink-4);
  font-size: 9.5px;
}

.login-panel-foot {
  position: absolute;
  bottom: 24px;
  color: var(--ink-4);
  font-size: 9px;
  letter-spacing: 0.04em;
}

/* ---------- Shell ---------- */
.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  padding: 24px 14px 16px;
  color: #fff;
  background:
    radial-gradient(500px 400px at 0% 0%, rgba(49, 193, 148, 0.13), transparent 55%),
    linear-gradient(180deg, #0b2823 0%, #091f1c 70%, #081b18 100%);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.5px, transparent 0.5px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 50%);
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 22px;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8.5px;
  letter-spacing: 0.14em;
}

.sidebar-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.nav-label {
  padding: 0 12px 7px;
  color: rgba(255, 255, 255, 0.26);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.19em;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-last {
  margin-top: auto;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.61);
  font-size: 12.5px;
  font-weight: 500;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.045);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(61, 217, 160, 0.16), rgba(61, 217, 160, 0.06));
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 17px;
  border-radius: 0 4px 4px 0;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(61, 217, 160, 0.5);
}

.nav-item.active .nav-icon {
  color: var(--mint);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.16s ease;
}

.nav-item:hover .nav-icon {
  color: rgba(255, 255, 255, 0.72);
}

.nav-text {
  flex: 1;
}

.nav-badge {
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 99px;
  color: #06281f;
  background: var(--mint);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.nav-badge[hidden] {
  display: none;
}

.sidebar-foot {
  position: relative;
  z-index: 1;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
}

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  background: linear-gradient(135deg, #2a9d7c, #167c60);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.avatar.sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10.5px;
}

.avatar.lg {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 15px;
}

.av-1 { background: linear-gradient(135deg, #2b9b7b, #14715a); }
.av-2 { background: linear-gradient(135deg, #507f9c, #35617b); }
.av-3 { background: linear-gradient(135deg, #b98a3f, #926626); }
.av-4 { background: linear-gradient(135deg, #8a7bb0, #685b8d); }
.av-5 { background: linear-gradient(135deg, #b46f5f, #8c4f42); }

.sidebar-user-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.35;
}

.sidebar-user-copy strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.35);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink-2);
  background: transparent;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.icon-btn:hover {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.sidebar-logout {
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.36);
}

.sidebar-logout:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
}

.sidebar-note {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px 0;
  color: rgba(255, 255, 255, 0.26);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.sidebar-note .live-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.sidebar-scrim {
  display: none;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: var(--sidebar-w);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(222, 231, 224, 0.7);
  background: rgba(244, 247, 243, 0.82);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  display: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 11px;
}

.breadcrumb i {
  color: var(--ink-4);
  font-style: normal;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}

.sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #dce9e0;
  border-radius: 99px;
  color: #3e745f;
  background: rgba(255, 255, 255, 0.66);
  font-size: 9.5px;
  transition: all 0.2s ease;
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 138, 101, 0.1);
}

.sync-live .sync-dot {
  animation: syncPulse 2.2s ease-in-out infinite;
}

.sync-reconnecting {
  color: #9b6b21;
  border-color: #f0dfc3;
  background: #fdf8ee;
}

.sync-reconnecting .sync-dot {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(212, 139, 38, 0.12);
  animation: syncPulse 1s ease-in-out infinite;
}

.sync-flash {
  color: var(--brand-deep);
  border-color: #b9e3d2;
  background: #eaf8f2;
}

@keyframes syncPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.date-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 9.5px;
  white-space: nowrap;
}

.notify-wrap,
.profile-wrap {
  position: relative;
}

.bell-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.notify-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border: 2px solid var(--bg);
  border-radius: 99px;
  color: #fff;
  background: var(--red);
  font-size: 7.5px;
  font-weight: 700;
}

.notify-badge[hidden] {
  display: none;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 2px 8px 2px 3px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.profile-trigger:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.profile-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.profile-copy strong {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
}

.profile-copy small {
  color: var(--ink-3);
  font-size: 8px;
}

.profile-chevron {
  color: var(--ink-4);
}

.popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 70;
  width: 368px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-md);
  animation: popIn 0.16s ease both;
}

.popover[hidden] {
  display: none;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-5px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 11px;
}

.popover-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.popover-head strong {
  font-size: 12.5px;
  font-weight: 650;
}

.count-pill {
  padding: 2px 6px;
  border-radius: 99px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 8.5px;
  font-weight: 600;
}

.notify-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 0 8px 7px;
}

.notify-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}

.notify-item:hover {
  background: var(--surface-2);
}

.notify-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.notify-icon.tone-overdue,
.notify-icon.tone-urgent {
  color: var(--red);
  background: var(--red-soft);
}

.notify-icon.tone-soon {
  color: var(--amber);
  background: var(--amber-soft);
}

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

.notify-copy strong {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notify-copy small {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notify-due {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--ink-3);
  font-size: 8px;
  white-space: nowrap;
}

.popover-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 38px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--brand);
  background: #fcfdfb;
  font-size: 9.5px;
  font-weight: 600;
}

.popover-footer:hover {
  background: var(--surface-2);
}

.popover-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 26px 16px 32px;
  color: var(--ink-3);
  font-size: 10px;
}

.popover-empty .icon {
  color: var(--brand);
}

.profile-popover {
  width: 244px;
  padding: 6px;
}

.profile-popover-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
}

.profile-popover-head > div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.profile-popover-head strong {
  font-size: 12px;
}

.profile-popover-head span {
  color: var(--ink-3);
  font-size: 9px;
}

.popover-divider {
  height: 1px;
  margin: 4px 8px;
  background: var(--line);
}

.popover-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 37px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink-2);
  background: transparent;
  font-size: 10.5px;
  text-align: left;
}

.popover-item:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.popover-item.danger {
  color: var(--red);
}

.popover-item.danger:hover {
  background: var(--red-soft);
}

.page {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px 34px 60px;
}

/* ---------- Page head ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 23px;
}

.page-head-copy {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(25px, 2.4vw, 31px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.page-head p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.7;
}

.page-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

/* ---------- Dashboard ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 151px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.kpi-card[data-go] {
  cursor: pointer;
}

.kpi-card[data-go]:hover {
  border-color: #cfe0d5;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18, 55, 43, 0.07);
}

.kpi-card:focus-visible {
  outline: 2px solid rgba(13, 138, 101, 0.4);
  outline-offset: 2px;
}

.kpi-card::after {
  content: "";
  position: absolute;
  top: -58px;
  right: -58px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 155, 115, 0.08), transparent 68%);
  pointer-events: none;
}

.kpi-teal::after {
  background: radial-gradient(circle, rgba(58, 156, 135, 0.09), transparent 68%);
}

.kpi-blue::after {
  background: radial-gradient(circle, rgba(77, 126, 154, 0.09), transparent 68%);
}

.kpi-amber::after {
  background: radial-gradient(circle, rgba(212, 139, 38, 0.1), transparent 68%);
}

.kpi-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  color: var(--brand-deep);
  background: #e9f7f1;
}

.kpi-teal .kpi-icon {
  color: #167660;
  background: #e8f5f1;
}

.kpi-blue .kpi-icon {
  color: #3f6f8c;
  background: #ecf3f7;
}

.kpi-amber .kpi-icon {
  color: #b17416;
  background: #fdf3e2;
}

.kpi-label {
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 550;
}

.kpi-arrow {
  margin-left: auto;
  color: var(--ink-4);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: all 0.18s ease;
}

.kpi-card:hover .kpi-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.kpi-value {
  margin-top: 15px;
  font-size: clamp(25px, 2.3vw, 32px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.kpi-value .unit {
  margin-left: 3px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.kpi-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
}

.kpi-foot {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  color: var(--ink-3);
  font-size: 8.5px;
}

.kpi-foot span {
  position: relative;
  white-space: nowrap;
}

.kpi-foot span + span::before {
  content: "·";
  position: absolute;
  left: -6px;
  color: var(--ink-4);
}

.kpi-trend {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  border-radius: 99px;
  font-size: 8.5px;
  font-weight: 600;
}

.kpi-trend.up {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.kpi-trend.down {
  color: var(--red);
  background: var(--red-soft);
}

.kpi-trend.flat {
  color: var(--ink-3);
  background: var(--surface-3);
}

.sparkline {
  flex: 0 0 auto;
  overflow: visible;
}

.spark-green .spark-line { stroke: #179c76; }
.spark-green .spark-area { fill: rgba(23, 156, 118, 0.1); }
.spark-teal .spark-line { stroke: #2a9480; }
.spark-teal .spark-area { fill: rgba(42, 148, 128, 0.1); }
.spark-blue .spark-line { stroke: #4d7e9a; }
.spark-blue .spark-area { fill: rgba(77, 126, 154, 0.1); }
.spark-amber .spark-line { stroke: #d49a3b; }
.spark-amber .spark-area { fill: rgba(212, 154, 59, 0.1); }

.spark-line {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(300px, 0.84fr);
  gap: 16px;
  margin-top: 16px;
}

.dash-lower {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.chart-card,
.fleet-card,
.todo-card,
.activity-card {
  padding: 20px 21px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.card-head h2 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card-head p {
  margin: 2px 0 0;
  color: var(--ink-3);
  font-size: 9.5px;
}

.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid #e1eee7;
  border-radius: 99px;
  color: var(--brand-deep);
  background: #f2faf6;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.card-chip.warn {
  color: #9b681d;
  border-color: #f1e2c8;
  background: #fdf8ef;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
  font-size: 8px;
}

.live-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  animation: syncPulse 2.2s ease-in-out infinite;
}

.chart-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 17px;
  margin: 13px 0 3px;
  color: var(--ink-3);
  font-size: 8.5px;
}

.chart-summary strong {
  margin-left: 3px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.chart-summary .chart-net strong {
  color: var(--brand-deep);
}

.chart-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e4ece7;
}

.chart-footer > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chart-footer span {
  color: var(--ink-3);
  font-size: 9px;
}

.chart-footer strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chart-footer strong.is-up {
  color: var(--brand-deep);
}

.chart-footer strong.is-down {
  color: var(--red);
}

.chart-wrap {
  position: relative;
}

.revenue-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid-line {
  stroke: #edf2ed;
  stroke-width: 1;
}

.chart-axis-label {
  fill: #9caca4;
  font-family: var(--font);
  font-size: 9px;
}

.chart-month {
  fill: #73857d;
  font-family: var(--font);
  font-size: 9.5px;
}

.bar-income {
  fill: #159b73;
}

.bar-expense {
  fill: #efc07a;
}

.chart-bar-group:hover .bar-income {
  fill: #0c865f;
}

.chart-bar-group:hover .bar-expense {
  fill: #e8ac55;
}

.chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: -2px;
  color: var(--ink-3);
  font-size: 8.5px;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.legend-income { background: #159b73; }
.legend-expense { background: #efc07a; }

.fleet-visual {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 21px 0 10px;
}

.donut {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 142px;
  height: 142px;
  border-radius: 50%;
}

.donut::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(228, 235, 229, 0.9);
}

.donut-hole {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-hole strong {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.donut-hole span {
  color: var(--ink-3);
  font-size: 8px;
}

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

.fleet-row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: 9.5px;
}

.fleet-row span:nth-child(2) {
  flex: 1;
}

.fleet-row strong {
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
}

.fleet-row small {
  width: 28px;
  color: var(--ink-4);
  font-size: 8px;
  text-align: right;
}

.fleet-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.utilization {
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.utilization-head {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 8.5px;
}

.utilization-head strong {
  color: var(--ink);
  font-size: 10px;
}

.progress {
  height: 5px;
  margin: 7px 0 7px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #13956e, #46d6a2);
}

.utilization p {
  margin: 0;
  color: var(--ink-4);
  font-size: 8px;
}

.fleet-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--ink-3);
  background: var(--surface-2);
  font-size: 9.5px;
  line-height: 1.6;
}

.fleet-note .icon {
  margin-top: 1px;
  color: var(--brand);
}

.todo-list {
  display: flex;
  flex-direction: column;
  margin-top: 9px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9.5px 0;
  border: 0;
  border-top: 1px solid #f0f4f0;
  background: transparent;
  text-align: left;
}

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

.todo-item:hover .todo-copy strong {
  color: var(--brand-deep);
}

.todo-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.todo-icon.tone-overdue,
.todo-icon.tone-urgent {
  color: var(--red);
  background: var(--red-soft);
}

.todo-icon.tone-soon {
  color: var(--amber);
  background: var(--amber-soft);
}

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

.todo-copy strong {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.todo-copy small {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-due {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  color: var(--ink-3);
  font-size: 8.5px;
}

.todo-due small {
  color: var(--ink-4);
  font-size: 7.5px;
}

.todo-due.danger {
  color: var(--red);
}

.todo-due.warning {
  color: var(--amber);
}

.todo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 42px 16px;
  color: var(--brand);
  text-align: center;
}

.todo-empty strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
}

.todo-empty span {
  color: var(--ink-3);
  font-size: 9px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  margin-top: 11px;
}

.activity-item {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

.activity-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 38px;
  bottom: -2px;
  width: 1px;
  background: #edf2ed;
}

.activity-dot {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  border: 1px solid #e7eee8;
  background: #f7faf7;
}

.activity-dot.tone-green { color: var(--brand); background: #eff9f4; border-color: #dcefe6; }
.activity-dot.tone-blue { color: var(--blue); background: #f0f6fa; border-color: #e0edf5; }
.activity-dot.tone-red { color: var(--red); background: #fdf1ef; border-color: #f6dfdb; }
.activity-dot.tone-amber { color: var(--amber); background: #fdf7ec; border-color: #f4e7cf; }

.activity-copy {
  min-width: 0;
  flex: 1;
}

.activity-copy > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.activity-copy strong {
  font-size: 9.5px;
  font-weight: 600;
}

.activity-copy p {
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--ink-3);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-label {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-item time {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--ink-4);
  font-size: 7.5px;
}

.mini-tag {
  display: inline-flex;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 600;
}

.mini-tag.tone-green { color: var(--brand-deep); background: var(--brand-soft); }
.mini-tag.tone-blue { color: var(--blue); background: var(--blue-soft); }
.mini-tag.tone-red { color: var(--red); background: var(--red-soft); }
.mini-tag.tone-amber { color: var(--amber); background: var(--amber-soft); }
.mini-tag.tone-gray { color: var(--ink-3); background: var(--surface-3); }

.activity-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 7px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--ink-4);
  font-size: 8px;
}

/* ---------- Lists ---------- */
.list-card {
  overflow: hidden;
  padding: 0;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.search-box {
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  gap: 8px;
  max-width: 390px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.search-box:focus-within {
  border-color: #9eceb8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 155, 113, 0.07);
}

.search-box > .icon {
  color: var(--ink-4);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11.5px;
}

.search-box input::placeholder {
  color: #aab8b1;
}

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

.search-box kbd {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid #e0e7e1;
  border-radius: 4px;
  color: var(--ink-4);
  background: #fff;
  font-family: var(--font);
  font-size: 7px;
  white-space: nowrap;
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-3);
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink-3);
  background: transparent;
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
}

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

.filter-tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(18, 46, 37, 0.09);
}

.tab-count {
  display: inline-grid;
  min-width: 15px;
  height: 15px;
  place-items: center;
  padding: 0 3px;
  border-radius: 99px;
  color: var(--ink-4);
  background: rgba(20, 50, 40, 0.055);
  font-size: 7px;
  font-weight: 600;
}

.filter-tab.active .tab-count {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding-left: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.select-wrap > .icon:first-child {
  color: var(--ink-4);
}

.select-wrap select {
  height: 100%;
  padding: 0 25px 0 0;
  border: 0;
  outline: 0;
  color: var(--ink-2);
  background: transparent;
  font-size: 9.5px;
  appearance: none;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 8px;
  color: var(--ink-4);
  pointer-events: none;
}

.refresh-btn {
  width: 36px;
  height: 36px;
  border-color: var(--line);
  background: #fff;
}

.list-card.is-refreshing #list-content {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  background: #fafbf9;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

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

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 18px;
}

.data-table th.th-actions {
  text-align: right;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f4f0;
  color: var(--ink-2);
  font-size: 11.5px;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.14s ease;
}

.data-table tbody tr:hover {
  background: #fbfdfb;
}

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

.entity-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.entity-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #e1eee7;
  border-radius: 10px;
  color: var(--brand);
  background: #f2faf6;
}

.entity-icon.sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

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

.entity-cell strong,
.person-cell strong {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.entity-cell small,
.person-cell small {
  color: var(--ink-3);
  font-size: 9px;
  white-space: nowrap;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.person-compact {
  display: flex;
  align-items: center;
  gap: 7px;
}

.person-compact > div {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.person-compact strong {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 550;
}

.person-compact small {
  color: var(--ink-3);
  font-size: 8px;
}

.stack-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stack-cell strong {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
}

.stack-cell small {
  color: var(--ink-3);
  font-size: 9px;
  white-space: nowrap;
}

.stack-cell small.muted-text,
.stack-cell .muted-text {
  color: var(--ink-3);
  font-size: 8.5px;
}

.stack-cell .truncate {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contract-no {
  color: var(--ink) !important;
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: -0.02em;
}

.subtle-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--ink-3);
  background: var(--surface-3);
  font-size: 7.5px;
  white-space: nowrap;
}

.doc-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink-2);
  font-size: 9px;
  white-space: nowrap;
}

.doc-stack small {
  color: var(--ink-3);
  font-size: 8px;
}

.due-text {
  display: inline-flex;
  margin-left: 3px;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 500;
}

.due-text.danger {
  color: var(--red);
  background: var(--red-soft);
}

.due-text.warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.muted-text {
  color: var(--ink-4);
  font-size: 9px;
}

.mobile-cards {
  display: none;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.data-table tr:hover .row-actions,
.row-actions:focus-within {
  opacity: 1;
}

.row-action {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink-3);
  background: transparent;
}

.row-action:hover {
  color: var(--brand-deep);
  border-color: #dcebe3;
  background: #f2faf6;
}

.row-action.danger:hover {
  color: var(--red);
  border-color: #f5dcd7;
  background: var(--red-soft);
}

.quick-action {
  height: 25px;
  padding: 0 7px;
  border: 1px solid #e9d6b6;
  border-radius: 6px;
  color: #9b681d;
  background: #fdf8ef;
  font-size: 7.5px;
  font-weight: 600;
}

.quick-action:hover {
  background: #faefd9;
}

.quick-action.done {
  color: var(--brand-deep);
  border-color: #cfe7db;
  background: #f0faf5;
}

.quick-action.done:hover {
  background: #e3f6ed;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.status-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.tone-green { color: #0b7656; background: #eaf7f0; }
.status-pill.tone-amber { color: #9d6b1d; background: #fdf4e4; }
.status-pill.tone-blue { color: #3f6f8b; background: #edf4f8; }
.status-pill.tone-red { color: #b94a3b; background: #fceeea; }
.status-pill.tone-gray { color: #788881; background: #f0f3f1; }

.score {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--ink);
}

.score em {
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
}

.score small {
  color: var(--ink-4);
  font-size: 7.5px;
}

.date-cell {
  display: flex;
  flex-direction: column;
  gap: 0;
  white-space: nowrap;
}

.date-cell strong {
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 550;
}

.date-cell small {
  color: var(--ink-4);
  font-size: 7.5px;
}

.type-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.type-cell > div {
  display: flex;
  flex-direction: column;
}

.type-cell strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 550;
}

.type-cell small {
  color: var(--ink-3);
  font-size: 7.5px;
}

.type-dot {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
}

.type-dot.tone-green { color: var(--brand); background: var(--brand-soft); }
.type-dot.tone-red { color: var(--red); background: var(--red-soft); }

.amount {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.amount.income { color: var(--brand-deep); }
.amount.expense { color: var(--red); }

.record-type {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 7.5px;
  font-weight: 600;
}

.record-type.violation {
  color: #9b681d;
  background: var(--amber-soft);
}

.record-type.accident {
  color: var(--red);
  background: var(--red-soft);
}

.desc-cell strong {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desc-cell small {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.pager-info {
  color: var(--ink-3);
  font-size: 8.5px;
}

.pager-info strong {
  color: var(--ink-2);
  font-weight: 600;
}

.pager-controls {
  display: flex;
  gap: 3px;
}

.pager-btn {
  display: grid;
  place-items: center;
  min-width: 29px;
  height: 29px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-2);
  background: #fff;
  font-size: 9px;
}

.pager-btn:hover:not(:disabled) {
  border-color: #bcdccb;
  background: var(--surface-2);
}

.pager-btn.active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.pager-btn:disabled {
  cursor: default;
  color: var(--ink-4);
  opacity: 0.55;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 20px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 15px;
  border: 1px solid #dcece4;
  border-radius: 21px;
  color: var(--brand);
  background: linear-gradient(145deg, #f4fbf7, #e9f6ef);
  box-shadow: 0 8px 22px rgba(20, 110, 83, 0.07);
}

.empty-state h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.empty-state p {
  max-width: 320px;
  margin: 5px 0 17px;
  color: var(--ink-3);
  font-size: 10px;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.summary-card::after {
  content: "";
  position: absolute;
  top: -28px;
  right: -28px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 155, 115, 0.07), transparent 70%);
}

.summary-card > span {
  display: block;
  color: var(--ink-3);
  font-size: 9px;
}

.summary-card strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.summary-card strong.income { color: var(--brand-deep); }
.summary-card strong.expense { color: var(--red); }
.summary-card small {
  color: var(--ink-4);
  font-size: 7.5px;
}

.summary-card.net::after {
  background: radial-gradient(circle, rgba(77, 126, 154, 0.08), transparent 70%);
}

.notice-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #f0dfc4;
  border-radius: 13px;
  background: linear-gradient(90deg, #fefaf2, #fffdf8);
}

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--amber);
  background: #faeed9;
}

.notice-icon.amber {
  color: #a77422;
}

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

.notice-strip strong {
  color: #7f5719;
  font-size: 10px;
  font-weight: 600;
}

.notice-strip span {
  color: #a08151;
  font-size: 8.5px;
}

.notice-strip .text-btn {
  color: #8d611b;
}

.mobile-card {
  padding: 14px;
  border-bottom: 1px solid #eef3ef;
}

.mobile-card:last-child {
  border-bottom: 0;
}

.mobile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mobile-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-title > div {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-title strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.mobile-title small {
  color: var(--ink-3);
  font-size: 8.5px;
}

.mobile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 9px;
}

.mobile-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-meta span.wide {
  grid-column: 1 / -1;
}

.mobile-meta .icon {
  color: var(--ink-4);
}

.mobile-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #edf2ed;
}

.owner-line {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-actions {
  opacity: 1;
}

.money-inline {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.money-inline small {
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 400;
}

.mobile-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 0;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.finance-mobile .amount {
  font-size: 15px;
}

/* ---------- Skeleton ---------- */
.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, #edf2ed 25%, #f7faf7 50%, #edf2ed 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}

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

.sk-eyebrow { width: 80px; height: 8px; margin-bottom: 10px; }
.sk-title { width: 260px; max-width: 70%; height: 30px; margin-bottom: 10px; }
.sk-line { width: 180px; max-width: 80%; height: 10px; }
.sk-line.short { width: 90px; }
.sk-value { width: 140px; height: 30px; margin-top: 14px; }
.sk-icon { width: 34px; height: 34px; border-radius: 10px; }
.skeleton-card { min-height: 150px; }
.skeleton-chart { min-height: 300px; padding: 22px; }
.sk-chart { height: 220px; margin-top: 22px; border-radius: 10px; }
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f4f0;
}
.sk-avatar { width: 33px; height: 33px; border-radius: 9px; }
.skeleton-row .sk-line { flex: 1; }
.skeleton-row .sk-line.short { flex: 0 0 110px; }
.sk-pill { width: 58px; height: 20px; border-radius: 99px; }

.load-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 80px 20px;
  color: var(--red);
  text-align: center;
}

.load-error h2,
.load-error h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 15px;
}

.load-error p {
  margin: 0 0 13px;
  color: var(--ink-3);
  font-size: 10px;
}

.load-error.compact {
  padding: 50px 20px;
}

/* ---------- Modal / forms ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 28, 23, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.modal-backdrop.show {
  opacity: 1;
}

.modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 690px;
  max-height: min(90vh, 880px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.18s ease;
}

.modal-backdrop.show .modal {
  transform: translateY(0) scale(1);
}

.modal.md { max-width: 680px; }
.modal.lg { max-width: 820px; }
.modal.sm { max-width: 430px; }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 15px;
  border-bottom: 1px solid #f1f5f1;
}

.modal-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.modal-head p {
  max-width: 620px;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-close {
  width: 32px;
  height: 32px;
  margin-top: -3px;
  color: var(--ink-3);
  background: var(--surface-2);
}

.modal > form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 19px 24px 22px;
}

.modal-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid #f1f5f1;
  background: #fcfdfb;
}

.modal-footer .btn {
  min-width: 92px;
}

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

.form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field > label {
  color: var(--ink-2);
  font-size: 9.5px;
  font-weight: 600;
}

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-field input,
.form-field select {
  height: 41px;
  padding: 0 11px;
}

.form-field textarea {
  min-height: 64px;
  padding: 9px 11px;
  resize: vertical;
  line-height: 1.6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #82c4a9;
  box-shadow: 0 0 0 3px rgba(20, 155, 113, 0.075);
}

.form-field input[readonly] {
  color: var(--ink-3);
  background: var(--surface-3);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #b2beb8;
}

.form-field input[type="date"] {
  color-scheme: light;
}

.form-select-wrap {
  width: 100%;
  height: 41px;
  padding-left: 0;
  border-color: var(--line-strong);
}

.form-select-wrap select {
  height: 39px;
  padding: 0 34px 0 11px;
  border: 0;
  background: transparent;
  font-size: 11px;
}

.form-select-wrap .select-chevron {
  right: 11px;
}

.input-control {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input-control:focus-within {
  border-color: #82c4a9;
  box-shadow: 0 0 0 3px rgba(20, 155, 113, 0.075);
}

.input-control input {
  height: 39px;
  border: 0;
  background: transparent;
}

.input-control input:focus {
  box-shadow: none;
}

.input-control.with-affix input {
  padding-left: 4px;
}

.input-control .input-affix {
  flex: 0 0 auto;
  padding-left: 10px;
  color: var(--ink-3);
  font-size: 10px;
}

.input-control .input-affix.suffix {
  padding-right: 10px;
  padding-left: 0;
  font-size: 8.5px;
}

.input-control.with-affix:has(.input-affix.suffix) input {
  padding-right: 2px;
}

.field-help {
  color: var(--ink-4);
  font-size: 8px;
  line-height: 1.45;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid #f2d3ce;
  border-radius: 8px;
  color: #b34635;
  background: var(--red-soft);
  font-size: 9.5px;
  line-height: 1.5;
}

.form-error[hidden] {
  display: none;
}

.confirm-visual {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 4px auto 14px;
  border: 1px solid #f5d9d3;
  border-radius: 17px;
  color: var(--red);
  background: var(--red-soft);
}

.confirm-visual.amber {
  color: var(--amber);
  border-color: #f0dfc1;
  background: var(--amber-soft);
}

.confirm-copy {
  margin-bottom: 10px;
  text-align: center;
}

.confirm-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.confirm-copy p {
  margin: 5px 0 0;
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 1.65;
}

/* ---------- Settings ---------- */
.settings-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}

.settings-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.settings-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.settings-icon.green { color: var(--brand); background: var(--brand-soft); }
.settings-icon.blue { color: var(--blue); background: var(--blue-soft); }
.settings-icon.amber { color: var(--amber); background: var(--amber-soft); }

.settings-stat > div {
  display: flex;
  flex-direction: column;
}

.settings-stat > div > span {
  color: var(--ink-3);
  font-size: 8.5px;
}

.settings-stat strong {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
}

.settings-stat strong small {
  margin-left: 2px;
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 400;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: start;
}

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

.permission-card {
  padding: 19px 20px 16px;
}

.permission-list {
  margin-top: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 64px 70px;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-top: 1px solid #f0f4f0;
  color: var(--ink-2);
  font-size: 9px;
}

.permission-row:first-child {
  border-top: 0;
}

.permission-row > span:not(:first-child) {
  display: flex;
  justify-content: center;
}

.permission-head {
  min-height: 31px;
  color: var(--ink-3);
  background: #fafbf9;
  font-size: 8px;
  font-weight: 600;
}

.perm-yes {
  color: var(--brand);
}

.perm-no {
  color: var(--ink-4);
  font-size: 12px;
}

.permission-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 10px;
  color: var(--ink-4);
  font-size: 8px;
  line-height: 1.55;
}

.user-list-card {
  overflow: hidden;
  padding: 0;
}

.user-list-card .card-head {
  padding: 19px 20px 8px;
  margin-bottom: 0;
}

.user-list-card .data-table {
  min-width: 700px;
}

.settings-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sync-status-card,
.system-card {
  padding: 19px 20px;
}

.sync-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin: 14px auto 10px;
}

.sync-ring {
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(20, 140, 104, 0.25);
  border-radius: 50%;
  animation: orbitSpin 14s linear infinite;
}

.sync-ring.r2 {
  inset: 19px;
  border-style: solid;
  border-color: rgba(20, 140, 104, 0.1);
  animation-direction: reverse;
  animation-duration: 9s;
}

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

.sync-core {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #cfebe0;
  border-radius: 15px;
  color: var(--brand);
  background: #eaf8f2;
  box-shadow: 0 8px 22px rgba(18, 140, 102, 0.1);
}

.sync-copy {
  margin-bottom: 13px;
  text-align: center;
}

.sync-copy strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.sync-copy p {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 8.5px;
  line-height: 1.65;
}

.info-rows {
  display: flex;
  flex-direction: column;
}

.info-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed #edf2ed;
}

.info-rows span {
  color: var(--ink-3);
  font-size: 8.5px;
  white-space: nowrap;
}

.info-rows strong {
  color: var(--ink-2);
  font-size: 8.5px;
  font-weight: 550;
  text-align: right;
}

.text-green {
  color: var(--brand-deep) !important;
}

.system-badge {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-3);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 8px;
}

.system-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink-3);
  background: var(--surface-2);
  font-size: 8px;
  line-height: 1.55;
}

.role-pill {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 550;
  white-space: nowrap;
}

.role-admin { color: #8a5b13; background: #fbf0dc; }
.role-finance { color: #386b86; background: #edf5f9; }
.role-staff { color: #5d6e66; background: #f1f5f2; }

.account-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
}

.account-status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.account-status.on { color: var(--brand-deep); }
.account-status.on i { background: var(--brand); }
.account-status.off { color: var(--ink-4); }
.account-status.off i { background: var(--ink-4); }

.self-tag {
  display: inline-flex;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 3px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 6.5px;
  vertical-align: middle;
}

/* ---------- Toast ---------- */
.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(340px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 11px 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  background: #102d27;
  box-shadow: 0 16px 40px rgba(6, 27, 22, 0.26);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: all 0.24s ease;
  pointer-events: auto;
}

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

.toast-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--mint);
  background: rgba(61, 217, 160, 0.11);
}

.toast-error .toast-icon {
  color: #ff9b8a;
  background: rgba(255, 110, 90, 0.12);
}

.toast-sync .toast-icon {
  color: #8ed9ff;
  background: rgba(99, 189, 238, 0.12);
}

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

.toast-copy strong {
  font-size: 10.5px;
  font-weight: 600;
}

.toast-copy span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.toast-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .page {
    padding-left: 26px;
    padding-right: 26px;
  }

  .topbar {
    padding: 0 24px;
  }

  .fleet-visual {
    gap: 17px;
  }

  .donut {
    width: 126px;
    height: 126px;
  }

  .donut::before {
    inset: 14px;
  }

  .toolbar-filters {
    margin-left: 0;
  }

  .search-box {
    max-width: none;
  }
}

@media (max-width: 1080px) {
  :root {
    --sidebar-w: 268px;
  }

  .sidebar {
    transform: translateX(-102%);
    transition: transform 0.24s cubic-bezier(0.22, 0.8, 0.28, 1);
    box-shadow: 25px 0 60px rgba(4, 22, 17, 0.2);
  }

  .nav-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgba(7, 26, 21, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
  }

  .nav-open .sidebar-scrim {
    opacity: 1;
    visibility: visible;
  }

  .app-main {
    margin-left: 0;
    padding-bottom: 74px;
  }

  .menu-btn {
    display: inline-grid;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.7);
  }

  .mobile-nav {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 32;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: 62px;
    padding: 5px 8px;
    border: 1px solid rgba(231, 239, 233, 0.9);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(12, 43, 33, 0.13);
    backdrop-filter: blur(18px);
  }

  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 13px;
    color: var(--ink-4);
    background: transparent;
  }

  .mobile-nav a span,
  .mobile-nav button span {
    display: grid;
    place-items: center;
    height: 24px;
  }

  .mobile-nav em {
    font-size: 8px;
    font-style: normal;
  }

  .mobile-nav a.active {
    color: var(--brand-deep);
    background: #edf8f2;
  }

  .mobile-nav a.active span {
    color: var(--brand);
  }

  .dash-grid,
  .dash-lower {
    grid-template-columns: 1fr;
  }

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

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

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 36px 24px 60px;
  }

  .login-mobile-brand {
    display: flex;
  }

  .login-panel-foot {
    bottom: 18px;
  }
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-chip {
    display: none;
  }

  .page-head {
    align-items: flex-start;
  }

  .toolbar-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .filter-tabs {
    flex: 0 0 auto;
  }

  .search-box {
    flex-basis: 100%;
    max-width: none;
  }

  .list-toolbar {
    gap: 9px;
  }

  .summary-cards {
    grid-template-columns: 1fr 1fr;
  }

  .summary-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 62px;
    padding: 0 14px;
  }

  .topbar-left {
    gap: 8px;
  }

  .breadcrumb > span {
    display: none;
  }

  .breadcrumb i {
    display: none;
  }

  .breadcrumb strong {
    font-size: 11.5px;
  }

  .topbar-right {
    gap: 7px;
  }

  .sync-chip {
    height: 28px;
    padding: 0 8px;
  }

  .sync-text {
    display: none;
  }

  .profile-copy,
  .profile-chevron {
    display: none;
  }

  .profile-trigger {
    height: 38px;
    padding: 2px;
  }

  .profile-trigger .avatar {
    width: 33px;
    height: 33px;
    border-radius: 9px;
  }

  .page {
    padding: 20px 14px 30px;
  }

  .page-head {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 18px;
  }

  .page-head h1 {
    font-size: 24px;
  }

  .page-head p {
    font-size: 10.5px;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .btn {
    flex: 1;
    height: 40px;
    font-size: 11.5px;
  }

  .kpi-grid {
    gap: 10px;
  }

  .kpi-card {
    min-height: 137px;
    padding: 14px;
  }

  .kpi-value {
    margin-top: 13px;
    font-size: 24px;
  }

  .kpi-label {
    font-size: 9.5px;
  }

  .kpi-icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }

  .kpi-icon .icon {
    width: 17px;
    height: 17px;
  }

  .kpi-bottom {
    margin-top: 10px;
  }

  .kpi-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    font-size: 8px;
  }

  .kpi-foot span + span::before {
    display: none;
  }

  .sparkline {
    width: 65px !important;
    height: 24px !important;
  }

  .chart-card,
  .fleet-card,
  .todo-card,
  .activity-card {
    padding: 16px;
  }

  .card-head h2 {
    font-size: 12.5px;
  }

  .chart-summary {
    gap: 4px 12px;
    margin-top: 11px;
  }

  .chart-legend {
    margin-top: 2px;
  }

  .fleet-visual {
    justify-content: center;
    gap: 22px;
  }

  .donut {
    width: 124px;
    height: 124px;
  }

  .donut::before {
    inset: 14px;
  }

  .donut-hole strong {
    font-size: 23px;
  }

  .fleet-row {
    gap: 6px;
  }

  .dash-grid {
    margin-top: 10px;
  }

  .data-table {
    display: none;
  }

  .mobile-cards {
    display: block;
  }

  .list-toolbar {
    padding: 12px;
  }

  .search-box {
    height: 38px;
  }

  .search-box kbd {
    display: none;
  }

  .toolbar-filters {
    gap: 6px;
  }

  .filter-tabs {
    overflow-x: auto;
    max-width: 100%;
  }

  .filter-tab {
    height: 28px;
    padding: 0 8px;
    font-size: 9px;
  }

  .select-wrap {
    height: 34px;
  }

  .refresh-btn {
    display: none;
  }

  .summary-cards {
    gap: 8px;
  }

  .summary-card {
    padding: 12px 13px;
  }

  .summary-card strong {
    font-size: 16px;
  }

  .summary-card small {
    display: none;
  }

  .notice-strip {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 11px 12px;
  }

  .notice-strip .text-btn {
    margin-left: 43px;
  }

  .pager {
    padding: 12px 14px;
  }

  .pager-info {
    font-size: 8px;
  }

  .pager-btn {
    min-width: 28px;
    height: 28px;
  }

  .pager-btn:nth-child(n+5):not(:last-child) {
    display: none;
  }

  .empty-state {
    padding: 45px 20px;
  }

  .settings-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .settings-stat {
    padding: 12px 14px;
  }

  .settings-stat strong {
    font-size: 17px;
  }

  .settings-side {
    grid-template-columns: 1fr;
  }

  .settings-mobile {
    display: block;
  }

  .user-list-card .card-head {
    padding: 15px 14px 8px;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal,
  .modal.md,
  .modal.lg,
  .modal.sm {
    max-width: none;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    transform: translateY(24px);
  }

  .modal-backdrop.show .modal {
    transform: translateY(0);
  }

  .modal-head {
    padding: 18px 17px 13px;
  }

  .modal-body {
    padding: 16px 17px 18px;
  }

  .modal-footer {
    padding: 12px 17px calc(12px + env(safe-area-inset-bottom));
  }

  .modal-footer .btn {
    flex: 1;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-field.full {
    grid-column: auto;
  }

  .form-field input,
  .form-field select {
    height: 43px;
    font-size: 12px;
  }

  .form-field > label {
    font-size: 10px;
  }

  .toast-root {
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }

  .notification-popover {
    position: fixed;
    top: 66px;
    right: 8px;
    left: 8px;
    width: auto;
  }

  .popover {
    position: fixed;
    top: 66px;
    right: 8px;
    left: 8px;
    width: auto;
  }

  .profile-popover {
    top: 64px;
    right: 8px;
    left: auto;
    width: 238px;
  }

  .activity-item time {
    display: none;
  }

  .activity-copy p {
    max-width: 220px;
  }

  .mobile-nav {
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
  }
}

@media (max-width: 420px) {
  .login-panel {
    padding: 28px 20px 50px;
  }

  .login-mobile-brand {
    margin-bottom: 36px;
  }

  .login-form-wrap h2 {
    font-size: 28px;
  }

  .login-sub {
    margin-bottom: 24px;
  }

  .demo-account {
    padding: 10px;
  }

  .demo-account .text-btn {
    font-size: 9px;
  }

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

  .kpi-value {
    font-size: 21px;
  }

  .fleet-visual {
    gap: 15px;
  }

  .fleet-legend {
    gap: 7px;
  }

}

@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;
  }
}

/* =========================================================
   Readability & contrast refinement
   提高正文对比度、字号与中文字体清晰度
   ========================================================= */
:root {
  --bg: #f1f5f6;
  --bg-tint: #e8eff1;
  --surface-2: #f7faf9;
  --surface-3: #edf3f2;
  --ink: #10201c;
  --ink-2: #334a41;
  --ink-3: #5f736a;
  --ink-4: #809189;
  --line: #d9e3e3;
  --line-strong: #c5d4d1;
  --brand: #077c5c;
  --brand-deep: #056147;
  --brand-soft: #e0f4ea;
  --mint: #20bf89;
  --navy: #061f1b;
  --amber: #b16a0b;
  --amber-soft: #fcf1dd;
  --red: #c34634;
  --red-soft: #fbeae6;
  --blue: #3e6c89;
  --blue-soft: #e8f2f7;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(12, 38, 29, 0.05), 0 8px 24px rgba(12, 38, 29, 0.05);
  --shadow-md: 0 2px 4px rgba(12, 38, 29, 0.05), 0 18px 46px rgba(12, 38, 29, 0.1);
}

body {
  background:
    radial-gradient(1100px 620px at -10% -10%, rgba(7, 124, 92, 0.06), transparent 55%),
    radial-gradient(900px 520px at 102% 0%, rgba(62, 108, 137, 0.055), transparent 52%),
    var(--bg);
  font-family: var(--font);
  font-size: 14.5px;
  letter-spacing: 0;
  -webkit-font-smoothing: auto;
  text-rendering: auto;
}

.topbar {
  background: rgba(242, 246, 247, 0.92);
  border-bottom-color: rgba(207, 220, 220, 0.9);
}

.sidebar {
  background:
    radial-gradient(520px 400px at 0% 0%, rgba(36, 188, 145, 0.12), transparent 55%),
    linear-gradient(180deg, #0a2428 0%, #071c20 68%, #061719 100%);
}

.brand-copy strong {
  font-size: 20px;
  font-weight: 700;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9.5px;
}

.nav-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9.5px;
  font-weight: 600;
}

.nav-item {
  height: 43px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13.5px;
  font-weight: 500;
}

.nav-icon {
  color: rgba(255, 255, 255, 0.55);
}

.nav-badge {
  font-size: 9px;
}

.sidebar-user-copy strong {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.94);
}

.sidebar-user-copy small {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.46);
}

.sidebar-note {
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
}

.breadcrumb {
  color: var(--ink-3);
  font-size: 12px;
}

.sync-chip {
  font-size: 10.5px;
}

.date-chip {
  color: var(--ink-3);
  font-size: 11px;
}

.profile-copy strong {
  font-size: 12px;
}

.profile-copy small {
  font-size: 9.5px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.page-head h1 {
  font-size: clamp(28px, 2.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-head p {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
}

.btn {
  font-size: 13px;
  font-weight: 600;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.nav-item:focus-visible,
.text-btn:focus-visible,
.row-action:focus-visible,
.filter-tab:focus-visible,
.pager-btn:focus-visible,
.mobile-nav a:focus-visible,
.mobile-nav button:focus-visible {
  outline: 2px solid rgba(7, 124, 92, 0.5);
  outline-offset: 2px;
}

.login-page {
  background: #f7faf9;
}

.login-panel {
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(22, 137, 112, 0.055), transparent 55%),
    #f8faf9;
}

.kpi-card {
  min-height: 158px;
  padding: 20px;
}

.kpi-label {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.kpi-value {
  font-size: clamp(28px, 2.4vw, 35px);
  font-weight: 700;
}

.kpi-value .unit {
  font-size: 12px;
}

.kpi-foot {
  color: var(--ink-3);
  font-size: 10px;
}

.kpi-trend {
  font-size: 9.5px;
}

.kpi-red .kpi-icon {
  color: var(--red);
  background: var(--red-soft);
}

.kpi-red::after {
  background: radial-gradient(circle, rgba(195, 70, 52, 0.11), transparent 68%);
}

.card-head h2 {
  font-size: 15px;
  font-weight: 700;
}

.card-head p {
  color: var(--ink-3);
  font-size: 11px;
}

.card-chip {
  font-size: 9px;
  font-weight: 600;
}

.card-chip.danger {
  color: var(--red);
  border-color: #f0d1ca;
  background: var(--red-soft);
}

.chart-summary {
  color: var(--ink-3);
  font-size: 9.5px;
}

.chart-summary strong {
  font-size: 11px;
  font-weight: 700;
}

.chart-axis-label {
  fill: #657a70;
  font-size: 10px;
}

.chart-month {
  fill: #53685e;
  font-size: 10.5px;
}

.fleet-row {
  color: var(--ink-2);
  font-size: 10.5px;
}

.fleet-row strong {
  font-size: 11.5px;
}

.fleet-row small {
  color: var(--ink-4);
  font-size: 9px;
}

.donut-hole span {
  color: var(--ink-3);
  font-size: 9px;
}

.utilization-head {
  color: var(--ink-3);
  font-size: 9.5px;
}

.utilization-head strong {
  font-size: 11px;
}

.utilization p {
  color: var(--ink-4);
  font-size: 9px;
}

.todo-copy strong {
  font-size: 11.5px;
  font-weight: 600;
}

.todo-copy small {
  color: var(--ink-3);
  font-size: 9.5px;
}

.todo-due {
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--surface-3);
  font-size: 9px;
  font-weight: 600;
}

.todo-due small {
  color: var(--ink-4);
  font-size: 8px;
  font-weight: 400;
}

.todo-due.danger {
  color: var(--red);
  background: var(--red-soft);
}

.todo-due.warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.todo-item {
  padding: 9px 0;
  border-top-color: #eaf0ec;
}

.todo-item.is-overdue {
  margin: 3px 0;
  padding: 10px 8px;
  border-top-color: transparent;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(195, 70, 52, 0.075), rgba(195, 70, 52, 0.012));
}

.todo-item.is-overdue + .todo-item {
  border-top-color: transparent;
}

.todo-item.is-overdue .todo-copy strong {
  color: #9e3526;
}

.activity-copy strong {
  font-size: 10.5px;
  font-weight: 600;
}

.activity-copy p,
.activity-label {
  color: var(--ink-3);
  font-size: 9.5px;
}

.activity-item time {
  color: var(--ink-4);
  font-size: 8.5px;
}

.activity-foot {
  color: var(--ink-4);
  font-size: 9px;
}

.search-box input {
  font-size: 12px;
}

.search-box kbd {
  font-size: 8px;
}

.filter-tab {
  font-size: 10.5px;
}

.tab-count {
  font-size: 8.5px;
}

.select-wrap select {
  font-size: 10.5px;
}

.data-table th {
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 600;
}

.data-table td {
  color: var(--ink-2);
  font-size: 12.5px;
}

.entity-cell strong,
.person-cell strong,
.stack-cell strong {
  font-size: 12.5px;
  font-weight: 600;
}

.entity-cell small,
.person-cell small,
.stack-cell small {
  color: var(--ink-3);
  font-size: 10px;
}

.person-compact strong {
  font-size: 11.5px;
}

.person-compact small {
  font-size: 9px;
}

.doc-stack {
  font-size: 10.5px;
}

.doc-stack small {
  font-size: 9.5px;
}

.subtle-pill {
  font-size: 8.5px;
}

.status-pill {
  font-size: 9.5px;
  font-weight: 600;
}

.score em {
  font-size: 12px;
}

.score small {
  font-size: 8.5px;
}

.date-cell strong {
  font-size: 10.5px;
}

.date-cell small {
  font-size: 8.5px;
}

.type-cell strong {
  font-size: 11.5px;
}

.type-cell small {
  font-size: 8.5px;
}

.amount {
  font-size: 12.5px;
}

.record-type {
  font-size: 8.5px;
}

.muted-text {
  color: var(--ink-4);
  font-size: 10px;
}

.due-text {
  font-size: 8px;
}

.row-action {
  width: 30px;
  height: 30px;
  color: var(--ink-3);
}

.pager-info {
  color: var(--ink-3);
  font-size: 9.5px;
}

.pager-btn {
  font-size: 10px;
}

.summary-card > span {
  font-size: 10px;
}

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

.summary-card small {
  font-size: 8.5px;
}

.notice-strip strong {
  font-size: 11px;
}

.notice-strip span {
  font-size: 9.5px;
}

.mobile-title strong {
  font-size: 13px;
}

.mobile-title small {
  font-size: 10px;
}

.mobile-meta {
  font-size: 10px;
}

.owner-line {
  font-size: 9.5px;
}

.money-inline {
  font-size: 12px;
}

.mobile-desc {
  font-size: 11px;
}

.form-field > label {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-size: 13px;
}

.form-select-wrap select {
  font-size: 13px;
}

.field-help {
  color: var(--ink-4);
  font-size: 9.5px;
}

.modal-head h2 {
  font-size: 19px;
  font-weight: 700;
}

.modal-head p {
  color: var(--ink-3);
  font-size: 11px;
}

.form-error {
  font-size: 10.5px;
}

.confirm-copy strong {
  font-size: 13px;
}

.confirm-copy p {
  color: var(--ink-3);
  font-size: 10.5px;
}

.settings-stat > div > span {
  font-size: 9.5px;
}

.settings-stat strong {
  font-size: 21px;
}

.permission-row {
  font-size: 10px;
}

.permission-head {
  font-size: 9px;
}

.permission-note,
.info-rows span,
.info-rows strong,
.sync-copy p {
  font-size: 9.5px;
}

.sync-copy strong {
  font-size: 12px;
}

.role-pill {
  font-size: 9px;
}

.account-status {
  font-size: 9.5px;
}

.popover-head strong {
  font-size: 13px;
}

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

.notify-copy small {
  font-size: 9.5px;
}

.popover-item {
  font-size: 11px;
}

.toast-copy strong {
  font-size: 11.5px;
}

.toast-copy span {
  font-size: 9.5px;
}

.login-copy p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.9;
}

.login-brand span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
}

.visual-stats span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.visual-card-foot {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.login-sub {
  color: var(--ink-3);
  font-size: 13px;
}

.login-field > span {
  font-size: 12px;
}

.login-input input {
  font-size: 14px;
}

.demo-account strong {
  font-size: 11px;
}

.demo-account span {
  font-size: 11px;
}

/* 待办提醒：提升视觉权重 */
.attention-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -5px 0 17px;
  padding: 13px 16px;
  border: 1px solid #efcfc7;
  border-radius: 14px;
  background: linear-gradient(100deg, #fff3ef 0%, #fffaf6 62%, #fffdfb 100%);
  box-shadow: 0 7px 22px rgba(159, 60, 42, 0.07);
}

.attention-banner:not(.is-urgent) {
  border-color: #eeddbf;
  background: linear-gradient(100deg, #fdf7ea 0%, #fffdf8 65%, #fffefb 100%);
  box-shadow: 0 7px 22px rgba(160, 110, 21, 0.06);
}

.attention-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--red);
  background: #f9dcd5;
  box-shadow: inset 0 0 0 1px rgba(195, 70, 52, 0.08);
}

.attention-banner:not(.is-urgent) .attention-icon {
  color: var(--amber);
  background: var(--amber-soft);
}

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

.attention-copy strong {
  color: #7e2c20;
  font-size: 12.5px;
  font-weight: 700;
}

.attention-banner:not(.is-urgent) .attention-copy strong {
  color: #825313;
}

.attention-copy span {
  overflow: hidden;
  color: #7f5b52;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-banner:not(.is-urgent) .attention-copy span {
  color: #836b45;
}

.attention-copy em {
  margin-left: 4px;
  color: var(--red);
  font-style: normal;
  font-weight: 700;
}

.attention-banner:not(.is-urgent) .attention-copy em {
  color: var(--amber);
}

.attention-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(195, 70, 52, 0.17);
  border-radius: 9px;
  color: #a73e2d;
  background: rgba(255, 255, 255, 0.65);
  font-size: 10.5px;
  font-weight: 600;
}

.attention-banner:not(.is-urgent) .attention-action {
  color: #8b5a12;
  border-color: rgba(177, 106, 11, 0.2);
}

.attention-action:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(127, 51, 37, 0.09);
}

.todo-card-featured {
  position: relative;
  overflow: hidden;
  border-color: #ecdfc9;
  background: linear-gradient(180deg, #fffdf8 0%, #fff 34%);
}

.todo-card-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #d59632, #e7b665 55%, #f4d8aa);
}

.todo-card-featured.is-urgent {
  border-color: #efd1ca;
  background: linear-gradient(180deg, #fffaf8 0%, #fff 32%);
}

.todo-card-featured.is-urgent::before {
  background: linear-gradient(90deg, #bf452f, #e17b64 60%, #f0b2a4);
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.todo-head-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  color: var(--amber);
  background: var(--amber-soft);
}

.todo-head-icon.urgent {
  color: var(--red);
  background: var(--red-soft);
}

.todo-head-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.todo-card-featured .todo-list {
  margin-top: 7px;
}

.todo-card-featured .todo-item:first-child {
  border-top: 0;
}

.todo-modal-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.todo-modal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  text-align: left;
}

.todo-modal-item:hover {
  border-color: #cfe0d6;
  background: var(--surface-2);
}

.todo-modal-item .todo-copy {
  gap: 2px;
}

.todo-modal-item .todo-copy strong {
  font-size: 12px;
}

.todo-modal-item .todo-copy small {
  font-size: 10px;
}

.todo-chevron {
  color: var(--ink-4);
}

/* ---------- Readability: responsive ---------- */
@media (max-width: 1080px) {
  .attention-banner {
    margin-top: 0;
  }

  .dash-grid > .todo-card-featured {
    order: -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    background: rgba(242, 246, 247, 0.95);
  }

  .breadcrumb strong {
    font-size: 12.5px;
  }

  .page-head h1 {
    font-size: 26px;
  }

  .page-head p {
    font-size: 12px;
    line-height: 1.7;
  }

  .btn {
    font-size: 12.5px;
  }

  .kpi-label {
    font-size: 11px;
  }

  .kpi-value {
    font-size: 26px;
  }

  .kpi-foot {
    font-size: 9.5px;
  }

  .card-head h2 {
    font-size: 14px;
  }

  .card-head p {
    font-size: 10.5px;
  }

  .attention-banner {
    flex-wrap: wrap;
    gap: 9px;
    padding: 11px 12px;
  }

  .attention-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .attention-copy strong {
    font-size: 11.5px;
  }

  .attention-copy span {
    font-size: 10px;
    white-space: normal;
  }

  .attention-action {
    width: calc(100% - 45px);
    height: 32px;
    margin-left: 45px;
    justify-content: center;
  }

  .todo-head-icon {
    width: 33px;
    height: 33px;
  }

  .todo-head-actions {
    gap: 5px;
  }

  .todo-head-actions .card-chip {
    display: none;
  }

  .todo-copy strong {
    font-size: 11.5px;
  }

  .todo-copy small {
    font-size: 9.5px;
  }

  .todo-due {
    font-size: 9px;
  }

  .mobile-title strong {
    font-size: 13px;
  }

  .mobile-title small {
    font-size: 10px;
  }

  .mobile-meta {
    font-size: 10px;
  }

  .filter-tab {
    font-size: 10px;
  }

  .search-box input {
    font-size: 12px;
  }

  .form-field > label {
    font-size: 11px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea,
  .form-select-wrap select {
    font-size: 13px;
  }

  .mobile-nav em {
    font-size: 9px;
  }

  .toast-copy strong {
    font-size: 11.5px;
  }

  .toast-copy span {
    font-size: 9.5px;
  }
}
