:root {
  --green-950: #073c2b;
  --green-900: #075a3a;
  --green-800: #087a4b;
  --green-700: #079554;
  --green-600: #10a963;
  --green-100: #dcf4e6;
  --green-50: #f0faf4;
  --lime: #b9db68;
  --lime-soft: #edf5d6;
  --blue: #2d6cdf;
  --blue-soft: #eaf1ff;
  --amber: #e49a29;
  --amber-soft: #fff4dd;
  --violet: #7857d8;
  --violet-soft: #f0ebff;
  --red: #de5252;
  --red-soft: #ffeded;
  --ink: #18322a;
  --ink-soft: #5f736c;
  --line: #dfe8e3;
  --surface: #ffffff;
  --canvas: #f5f7f5;
  --shadow-sm: 0 2px 9px rgba(16, 55, 40, 0.06);
  --shadow-md: 0 12px 34px rgba(16, 55, 40, 0.1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --font: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, [data-route], [data-action] { -webkit-tap-highlight-color: transparent; }
svg { width: 1.25em; height: 1.25em; display: block; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(1.65rem, 2.8vw, 2.35rem); line-height: 1.25; letter-spacing: -.03em; }
h2 { margin-bottom: 6px; font-size: 1.35rem; line-height: 1.3; }
h3 { margin-bottom: 5px; font-size: 1.02rem; }
p { color: var(--ink-soft); line-height: 1.65; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 254px;
  flex-direction: column;
  padding: 24px 18px 18px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 8px 30px;
}
.brand-button { padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.brand-mark { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; color: var(--green-700); }
.brand-mark svg { width: 100%; height: 100%; }
.crm-brand { display: grid; grid-template-columns: 1fr; justify-items: start; gap: 5px; padding-top: 4px; }
.crm-brand img { display: block; width: 154px; height: auto; object-fit: contain; }
.crm-brand small { padding-left: 46px; color: #86a499; font-size: .55rem; font-weight: 800; letter-spacing: .18em; }
.crm-mobile-brand { gap: 7px; }
.crm-mobile-brand img { display: block; width: 96px; height: auto; object-fit: contain; }
.crm-mobile-brand small { color: var(--ink-soft); font-size: .55rem; font-weight: 800; letter-spacing: .12em; }
.brand strong { display: block; color: var(--green-950); font-size: 1.13rem; letter-spacing: .04em; line-height: 1; }
.brand small { display: block; margin-top: 5px; color: var(--green-700); font-size: .64rem; letter-spacing: .21em; }
.nav-label { margin: 0 12px 9px; color: #91a19a; font-size: .69rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  position: relative;
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 0;
  border-radius: 13px;
  color: #60756c;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}
.nav-item:hover { color: var(--green-800); background: var(--green-50); transform: translateX(2px); }
.nav-item.active { color: var(--green-800); background: var(--green-100); }
.nav-item.active::before { position: absolute; left: 0; width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--green-700); content: ""; }
.nav-item svg { width: 19px; height: 19px; }
.side-help { margin-top: auto; padding: 16px; border: 1px solid #d4eadb; border-radius: var(--radius-md); background: linear-gradient(145deg, #effaf3, #fbfdfb); }
.side-help .help-icon { display: grid; width: 34px; height: 34px; margin-bottom: 10px; place-items: center; border-radius: 10px; color: white; background: var(--green-700); }
.side-help strong { font-size: .88rem; }
.side-help p { margin: 3px 0 9px; font-size: .74rem; line-height: 1.5; }
.system-health .system-online { display: inline-flex; align-items: center; gap: 5px; color: var(--green-800); font-size: .61rem; font-weight: 700; }
.system-health .system-online i, .system-pill i { width: 7px; height: 7px; border-radius: 50%; background: #10a963; box-shadow: 0 0 0 3px rgba(16,169,99,.12); }
.text-button { padding: 0; border: 0; color: var(--green-800); background: transparent; font-size: .78rem; font-weight: 700; cursor: pointer; }
.text-button span { margin-left: 3px; transition: margin .2s; }
.text-button:hover span { margin-left: 7px; }
.side-profile { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 11px 8px 0; border-top: 1px solid var(--line); }
.avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--green-950); background: #dcecd0; font-weight: 800; }
.side-profile strong, .top-profile strong { display: block; overflow: hidden; max-width: 120px; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.side-profile small, .top-profile small { display: block; margin-top: 2px; color: #8a9a94; font-size: .68rem; }
.side-profile .small { margin-left: auto; }

.main-content { min-height: 100vh; margin-left: 254px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid rgba(223, 232, 227, .9);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(15px);
}
.mobile-brand { display: none; align-items: center; gap: 7px; color: var(--green-950); }
.mobile-brand .brand-mark { width: 31px; height: 31px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: #9aa8a2; font-size: .75rem; letter-spacing: .03em; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.mode-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf8; }
.mode-switch button { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border: 0; border-radius: 8px; color: #788a83; background: transparent; font-size: .72rem; font-weight: 700; cursor: pointer; }
.mode-switch button.active { color: var(--green-800); background: white; box-shadow: var(--shadow-sm); }
.mode-switch svg { width: 15px; height: 15px; }
.line-context { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border: 1px solid #d7eadc; border-radius: 11px; background: #f5fbf7; }
.line-context .line-dot { display: grid; width: 32px; height: 27px; place-items: center; border-radius: 8px; color: white; background: #06c755; font-size: .58rem; font-weight: 900; letter-spacing: -.02em; }
.line-context strong, .line-context small { display: block; line-height: 1.15; }
.line-context strong { color: var(--green-900); font-size: .67rem; }
.line-context small { margin-top: 2px; color: #84958e; font-size: .55rem; }
.icon-button { position: relative; display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-soft); background: var(--surface); cursor: pointer; }
.icon-button:hover { color: var(--green-800); background: var(--green-50); }
.icon-button:disabled { opacity: .45; cursor: not-allowed; background: #f5f8f6; }
.icon-button.small { width: 30px; height: 30px; border: 0; background: transparent; }
.notification-button i { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: #ef5b4f; }
.top-profile { display: flex; align-items: center; gap: 9px; margin-left: 4px; }
.system-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #d7eadc; border-radius: 99px; color: var(--green-800); background: #f5fbf7; font-size: .63rem; font-weight: 700; }
.top-profile .avatar { width: 38px; height: 38px; }

.page { max-width: 1440px; min-height: calc(100vh - 74px); margin: 0 auto; padding: 30px 34px 70px; }
.app-loading { display: flex; min-height: 60vh; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-soft); text-align: center; }
.app-loading .loading-mark { display: grid; width: 58px; height: 58px; margin-bottom: 14px; place-items: center; border-radius: 18px; color: var(--green-800); background: var(--green-100); animation: loadingPulse 1.3s ease-in-out infinite; }
.app-loading .loading-mark svg { width: 28px; height: 28px; }
.app-loading strong, .app-loading small { display: block; }
.app-loading strong { color: var(--ink); }
.app-loading small { margin-top: 4px; font-size: .7rem; }
@keyframes loadingPulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(16,169,99,.08); } }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.page-header p { margin: 0; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--green-700); font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.button svg { width: 18px; height: 18px; }
.button-primary { color: white; background: var(--green-800); }
.button-primary:hover { background: var(--green-900); }
.button-dark { color: white; background: var(--green-950); }
.button-soft { color: var(--green-900); border-color: #cfe8d8; background: var(--green-50); }
.button-outline { color: var(--ink); border-color: var(--line); background: white; }
.button-danger-soft { color: #b63f3f; border-color: #f7cdcd; background: var(--red-soft); }
.button-full { width: 100%; }
.button-sm { min-height: 34px; padding: 6px 12px; border-radius: 9px; font-size: .74rem; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-pad { padding: 21px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.section-title h2, .section-title h3 { margin: 0; }
.section-title p { margin: 3px 0 0; font-size: .76rem; }
.section-title .text-button { white-space: nowrap; }

/* Home */
.home-hero { position: relative; overflow: hidden; display: grid; min-height: 230px; grid-template-columns: 1.3fr .7fr; align-items: center; padding: 31px 34px; border: 0; border-radius: var(--radius-lg); color: white; background: linear-gradient(125deg, #064b35 0%, #087d4c 60%, #41a65d 100%); box-shadow: 0 16px 38px rgba(8, 88, 55, .18); }
.home-hero::before { position: absolute; right: -50px; bottom: -130px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.04), 0 0 0 86px rgba(255,255,255,.03); content: ""; }
.home-hero::after { position: absolute; top: -60px; right: 31%; width: 150px; height: 150px; border-radius: 50%; background: rgba(185, 219, 104, .1); content: ""; }
.hero-content { position: relative; z-index: 1; }
.hero-content .eyebrow { color: #bfebca; }
.hero-content h1 { max-width: 620px; margin-bottom: 10px; color: white; }
.hero-content p { max-width: 610px; margin-bottom: 20px; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.home-hero .button-primary { color: var(--green-950); background: #d8f06e; }
.home-hero .button-outline { color: white; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.solar-orbit { position: relative; z-index: 1; display: grid; width: 168px; height: 168px; place-items: center; justify-self: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.solar-orbit::before { position: absolute; width: 112px; height: 112px; border: 1px dashed rgba(255,255,255,.25); border-radius: 50%; content: ""; }
.solar-orbit .sun { display: grid; width: 70px; height: 70px; place-items: center; border-radius: 50%; color: #735a00; background: #d8f06e; box-shadow: 0 0 45px rgba(216,240,110,.4); }
.solar-orbit .sun svg { width: 32px; height: 32px; }
.orbit-dot { position: absolute; top: 17px; right: 18px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--green-900); background: white; }
.quick-section { margin-top: 23px; }
.quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.quick-card { position: relative; overflow: hidden; min-height: 126px; padding: 17px 15px; border: 1px solid var(--line); border-radius: 17px; background: white; text-align: left; cursor: pointer; transition: .2s ease; }
.quick-card:hover { border-color: #a9d9b9; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quick-card::after { position: absolute; right: -21px; bottom: -30px; width: 74px; height: 74px; border-radius: 50%; background: var(--accent-soft); content: ""; }
.quick-card .quick-icon { position: relative; z-index: 1; display: grid; width: 40px; height: 40px; margin-bottom: 13px; place-items: center; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.quick-card strong { position: relative; z-index: 1; display: block; font-size: .84rem; }
.quick-card small { position: relative; z-index: 1; display: block; margin-top: 4px; color: #81928c; font-size: .68rem; }
.quick-card.green { --accent: var(--green-800); --accent-soft: var(--green-100); }
.quick-card.blue { --accent: var(--blue); --accent-soft: var(--blue-soft); }
.quick-card.violet { --accent: var(--violet); --accent-soft: var(--violet-soft); }
.quick-card.orange { --accent: #d67b22; --accent-soft: #fff0e1; }
.quick-card.gold { --accent: #b07b15; --accent-soft: var(--amber-soft); }
.quick-card.slate { --accent: #4c6b61; --accent-soft: #e8efeb; }
.home-content-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; margin-top: 20px; }
.project-summary { padding: 22px; }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-title { display: flex; align-items: center; gap: 12px; }
.project-icon { display: grid; width: 47px; height: 47px; place-items: center; border-radius: 14px; color: var(--green-800); background: var(--green-100); }
.project-title p { margin: 4px 0 0; font-size: .72rem; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.badge::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.badge-progress { color: #2e6ec6; background: #eaf2ff; }
.badge-success { color: var(--green-800); background: var(--green-100); }
.badge-waiting { color: #b27615; background: var(--amber-soft); }
.progress-header { display: flex; align-items: end; justify-content: space-between; margin-top: 22px; }
.progress-header strong { font-size: 1.7rem; line-height: 1; }
.progress-header span { color: var(--ink-soft); font-size: .72rem; }
.progress-bar { overflow: hidden; height: 9px; margin-top: 9px; border-radius: 99px; background: #e8efeb; }
.progress-bar span { display: block; width: 45%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-800), #58bd6f); }
.progress-labels { display: flex; justify-content: space-between; margin-top: 8px; color: #81928c; font-size: .68rem; }
.next-action { display: flex; align-items: center; gap: 13px; margin-top: 20px; padding: 14px; border-radius: 13px; background: #f5f8f6; }
.next-action .mini-icon { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--blue); background: var(--blue-soft); }
.next-action strong, .next-action small { display: block; }
.next-action strong { font-size: .78rem; }
.next-action small { margin-top: 3px; color: var(--ink-soft); font-size: .67rem; }
.next-action .button { margin-left: auto; }
.saving-card { display: flex; flex-direction: column; padding: 22px; background: linear-gradient(150deg, #fff, #f5faee); }
.saving-value { display: flex; align-items: baseline; gap: 6px; margin: 11px 0 2px; }
.saving-value strong { color: var(--green-900); font-size: 2.05rem; letter-spacing: -.04em; }
.saving-value span { color: var(--ink-soft); font-size: .76rem; }
.saving-chart { display: flex; height: 78px; align-items: end; gap: 7px; margin-top: auto; padding-top: 13px; border-bottom: 1px solid #dfe9df; }
.saving-chart i { flex: 1; min-width: 7px; border-radius: 4px 4px 0 0; background: #b9dba9; }
.saving-chart i:nth-child(5), .saving-chart i:nth-child(6) { background: var(--green-700); }
.chart-labels { display: flex; justify-content: space-between; margin-top: 7px; color: #94a29d; font-size: .62rem; }
.impact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 17px; }
.impact-row div { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.7); }
.impact-row strong, .impact-row small { display: block; }
.impact-row strong { font-size: .82rem; }
.impact-row small { margin-top: 2px; color: var(--ink-soft); font-size: .65rem; }

/* Forms / Estimate */
.flow-layout { display: grid; grid-template-columns: minmax(0, 1fr) 342px; align-items: start; gap: 20px; }
.form-card { padding: 25px; }
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 27px; }
.step { display: flex; align-items: center; gap: 8px; color: #9aa9a3; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.step i { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; font-style: normal; }
.step.active { color: var(--green-800); }
.step.active i { color: white; border-color: var(--green-800); background: var(--green-800); }
.step.done i { color: var(--green-800); border-color: #a8d7b7; background: var(--green-100); }
.step-line { flex: 1; min-width: 24px; height: 1px; margin: 0 8px; background: var(--line); }
.form-section { padding-top: 4px; }
.form-section + .form-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.field-label { display: block; margin-bottom: 9px; font-size: .78rem; font-weight: 800; }
.field-hint { float: right; color: #8b9a94; font-size: .66rem; font-weight: 400; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.choice { position: relative; display: flex; min-height: 91px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: white; font-size: .73rem; font-weight: 700; text-align: center; cursor: pointer; }
.choice:hover { border-color: #a8d7b7; background: var(--green-50); }
.choice.selected { color: var(--green-900); border: 2px solid var(--green-700); background: var(--green-50); }
.choice.selected::after { position: absolute; top: 6px; right: 6px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: white; background: var(--green-700); content: "✓"; font-size: .62rem; }
.choice svg { width: 25px; height: 25px; color: #5d746a; }
.choice.selected svg { color: var(--green-700); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: .75rem; font-weight: 700; }
.input, .select, .textarea { width: 100%; min-height: 45px; padding: 10px 13px; border: 1px solid #d7e1dc; border-radius: 11px; outline: none; color: var(--ink); background: white; transition: border .18s, box-shadow .18s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(16,169,99,.12); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 60px; }
.input-suffix { position: absolute; top: 50%; right: 13px; color: var(--ink-soft); font-size: .72rem; transform: translateY(-50%); }
.range-wrap { display: flex; align-items: center; gap: 13px; }
.range { width: 100%; accent-color: var(--green-700); }
.range-value { min-width: 84px; padding: 8px 10px; border-radius: 9px; color: var(--green-900); background: var(--green-50); font-size: .75rem; font-weight: 800; text-align: center; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; }
.tip-card { padding: 20px; background: linear-gradient(145deg, #f6fbf2, white); }
.tip-icon { display: grid; width: 43px; height: 43px; margin-bottom: 14px; place-items: center; border-radius: 13px; color: #92701a; background: #f4edc4; }
.tip-card h3 { margin-bottom: 7px; }
.tip-card p { margin-bottom: 0; font-size: .75rem; }
.aside-summary { position: sticky; top: 94px; }
.result-card { overflow: hidden; border: 0; color: white; background: linear-gradient(145deg, #064a34, #0a8651); box-shadow: 0 16px 36px rgba(8, 94, 57, .2); }
.result-top { padding: 24px; }
.result-top .eyebrow { color: #bde9c8; }
.result-top h2 { color: white; }
.result-top p { color: rgba(255,255,255,.72); font-size: .76rem; }
.result-system { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: rgba(255,255,255,.08); }
.result-system strong { display: block; color: #ddf376; font-size: 2.35rem; line-height: 1; }
.result-system span { font-size: .7rem; color: rgba(255,255,255,.65); }
.result-system .result-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: #725900; background: #dbf279; }
.result-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.12); }
.result-details div { padding: 15px 20px; background: rgba(0,0,0,.08); }
.result-details small, .result-details strong { display: block; }
.result-details small { margin-bottom: 3px; color: rgba(255,255,255,.63); font-size: .65rem; }
.result-details strong { font-size: .92rem; }
.result-actions { padding: 19px; background: rgba(3,47,32,.35); }
.result-actions .button-primary { color: var(--green-950); background: #ddf376; }
.result-actions .button-outline { margin-top: 8px; color: white; border-color: rgba(255,255,255,.2); background: transparent; }
.empty-result { padding: 25px; text-align: center; }
.empty-result .empty-icon { display: grid; width: 62px; height: 62px; margin: 4px auto 15px; place-items: center; border-radius: 19px; color: var(--green-700); background: var(--green-100); }
.empty-result p { margin-bottom: 0; font-size: .76rem; }

/* Survey */
.booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 18px; }
.calendar-card, .booking-card { padding: 23px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.calendar-head h3 { margin: 0; }
.calendar-controls { display: flex; gap: 6px; }
.calendar-controls .icon-button { width: 34px; height: 34px; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-week span { padding: 6px; color: #879790; font-size: .67rem; font-weight: 700; text-align: center; }
.calendar-day { min-height: 51px; padding: 6px; border: 1px solid transparent; border-radius: 12px; background: transparent; font-size: .74rem; cursor: pointer; }
.calendar-day:hover:not(:disabled) { color: var(--green-800); background: var(--green-50); }
.calendar-day.muted { color: #c0cbc6; }
.calendar-day:disabled { color: #c8d1cd; cursor: not-allowed; text-decoration: line-through; }
.calendar-day.available::after { display: block; width: 4px; height: 4px; margin: 3px auto 0; border-radius: 50%; background: var(--green-600); content: ""; }
.calendar-day.selected { color: white; background: var(--green-800); box-shadow: 0 6px 14px rgba(8,122,75,.2); }
.calendar-day.selected::after { background: white; }
.calendar-day small { display: block; margin-top: 1px; color: inherit; font-size: .52rem; opacity: .72; }
.calendar-day.loading { background: #f7faf8; animation: loadingPulse 1.1s ease-in-out infinite; }
.calendar-note { margin: 11px 0 0; color: var(--ink-soft); font-size: .68rem; }
.calendar-note.error { color: #b84335; }
.calendar-legend { display: flex; gap: 16px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .66rem; }
.legend { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); }
.legend.unavailable i { background: #cfd7d3; }
.time-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time-slot { padding: 9px 5px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: .72rem; font-weight: 700; cursor: pointer; }
.time-slot.selected { color: white; border-color: var(--green-800); background: var(--green-800); }
.time-slot:disabled { color: #b9c5bf; cursor: not-allowed; background: #f7faf8; text-decoration: line-through; }
.time-slot small { display: block; margin-top: 2px; font-size: .55rem; text-decoration: none; }
.upload-zone { display: flex; min-height: 104px; flex-direction: column; align-items: center; justify-content: center; padding: 15px; border: 1px dashed #b9cbc2; border-radius: 13px; color: var(--ink-soft); background: #fafcfb; text-align: center; cursor: pointer; }
.upload-zone:hover { border-color: var(--green-600); background: var(--green-50); }
.upload-zone input { display: none; }
.upload-zone svg { width: 25px; height: 25px; margin-bottom: 6px; color: var(--green-700); }
.upload-zone strong { color: var(--ink); font-size: .72rem; }
.upload-zone small { margin-top: 2px; font-size: .62rem; }
.uploaded { color: var(--green-800) !important; }
.booking-summary { margin: 18px 0; padding: 14px; border-radius: 13px; background: #f4f8f5; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .72rem; }
.summary-row span { color: var(--ink-soft); }
.summary-row strong { text-align: right; }
.process-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.process-step { position: relative; display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.process-step i { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--green-800); background: var(--green-100); font-size: .68rem; font-style: normal; font-weight: 800; }
.process-step strong, .process-step small { display: block; }
.process-step strong { font-size: .7rem; }
.process-step small { color: #889892; font-size: .61rem; }

/* Status */
.status-overview { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; padding: 22px 25px; }
.status-project { display: flex; align-items: center; gap: 13px; }
.status-project .project-icon { width: 52px; height: 52px; }
.status-project h2 { margin: 0 0 4px; }
.status-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-soft); font-size: .69rem; }
.status-meta span { display: inline-flex; align-items: center; gap: 5px; }
.status-next { padding-left: 25px; border-left: 1px solid var(--line); }
.status-next small, .status-next strong { display: block; }
.status-next small { color: var(--ink-soft); font-size: .67rem; }
.status-next strong { margin: 4px 0; font-size: .88rem; }
.status-next span { color: var(--blue); font-size: .67rem; font-weight: 700; }
.timeline-card { margin-top: 18px; padding: 25px; }
.timeline { position: relative; margin-top: 20px; padding-left: 7px; }
.timeline::before { position: absolute; top: 20px; bottom: 24px; left: 21px; width: 2px; background: #dde8e1; content: ""; }
.timeline-item { position: relative; display: grid; grid-template-columns: 43px 1fr auto; gap: 13px; min-height: 78px; }
.timeline-dot { z-index: 1; display: grid; width: 30px; height: 30px; margin: 5px 0 0 0; place-items: center; border: 4px solid white; border-radius: 50%; color: white; background: #cbd5d0; box-shadow: 0 0 0 1px #cbd5d0; font-size: .64rem; }
.timeline-item.done .timeline-dot { background: var(--green-700); box-shadow: 0 0 0 1px var(--green-700); }
.timeline-item.current .timeline-dot { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline-content { padding: 4px 0 17px; }
.timeline-content strong { display: block; font-size: .8rem; }
.timeline-content p { margin: 3px 0 0; font-size: .69rem; line-height: 1.5; }
.timeline-date { padding-top: 7px; color: #8a9993; font-size: .67rem; white-space: nowrap; }
.timeline-item.current .timeline-content strong { color: var(--blue); }
.status-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 7px; padding: 14px; border-radius: 12px; color: #76571a; background: var(--amber-soft); font-size: .7rem; }
.status-note svg { flex: 0 0 auto; margin-top: 2px; }

/* Service */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.service-card { min-height: 145px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: white; text-align: left; cursor: pointer; transition: .2s; }
.service-card:hover, .service-card.active { border-color: var(--service-color); background: var(--service-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.service-card .service-icon { display: grid; width: 42px; height: 42px; margin-bottom: 15px; place-items: center; border-radius: 13px; color: var(--service-color); background: var(--service-soft); }
.service-card h3 { margin-bottom: 4px; }
.service-card p { margin: 0; font-size: .67rem; line-height: 1.5; }
.service-card.finance { --service-color: #3a6db7; --service-soft: #edf4ff; }
.service-card.repair { --service-color: #cc6b28; --service-soft: #fff1e7; }
.service-card.clean { --service-color: #178d91; --service-soft: #e8f8f6; }
.service-card.faq { --service-color: #7456c8; --service-soft: #f1edff; }
.service-card.ai { --service-color: var(--green-800); --service-soft: var(--green-50); }
.service-panel { margin-top: 18px; padding: 24px; }
.service-panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; }
.bank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bank-option { padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; cursor: pointer; }
.bank-option span { display: grid; width: 33px; height: 33px; margin: 0 auto 7px; place-items: center; border-radius: 50%; color: white; background: var(--bank); font-size: .7rem; font-weight: 800; }
.bank-option strong { display: block; font-size: .66rem; }
.bank-option.selected { border: 2px solid var(--green-700); background: var(--green-50); }
.upload-list { display: grid; gap: 8px; }
.upload-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; }
.upload-row svg { color: var(--green-700); }
.upload-row div { flex: 1; }
.upload-row strong, .upload-row small { display: block; }
.upload-row strong { font-size: .7rem; }
.upload-row small { color: var(--ink-soft); font-size: .62rem; }
.upload-row label { color: var(--green-800); font-size: .66rem; font-weight: 700; cursor: pointer; }
.upload-row input { display: none; }
.ticket-preview { padding: 18px; border-radius: 15px; background: #f5f8f6; }
.ticket-preview h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ticket-status { margin-top: 14px; }
.ticket-status li { position: relative; margin: 0 0 11px; padding-left: 19px; color: var(--ink-soft); font-size: .69rem; list-style: none; }
.ticket-status li::before { position: absolute; top: 4px; left: 0; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: #c9d2ce; box-shadow: 0 0 0 1px #c9d2ce; content: ""; }
.ticket-status li.done { color: var(--ink); font-weight: 700; }
.ticket-status li.done::before { background: var(--green-700); box-shadow: 0 0 0 1px var(--green-700); }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.problem-option { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: white; font-size: .7rem; font-weight: 700; text-align: left; cursor: pointer; }
.problem-option.selected { color: var(--green-900); border-color: var(--green-700); background: var(--green-50); }
.faq-list { display: grid; gap: 8px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 15px; border: 0; background: white; font-size: .75rem; font-weight: 700; text-align: left; cursor: pointer; }
.faq-answer { display: none; padding: 0 15px 14px; color: var(--ink-soft); font-size: .7rem; line-height: 1.6; }
.faq-item.open .faq-answer { display: block; }
.chat-box { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 13px 15px; color: white; background: var(--green-900); }
.chat-header .ai-avatar { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: var(--green-950); background: #d9ee7b; }
.chat-header strong, .chat-header small { display: block; }
.chat-header strong { font-size: .77rem; }
.chat-header small { color: rgba(255,255,255,.7); font-size: .61rem; }
.chat-messages { min-height: 260px; max-height: 360px; overflow: auto; padding: 16px; background: #f6f9f7; }
.message { max-width: 85%; margin-bottom: 9px; padding: 10px 12px; border-radius: 13px 13px 13px 3px; background: white; box-shadow: var(--shadow-sm); font-size: .7rem; line-height: 1.55; }
.message.user { margin-left: auto; border-radius: 13px 13px 3px 13px; color: white; background: var(--green-700); }
.chat-input { display: flex; gap: 8px; padding: 10px; background: white; }
.chat-input .input { min-height: 39px; }
.chat-input .icon-button { width: 39px; height: 39px; color: white; border-color: var(--green-800); background: var(--green-800); }

/* Documents & account */
.document-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.filter-chip { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-soft); background: white; font-size: .68rem; font-weight: 700; cursor: pointer; }
.filter-chip.active { color: white; border-color: var(--green-800); background: var(--green-800); }
.document-list { overflow: hidden; }
.document-item { display: grid; grid-template-columns: 44px minmax(0,1fr) 110px 125px; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.document-item:last-child { border-bottom: 0; }
.doc-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; color: var(--doc-color); background: var(--doc-soft); }
.document-item strong, .document-item small { display: block; }
.document-item strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.document-item small { margin-top: 3px; color: #8b9a94; font-size: .62rem; }
.doc-date { color: var(--ink-soft); font-size: .66rem; }
.doc-actions { display: flex; justify-content: flex-end; gap: 5px; }
.doc-actions .icon-button { width: 32px; height: 32px; border-radius: 9px; }
.storage-card { padding: 19px; }
.storage-visual { position: relative; display: grid; width: 112px; height: 112px; margin: 9px auto 17px; place-items: center; border-radius: 50%; background: conic-gradient(var(--green-700) 0 36%, #e6ede9 36% 100%); }
.storage-visual::before { position: absolute; width: 83px; height: 83px; border-radius: 50%; background: white; content: ""; }
.storage-visual div { position: relative; text-align: center; }
.storage-visual strong, .storage-visual small { display: block; }
.storage-visual strong { font-size: 1.15rem; }
.storage-visual small { color: var(--ink-soft); font-size: .61rem; }
.storage-card p { margin: 0; font-size: .68rem; text-align: center; }
.account-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; }
.profile-card { padding: 24px; text-align: center; }
.profile-card .avatar { width: 82px; height: 82px; margin: 0 auto 13px; font-size: 1.4rem; }
.profile-card h2 { margin-bottom: 2px; }
.profile-card > p { margin-bottom: 17px; font-size: .72rem; }
.profile-details { padding-top: 13px; border-top: 1px solid var(--line); text-align: left; }
.profile-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; }
.profile-row svg { margin-top: 2px; color: var(--green-700); }
.profile-row strong, .profile-row small { display: block; }
.profile-row strong { font-size: .69rem; }
.profile-row small { margin-top: 2px; color: var(--ink-soft); font-size: .66rem; }
.account-panels { display: grid; gap: 18px; }
.mini-project { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; }
.mini-project .project-icon { width: 42px; height: 42px; }
.mini-project strong, .mini-project small { display: block; }
.mini-project strong { font-size: .74rem; }
.mini-project small { margin-top: 3px; color: var(--ink-soft); font-size: .63rem; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td { padding: 11px 9px; border-bottom: 1px solid var(--line); font-size: .68rem; text-align: left; }
.history-table th { color: #83938d; font-weight: 600; }
.history-table td:last-child, .history-table th:last-child { text-align: right; }
.history-table tr:last-child td { border-bottom: 0; }

/* CRM */
.crm-page .page-header { align-items: center; }
.crm-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.crm-tabs button { padding: 7px 11px; border: 0; border-radius: 8px; color: var(--ink-soft); background: transparent; font-size: .7rem; font-weight: 700; cursor: pointer; }
.crm-tabs button.active { color: white; background: var(--green-800); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.kpi-card { padding: 17px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--kpi-color); background: var(--kpi-soft); }
.kpi-change { display: inline-flex; align-items: center; gap: 3px; color: var(--green-700); font-size: .63rem; font-weight: 800; }
.kpi-card h3 { margin: 14px 0 3px; font-size: 1.65rem; letter-spacing: -.03em; }
.kpi-card p { margin: 0; font-size: .66rem; }
.crm-main-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px,.55fr); gap: 15px; margin-top: 15px; }
.pipeline-card, .activity-card { padding: 20px; }
.pipeline-chart { display: flex; min-height: 190px; align-items: end; gap: 12px; padding: 18px 5px 0; border-bottom: 1px solid var(--line); }
.pipeline-column { display: flex; height: 170px; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.pipeline-column strong { font-size: .7rem; }
.pipeline-column i { width: 65%; min-width: 28px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #4cb675, var(--green-800)); }
.pipeline-column span { height: 27px; color: #778982; font-size: .61rem; text-align: center; }
.activity-list { display: grid; gap: 13px; margin-top: 15px; }
.activity-item { display: grid; grid-template-columns: 34px 1fr; gap: 9px; }
.activity-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--activity-color); background: var(--activity-soft); }
.activity-item strong, .activity-item small { display: block; }
.activity-item strong { font-size: .69rem; line-height: 1.5; }
.activity-item small { margin-top: 2px; color: #8d9b96; font-size: .61rem; }
.crm-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px,.75fr); gap: 15px; margin-top: 15px; }
.table-card { overflow: hidden; }
.table-card .section-title { padding: 18px 19px 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 15px; border-top: 1px solid var(--line); font-size: .66rem; text-align: left; white-space: nowrap; }
.data-table th { color: #84948e; background: #fafcfb; font-weight: 700; }
.data-table td strong { display: block; color: var(--ink); font-size: .69rem; }
.data-table td small { color: #8a9993; font-size: .6rem; }
.lead-avatar { display: flex; align-items: center; gap: 8px; }
.lead-avatar .avatar { width: 30px; height: 30px; font-size: .65rem; }
.score { display: inline-flex; min-width: 33px; justify-content: center; padding: 4px 7px; border-radius: 99px; color: var(--score-color); background: var(--score-soft); font-weight: 800; }
.schedule-list { display: grid; gap: 9px; }
.schedule-item { display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 10px; border-radius: 12px; background: #f6f9f7; }
.schedule-time { display: flex; flex-direction: column; justify-content: center; color: var(--green-800); border-right: 1px solid var(--line); font-weight: 800; }
.schedule-time small { color: var(--ink-soft); font-size: .58rem; font-weight: 500; }
.schedule-item strong, .schedule-item span { display: block; }
.schedule-item strong { font-size: .69rem; }
.schedule-item span { margin-top: 3px; color: var(--ink-soft); font-size: .61rem; }
.team-row { display: flex; margin-top: 12px; }
.team-row .avatar { width: 32px; height: 32px; margin-left: -7px; border: 2px solid white; font-size: .61rem; }
.team-row .avatar:first-child { margin-left: 0; }
.crm-table-page .table-card { margin-top: 15px; overflow-x: auto; }
.crm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.search-box { position: relative; width: min(320px, 100%); }
.search-box .input { padding-left: 39px; }
.search-box svg { position: absolute; top: 50%; left: 13px; width: 17px; height: 17px; color: #8b9994; transform: translateY(-50%); }
.table-actions { display: flex; align-items: center; gap: 7px; }
.crm-list-hint { color: var(--ink-soft); font-size: .69rem; }
.crm-no-search { padding: 20px; color: var(--ink-soft); text-align: center; }
.crm-detail-page { display: grid; gap: 18px; }
.detail-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; }
.detail-header h1 { margin: 3px 0; font-size: clamp(1.2rem,2.3vw,1.75rem); }
.detail-header p { margin: 0; font-size: .7rem; }
.detail-status { align-self: center; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(270px,.65fr); align-items: start; gap: 17px; }
.crm-detail-form { overflow: hidden; }
.detail-section { padding: 22px; border-bottom: 1px solid var(--line); }
.detail-section:last-of-type { border-bottom: 0; }
.detail-section h2 { margin: 0 0 16px; font-size: .98rem; }
.detail-section .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.detail-section > .field { margin-top: 15px; }
.field-wide { grid-column: 1 / -1; }
.field > small { color: var(--ink-soft); font-size: .62rem; }
.detail-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 18px 22px; background: #fafcfb; }
.detail-sidebar { display: grid; gap: 14px; }
.detail-side-card { padding: 19px; }
.detail-side-card h3 { margin: 4px 0 2px; }
.detail-side-card > p { margin: 0 0 14px; font-size: .68rem; }
.detail-facts { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
.detail-facts > div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-facts > div:last-child { border-bottom: 0; }
.detail-facts span { color: var(--ink-soft); font-size: .64rem; }
.detail-facts strong { overflow-wrap: anywhere; font-size: .68rem; text-align: right; }
.detail-facts-spaced { margin-top: 15px; }
.detail-list { display: grid; gap: 8px; margin-top: 12px; }
.detail-list > div { display: grid; grid-template-columns: 33px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; }
.detail-list-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: var(--green-700); background: var(--green-100); }
.detail-list p { margin: 0; }
.detail-list strong, .detail-list small { display: block; }
.detail-list strong { overflow: hidden; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.detail-list small { margin-top: 2px; color: var(--ink-soft); font-size: .57rem; }
.empty-inline { padding: 13px; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-soft); font-size: .66rem; text-align: center; }
.detail-activity { display: grid; margin-top: 13px; }
.detail-activity > div { display: grid; grid-template-columns: 13px minmax(0,1fr); gap: 8px; min-height: 48px; }
.detail-activity i { position: relative; width: 8px; height: 8px; margin-top: 5px; border: 2px solid white; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 2px var(--green-200); }
.detail-activity i::after { position: absolute; top: 9px; left: 1px; width: 1px; height: 31px; background: var(--line); content: ""; }
.detail-activity > div:last-child i::after { display: none; }
.detail-activity p { margin: 0; }
.detail-activity strong, .detail-activity small { display: block; }
.detail-activity strong { font-size: .67rem; }
.detail-activity small { margin-top: 2px; color: var(--ink-soft); font-size: .59rem; }
.mini-timeline { display: grid; margin-top: 14px; }
.mini-timeline > div { display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 8px; min-height: 44px; }
.mini-timeline i { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #cbd5d0; }
.mini-timeline .done i { background: var(--green-600); }
.mini-timeline .current i { background: #2d6cdf; box-shadow: 0 0 0 4px #eaf1ff; }
.mini-timeline p { margin: 0; }
.mini-timeline strong, .mini-timeline small { display: block; }
.mini-timeline strong { font-size: .66rem; }
.mini-timeline small { color: var(--ink-soft); font-size: .58rem; }
.detail-counts { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 12px; }
.detail-counts span { padding: 9px 5px; border-radius: 10px; background: #f4f8f5; font-size: .58rem; text-align: center; }
.detail-counts strong { display: block; color: var(--green-800); font-size: .9rem; }
.detail-loading, .detail-error { display: grid; min-height: 260px; place-items: center; align-content: center; gap: 10px; padding: 28px; text-align: center; }
.detail-error p { max-width: 480px; }

/* overlays */
.notification-panel { position: fixed; top: 0; right: 0; z-index: 41; width: min(390px, 93vw); height: 100vh; padding: 23px; background: white; box-shadow: -12px 0 42px rgba(18,50,39,.15); transform: translateX(105%); transition: transform .28s ease; }
.notification-panel.open { transform: translateX(0); }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; }
.notification-list { height: calc(100vh - 170px); overflow: auto; padding: 12px 0; }
.notification-item { display: grid; grid-template-columns: 38px 1fr; gap: 11px; width: 100%; padding: 13px 7px; border: 0; border-bottom: 1px solid #edf1ef; background: transparent; color: inherit; font: inherit; text-align: left; cursor: default; }
.notification-item[data-notification-entity] { cursor: pointer; }
.notification-item[data-notification-entity]:hover { background: #f1f8f4; }
.notification-item.unread { background: #f7fbf8; }
.notification-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: var(--note-color); background: var(--note-soft); }
.notification-item strong, .notification-item p, .notification-item small { display: block; }
.notification-item strong { font-size: .73rem; }
.notification-item p { margin: 3px 0; font-size: .67rem; line-height: 1.5; }
.notification-item small { color: #94a19c; font-size: .61rem; }
.notification-copy { min-width: 0; }
.notification-empty { display: grid; justify-items: center; gap: 8px; padding: 40px 14px; color: var(--ink-soft); text-align: center; }
.notification-empty p { margin: 0; font-size: .7rem; line-height: 1.55; }

.customer-requests-section { display: grid; gap: 14px; margin-bottom: 18px; }
.customer-requests { display: grid; gap: 10px; }
.customer-request { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: start; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }
.customer-request.compact { margin: 14px 0; padding: 13px 0; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
.customer-request-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--green-800); background: var(--green-100); }
.customer-request-icon svg { width: 23px; height: 23px; }
.customer-request-copy h3 { margin: 3px 0 0; font-size: .92rem; }
.customer-request-copy > p { margin: 7px 0; color: var(--ink-soft); font-size: .72rem; }
.customer-request-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--ink-soft); font-size: .65rem; }
.customer-request-meta span { display: inline-flex; align-items: center; gap: 4px; }
.customer-request-meta svg { width: 13px; height: 13px; }
.customer-request-meta strong { color: var(--ink); }
.customer-empty-card { display: grid; justify-items: center; align-content: center; gap: 9px; min-height: 220px; padding: 30px; text-align: center; }
.customer-empty-card h2, .customer-empty-card h3, .customer-empty-card p { margin: 0; }
.customer-empty-card p { max-width: 460px; color: var(--ink-soft); font-size: .76rem; line-height: 1.65; }
.energy-empty { display: grid; justify-items: center; align-content: center; gap: 9px; min-height: 220px; color: var(--ink-soft); text-align: center; }
.energy-empty > svg { width: 38px; height: 38px; color: var(--green-700); }
.energy-empty strong { color: var(--ink); }
.energy-empty p { max-width: 330px; margin: 0; font-size: .72rem; line-height: 1.65; }

@media (max-width: 640px) {
  .customer-request { grid-template-columns: 42px minmax(0, 1fr); padding: 14px; }
  .customer-request > .badge { grid-column: 2; justify-self: start; }
  .customer-request-icon { width: 42px; height: 42px; }
}
.scrim { position: fixed; inset: 0; z-index: 40; display: none; background: rgba(7,43,31,.35); backdrop-filter: blur(2px); }
.scrim.open { display: block; }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; gap: 8px; }
.toast { display: flex; min-width: 280px; max-width: 390px; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid #cce7d4; border-radius: 13px; background: white; box-shadow: var(--shadow-md); animation: toastIn .25s ease; }
.toast .toast-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: white; background: var(--green-700); }
.toast strong, .toast small { display: block; }
.toast strong { font-size: .72rem; }
.toast small { margin-top: 2px; color: var(--ink-soft); font-size: .64rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.modal-root { position: relative; z-index: 55; }
.modal-overlay { position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(7,43,31,.44); backdrop-filter: blur(3px); animation: fadeIn .2s ease; }
.modal { width: min(510px, 100%); max-height: 90vh; overflow: auto; padding: 25px; border-radius: 20px; background: white; box-shadow: 0 22px 60px rgba(7,43,31,.25); }
.modal-success { display: grid; width: 66px; height: 66px; margin: 0 auto 15px; place-items: center; border-radius: 50%; color: white; background: var(--green-700); box-shadow: 0 0 0 9px var(--green-100); }
.modal h2, .modal > p { text-align: center; }
.modal > p { font-size: .75rem; }
.modal-info { margin: 18px 0; padding: 14px; border-radius: 13px; background: #f5f8f6; }
.modal-actions { display: flex; justify-content: center; gap: 8px; }
@keyframes fadeIn { from { opacity: 0; } }
.more-sheet { position: fixed; right: 0; bottom: 0; left: 0; z-index: 55; padding: 9px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: white; box-shadow: 0 -15px 50px rgba(7,43,31,.16); }
.sheet-handle { width: 40px; height: 4px; margin: 0 auto 17px; border-radius: 9px; background: #d7dfdb; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.more-grid button { display: flex; min-height: 85px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 14px; background: white; font-size: .68rem; font-weight: 700; }
.more-grid button span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: var(--green-800); background: var(--green-100); }
.mobile-nav { display: none; }
.hide { display: none !important; }
.line-admin-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; margin: 18px 0; padding: 20px 22px; border-color: #bfe5ce; background: linear-gradient(110deg,#f4fcf7,#fff); }
.line-admin-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; color: white; background: #06c755; box-shadow: 0 8px 20px rgba(6,199,85,.18); }
.line-admin-icon svg { width: 25px; height: 25px; }
.line-admin-copy h2 { margin: 3px 0 2px; }
.line-admin-copy p { overflow-wrap: anywhere; margin: 0; font-size: .75rem; }
.line-admin-actions { display: grid; justify-items: end; gap: 7px; }
.line-admin-actions small { color: var(--ink-soft); font-size: .64rem; }
.rich-menu-tester { grid-column: 1 / -1; border-top: 1px solid #dcebe2; padding-top: 14px; }
.rich-menu-tester summary { width: fit-content; color: var(--green-800); font-size: .78rem; font-weight: 800; cursor: pointer; }
.rich-menu-test-grid { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(300px,1fr); gap: 20px; margin-top: 14px; }
.rich-menu-preview { overflow: hidden; align-self: start; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.rich-menu-preview img { display: block; width: 100%; height: auto; }
.rich-menu-test-form { padding: 3px 0; }
.rich-menu-test-form h3 { margin-bottom: 3px; }
.rich-menu-test-form p { margin-bottom: 12px; font-size: .72rem; }
.rich-menu-test-form .field { margin-bottom: 10px; }
.rich-menu-test-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rich-menu-test-form > small { display: block; margin-top: 9px; color: var(--ink-soft); font-size: .65rem; }

@media (max-width: 1180px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .topbar { height: 64px; padding: 0 18px; }
  .mobile-brand { display: flex; }
  .breadcrumb, .top-profile { display: none; }
  .page { min-height: calc(100vh - 64px); padding: 22px 18px 102px; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: grid; height: calc(70px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, 1fr); align-items: start; padding: 7px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(15px); }
  .mobile-nav button { display: flex; height: 56px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; color: #81918b; background: transparent; cursor: pointer; }
  .mobile-nav button.active { color: var(--green-800); }
  .mobile-nav svg { width: 20px; height: 20px; }
  .mobile-nav small { font-size: .61rem; font-weight: 700; }
  .mobile-nav .mobile-action { width: 58px; height: 58px; margin: -17px auto 0; border: 5px solid var(--canvas); border-radius: 50%; color: white; background: var(--green-800); box-shadow: 0 5px 13px rgba(8,122,75,.25); }
  .mobile-nav .mobile-action small { display: none; }
  .flow-layout, .booking-grid, .service-panel-grid, .document-layout, .account-grid, .crm-main-grid, .crm-bottom-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .aside-summary { position: static; }
  .home-content-grid { grid-template-columns: 1fr; }
  .home-hero { grid-template-columns: 1fr .45fr; padding: 26px; }
  .solar-orbit { width: 130px; height: 130px; }
  .service-grid { grid-template-columns: repeat(5, minmax(145px,1fr)); overflow-x: auto; padding-bottom: 5px; }
}

@media (max-width: 620px) {
  body { font-size: 14px; background: #f7f9f7; }
  .topbar { padding: 0 14px; }
  .line-context { padding: 4px 6px 4px 4px; }
  .line-context .line-dot { width: 29px; height: 25px; font-size: .54rem; }
  .line-context strong { font-size: .59rem; }
  .line-context small { display: none; }
  .mode-switch button { width: 36px; height: 34px; justify-content: center; padding: 0; }
  .mode-switch button svg { width: 17px; height: 17px; }
  .mode-switch button { font-size: 0; }
  .top-actions { gap: 7px; }
  .system-pill { display: none; }
  .page { padding: 18px 13px 98px; }
  .page-header { align-items: flex-start; margin-bottom: 18px; }
  .page-header .header-actions { align-self: flex-end; }
  .page-header p { font-size: .72rem; }
  .page-header .button span.label { display: none; }
  .home-hero { min-height: 270px; grid-template-columns: 1fr; padding: 25px 22px; }
  .home-hero h1 { font-size: 1.65rem; }
  .home-hero p { font-size: .74rem; }
  .solar-orbit { position: absolute; right: -35px; bottom: -34px; width: 145px; height: 145px; opacity: .75; }
  .hero-content { max-width: 83%; }
  .hero-actions .button { min-height: 40px; padding: 9px 13px; font-size: .72rem; }
  .quick-section { margin-top: 18px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick-card { min-height: 105px; padding: 12px 9px; text-align: center; }
  .quick-card .quick-icon { width: 36px; height: 36px; margin: 0 auto 9px; }
  .quick-card strong { font-size: .68rem; }
  .quick-card small { display: none; }
  .home-content-grid { gap: 13px; margin-top: 14px; }
  .project-summary, .saving-card, .card-pad { padding: 17px; }
  .next-action { align-items: flex-start; }
  .next-action .button { width: 34px; min-height: 34px; padding: 5px; font-size: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 18px; }
  .step span { display: none; }
  .stepper { justify-content: center; }
  .step-line { min-width: 32px; flex: 0 1 55px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .booking-card, .calendar-card { padding: 17px; }
  .calendar-day { min-height: 43px; }
  .process-strip { grid-template-columns: repeat(2, 1fr); }
  .status-overview { grid-template-columns: 1fr; padding: 18px; }
  .status-next { padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .timeline-card { padding: 18px; }
  .timeline-item { grid-template-columns: 43px 1fr; }
  .timeline-date { grid-column: 2; margin-top: -19px; padding: 0 0 18px; }
  .service-grid { grid-template-columns: repeat(5, 135px); gap: 8px; }
  .service-card { min-height: 125px; padding: 14px; }
  .service-card .service-icon { width: 38px; height: 38px; margin-bottom: 11px; }
  .service-panel { padding: 17px; }
  .bank-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .document-item { grid-template-columns: 39px minmax(0,1fr) auto; padding: 13px; }
  .doc-date { display: none; }
  .doc-actions .icon-button:nth-child(1) { display: none; }
  .storage-card { display: none; }
  .profile-card { padding: 19px; }
  .history-table th:nth-child(2), .history-table td:nth-child(2) { display: none; }
  .crm-page .page-header { display: block; }
  .crm-tabs { width: 100%; overflow-x: auto; margin-top: 13px; }
  .crm-tabs button { flex: 1; white-space: nowrap; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi-card { padding: 13px; }
  .kpi-card h3 { font-size: 1.35rem; }
  .pipeline-card, .activity-card { padding: 16px; }
  .pipeline-chart { gap: 5px; }
  .pipeline-column i { width: 75%; }
  .data-table th, .data-table td { padding: 10px; }
  .table-card { overflow-x: auto; }
  .crm-list-hint { width: 100%; }
  .detail-header { grid-template-columns: 1fr auto; gap: 11px; }
  .detail-header > .button { grid-column: 1 / -1; justify-self: start; }
  .detail-header > div { min-width: 0; }
  .detail-section { padding: 17px; }
  .detail-section .form-grid { grid-template-columns: 1fr; }
  .detail-form-actions { flex-direction: column-reverse; padding: 15px 17px; }
  .detail-form-actions .button { width: 100%; }
  .detail-side-card { padding: 17px; }
  .toast-region { right: 12px; bottom: 88px; left: 12px; }
  .toast { min-width: 0; width: 100%; }
  .line-admin-card { grid-template-columns: auto 1fr; padding: 17px; }
  .line-admin-actions { grid-column: 1 / -1; width: 100%; justify-items: stretch; }
  .line-admin-actions .badge { justify-self: start; }
  .line-admin-actions small { text-align: center; }
  .rich-menu-test-grid { grid-template-columns: 1fr; }
  .rich-menu-test-actions { flex-direction: column; }
  .rich-menu-test-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* CRM access control and LINE OA handoff */
[hidden] { display: none !important; }
.readonly-notice { margin-bottom: 16px; padding: 12px 14px; border: 1px solid #f0d28b; border-radius: 12px; color: #78580f; background: #fff9e8; font-weight: 700; }
.chat-case-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; margin: 18px 0; }
.chat-case-header h2 { margin: 3px 0; }
.chat-case-header p { margin: 0; color: var(--muted); }
.chat-case-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr); gap: 18px; }
.chat-transcript, .chat-case-summary { padding: 20px; }
.chat-manager-notice { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 15px; border-radius: 15px; color: #06442f; background: #e9f8ee; }
.chat-manager-notice > div { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: white; background: #00b900; }
.chat-manager-notice svg { width: 23px; }
.chat-manager-notice p, .chat-manager-notice small { display: block; margin: 0; }
.chat-manager-notice small { margin-top: 3px; color: #527166; }
.chat-history { display: flex; max-height: 620px; flex-direction: column; gap: 12px; margin-top: 18px; overflow-y: auto; }
.chat-history-item { align-self: flex-start; max-width: 78%; }
.chat-history-item.customer { align-self: flex-end; text-align: right; }
.chat-history-item small { color: var(--muted); }
.chat-history-item p { margin: 4px 0 0; padding: 11px 14px; border-radius: 16px 16px 16px 4px; white-space: pre-wrap; background: #edf3ef; }
.chat-history-item.customer p { border-radius: 16px 16px 4px 16px; color: white; background: var(--green-700); text-align: left; }
.chat-case-actions { display: grid; gap: 8px; margin-top: 18px; }
.chat-case-help { margin: 17px 0 0; padding: 12px; border-radius: 12px; color: #5d7169; background: #f3f7f4; font-size: .78rem; }
.chat-preview { display: block; max-width: 310px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-case-loading { margin-top: 18px; padding: 38px; text-align: center; }
.admin-user-modal { position: relative; width: min(880px,100%); }
.admin-user-modal > h2, .admin-user-modal > p { text-align: left; }
.modal-close { position: absolute; top: 15px; right: 15px; }
.permissions-box { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #f8faf8; }
.permissions-box > div:first-child { display: flex; flex-direction: column; }
.permissions-box small { color: var(--muted); }
.permission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 13px; }
.permission-choice { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid #dce7df; border-radius: 11px; background: white; font-size: .82rem; }
.permission-choice input { accent-color: var(--green-700); }
.crm-tabs, .crm-mobile-nav { scrollbar-width: none; }
.crm-tabs::-webkit-scrollbar, .crm-mobile-nav::-webkit-scrollbar { display: none; }

@media (max-width: 900px) {
  .crm-mobile-nav { display: flex; overflow-x: auto; justify-content: flex-start; }
  .crm-mobile-nav button { min-width: 68px; flex: 1 0 68px; }
  .chat-case-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .chat-case-header { grid-template-columns: 1fr auto; }
  .chat-case-header > button { grid-column: 1 / -1; justify-self: start; }
  .chat-manager-notice { grid-template-columns: auto 1fr; }
  .chat-manager-notice .button { grid-column: 1 / -1; }
  .chat-history-item { max-width: 90%; }
  .permission-grid { grid-template-columns: 1fr; }
}

/* Public legal pages */
.legal-links { margin-bottom: 10px; }
.legal-link-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.legal-link-row a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; color: var(--green-900); background: var(--green-50); font-weight: 700; text-decoration: none; }
.legal-link-row a:hover { border-color: #b9d8c7; background: #e6f6ec; }
.legal-page { min-height: 100vh; background: linear-gradient(180deg, #f0faf4 0, #f7f9f7 260px); }
.legal-topbar { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(223,232,227,.9); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.legal-topbar-inner { display: flex; width: min(1040px, calc(100% - 32px)); min-height: 70px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 20px; }
.legal-brand { display: flex; align-items: center; gap: 10px; color: var(--green-950); text-decoration: none; }
.legal-brand .brand-mark { width: 36px; height: 36px; }
.legal-brand strong { font-size: 1rem; letter-spacing: .06em; }
.legal-back { color: var(--green-800); font-size: .82rem; font-weight: 700; text-decoration: none; }
.legal-wrap { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: 58px 0 70px; }
.legal-hero { margin-bottom: 24px; padding: 34px; border-radius: 24px; color: white; background: linear-gradient(135deg, var(--green-950), var(--green-700)); box-shadow: var(--shadow-md); }
.legal-hero .eyebrow { color: #c9efd9; }
.legal-hero h1 { margin: 8px 0 10px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.legal-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.82); }
.legal-updated { display: inline-flex; margin-top: 18px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: white; background: rgba(255,255,255,.09); font-size: .73rem; }
.legal-content { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow-sm); }
.legal-content section + section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-content h2 { color: var(--green-950); font-size: 1.15rem; }
.legal-content h3 { margin-top: 18px; color: var(--green-900); font-size: .95rem; }
.legal-content p, .legal-content li { color: #50675f; font-size: .9rem; line-height: 1.8; }
.legal-content ul { margin: 10px 0 0; padding-left: 22px; }
.legal-content li + li { margin-top: 6px; }
.legal-note { margin-top: 16px; padding: 15px 17px; border-left: 4px solid var(--green-600); border-radius: 0 12px 12px 0; background: var(--green-50); }
.legal-contact { display: grid; gap: 8px; margin-top: 14px; padding: 18px; border-radius: 16px; background: #f5f8f6; }
.legal-contact a { color: var(--green-800); font-weight: 700; text-decoration: none; }
.legal-footer { margin-top: 22px; color: #71857d; font-size: .75rem; text-align: center; }

@media (max-width: 620px) {
  .legal-link-row { grid-template-columns: 1fr; }
  .legal-topbar-inner { min-height: 60px; }
  .legal-wrap { padding: 24px 0 44px; }
  .legal-hero, .legal-content { padding: 22px 19px; border-radius: 19px; }
  .legal-content p, .legal-content li { font-size: .84rem; }
}
