/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --bg: #f5f6fa;
  --surface: #fff;
  --surface2: #f9fafc;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line2: #f0f1f4;
  --nav: #111827;
  --nav2: #1f2937;
  --nav-text: #e5e7eb;
  --nav-muted: #9ca3af;
  --accent: #e85d04;
  --accent2: #c44d02;
  --accent-light: #fff3ec;
  --accent-border: #fcd5b5;
  --progress: #e85d04;
  --green: #059669;
  --green2: #ecfdf5;
  --amber: #d97706;
  --amber2: #fffbeb;
  --red: #dc2626;
  --red2: #fef2f2;
  --purple: #7c3aed;
  --purple2: #f5f3ff;
  --blue: #2563eb;
  --blue2: #eff6ff;
  --cyan: #0891b2;
  --cyan2: #ecfeff;
  --shadow-sm: 0 1px 3px #1118270f, 0 1px 2px #1118270a;
  --shadow: 0 4px 16px #11182712;
  --shadow-md: 0 8px 24px #11182717;
  --radius: 12px;
  --radius-lg: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: #0000;
}

html {
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  margin: 0;
}

button, input, select, textarea {
  font-family: inherit;
}

button {
  touch-action: manipulation;
  cursor: pointer;
}

p, h2 {
  margin: 0;
}

.app {
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.sidebar {
  background: var(--nav);
  color: var(--nav-text);
  flex-direction: column;
  height: 100dvh;
  padding: 0;
  display: flex;
  position: sticky;
  top: 0;
  overflow: hidden auto;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #ffffff1a;
  border-radius: 4px;
}

.brand {
  border-bottom: 1px solid #ffffff12;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  display: flex;
}

.logo {
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  flex: 0 0 34px;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
}

.brand-text b {
  color: #f9fafb;
  font-size: 14px;
  font-weight: 700;
  display: block;
}

.brand-text small {
  color: var(--nav-muted);
  font-size: 11px;
}

.case-card {
  border-radius: var(--radius);
  background: #ffffff0f;
  border: 1px solid #ffffff17;
  margin: 12px 12px 8px;
  padding: 12px;
}

.case-card .cn {
  color: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
}

.case-card p {
  color: var(--nav-muted);
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.45;
}

.mini-progress {
  background: #ffffff1f;
  border-radius: 99px;
  height: 4px;
  margin: 10px 0 6px;
  overflow: hidden;
}

.mini-progress span {
  background: var(--accent);
  width: 78%;
  height: 100%;
  display: block;
}

.case-card small {
  color: var(--nav-muted);
  font-size: 11px;
}

.step-nav {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  padding: 8px 10px;
  display: flex;
}

.step-nav-label {
  color: #9ca3af99;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 6px 4px;
  font-size: 10px;
  font-weight: 700;
}

.step-btn {
  all: unset;
  cursor: pointer;
  color: #d1d5db;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .12s, color .12s;
  display: flex;
}

.step-btn:hover {
  color: #f3f4f6;
  background: #ffffff12;
}

.step-btn.locked {
  opacity: .4;
  cursor: not-allowed;
}

.step-btn.locked:hover {
  color: inherit;
  background: none;
}

.step-lock {
  color: var(--nav-muted);
  margin-left: auto;
  font-size: 11px;
}

.step-btn.active {
  color: #fff;
  background: #e85d0426;
}

.step-btn.active .step-index {
  background: var(--accent);
  color: #fff;
}

.step-index {
  width: 22px;
  height: 22px;
  color: var(--nav-muted);
  background: #ffffff14;
  border-radius: 6px;
  flex: 0 0 22px;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  transition: background .12s, color .12s;
  display: flex;
}

.step-dot {
  background: #fff3;
  border-radius: 50%;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  transition: background .12s;
}

.step-dot.active {
  background: var(--accent);
  box-shadow: 0 0 6px #e85d0466;
}

.step-label {
  flex: 1;
}

.step-status {
  color: #9ca3afcc;
  background: #ffffff12;
  border-radius: 99px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
}

.step-btn.active .step-status {
  color: #fcd9bf;
  background: #e85d0440;
}

.side-footer {
  border-top: 1px solid #ffffff0f;
  padding: 12px 16px 16px;
}

.side-footer b {
  color: #d1d5db;
  font-size: 11.5px;
  font-weight: 600;
}

.side-footer small {
  color: var(--nav-muted);
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.45;
  display: block;
}

.sidebar-logout {
  all: unset;
  color: #d1d5db;
  cursor: pointer;
  background: #ffffff0f;
  border: 1px solid #ffffff1f;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  transition: background .12s, color .12s, border-color .12s;
  display: inline-flex;
}

.sidebar-logout:hover {
  color: #fff;
  background: #ffffff1f;
  border-color: #fff3;
}

.auth-shell {
  background: radial-gradient(1100px 560px at 12% -10%, #e85d0433, #0000 60%), radial-gradient(900px 520px at 105% 115%, #7c3aed29, #0000 55%), linear-gradient(160deg, #0b1220 0%, #111827 46%, #1f2937 100%);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  display: flex;
}

.login-wrap {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 424px;
  display: flex;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  padding: 34px 32px;
  box-shadow: 0 24px 64px #00000061;
}

.login-brand {
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  display: flex;
}

.login-logo {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-radius: 13px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  font-size: 23px;
  font-weight: 800;
  display: flex;
  box-shadow: 0 6px 18px #e85d045c;
}

.login-brand-name {
  color: var(--ink);
  letter-spacing: .2px;
  font-size: 16px;
  font-weight: 800;
}

.login-brand-sub {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
}

.login-title {
  color: var(--ink);
  margin: 0;
  font-size: 23px;
  font-weight: 800;
}

.login-lead {
  color: var(--muted);
  margin: 6px 0 22px;
  font-size: 13.5px;
}

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

.login-submit {
  height: 46px;
  margin-top: 6px;
  font-size: 14.5px;
  font-weight: 700;
}

.login-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  letter-spacing: .3px;
  margin-top: 24px;
  padding-top: 16px;
  font-size: 11.5px;
}

.login-copyright {
  color: #ffffff80;
  margin: 0;
  font-size: 11.5px;
}

.auth-shell > * {
  width: 100%;
  max-width: 424px;
}

.driver-popover.cbam-tour {
  border: 3px solid var(--accent-border, #fde8d4);
  border-radius: var(--radius-lg);
  background: #fff;
  max-width: 340px;
  padding: 18px 18px 14px;
  box-shadow: 0 12px 40px #11182738;
}

.driver-popover.cbam-tour .driver-popover-title {
  color: var(--ink);
  margin-bottom: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
}

.driver-popover.cbam-tour .driver-popover-description {
  color: #374151;
  font-size: 13px;
  line-height: 1.6;
}

.driver-popover.cbam-tour .driver-popover-description b {
  color: var(--ink);
}

.driver-popover.cbam-tour .driver-popover-progress-text {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.driver-popover.cbam-tour .driver-popover-footer {
  gap: 8px;
  margin-top: 14px;
}

.driver-popover.cbam-tour .driver-popover-navigation-btns {
  gap: 8px;
}

.driver-popover.cbam-tour button {
  all: unset;
  cursor: pointer;
  text-shadow: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  transition: background .12s, color .12s, border-color .12s;
}

.driver-popover.cbam-tour .driver-popover-prev-btn {
  background: var(--surface2);
  color: var(--ink);
  border: 1px solid var(--line);
}

.driver-popover.cbam-tour .driver-popover-prev-btn:hover {
  background: var(--line);
}

.driver-popover.cbam-tour .driver-popover-next-btn {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.driver-popover.cbam-tour .driver-popover-next-btn:hover {
  background: #cf5303;
}

.driver-popover.cbam-tour .driver-popover-close-btn {
  color: var(--muted);
}

.driver-popover.cbam-tour .driver-popover-close-btn:hover {
  color: var(--ink);
}

.driver-popover.cbam-tour .driver-popover-arrow {
  border-color: #fff;
}

.driver-active-element {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
  border-radius: 8px;
}

.tour-pulse {
  border-radius: 50%;
  animation: 1.3s ease-in-out infinite tourPulse;
  position: relative;
  color: var(--accent) !important;
}

@keyframes tourPulse {
  0% {
    box-shadow: 0 0 #e85d048c;
  }

  70% {
    box-shadow: 0 0 0 7px #e85d0400;
  }

  100% {
    box-shadow: 0 0 #e85d0400;
  }
}

.tour-audio-btn {
  all: unset;
  cursor: pointer;
  opacity: .7;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  padding: 4px;
  font-size: 16px;
  transition: opacity .12s;
  display: flex;
}

.tour-audio-btn:hover {
  opacity: 1;
}

.main {
  min-width: 0;
  padding: 16px 22px 32px;
}

.topbar {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  height: 52px;
  box-shadow: var(--shadow-sm);
  z-index: 20;
  background: #fff;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  display: flex;
  position: sticky;
  top: 12px;
}

.page-title h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.page-title p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
}

.nav-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 40px;
  height: 40px;
  color: var(--ink);
  border-radius: 10px;
  flex: none;
  justify-content: center;
  align-items: center;
  display: none;
}

.nav-toggle:active {
  background: var(--surface2);
}

.topbar .page-title {
  margin-right: auto;
}

.nav-backdrop {
  display: none;
}

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

.pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #374151;
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 12px;
  display: inline-flex;
}

.pill select {
  color: #374151;
  cursor: pointer;
  background: none;
  border: 0;
  outline: 0;
  max-width: 140px;
  font-size: 12px;
  font-weight: 600;
}

.role-pill {
  position: relative;
}

.role-pill-btn {
  all: unset;
  border: 1px solid var(--accent-border);
  background: var(--accent-light);
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.role-pill-btn:hover {
  background: #ffe8d6;
}

.role-caret {
  opacity: .7;
  font-size: 9px;
}

.role-dropdown {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 100;
  background: #fff;
  min-width: 208px;
  display: none;
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  overflow: hidden;
}

.role-dropdown.open {
  display: block;
}

.role-dropdown-head {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--line);
  background: var(--surface2);
  padding: 10px 12px 8px;
  font-size: 10.5px;
  font-weight: 700;
}

.role-option {
  cursor: pointer;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  transition: background .1s;
  display: flex;
}

.role-option:hover {
  background: #f9fafb;
}

.role-option.active {
  background: var(--accent-light);
}

.ro-ico {
  background: #f3f4f6;
  border-radius: 8px;
  flex: 0 0 30px;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-size: 15px;
  display: flex;
}

.role-option.active .ro-ico {
  background: #fde8d6;
}

.ro-text b {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  display: block;
}

.ro-text small {
  color: var(--muted);
  font-size: 11px;
}

.role-option.active .ro-text b {
  color: var(--accent);
}

.sidebar .role-pill-btn {
  color: #e5e7eb;
  background: #ffffff0f;
  border-color: #ffffff1a;
}

.sidebar .role-pill-btn:hover {
  background: #ffffff1a;
}

.sidebar .role-dropdown {
  background: var(--nav);
  border-color: #ffffff1f;
  box-shadow: 0 10px 30px #00000080;
}

.sidebar .role-dropdown-head {
  color: #9ca3af;
  background: #00000040;
  border-bottom-color: #ffffff14;
}

.sidebar .role-option:hover {
  background: #ffffff0d;
}

.sidebar .role-option.active {
  background: #e85d0426;
}

.sidebar .ro-ico {
  color: #d1d5db;
  background: #ffffff1a;
}

.sidebar .role-option.active .ro-ico {
  background: var(--accent);
  color: #fff;
}

.sidebar .ro-text b {
  color: #f3f4f6;
}

.sidebar .ro-text small {
  color: #9ca3af;
}

.assistant-btn {
  all: unset;
  border: 1px solid var(--accent-border);
  background: var(--accent-light);
  color: var(--accent);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.assistant-btn:hover {
  background: #ffe8d6;
}

.avatar {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.content {
  margin-top: 14px;
}

.section {
  animation: .15s fadein;
  display: none;
}

.section.active {
  display: block;
}

@keyframes fadein {
  from {
    opacity: .6;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.grid, .dashboard-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  display: grid;
}

.span2 {
  grid-column: span 2;
}

.span3 {
  grid-column: span 3;
}

.span4 {
  grid-column: span 4;
}

.span5 {
  grid-column: span 5;
}

.span6 {
  grid-column: span 6;
}

.span7 {
  grid-column: span 7;
}

.span8 {
  grid-column: span 8;
}

.span9 {
  grid-column: span 9;
}

.span12 {
  grid-column: span 12;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.card h2 {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
}

.card p.muted {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.hero {
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  pointer-events: none;
  background: #e85d0426;
  border-radius: 50%;
  width: 220px;
  height: 220px;
  position: absolute;
  top: -60px;
  right: -60px;
}

.hero:after {
  content: "";
  pointer-events: none;
  background: #e85d0414;
  border-radius: 50%;
  width: 160px;
  height: 160px;
  position: absolute;
  bottom: -40px;
  left: 30%;
}

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

.hero .mini {
  color: #fca572;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

.hero h2 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  color: #d1d5db;
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 13.5px;
  line-height: 1.55;
}

.hero-metrics {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  display: grid;
}

.hero-metric {
  all: unset;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #ffffff12;
  border: 1px solid #ffffff26;
  padding: 12px 14px;
  transition: background .14s;
}

.hero-metric:hover {
  background: #ffffff21;
}

.hero-metric b {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.hero-metric span {
  color: #9ca3af;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  display: block;
}

.hero-plants {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  display: grid;
}

.dash-two-col {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 20px;
  display: grid;
}

@media (max-width: 900px) {
  .dash-two-col {
    grid-template-columns: 1fr;
  }
}

.hero-plant {
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #ffffff0f;
  border: 1px solid #ffffff1f;
  padding: 12px 14px;
}

.hero-plant-head {
  color: #fff;
  align-items: center;
  gap: 7px;
  display: flex;
}

.hero-plant-head b {
  font-size: 13.5px;
  font-weight: 700;
}

.hero-plant-head svg {
  color: var(--accent);
  flex: none;
}

.hero-plant-city {
  color: #9ca3af;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 11.5px;
  display: flex;
}

.hero-plant-city svg {
  color: #9ca3af;
  flex: none;
}

.hero-plant-stat {
  color: #d1d5db;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  font-size: 12px;
  display: flex;
}

.hero-plant-open {
  color: #fca572;
  background: #e85d0438;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
}

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

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  padding: 14px 16px;
  transition: box-shadow .14s, transform .14s;
}

.kpi-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.kpi-card .kc-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
}

.kpi-card .kc-num {
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.kpi-card .kc-sub {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.emission-breakdown {
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
  display: flex;
}

.emission-row {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  transition: box-shadow .12s;
  display: grid;
}

.emission-row:hover {
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.emission-row b {
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.emission-row small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.35;
  display: block;
}

.scope-badge {
  border-radius: 5px;
  margin-bottom: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  display: inline-block;
}

.scope-badge.s1 {
  color: #92400e;
  background: #fff3cd;
}

.scope-badge.s2 {
  color: #1d4ed8;
  background: #dbeafe;
}

.scope-badge.s3 {
  background: var(--purple2);
  color: var(--purple);
}

.tiny-note {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.tag {
  background: var(--blue2);
  color: var(--blue);
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
}

.tag.green {
  background: var(--green2);
  color: var(--green);
}

.tag.warn {
  background: var(--amber2);
  color: var(--amber);
}

.tag.red {
  background: var(--red2);
  color: var(--red);
}

.tag.dark {
  color: #fff;
  background: #1f2937;
}

.tag.purple {
  background: var(--purple2);
  color: var(--purple);
}

.tag.cyan {
  background: var(--cyan2);
  color: var(--cyan);
}

.tag.orange {
  background: var(--accent-light);
  color: var(--accent);
}

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

.btn {
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: background .14s, box-shadow .14s;
  display: inline-flex;
  box-shadow: 0 4px 12px #e85d0433;
}

.btn:hover {
  background: var(--accent2);
  box-shadow: 0 6px 16px #e85d0447;
}

.btn.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--surface2);
}

.btn.soft {
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: none;
  border: 1px solid var(--accent-border);
}

.btn.soft:hover {
  background: #ffe0c8;
}

.btn.good {
  background: var(--green);
  box-shadow: 0 4px 12px #05966933;
}

.btn.good:hover {
  background: #047857;
}

.btn.warn {
  background: var(--amber);
  box-shadow: none;
}

.btn.danger {
  background: var(--red);
  box-shadow: none;
}

.btn.small {
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 12px;
}

.btn.full {
  width: 100%;
}

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

.divider {
  background: var(--line);
  height: 1px;
  margin: 12px 0;
}

.inspect-icon {
  vertical-align: -2px;
  color: var(--muted);
  opacity: .75;
  margin-left: 3px;
  transition: color .12s, opacity .12s;
  display: inline-block;
}

.clickable {
  cursor: pointer;
}

.clickable:hover .inspect-icon {
  color: var(--accent);
  opacity: 1;
}

.note {
  border-radius: var(--radius);
  background: #f8faff;
  border: 1px solid #dbeafe;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

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

.benefit {
  border-radius: var(--radius);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.benefit b {
  color: #065f46;
}

.riskbox {
  background: var(--amber2);
  border-radius: var(--radius);
  color: #78350f;
  border: 1px solid #fde68a;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.dangerbox {
  background: var(--red2);
  border-radius: var(--radius);
  color: #7f1d1d;
  border: 1px solid #fecaca;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.okbox {
  border-radius: var(--radius);
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.protip {
  background: linear-gradient(135deg, var(--accent-light), #fff8f4);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
}

.protip .bulb {
  border: 1px solid var(--accent-border);
  width: 26px;
  height: 26px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border-radius: 8px;
  flex: 0 0 26px;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  display: flex;
}

.formgrid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  display: grid;
}

.field label {
  color: #374151;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.input, .select {
  border: 1px solid var(--line);
  width: 100%;
  color: var(--ink);
  background: #fff;
  border-radius: 9px;
  outline: none;
  padding: 9px 11px;
  font-size: 13px;
}

.input:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #e85d041a;
}

.textarea {
  border: 1px solid var(--line);
  resize: vertical;
  border-radius: 9px;
  width: 100%;
  min-height: 88px;
  padding: 9px 11px;
  font-size: 13px;
}

.table {
  border-collapse: separate;
  border-spacing: 0 5px;
  width: 100%;
  font-size: 13px;
}

.table th {
  text-align: left;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
}

.table td {
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
  vertical-align: middle;
  background: #fff;
  padding: 10px;
}

.table tr td:first-child {
  border-left: 1px solid var(--line2);
  border-radius: 9px 0 0 9px;
}

.table tr td:last-child {
  border-right: 1px solid var(--line2);
  border-radius: 0 9px 9px 0;
}

.table tr:hover td {
  background: var(--surface2);
}

.status.good {
  color: var(--green);
  font-weight: 600;
}

.status.warn {
  color: var(--amber);
  font-weight: 600;
}

.status.bad {
  color: var(--red);
  font-weight: 600;
}

.mini-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12.5px;
}

.mini-table td {
  border-bottom: 1px solid var(--line);
  padding: 6px 8px;
}

.mini-table tr:last-child td {
  border: none;
}

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

.checkitem {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: #fff;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  transition: border-color .12s;
  display: flex;
}

.checkitem:hover {
  border-color: var(--accent-border);
}

.check {
  background: var(--green2);
  width: 22px;
  height: 22px;
  color: var(--green);
  border-radius: 50%;
  flex: 0 0 22px;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  display: flex;
}

.warn-dot {
  background: var(--amber2);
  color: var(--amber);
}

.danger-dot {
  background: var(--red2);
  color: var(--red);
}

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

.traffic-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  transition: box-shadow .12s;
}

.traffic-card.clickable:hover {
  box-shadow: var(--shadow-sm);
}

.traffic-card b {
  margin: 5px 0 3px;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.dot {
  border-radius: 50%;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  display: inline-block;
}

.dot.green {
  background: var(--green);
}

.dot.amber {
  background: var(--amber);
}

.dot.red {
  background: var(--red);
}

.dot.gray {
  background: #9ca3af;
}

.persona, .industry {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: #fff;
  padding: 14px;
  transition: border-color .12s, background .12s;
}

.persona:hover, .industry:hover {
  border-color: var(--accent-border);
  background: var(--accent-light);
}

.persona.active, .industry.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.persona h3, .industry h3 {
  margin: 8px 0 4px;
  font-size: 13.5px;
  font-weight: 700;
}

.persona p, .industry p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.industry .badge {
  float: right;
}

.icon {
  background: var(--accent-light);
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  font-size: 17px;
  display: flex;
}

.doc-card, .sheet, .pack-card, .supplier-card, .connector-card, .add-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: #fff;
  padding: 14px;
  transition: transform .12s, box-shadow .12s;
}

.doc-card:hover, .sheet:hover, .pack-card:hover, .supplier-card:hover, .connector-card:hover, .add-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.workflow {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.node {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  min-width: 110px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  padding: 11px;
}

.node b {
  font-size: 12.5px;
  font-weight: 600;
}

.node small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
  display: block;
}

.arrow {
  color: #d1d5db;
  font-size: 18px;
}

.doc-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.doc-title {
  font-size: 13.5px;
  font-weight: 700;
}

.doc-meta {
  color: var(--muted);
  margin-top: 2px;
  font-size: 11.5px;
}

.bar {
  background: #e5e7eb;
  border-radius: 99px;
  height: 5px;
  margin: 10px 0;
  overflow: hidden;
}

.bar span {
  background: var(--green);
  height: 100%;
  display: block;
}

.bar.warn span {
  background: var(--amber);
}

.bar.red span {
  background: var(--red);
}

.proof-link {
  color: var(--accent);
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}

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

.chip {
  border: 1px solid var(--line);
  color: #374151;
  cursor: pointer;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.chip.active {
  background: var(--accent-light);
  border-color: var(--accent-border);
  color: var(--accent);
}

.split {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  display: grid;
}

.docviewer {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: #fff;
  min-height: 360px;
  padding: 16px;
}

.paper-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.paper-head h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
}

.paper-head small {
  color: var(--muted);
  font-size: 12px;
}

.docline {
  border-bottom: 1px dashed #e9ecf0;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  display: flex;
}

.hl {
  background: #fef9c3;
  border-radius: 5px;
  padding: 1px 5px;
  font-weight: 600;
}

.stamp {
  border: 2px solid var(--green);
  color: var(--green);
  border-radius: 9px;
  margin-top: 12px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  transform: rotate(-2deg);
}

.doc-tabs {
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  display: flex;
}

.doc-tab {
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--muted);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.doc-tab.active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-border);
}

.fieldrow {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  grid-template-columns: 1.3fr 1fr auto auto;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  padding: 9px;
  display: grid;
}

.fieldrow input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
}

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

.kpi {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.kpi .label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  font-weight: 700;
}

.kpi .num {
  letter-spacing: -.5px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.kpi.outcome .num {
  font-size: 28px;
}

.kpi small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.saving {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
  border: 1px solid #a7f3d0;
  padding: 14px;
}

.saving .amount {
  color: #065f46;
  letter-spacing: -1px;
  font-size: 32px;
  font-weight: 800;
}

.timeline {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.event {
  padding-left: 18px;
  font-size: 13px;
  position: relative;
}

.event:before {
  content: "";
  background: var(--accent);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 5px;
  left: 0;
}

.event:not(:last-child):after {
  content: "";
  background: var(--line);
  width: 2px;
  height: calc(100% + 2px);
  position: absolute;
  top: 17px;
  left: 3px;
}

.bottom-actions {
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  display: flex;
}

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

.star {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: #fff;
  padding: 9px 11px;
  font-size: 19px;
}

.star.active {
  background: #fffbeb;
  border-color: #fcd34d;
}

.review-doc-nav {
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin: 10px 0 12px;
  display: grid;
}

.review-doc-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  background: #fff;
  flex-direction: column;
  gap: 3px;
  min-height: 62px;
  padding: 8px;
  display: flex;
}

.review-doc-pill:hover, .review-doc-pill.active {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 4px 12px #e85d041a;
}

.review-doc-pill b {
  font-size: 11.5px;
  font-weight: 700;
}

.review-doc-pill small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.doc-review-shell {
  grid-template-columns: 210px 1fr;
  gap: 12px;
  display: grid;
}

.doc-review-list {
  border: 1px solid var(--line);
  background: var(--surface2);
  border-radius: var(--radius-lg);
  max-height: 60vh;
  padding: 10px;
  overflow: auto;
}

.doc-review-list h3 {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 700;
}

.doc-review-list button {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: #fff;
  width: 100%;
  margin-bottom: 6px;
  padding: 9px;
  font-size: 12px;
  font-weight: 500;
}

.doc-review-list button.active, .doc-review-list button:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.doc-review-list small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 11px;
  display: block;
}

.doc-review-main {
  min-width: 0;
}

.doc-review-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.review-panel {
  min-width: 0;
}

.review-panel h2 {
  margin: 8px 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.review-panel p.muted {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.status-strip {
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
  display: flex;
}

.source-chip {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}

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

.drawer-backdrop {
  z-index: 200;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #11182759;
  display: none;
  position: fixed;
  inset: 0;
}

.drawer-backdrop.show {
  display: block;
}

.drawer {
  z-index: 210;
  background: #fff;
  border-radius: 18px 0 0 18px;
  flex-direction: column;
  width: min(440px, 92vw);
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  transform: translateX(100%);
  box-shadow: -8px 0 48px #11182724;
}

.drawer.show {
  transform: none;
}

.drawer-head {
  border-bottom: 1px solid var(--line);
  flex: none;
  padding: 18px 18px 14px;
  position: relative;
}

.drawer-head h2 {
  margin: 6px 0 2px;
  font-size: 17px;
  font-weight: 700;
}

.drawer-close {
  all: unset;
  background: var(--surface2);
  cursor: pointer;
  width: 28px;
  height: 28px;
  color: var(--muted);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  display: flex;
  position: absolute;
  top: 14px;
  right: 14px;
}

.drawer-close:hover {
  background: var(--line);
}

.drawer-tabs {
  border-bottom: 1px solid var(--line);
  flex: none;
  gap: 2px;
  padding: 0 12px;
  display: flex;
}

.drawer-tab {
  all: unset;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid #0000;
  align-items: center;
  gap: 5px;
  margin-bottom: -1px;
  padding: 10px 8px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
}

.drawer-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.drawer-body {
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding: 16px;
  overflow: auto;
}

.drawer-pane {
  display: none;
}

.drawer-pane.active {
  display: block;
}

.modal.drawer-backdrop.show {
  justify-content: center;
  align-items: center;
  padding: 18px;
  overflow: auto;
  display: flex !important;
}

.modal.drawer-backdrop.show > .drawer.show {
  margin: auto;
  border-radius: 18px !important;
  flex-direction: column !important;
  width: min(1020px, 96vw) !important;
  max-height: calc(100vh - 36px) !important;
  display: flex !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
}

.modal .drawer-head {
  flex: none;
}

.modal .drawer-body {
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 160px) !important;
  overflow: auto !important;
}

.assistant-panel-backdrop {
  z-index: 300;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #1118274d;
  display: none;
  position: fixed;
  inset: 0;
}

.assistant-panel-backdrop.show {
  display: block;
}

.assistant-panel {
  z-index: 310;
  background: #fff;
  border-radius: 18px 0 0 18px;
  flex-direction: column;
  width: min(400px, 90vw);
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  transform: translateX(100%);
  box-shadow: -8px 0 48px #11182724;
}

.assistant-panel.show {
  transform: none;
}

.assistant-panel-head {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  display: flex;
}

.assistant-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.assistant-tabs {
  border-bottom: 1px solid var(--line);
  flex: none;
  padding: 0 16px;
  display: flex;
}

.assistant-tab {
  all: unset;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 600;
}

.assistant-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.assistant-panel-body {
  flex: 1;
  overflow: auto;
}

.assistant-pane {
  padding: 14px;
  display: none;
}

.assistant-pane.active {
  display: block;
}

.assistant-context {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.source-chip-blue {
  background: var(--blue2);
  color: var(--blue);
  border-radius: 7px;
  margin: 2px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}

.quickchips {
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  display: flex;
}

.chatstream {
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  padding: 2px;
  display: flex;
  overflow: auto;
}

.msg {
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.msg.bot {
  background: var(--surface2);
  border: 1px solid var(--line);
}

.msg.user {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  align-self: flex-end;
  max-width: 90%;
}

.chatinput {
  gap: 7px;
  margin-top: 10px;
  display: flex;
}

.chatinput input {
  border: 1px solid var(--line);
  border-radius: 9px;
  flex: 1;
  padding: 8px 11px;
  font-size: 13px;
}

.chatinput input:focus {
  border-color: var(--accent);
  outline: none;
}

.assistant-note {
  color: var(--muted);
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.4;
}

.qa-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 8px;
  padding: 12px;
}

.qa-card h4 {
  margin: 0 0 5px;
  font-size: 13.5px;
  font-weight: 700;
}

.qa-card p {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
}

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

.status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.status-card b {
  margin: 5px 0 3px;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.status-card small {
  color: var(--muted);
  font-size: 12px;
}

.toast {
  opacity: 0;
  color: #fff;
  z-index: 1000;
  pointer-events: none;
  background: #1f2937;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 500;
  transition: opacity .18s, transform .18s;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%)translateY(16px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%)translateY(0);
}

.pack-section {
  margin-bottom: 14px;
}

.pack-section h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.pack-section p {
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
}

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

  .main {
    padding: 12px 14px 24px;
  }

  .kpi-strip, .connector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-doc-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .doc-review-shell {
    grid-template-columns: 1fr;
  }

  .doc-review-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: none;
    display: grid;
  }

  .doc-review-list h3 {
    grid-column: 1 / -1;
  }

  .doc-review-list button {
    margin-bottom: 0;
  }

  .doc-review-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .sidebar {
    z-index: 300;
    width: 274px;
    max-width: 84vw;
    transition: transform .26s;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 0 0 44px #00000073;
  }

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

  .nav-backdrop {
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    background: #0f172a80;
    transition: opacity .26s;
    display: block;
    position: fixed;
    inset: 0;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

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

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

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

  .main {
    padding: 10px 12px 24px;
  }

  .grid, .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .span2, .span3, .span4, .span5, .span6, .span7, .span8, .span9, .span12 {
    grid-column: 1 / -1;
  }

  .hero h2 {
    font-size: 20px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .emission-row, .traffic, .connector-grid, .map-grid, .status-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: var(--radius);
  }

  .userbar {
    flex-wrap: wrap;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .modal.drawer-backdrop.show {
    padding: 12px;
  }

  .modal.drawer-backdrop.show > .drawer.show {
    width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px) !important;
  }

  .modal .drawer-body {
    max-height: calc(100vh - 154px) !important;
  }

  .doc-review-list {
    max-height: 200px !important;
    overflow: auto !important;
  }
}

@media (max-width: 760px) {
  .modal.drawer-backdrop.show {
    align-items: flex-start;
    padding: 8px;
  }

  .modal.drawer-backdrop.show > .drawer.show {
    border-radius: 16px !important;
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }

  .modal .drawer-body {
    max-height: calc(100vh - 140px) !important;
  }

  .doc-review-list {
    grid-template-columns: 1fr !important;
    max-height: 200px !important;
    overflow: auto !important;
  }
}

@media (pointer: coarse) {
  .btn {
    min-height: 44px;
  }

  .btn.small {
    min-height: 38px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .step-btn, .section-header, .role-pill-btn, .sidebar-logout {
    min-height: 44px;
  }

  .doc-tab, .proof-link {
    min-height: 40px;
  }

  .input, .select, .textarea, .fieldrow input, input, select, textarea {
    font-size: 16px;
  }

  .inspect-icon {
    opacity: 1;
    color: var(--accent);
  }
}

@media (max-width: 980px) {
  .card:has(.table) {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  .card .table {
    min-width: 460px;
  }
}

.doc-status-link {
  cursor: pointer;
}

.doc-status-link:hover {
  opacity: .82;
}

.doc-category-title {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 6px 0 -2px;
  font-size: 12px;
  font-weight: 700;
}

.add-card {
  border: 1.5px dashed var(--line);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  display: flex;
}

.add-card .plus {
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

a.btn, .btn {
  text-decoration: none;
}

.summary-score {
  align-items: center;
  gap: 16px;
  display: flex;
}

.score-ring {
  border-radius: 50%;
  flex: 0 0 96px;
  justify-content: center;
  align-items: center;
  width: 96px;
  height: 96px;
  display: flex;
}

.score-inner {
  width: 74px;
  height: 74px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.score-inner span {
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.score-inner small {
  color: var(--muted);
  font-size: 11px;
}

.summary-list {
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.action-list {
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  display: flex;
}

.action-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 12px;
  font-size: 13px;
  transition: border-color .12s, background .12s;
}

.action-card:hover {
  border-color: var(--accent-border);
  background: var(--accent-light);
}

.kb {
  border-top: 1px dashed var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.kb-title {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

.kb-row {
  margin-bottom: 10px;
}

.kb-row b {
  color: var(--ink);
  font-size: 12px;
}

.kb-row p {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.55;
}

.kb-cbam {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: #7a3d08;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.55;
}

.kb-hint {
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.55;
}

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

.bucket-row {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.7fr) minmax(0, 1.3fr) 132px;
}

.bucket-row > .tag {
  justify-self: end;
}

.col-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  display: block;
}

.assistant-drawer {
  width: min(420px, 94vw);
}

.assistant-body {
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 16px;
  display: flex;
  overflow-y: auto;
}

.qa-chips {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.qa-chip {
  all: unset;
  cursor: pointer;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  transition: border-color .12s, background .12s;
}

.qa-chip:hover {
  border-color: var(--accent-border);
  background: var(--accent-light);
}

.chat-msg {
  display: flex;
}

.chat-msg.user {
  justify-content: flex-end;
}

.chat-msg.assistant {
  justify-content: flex-start;
}

.chat-bubble {
  white-space: pre-wrap;
  border-radius: 12px;
  max-width: 85%;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg.user .chat-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg.assistant .chat-bubble {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.chat-bubble.typing {
  color: var(--muted);
}

.assistant-input {
  border-top: 1px solid var(--line);
  flex: none;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  display: flex;
  position: relative;
}

.assistant-input .input {
  resize: none;
  flex: 1;
  max-height: 120px;
}

.chat-clear {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 11px;
  position: absolute;
  top: -26px;
  right: 12px;
}

.chat-clear:hover {
  color: var(--accent);
}

.assistant-fab {
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  z-index: 999;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  transition: transform .2s, background .2s;
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 24px;
  box-shadow: 0 4px 12px #00000026;
}

.assistant-fab:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.chat-bubble .md {
  white-space: normal;
}

.chat-bubble .md p {
  margin: 0 0 6px;
}

.chat-bubble .md p:last-child {
  margin-bottom: 0;
}

.chat-bubble .md ol, .chat-bubble .md ul {
  margin: 4px 0;
  padding-left: 18px;
}

.chat-bubble .md li {
  margin-bottom: 4px;
}

.chat-bubble .md code {
  background: #0000000f;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 12px;
}

.chat-copy {
  all: unset;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 7px;
  font-size: 11px;
  display: inline-flex;
}

.chat-copy:hover {
  color: var(--accent);
  border-color: var(--accent-border);
}

.tooltip-trigger {
  align-items: center;
  display: inline-flex;
  position: relative;
}

.tooltip-popover {
  color: #f3f4f6;
  z-index: 9999;
  pointer-events: auto;
  background: #1f2937;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  animation: .15s tipFadeIn;
  box-shadow: 0 8px 24px #11182733;
}

.tooltip-popover b {
  color: #fff;
}

@keyframes tipFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.info-icon {
  color: var(--muted);
  cursor: help;
  vertical-align: middle;
  opacity: .8;
  background: none;
  border: 0;
  flex: none;
  justify-content: center;
  align-items: center;
  margin-left: 4px;
  padding: 0;
  transition: color .12s, opacity .12s;
  display: inline-flex;
}

.info-icon:hover {
  color: var(--accent);
  opacity: 1;
}

.bulk-upload-zone {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  background: var(--surface2);
  padding: 28px 20px;
  transition: border-color .14s, background .14s;
}

.bulk-upload-zone:hover, .bulk-upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.bulk-upload-zone.uploading {
  cursor: wait;
  opacity: .7;
}

.buz-icon {
  margin-bottom: 6px;
  font-size: 28px;
}

.buz-text {
  color: var(--ink);
  font-size: 13px;
}

.buz-text b {
  font-weight: 600;
}

.buz-hint {
  color: var(--muted);
  margin-top: 4px;
  font-size: 11.5px;
}

.upload-queue {
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  display: flex;
}

.uq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  font-size: 12.5px;
  display: flex;
}

.uq-name {
  font-weight: 500;
}

.stacked-bar-wrap {
  width: 100%;
  margin-top: 10px;
}

.stacked-bar {
  background: var(--line);
  border-radius: 10px;
  width: 100%;
  height: 44px;
  display: flex;
  overflow: hidden;
  box-shadow: inset 0 1px 2px #1118270f;
}

.sb-segment {
  cursor: pointer;
  justify-content: center;
  align-items: center;
  min-width: 4px;
  height: 100%;
  transition: width .4s;
  display: flex;
  position: relative;
}

.sb-segment:hover {
  filter: brightness(1.08);
}

.sb-seg-pct {
  color: #fff;
  text-shadow: 0 1px 2px #00000040;
  pointer-events: none;
  font-size: 12px;
  font-weight: 700;
}

.sb-brand {
  background: #e85d04;
}

.sb-brand2 {
  background: #f59e6b;
}

.sb-dark {
  background: #1f2937;
}

.sb-grey {
  background: #9ca3af;
}

.sb-light {
  background: #d1d5db;
}

.sb-amber {
  background: #d97706;
}

.sb-green {
  background: #059669;
}

.sb-red {
  background: #dc2626;
}

.sb-blue {
  background: #1f2937;
}

.sb-purple {
  background: #e85d04;
}

.sb-legend {
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  display: flex;
}

.sb-legend-item {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  display: flex;
}

.sb-legend-item b {
  color: var(--ink);
  font-weight: 600;
}

.sb-legend-pct {
  color: var(--accent);
  font-weight: 700;
}

.sb-dot {
  border-radius: 3px;
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
}

.be-rows {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.be-row {
  flex-direction: column;
  gap: 5px;
  display: flex;
}

.be-row-head {
  align-items: center;
  gap: 8px;
  display: flex;
}

.be-icon {
  border-radius: 6px;
  flex: 0 0 26px;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  display: flex;
}

.be-icon.be-brand {
  color: #e85d04;
  background: #e85d041f;
}

.be-icon.be-dark {
  color: #1f2937;
  background: #1f29371a;
}

.be-icon.be-grey {
  color: #6b7280;
  background: #9ca3af2e;
}

.be-label {
  color: var(--ink);
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.be-status {
  margin-left: auto;
}

.be-bar-wrap {
  background: var(--line);
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
}

.be-bar {
  border-radius: 6px;
  min-width: 4px;
  height: 100%;
  transition: width .5s;
}

.be-bar.be-brand {
  background: #e85d04;
}

.be-bar.be-dark {
  background: #1f2937;
}

.be-bar.be-grey {
  background: #9ca3af;
}

.be-meta {
  align-items: center;
  gap: 8px;
  display: flex;
}

.be-value {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.be-pct {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
}

.be-detail {
  color: var(--muted);
  margin-left: 4px;
  font-size: 11px;
}

.be-total {
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 10px;
  font-size: 12.5px;
}

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

.ci-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  display: grid;
}

.ci-card {
  flex-direction: column;
  display: flex;
}

.ci-head {
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  display: flex;
}

.ci-head h3 {
  margin: 0;
  font-size: 15px;
}

.ci-bignum {
  color: var(--ink);
  letter-spacing: -.5px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.ci-bignum-unit {
  color: var(--muted);
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 600;
}

.ci-sub {
  color: var(--muted);
  margin-top: 2px;
  font-size: 11.5px;
}

.ci-bars {
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  display: flex;
}

.ci-bar-row {
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 10px;
  display: grid;
}

.ci-bar-label {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
}

.ci-bar-track {
  background: var(--line);
  border-radius: 5px;
  height: 9px;
  overflow: hidden;
}

.ci-bar-fill {
  border-radius: 5px;
  min-width: 4px;
  height: 100%;
  transition: width .5s;
}

.ci-bar-fill.be-brand {
  background: #e85d04;
}

.ci-bar-fill.be-dark {
  background: #1f2937;
}

.ci-bar-fill.be-grey {
  background: #9ca3af;
}

.ci-tone-green {
  background: #059669;
}

.ci-tone-amber {
  background: #d97706;
}

.ci-tone-red {
  background: #dc2626;
}

.ci-bar-val {
  color: var(--ink);
  text-align: right;
  min-width: 44px;
  font-size: 11.5px;
  font-weight: 700;
}

.ci-callout {
  color: var(--muted);
  align-items: flex-start;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 11.5px;
  line-height: 1.45;
  display: flex;
}

.ci-callout svg {
  flex: none;
  margin-top: 2px;
}

.ci-callout.warn svg {
  color: var(--amber);
}

.ci-callout.green svg {
  color: var(--green);
}

.ci-callout.red svg {
  color: var(--red);
}

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

.ci-split {
  margin-top: 16px;
}

.ci-split-bar {
  background: var(--line);
  border-radius: 8px;
  height: 16px;
  display: flex;
  overflow: hidden;
}

.ci-split-seg {
  height: 100%;
  transition: width .5s;
}

.ci-split-seg.be-brand {
  background: #e85d04;
}

.ci-split-seg.be-grey {
  background: #9ca3af;
}

.ci-legend {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  display: flex;
}

.ci-legend-item {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  display: flex;
}

.ci-legend-item b {
  color: var(--ink);
  font-weight: 600;
}

.ci-dot {
  border-radius: 3px;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
}

.ci-dot.be-brand {
  background: #e85d04;
}

.ci-dot.be-grey {
  background: #9ca3af;
}

.donut-wrap {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  display: flex;
}

.donut-total {
  fill: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.donut-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.donut-legend {
  flex-direction: column;
  gap: 5px;
  width: 100%;
  display: flex;
}

.donut-legend-item {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  font-size: 12px;
  display: flex;
}

.donut-legend-item b {
  color: var(--ink);
  margin-left: auto;
  font-weight: 600;
}

.donut-legend-pct {
  color: var(--accent);
  text-align: right;
  min-width: 46px;
  font-weight: 700;
}

.donut-dot {
  border-radius: 3px;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
}

.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-header {
  all: unset;
  cursor: pointer;
  width: 100%;
  color: var(--ink);
  background: var(--surface2);
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .12s;
  display: flex;
}

.accordion-header:hover {
  background: var(--accent-light);
}

.accordion-title {
  flex: 1;
}

.accordion-badge {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.accordion-chevron {
  color: var(--muted);
  font-size: 12px;
}

.accordion-body {
  padding: 14px;
}

.sidebar-section {
  margin-bottom: 2px;
}

.section-header {
  all: unset;
  cursor: pointer;
  color: #9ca3afa6;
  text-transform: uppercase;
  letter-spacing: .06em;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 8px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  transition: color .12s;
  display: flex;
}

.section-header:hover {
  color: #9ca3afe6;
}

.section-header.open {
  color: var(--accent);
}

.section-chevron {
  margin-left: auto;
  font-size: 9px;
  transition: transform .15s;
}

.section-header.open .section-chevron {
  transform: rotate(90deg);
}

.section-items {
  overflow: hidden;
}

.section-hint {
  color: #9ca3af80;
  padding: 2px 12px 6px;
  font-size: 10px;
  font-style: italic;
  line-height: 1.4;
}

.step-num {
  color: #9ca3afb3;
  background: #ffffff12;
  border-radius: 6px;
  flex: 0 0 20px;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  font-size: 10px;
  font-weight: 700;
  transition: background .12s, color .12s;
  display: flex;
}

.step-btn.active .step-num {
  background: var(--accent);
  color: #fff;
}

.step-btn:hover .step-num {
  color: #f3f4f6;
  background: #ffffff1f;
}

.step-here {
  color: var(--accent);
  opacity: .7;
  margin-left: auto;
  font-size: 9px;
}

.info-icon-clickable {
  cursor: pointer;
  color: var(--blue);
  opacity: 1;
  background: none;
  border: 0;
  padding: 0;
}

.info-icon-clickable:hover {
  color: var(--accent);
}

.field-hint {
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
  display: block;
}

.first-run-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #bae6fd;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  display: flex;
  box-shadow: 0 4px 16px #0ea5e914;
}

.first-run-icon {
  flex: none;
  margin-top: 2px;
  font-size: 36px;
}

.first-run-body h2 {
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 800;
}

.first-run-body > p {
  color: #374151;
  max-width: 680px;
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.6;
}

.first-run-steps {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 4px;
  display: grid;
}

.first-run-step {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #e0f2fe;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  display: flex;
}

.first-run-num {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  flex: 0 0 28px;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  box-shadow: 0 3px 8px #e85d0440;
}

.first-run-step b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: block;
}

.first-run-step small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.no-req-gate {
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px 24px;
  display: flex;
}

.no-req-gate-inner {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  display: flex;
}

.no-req-gate-icon {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  display: flex;
}

.no-req-gate-inner h2 {
  color: var(--ink);
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.no-req-gate-inner p {
  color: var(--muted);
  max-width: 360px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
}

.section-locked {
  opacity: .55;
  cursor: pointer;
}

.section-locked:hover {
  opacity: .75;
}

.section-lock-callout {
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff8f0;
  border: 1px solid #fde8d4;
  margin: 4px 8px 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}

.section-lock-callout p {
  margin: 0;
}

.section-lock-callout .btn {
  padding: 4px 10px;
  font-size: 11px;
}

/* [project]/node_modules/driver.js/dist/driver.css [app-client] (css) */
.driver-active .driver-overlay {
  pointer-events: none;
}

.driver-active.driver-no-scroll {
  overflow: hidden;
}

.driver-active * {
  pointer-events: none;
}

.driver-active .driver-active-element, .driver-active .driver-active-element *, .driver-popover, .driver-popover * {
  pointer-events: auto;
}

@keyframes animate-fade-in {
  0% {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.driver-fade .driver-overlay {
  animation: animate-fade-in var(--driver-animation-duration, .4s) ease-in-out;
}

.driver-fade .driver-popover {
  animation: animate-fade-in var(--driver-animation-duration, .4s);
}

.driver-popover {
  all: unset;
  box-sizing: border-box;
  color: #2d2d2d;
  z-index: 1000000000;
  background-color: #fff;
  border-radius: 5px;
  min-width: 250px;
  max-width: 300px;
  margin: 0;
  padding: 15px;
  position: fixed;
  top: 0;
  right: 0;
  box-shadow: 0 1px 10px #0006;
}

.driver-popover * {
  font-family: Helvetica Neue, Inter, ui-sans-serif, Apple Color Emoji, Helvetica, Arial, sans-serif;
}

.driver-popover-title {
  zoom: 1;
  margin: 0;
  font: 700 19px / 1.5 sans-serif;
  display: block;
  position: relative;
}

.driver-popover-close-btn {
  all: unset;
  cursor: pointer;
  color: #d2d2d2;
  z-index: 1;
  text-align: center;
  width: 32px;
  height: 28px;
  font-size: 18px;
  font-weight: 500;
  transition: color .2s;
  position: absolute;
  top: 0;
  right: 0;
}

.driver-popover-close-btn:hover, .driver-popover-close-btn:focus {
  color: #2d2d2d;
}

.driver-popover-title[style*="block"] + .driver-popover-description {
  margin-top: 5px;
}

.driver-popover-description {
  zoom: 1;
  margin-bottom: 0;
  font: 400 14px / 1.5 sans-serif;
}

.driver-popover-footer {
  text-align: right;
  zoom: 1;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  display: flex;
}

.driver-popover-progress-text {
  color: #727272;
  zoom: 1;
  font-size: 13px;
  font-weight: 400;
}

.driver-popover-footer-btn {
  all: unset;
  box-sizing: border-box;
  color: #2d2d2d;
  cursor: pointer;
  zoom: 1;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  outline: 0;
  padding: 3px 7px;
  font: 12px / 1.3 sans-serif;
  text-decoration: none;
  display: inline-block;
}

.driver-popover-footer .driver-popover-btn-disabled {
  opacity: .5;
  pointer-events: none;
}

.driver-active-element-parent-no-scroll {
  overflow: hidden !important;
}

.driver-no-interaction, .driver-no-interaction * {
  pointer-events: none !important;
}

.driver-popover-footer-btn:hover, .driver-popover-footer-btn:focus {
  background-color: #f7f7f7;
}

.driver-popover-navigation-btns {
  flex-grow: 1;
  justify-content: flex-end;
  display: flex;
}

.driver-popover-navigation-btns button + button {
  margin-left: 4px;
}

.driver-popover-arrow {
  content: "";
  border: 5px solid #fff;
  position: absolute;
}

.driver-popover-arrow-side-over {
  display: none;
}

.driver-popover-arrow-side-left {
  border-top-color: #0000;
  border-bottom-color: #0000;
  border-right-color: #0000;
  left: 100%;
}

.driver-popover-arrow-side-right {
  border-top-color: #0000;
  border-bottom-color: #0000;
  border-left-color: #0000;
  right: 100%;
}

.driver-popover-arrow-side-top {
  border-bottom-color: #0000;
  border-left-color: #0000;
  border-right-color: #0000;
  top: 100%;
}

.driver-popover-arrow-side-bottom {
  border-top-color: #0000;
  border-left-color: #0000;
  border-right-color: #0000;
  bottom: 100%;
}

.driver-popover-arrow-side-center, .driver-popover-arrow-none {
  display: none;
}

/*# sourceMappingURL=_0y7px93._.css.map*/