:root {
  color-scheme: light;
  --ink: #173b39;
  --ink-2: #315451;
  --muted: #6f7f7b;
  --paper: #f5f2eb;
  --surface: #fffdf9;
  --surface-2: #edf2ed;
  --surface-3: #e5ece7;
  --line: #dbe2dc;
  --brand: #1d5750;
  --brand-deep: #123f3a;
  --brand-soft: #dceae3;
  --coral: #c96349;
  --coral-soft: #f6e3dc;
  --gold: #c08a2f;
  --gold-soft: #f5ead1;
  --blue: #3c7089;
  --blue-soft: #e1edf1;
  --success: #2d7a55;
  --danger: #b64e45;
  --shadow-sm: 0 1px 2px rgb(23 59 57 / 5%), 0 4px 14px rgb(23 59 57 / 5%);
  --shadow-md: 0 12px 34px rgb(23 59 57 / 10%);
  --shadow-lg: 0 26px 70px rgb(23 59 57 / 16%);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --sidebar: 264px;
  --topbar: 76px;
  --ease: 180ms cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% -10%, rgb(192 138 47 / 10%), transparent 26rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
svg { display: block; }

:focus-visible {
  outline: 3px solid rgb(192 138 47 / 42%);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--brand-deep);
  color: #fff;
  transform: translateY(-160%);
  transition: transform var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }
.app-stage { min-height: 100vh; margin-left: var(--sidebar); }

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  overflow-y: auto;
  background: #173f3a;
  color: #eaf2ee;
  border-right: 1px solid rgb(255 255 255 / 8%);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 2px 7px;
  margin-bottom: 24px;
}

.brand-mark {
  position: relative;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 14px;
  background: #fff;
  color: var(--brand-deep);
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgb(0 0 0 / 13%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 99px;
  background: var(--coral);
}
.brand-name { font-size: 16px; font-weight: 780; letter-spacing: .02em; }
.brand-place { display: block; color: #a9c4bc; font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }

.nav-section-label {
  margin: 8px 10px 7px;
  color: #83a59c;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.nav-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #c9dcd6;
  cursor: pointer;
  text-align: left;
  transition: color var(--ease), background var(--ease), transform var(--ease);
}
.nav-button:hover { background: rgb(255 255 255 / 7%); color: #fff; transform: translateX(2px); }
.nav-button.active { background: #fff; color: var(--brand-deep); box-shadow: 0 6px 18px rgb(0 0 0 / 13%); }
.nav-button svg { width: 19px; height: 19px; stroke-width: 1.8; }
.nav-button span { font-weight: 640; }
.nav-badge { margin-left: auto; min-width: 21px; padding: 2px 6px; border-radius: 99px; background: var(--coral); color: #fff; font-size: 10px; text-align: center; }

.sidebar-spacer { flex: 1; min-height: 22px; }
.sidebar-card {
  margin: 18px 2px 14px;
  padding: 15px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 15px;
  background: rgb(255 255 255 / 6%);
}
.sidebar-card-label { color: #93b3aa; font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-card strong { display: block; margin: 6px 0 8px; color: #fff; font-size: 13px; }
.mini-progress { height: 5px; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / 12%); }
.mini-progress > span { display: block; height: 100%; border-radius: inherit; background: #e6b552; }
.sidebar-card small { display: block; margin-top: 7px; color: #a9c4bc; font-size: 11px; }

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(24px, 3.3vw, 52px);
  border-bottom: 1px solid rgb(219 226 220 / 72%);
  background: rgb(245 242 235 / 86%);
  backdrop-filter: blur(16px);
}
.topbar-title { min-width: 0; }
.topbar-title strong { display: block; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 20px; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title span { color: var(--muted); font-size: 12px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.sync-indicator { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.sync-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.sync-indicator.success i { background: var(--success); box-shadow: 0 0 0 3px #dcefe4; }
.sync-indicator.coral i { background: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }

.icon-button {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.icon-button:hover { transform: translateY(-1px); border-color: #b8c8bf; box-shadow: 0 8px 22px rgb(23 59 57 / 9%); }
.icon-button svg { width: 19px; height: 19px; }
.unread-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--coral); }

.profile-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 9px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 11px; background: var(--coral-soft); color: #9a422f; font-size: 12px; font-weight: 800; }
.profile-copy { max-width: 150px; text-align: left; }
.profile-copy strong, .profile-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { font-size: 12px; }
.profile-copy span { color: var(--muted); font-size: 10px; }

.main-content { width: 100%; max-width: 1540px; margin: 0 auto; padding: 34px clamp(24px, 3.3vw, 52px) 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 6px; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.page-title { margin: 0; max-width: 830px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3.2vw, 45px); line-height: 1.08; letter-spacing: -.025em; }
.page-lead { max-width: 690px; margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 720;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 7px 17px rgb(29 87 80 / 16%);
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}
.button:hover { transform: translateY(-1px); background: var(--brand-deep); box-shadow: 0 10px 22px rgb(29 87 80 / 22%); }
.button svg { width: 18px; height: 18px; }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.button.secondary:hover { border-color: #bacbc1; background: #fff; }
.button.ghost { border-color: transparent; background: transparent; color: var(--brand); box-shadow: none; }
.button.ghost:hover { background: var(--brand-soft); }
.button.coral { background: var(--coral); }
.button.small { min-height: 36px; padding: 7px 12px; border-radius: 10px; font-size: 12px; }
.button.full { width: 100%; }

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .8fr); gap: 22px; }
.stack { display: grid; gap: 20px; }

.card {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card.flush { padding: 0; overflow: hidden; }
.card.soft { background: var(--surface-2); box-shadow: none; }
.card.dark { border-color: transparent; background: var(--brand-deep); color: #fff; }
.card.coral-wash { border-color: #ecd1c8; background: #fdf6f2; }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.card-title-row > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.card-title { margin: 0; font-family: Georgia, serif; font-size: 20px; line-height: 1.2; }
.card-kicker { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.card.dark .card-kicker { color: #b6cec7; }
.link-button { padding: 3px; border: 0; background: transparent; color: var(--brand); font-size: 12px; font-weight: 750; cursor: pointer; }

.hero-panel {
  position: relative;
  isolation: isolate;
  min-height: 236px;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-deep);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.hero-panel::before, .hero-panel::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgb(255 255 255 / 11%); border-radius: 50%; }
.hero-panel::before { width: 290px; height: 290px; right: -92px; top: -116px; }
.hero-panel::after { width: 200px; height: 200px; right: 44px; bottom: -160px; border-color: rgb(230 181 82 / 32%); }
.hero-panel .eyebrow { color: #efb98c; }
.hero-panel h2 { max-width: 700px; margin: 0; font-family: Georgia, serif; font-size: clamp(27px, 3.3vw, 44px); font-weight: 650; line-height: 1.08; letter-spacing: -.02em; }
.hero-panel p { max-width: 650px; margin: 13px 0 21px; color: #c4d8d2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-panel .button { background: #fff; color: var(--brand-deep); box-shadow: 0 9px 20px rgb(0 0 0 / 16%); }
.hero-panel .button.secondary { border-color: rgb(255 255 255 / 20%); background: rgb(255 255 255 / 8%); color: #fff; box-shadow: none; }

.metric-card { min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.metric-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.metric-icon.coral { background: var(--coral-soft); color: var(--coral); }
.metric-icon.gold { background: var(--gold-soft); color: #9a6b1c; }
.metric-icon.blue { background: var(--blue-soft); color: var(--blue); }
.metric-icon svg { width: 17px; height: 17px; }
.metric-value { margin-top: 12px; font-family: Georgia, serif; font-size: 29px; font-weight: 700; line-height: 1; }
.metric-note { margin-top: 5px; color: var(--muted); font-size: 11px; }
.trend { color: var(--success); font-weight: 760; }

.list { display: grid; margin: 0; padding: 0; list-style: none; }
.list-item { display: flex; align-items: flex-start; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }
.list-item:first-child { padding-top: 0; border-top: 0; }
.list-item:last-child { padding-bottom: 0; }
.list-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--brand); }
.list-icon svg { width: 18px; height: 18px; }
.list-copy { min-width: 0; flex: 1; }
.list-copy strong { display: block; margin-bottom: 2px; font-size: 13px; }
.list-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.list-meta { flex: 0 0 auto; color: var(--muted); font-size: 10px; white-space: nowrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
}
.badge svg { width: 12px; height: 12px; }
.badge.success { background: #dcefe4; color: #236443; }
.badge.coral { background: var(--coral-soft); color: #9f4432; }
.badge.gold { background: var(--gold-soft); color: #895e18; }
.badge.blue { background: var(--blue-soft); color: #315e74; }
.badge.outline { border: 1px solid var(--line); background: transparent; }
.badge.high { background: #dcefe4; color: #236443; }
.badge.medium { background: var(--gold-soft); color: #895e18; }

.company-avatar { width: 47px; height: 47px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); color: var(--brand); font-family: Georgia, serif; font-size: 18px; font-weight: 800; }
.company-avatar.coral { background: var(--coral-soft); color: #98432f; }
.company-avatar.blue { background: var(--blue-soft); color: var(--blue); }
.company-avatar.gold { background: var(--gold-soft); color: #8a611e; }

.match-card { display: grid; gap: 17px; }
.match-head { display: flex; align-items: flex-start; gap: 13px; }
.match-head-copy { min-width: 0; flex: 1; }
.match-head-copy h3 { margin: 1px 0 2px; font-size: 15px; }
.match-head-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.match-title { margin: 0; font-family: Georgia, serif; font-size: 19px; line-height: 1.25; }
.reason-list { display: flex; flex-wrap: wrap; gap: 7px; }
.reason { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 9px; background: var(--surface-2); color: var(--ink-2); font-size: 11px; }
.reason svg { width: 13px; height: 13px; color: var(--success); }
.match-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.section-tabs { display: flex; gap: 6px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.tab-button { min-height: 36px; padding: 7px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 720; white-space: nowrap; cursor: pointer; }
.tab-button.active { background: var(--surface); color: var(--brand-deep); box-shadow: var(--shadow-sm); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { min-width: 0; display: grid; gap: 7px; }
.field.span-2 { grid-column: span 2; }
.field label, .field-label { color: var(--ink-2); font-size: 12px; font-weight: 760; }
.field-hint { color: var(--muted); font-size: 10px; }
.input, .textarea, .select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cfd9d2;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.textarea { min-height: 128px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(29 87 80 / 11%); }
.input::placeholder, .textarea::placeholder { color: #9aa8a3; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); }
.search-field .input { padding-left: 43px; }

.choice-row, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-card { flex: 1 1 150px; min-height: 90px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; }
.choice-card strong { display: block; margin: 7px 0 2px; }
.choice-card span { color: var(--muted); font-size: 11px; }
.choice-card.active { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.chip { min-height: 34px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-2); font-size: 11px; font-weight: 650; cursor: pointer; }
.chip:hover, .chip.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }

.ai-label { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ai-label svg { width: 14px; height: 14px; }
.ai-panel { padding: 18px; border: 1px solid #cbdde4; border-radius: 15px; background: #f1f7f8; }
.ai-panel h3 { margin: 9px 0 6px; font-family: Georgia, serif; font-size: 18px; }
.ai-panel p { margin: 0; color: var(--ink-2); font-size: 12px; }

.progress-steps { display: flex; align-items: center; margin: 0 0 28px; padding: 0; list-style: none; }
.progress-step { position: relative; flex: 1; text-align: center; color: var(--muted); font-size: 10px; font-weight: 700; }
.progress-step::before { content: ""; position: absolute; z-index: 0; left: -50%; top: 14px; width: 100%; height: 2px; background: var(--line); }
.progress-step:first-child::before { display: none; }
.step-dot { position: relative; z-index: 1; width: 29px; height: 29px; display: grid; place-items: center; margin: 0 auto 6px; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 10px; }
.progress-step.complete::before, .progress-step.active::before { background: var(--brand); }
.progress-step.complete .step-dot, .progress-step.active .step-dot { border-color: var(--brand); background: var(--brand); color: #fff; }

.timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline-item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; }
.timeline-item::after { content: ""; position: absolute; left: 13px; top: 27px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::after { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--brand); }
.timeline-dot.done { border-color: var(--brand); background: var(--brand); color: #fff; }
.timeline-dot svg { width: 13px; height: 13px; }
.timeline-copy strong { display: block; margin: 3px 0 2px; font-size: 12px; }
.timeline-copy p { margin: 0; color: var(--muted); font-size: 11px; }

.case-card { display: grid; gap: 14px; }
.case-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.case-top h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 19px; }
.case-top p { margin: 0; color: var(--muted); font-size: 11px; }
.case-progress { display: grid; gap: 7px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.case-meta { display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 10px; }
.case-meta span { display: inline-flex; align-items: center; gap: 5px; }
.case-meta svg { width: 13px; height: 13px; }

.legal-layout { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.legal-answer { display: grid; gap: 18px; }
.legal-answer h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; }
.legal-answer h3 { margin: 0 0 7px; font-size: 13px; }
.legal-answer p { margin: 0; color: var(--ink-2); }
.source-card { display: flex; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.source-card .source-number { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; }
.source-card strong { display: block; font-size: 11px; }
.source-card p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.disclaimer { display: flex; gap: 11px; padding: 14px; border: 1px solid #e7d29f; border-radius: 12px; background: #fff8e8; color: #6f5424; font-size: 10px; }
.disclaimer svg { width: 17px; height: 17px; flex: 0 0 auto; }
.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.coverage-item { padding: 11px; border-radius: 10px; background: var(--surface-2); }
.coverage-item span, .coverage-item strong { display: block; }
.coverage-item span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.coverage-item strong { margin-top: 3px; font-size: 11px; }

.discover-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 22px; align-items: start; }
.filter-panel { position: sticky; top: calc(var(--topbar) + 20px); }
.filter-group { display: grid; gap: 9px; padding: 16px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; }
.filter-group-title { font-size: 11px; font-weight: 780; }
.check-row { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 11px; cursor: pointer; }
.check-row input { width: 16px; height: 16px; accent-color: var(--brand); }
.result-list { display: grid; gap: 13px; }
.result-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 15px; align-items: start; }
.result-card h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 18px; }
.result-card p { margin: 7px 0 12px; color: var(--muted); font-size: 12px; }
.result-actions { display: grid; gap: 7px; justify-items: end; }

.messages-layout { height: calc(100vh - var(--topbar) - 70px); min-height: 560px; display: grid; grid-template-columns: 330px minmax(0, 1fr); overflow: hidden; padding: 0; }
.conversation-list { overflow-y: auto; border-right: 1px solid var(--line); }
.conversation-list-head { position: sticky; z-index: 1; top: 0; padding: 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.conversation-row { width: 100%; display: flex; gap: 11px; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; }
.conversation-row:hover, .conversation-row.active { background: var(--surface-2); }
.conversation-row-copy { min-width: 0; flex: 1; }
.conversation-row-copy strong, .conversation-row-copy p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-row-copy strong { display: block; font-size: 12px; }
.conversation-row-copy p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.conversation-pane { min-width: 0; display: flex; flex-direction: column; }
.conversation-head { display: flex; align-items: center; gap: 12px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.conversation-head-copy { min-width: 0; flex: 1; }
.conversation-head-copy strong, .conversation-head-copy span { display: block; }
.conversation-head-copy strong { font-size: 13px; }
.conversation-head-copy span { color: var(--muted); font-size: 10px; }
.message-stream { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px; overflow-y: auto; background: #f9f8f4; }
.message { max-width: 72%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px 13px 13px 4px; background: #fff; box-shadow: var(--shadow-sm); }
.message.mine { align-self: flex-end; border-color: #cdded5; border-radius: 13px 13px 4px 13px; background: var(--brand-soft); }
.message p { margin: 0; font-size: 12px; }
.message time { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; text-align: right; }
.message-compose { display: flex; align-items: flex-end; gap: 9px; padding: 14px; border-top: 1px solid var(--line); background: var(--surface); }
.message-compose .textarea { min-height: 44px; max-height: 100px; padding-block: 10px; }

.profile-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 28px; }
.profile-logo { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 24px; background: var(--brand-deep); color: #fff; font-family: Georgia, serif; font-size: 31px; font-weight: 800; box-shadow: var(--shadow-md); }
.profile-hero h2 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 27px; }
.profile-hero p { margin: 0 0 10px; color: var(--muted); }
.profile-score { text-align: right; }
.profile-score strong { display: block; font-family: Georgia, serif; font-size: 31px; }
.profile-score span { color: var(--muted); font-size: 10px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.info-block { padding: 14px; border-radius: 12px; background: var(--surface-2); }
.info-block span, .info-block strong { display: block; }
.info-block span { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.info-block strong { font-size: 12px; }
.team-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); }
.team-row:first-child { border-top: 0; }
.team-copy { min-width: 0; flex: 1; }
.team-copy strong, .team-copy span { display: block; }
.team-copy strong { font-size: 12px; }
.team-copy span { color: var(--muted); font-size: 10px; }

.admin-stat { padding: 18px; }
.admin-stat strong { display: block; font-family: Georgia, serif; font-size: 27px; }
.admin-stat span { color: var(--muted); font-size: 10px; }
.queue-table { width: 100%; border-collapse: collapse; }
.queue-table th, .queue-table td { padding: 13px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.queue-table th { border-top: 0; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.queue-table td { font-size: 11px; }
.queue-table td strong { display: block; font-size: 12px; }
.queue-table td span { color: var(--muted); font-size: 9px; }

.empty-state { max-width: 470px; margin: 40px auto; padding: 26px; text-align: center; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h3 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 22px; }
.empty-state p { margin: 0 0 17px; color: var(--muted); font-size: 12px; }

.overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(9 29 27 / 56%); backdrop-filter: blur(7px); animation: fade-in 150ms ease-out; }
.dialog { width: min(680px, 100%); max-height: min(780px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgb(255 255 255 / 35%); border-radius: 23px; background: var(--surface); box-shadow: var(--shadow-lg); animation: dialog-in 220ms cubic-bezier(.2,.8,.2,1); }
.dialog.wide { width: min(900px, 100%); }
.dialog-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.dialog-head-copy { min-width: 0; flex: 1; }
.dialog-head h2 { margin: 0; font-family: Georgia, serif; font-size: 24px; }
.dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.dialog-body { padding: 23px 24px; overflow-y: auto; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 24px; border-top: 1px solid var(--line); background: #fbfaf6; }
.close-button { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }

.popover { position: fixed; z-index: 90; top: 67px; right: 34px; width: min(390px, calc(100vw - 24px)); max-height: min(590px, calc(100vh - 90px)); overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); animation: dialog-in 180ms ease-out; }
.popover-head { position: sticky; top: 0; display: flex; justify-content: space-between; padding: 16px 17px; border-bottom: 1px solid var(--line); background: rgb(255 253 249 / 94%); backdrop-filter: blur(8px); }
.popover-head strong { font-family: Georgia, serif; font-size: 17px; }
.notification-row { display: flex; gap: 11px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.notification-row.unread { background: #f2f7f4; }
.notification-row p { margin: 0 0 3px; font-size: 11px; }
.notification-row span { color: var(--muted); font-size: 9px; }

.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 260px; max-width: 420px; display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid rgb(255 255 255 / 15%); border-radius: 13px; background: var(--brand-deep); color: #fff; box-shadow: var(--shadow-lg); animation: toast-in 240ms ease-out; }
.toast svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; color: #e6b552; }
.toast strong { display: block; font-size: 11px; }
.toast span { display: block; margin-top: 2px; color: #bcd2cc; font-size: 9px; }

.skeleton { position: relative; overflow: hidden; border-radius: 8px; background: var(--surface-3); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 55%), transparent); transform: translateX(-100%); animation: shimmer 1.35s infinite; }

.auth-mode .app-stage { margin-left: 0; }
.auth-mode .sidebar, .auth-mode .topbar, .auth-mode .mobile-nav { display: none; }
.auth-mode .main-content { max-width: none; min-height: 100vh; margin: 0; padding: 0; }
.auth-loading { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 14px; background: var(--paper); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.12fr) minmax(420px, .88fr); }
.auth-story { position: relative; isolation: isolate; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 5vw, 74px); overflow: hidden; background: var(--brand-deep); color: #fff; }
.auth-story::before, .auth-story::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgb(255 255 255 / 11%); border-radius: 50%; }
.auth-story::before { width: 540px; height: 540px; right: -220px; top: -180px; }
.auth-story::after { width: 380px; height: 380px; right: 8%; bottom: -280px; border-color: rgb(230 181 82 / 32%); }
.auth-brand { display: flex; align-items: center; gap: 13px; }
.auth-brand .brand-mark { width: 48px; height: 48px; }
.auth-brand strong, .auth-brand span { display: block; }
.auth-brand strong { font-size: 18px; letter-spacing: .04em; }
.auth-brand span { color: #9fc0b7; font-size: 10px; font-weight: 760; letter-spacing: .2em; }
.auth-story-copy { max-width: 750px; margin-block: 70px; }
.auth-story-copy .eyebrow { color: #efb98c; }
.auth-story-copy h1 { max-width: 720px; margin: 0; font-family: Georgia, serif; font-size: clamp(42px, 5.3vw, 78px); font-weight: 650; line-height: .98; letter-spacing: -.035em; }
.auth-story-copy > p:last-child { max-width: 610px; margin: 25px 0 0; color: #bfd4ce; font-size: 17px; }
.auth-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 210px)); gap: 24px; margin-top: auto; }
.auth-proof div { padding-top: 15px; border-top: 1px solid rgb(255 255 255 / 18%); }
.auth-proof strong, .auth-proof span { display: block; }
.auth-proof strong { font-family: Georgia, serif; font-size: 30px; }
.auth-proof span { margin-top: 3px; color: #a8c4bd; font-size: 10px; }
.auth-quote { max-width: 660px; margin: 28px 0 0; color: #e6b552; font-family: Georgia, serif; font-size: 14px; font-style: italic; }
.auth-entry { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 76px); background: var(--paper); }
.auth-card { width: 100%; max-width: 540px; margin: auto; padding: clamp(26px, 4vw, 45px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.auth-card h2 { margin: 13px 0 9px; font-family: Georgia, serif; font-size: clamp(27px, 3vw, 39px); line-height: 1.08; letter-spacing: -.02em; }
.auth-card > p { margin: 0; color: var(--muted); }
.auth-persona { display: flex; align-items: center; gap: 12px; margin: 25px 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.auth-persona > div { min-width: 0; flex: 1; }
.auth-persona strong, .auth-persona > div span { display: block; }
.auth-persona strong { font-size: 12px; }
.auth-persona > div span { color: var(--muted); font-size: 10px; }
.auth-submit { min-height: 50px; }
.auth-security { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 17px; margin-top: 17px; color: var(--muted); }
.auth-security span { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 700; }
.auth-security svg { width: 12px; height: 12px; color: var(--success); }
.auth-note { margin-top: 19px !important; font-size: 9px; text-align: center; }
.auth-error { display: flex; gap: 9px; margin-top: 17px; padding: 12px; border: 1px solid #ebc5bd; border-radius: 11px; background: var(--coral-soft); color: #8d3c2d; font-size: 10px; }
.auth-error svg { width: 16px; height: 16px; flex: 0 0 auto; }
.auth-footer { display: flex; justify-content: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 9px; }
.auth-form { display: grid; gap: 14px; margin-top: 23px; }
.auth-form .form-grid { gap: 12px; }
.auth-form + .button { margin-top: 9px; }
.auth-help { display: block; margin: 10px auto 0; }
.auth-code { max-width: 190px; font-size: 22px; font-weight: 800; letter-spacing: .2em; text-align: center; }
.auth-recovery { padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.auth-recovery summary { cursor: pointer; font-weight: 720; }
.legal-consents { display: grid; gap: 9px; margin-block: 17px; }
.legal-consents .check-row { align-items: flex-start; }
.auth-demo { display: flex; justify-content: center; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 10px; }
.auth-step { display: inline-flex; padding: 5px 9px; border-radius: 99px; background: var(--gold-soft); color: #7b571d; font-size: 10px; font-weight: 800; }
.mfa-setup { display: grid; gap: 13px; margin-top: 20px; }
.mfa-secret, .mfa-uri { display: block; padding: 12px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--brand-deep); font-size: 11px; }
.mfa-secret { font-size: 16px; font-weight: 800; letter-spacing: .08em; text-align: center; }
.recovery-panel ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 24px; padding-left: 25px; }
.recovery-panel code { font-weight: 750; }

.mobile-nav { display: none; }
.mobile-only { display: none; }
.desktop-only { display: initial; }
.muted { color: var(--muted); }
.text-small { font-size: 11px; }
.text-small svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; margin: 17px 0; background: var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1180px) {
  :root { --sidebar: 86px; }
  .sidebar { padding-inline: 11px; }
  .brand-lockup { justify-content: center; padding-inline: 0; }
  .brand-copy, .nav-section-label, .nav-button span:not(.nav-badge), .sidebar-card { display: none; }
  .nav-button { justify-content: center; padding-inline: 0; }
  .nav-badge { position: absolute; margin: 0; transform: translate(14px, -13px); }
  .dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .8fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 430px; padding: 35px; }
  .auth-story-copy { margin-block: 48px; }
  .auth-story-copy h1 { max-width: 680px; font-size: 52px; }
  .auth-entry { min-height: auto; padding: 44px 24px; }
  .dashboard-grid, .legal-layout, .discover-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .messages-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .result-card { grid-template-columns: auto minmax(0, 1fr); }
  .result-actions { grid-column: 2; display: flex; justify-items: initial; }
}

@media (max-width: 680px) {
  :root { --topbar: 64px; }
  body { background: #f7f4ed; }
  .sidebar { display: none; }
  .auth-mode .app-stage { padding-bottom: 0; }
  .auth-shell { display: block; }
  .auth-story { min-height: 390px; padding: 26px 21px 31px; }
  .auth-story-copy { margin-block: 45px; }
  .auth-story-copy h1 { font-size: 39px; }
  .auth-story-copy > p:last-child { margin-top: 17px; font-size: 14px; }
  .auth-proof { gap: 14px; }
  .auth-proof strong { font-size: 24px; }
  .auth-quote { display: none; }
  .auth-entry { padding: 24px 14px 34px; }
  .auth-card { padding: 24px 19px; border-radius: 20px; }
  .auth-card h2 { font-size: 29px; }
  .auth-persona { align-items: flex-start; flex-wrap: wrap; }
  .auth-persona > .badge { margin-left: 45px; }
  .app-stage { margin-left: 0; padding-bottom: 74px; }
  .topbar { padding: 0 16px; }
  .topbar-title strong { font-size: 17px; }
  .topbar-title span, .profile-copy, .topbar-actions .button { display: none; }
  .profile-button { padding: 4px; border: 0; background: transparent; box-shadow: none; }
  .main-content { padding: 24px 16px 36px; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .page-title { font-size: 32px; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .hero-panel { min-height: 255px; padding: 25px 21px; }
  .hero-panel h2 { font-size: 31px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .form-grid, .info-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .card { padding: 18px; border-radius: 16px; }
  .mobile-nav { position: fixed; z-index: 60; inset: auto 0 0; height: calc(66px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 5px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgb(255 253 249 / 94%); backdrop-filter: blur(18px); }
  .mobile-nav-button { min-width: 0; display: grid; place-items: center; align-content: center; gap: 2px; padding: 3px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
  .mobile-nav-button.active { color: var(--brand); background: var(--brand-soft); }
  .mobile-nav-button svg { width: 20px; height: 20px; }
  .mobile-nav-button span { overflow: hidden; font-size: 8px; font-weight: 730; text-overflow: ellipsis; white-space: nowrap; }
  .messages-layout { height: calc(100vh - var(--topbar) - 104px); grid-template-columns: 1fr; }
  .conversation-list { display: none; }
  .conversation-list.mobile-open { display: block; border-right: 0; }
  .conversation-list.mobile-open + .conversation-pane { display: none; }
  .message { max-width: 88%; }
  .profile-hero { grid-template-columns: auto 1fr; padding: 20px; }
  .profile-logo { width: 65px; height: 65px; border-radius: 19px; font-size: 24px; }
  .profile-hero h2 { font-size: 21px; }
  .profile-score { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; text-align: left; }
  .coverage { grid-template-columns: 1fr; }
  .queue-table { min-width: 700px; }
  .table-scroll { overflow-x: auto; }
  .dialog { max-height: calc(100vh - 18px); border-radius: 20px; }
  .overlay { align-items: end; padding: 9px; }
  .dialog-head, .dialog-body { padding-inline: 18px; }
  .dialog-foot { padding-inline: 18px; }
  .dialog-foot .button { flex: 1; }
  .popover { top: 58px; right: 12px; }
  .mobile-only { display: initial; }
  .desktop-only { display: none; }
  .toast-region { right: 12px; bottom: 82px; left: 12px; }
  .toast { min-width: 0; width: 100%; }
}

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

/* NEXO UI 2.0 · experiencia empresarial contemporánea */
:root {
  --ink: #102a27; --ink-2: #36524e; --muted: #71827e;
  --paper: #f4f7f4; --surface: #ffffff; --surface-2: #f0f5f1; --surface-3: #e4ece6;
  --line: #dce6df; --brand: #12695f; --brand-deep: #0a302c; --brand-soft: #dff1e9;
  --coral: #ef6d52; --coral-soft: #fff0eb; --gold: #d49a32; --gold-soft: #fff4d9;
  --blue: #3e7897; --blue-soft: #e8f4f8; --lime: #b9e769; --success: #27845b;
  --shadow-sm: 0 1px 2px rgb(14 47 43 / 3%), 0 7px 22px rgb(14 47 43 / 5%);
  --shadow-md: 0 18px 55px rgb(14 47 43 / 10%); --shadow-lg: 0 30px 90px rgb(6 34 31 / 18%);
  --radius-sm: 12px; --radius: 22px; --radius-lg: 30px; --sidebar: 286px; --topbar: 82px;
  --font-display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --ease: 220ms cubic-bezier(.2,.8,.2,1);
}
body { background: radial-gradient(circle at 87% 4%, rgb(185 231 105 / 15%), transparent 27rem), linear-gradient(135deg,#f7faf7 0%,#f3f6f3 55%,#f8f5ef 100%); font-family: var(--font-body); }
.sidebar { padding: 20px 18px 16px; overflow-x: hidden; background: radial-gradient(circle at 10% -5%,rgb(185 231 105 / 15%),transparent 16rem),linear-gradient(180deg,#0b3530 0%,#082b28 100%); border-right: 0; box-shadow: 12px 0 40px rgb(4 32 29 / 8%); }
.brand-lockup { position: relative; min-height: 50px; margin: 0 3px 16px; padding: 0; }
.brand-mark { width: 44px; height: 44px; border: 0; border-radius: 14px; background: linear-gradient(145deg,#fff,#edf5ef); font-family: var(--font-display); font-size: 22px; box-shadow: 0 12px 30px rgb(0 0 0 / 21%); }
.brand-mark::after { width: 8px; height: 8px; right: 5px; bottom: 5px; background: var(--lime); }
.brand-name { font-size: 17px; font-weight: 850; letter-spacing: -.01em; }
.brand-place { color: #a9c7bf; font-size: 9px; letter-spacing: .12em; }
.brand-status { width: 8px; height: 8px; margin-left: auto; border: 2px solid #315c56; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(185 231 105 / 11%); }
.workspace-switcher { width: 100%; min-height: 62px; display: grid; grid-template-columns: 38px minmax(0,1fr) 16px; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 16px; background: rgb(255 255 255 / 6%); color: #fff; cursor: pointer; text-align: left; transition: background var(--ease),border-color var(--ease),transform var(--ease); }
.workspace-switcher:hover { border-color: rgb(185 231 105 / 28%); background: rgb(255 255 255 / 10%); transform: translateY(-1px); }
.workspace-switcher > span:nth-child(2) { min-width: 0; }
.workspace-switcher strong,.workspace-switcher small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switcher strong { font-size: 12px; }.workspace-switcher small { margin-top: 2px; color: #9dbbb4; font-size: 9px; }.workspace-switcher > svg { width: 15px; color: #789e95; }
.workspace-logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg,var(--coral),#d7553c); color: #fff; font-size: 12px; font-weight: 850; box-shadow: 0 8px 17px rgb(239 109 82 / 22%); }
.sidebar-create { width: 100%; min-height: 46px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 9px; margin-bottom: 19px; padding: 10px 13px; border: 0; border-radius: 14px; background: var(--lime); color: #16372f; cursor: pointer; font-weight: 800; text-align: left; box-shadow: 0 10px 24px rgb(0 0 0 / 16%); transition: transform var(--ease),filter var(--ease); }
.sidebar-create:hover { filter: brightness(1.05); transform: translateY(-2px); }.sidebar-create svg { width: 19px; }.sidebar-create small { padding: 3px 6px; border-radius: 7px; background: rgb(10 48 44 / 10%); font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.sidebar-create span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.nav-section-label { margin: 7px 11px 6px; color: #6f978e; font-size: 9px; font-weight: 850; letter-spacing: .16em; }.nav-section-spaced { margin-top: 19px; }.nav-list { gap: 3px; }
.nav-button { min-height: 42px; padding: 9px 11px; border-radius: 12px; color: #bdd1cc; }.nav-button:hover { background: rgb(255 255 255 / 6%); transform: none; }.nav-button.active { background: rgb(255 255 255 / 12%); color: #fff; box-shadow: inset 3px 0 0 var(--lime); }.nav-button.active svg { color: var(--lime); }.nav-button span { font-size: 13px; font-weight: 650; }.nav-badge { background: var(--coral); box-shadow: 0 4px 12px rgb(239 109 82 / 30%); }
.network-card { margin: 16px 0 12px; padding: 14px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 16px; background: linear-gradient(145deg,rgb(255 255 255 / 7%),rgb(255 255 255 / 3%)); }.network-card > div:first-child { display: flex; align-items: center; gap: 7px; }.network-card strong { color: #fff; font-size: 11px; }.network-card p { margin: 5px 0 11px; color: #89aaa2; font-size: 9px; }
.live-dot,.pulse-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(185 231 105 / 10%); }.network-avatars { display: flex; align-items: center; }.network-avatars span { width: 25px; height: 25px; display: grid; place-items: center; margin-right: -5px; border: 2px solid #123c37; border-radius: 50%; background: #dcebe6; color: var(--brand-deep); font-size: 7px; font-weight: 850; }.network-avatars b { margin-left: 10px; color: #a9c5be; font-size: 9px; }
.sidebar-footer { display: flex; align-items: center; gap: 5px; padding-top: 9px; border-top: 1px solid rgb(255 255 255 / 7%); }.sidebar-footer .nav-button { flex: 1; }.sidebar-version { color: #5d857b; font-size: 8px; white-space: nowrap; }
.topbar { gap: 22px; padding: 0 clamp(24px,3vw,46px); border-bottom-color: rgb(206 219 211 / 65%); background: rgb(249 251 249 / 82%); backdrop-filter: blur(22px) saturate(145%); }.topbar-context { min-width: 175px; }.topbar-title strong { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -.025em; }.topbar-title span { font-size: 10px; }
.global-search { width: min(36vw,430px); min-height: 44px; display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 0 11px 0 14px; border: 1px solid var(--line); border-radius: 14px; background: rgb(255 255 255 / 75%); color: var(--muted); cursor: pointer; text-align: left; box-shadow: 0 5px 18px rgb(21 54 50 / 4%); }.global-search svg { width: 17px; }.global-search span { min-width: 0; flex: 1; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.global-search kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: #84938f; font-family: inherit; font-size: 8px; }
.topbar-actions { margin-left: 0; }.topbar-create { min-height: 40px; border-radius: 12px; }.profile-button { min-height: 46px; border-radius: 15px; box-shadow: 0 6px 18px rgb(19 57 52 / 5%); }.profile-button .avatar { background: linear-gradient(145deg,var(--coral-soft),#ffe4da); }.icon-button { border-radius: 13px; background: rgb(255 255 255 / 85%); }
.main-content { max-width: 1500px; padding: 38px clamp(25px,3.2vw,54px) 80px; }.page-head { align-items: center; margin-bottom: 30px; }.page-head-copy { max-width: 920px; }.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--brand); font-size: 10px; font-weight: 850; letter-spacing: .13em; }.eyebrow > span { width: 18px; height: 2px; border-radius: 99px; background: var(--coral); }.page-title { font-family: var(--font-display); font-size: clamp(32px,3.4vw,51px); font-weight: 780; line-height: 1.02; letter-spacing: -.045em; }.page-lead { max-width: 760px; margin-top: 12px; color: #687b76; font-size: 15px; line-height: 1.62; }
.button { min-height: 46px; padding: 10px 17px; border-radius: 13px; background: linear-gradient(145deg,#16796e,#0d5d55); font-weight: 750; box-shadow: 0 9px 22px rgb(18 105 95 / 18%); }.button:hover { background: linear-gradient(145deg,#126f65,#084b45); transform: translateY(-2px); }.button.secondary { background: rgb(255 255 255 / 85%); }.button.small { border-radius: 11px; }
.card { padding: 24px; border-color: rgb(215 227 219 / 88%); border-radius: var(--radius); background: rgb(255 255 255 / 88%); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); transition: border-color var(--ease),box-shadow var(--ease),transform var(--ease); }.card:hover { border-color: #ccdcd1; box-shadow: 0 14px 38px rgb(14 47 43 / 8%); }.card-title { font-family: var(--font-display); font-size: 20px; font-weight: 760; letter-spacing: -.025em; }.card-kicker { margin-top: 5px; font-size: 11px; }
.home-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }.home-welcome h1 { margin: 0; font-family: var(--font-display); font-size: clamp(32px,3.2vw,47px); font-weight: 780; letter-spacing: -.045em; line-height: 1.04; }.home-welcome p:last-child { margin: 8px 0 0; color: var(--muted); }.welcome-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.opportunity-hero { min-height: 330px; display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,360px); align-items: center; gap: clamp(30px,4vw,70px); padding: clamp(30px,4vw,52px); background: radial-gradient(circle at 88% 16%,rgb(185 231 105 / 19%),transparent 20rem),radial-gradient(circle at 4% 110%,rgb(239 109 82 / 16%),transparent 20rem),linear-gradient(135deg,#0b3934 0%,#0b2e2b 62%,#123f39 100%); }
.opportunity-hero::before { width: 430px; height: 430px; right: -190px; top: -220px; border-color: rgb(185 231 105 / 16%); }.opportunity-hero::after { width: 300px; height: 300px; right: 30%; bottom: -260px; }
.hero-signal { width: max-content; display: flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 10px; border: 1px solid rgb(255 255 255 / 11%); border-radius: 99px; background: rgb(255 255 255 / 7%); color: #cce1db; font-size: 9px; font-weight: 700; }
.hero-panel h2 { max-width: 780px; font-family: var(--font-display); font-size: clamp(31px,3.5vw,50px); font-weight: 720; line-height: 1.02; letter-spacing: -.045em; }.hero-panel p { color: #bed2cc; font-size: 14px; line-height: 1.65; }.hero-panel .eyebrow { color: var(--lime); }.hero-panel .eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--coral); }.hero-panel .button { background: var(--lime); color: #153c35; box-shadow: 0 12px 26px rgb(0 0 0 / 18%); }.hero-panel .button:hover { background: #caf181; }.hero-panel .button.secondary { background: rgb(255 255 255 / 8%); color: #fff; }
.hero-business-card { padding: 21px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 22px; background: rgb(255 255 255 / 9%); box-shadow: 0 24px 55px rgb(0 0 0 / 18%); backdrop-filter: blur(15px); }.hero-company-row { display: flex; align-items: center; gap: 11px; }.hero-company-row > div { min-width: 0; flex: 1; }.hero-company-row strong,.hero-company-row span { display: block; }.hero-company-row strong { color: #fff; font-size: 13px; }.hero-company-row span { color: #abc8c1; font-size: 9px; }.hero-company-row .badge { display: inline-flex; color: #226144; }
.hero-score-row { margin: 20px 0 17px; padding: 15px 0; border-block: 1px solid rgb(255 255 255 / 10%); }.hero-score-row > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; }.hero-score-row span { color: #9dbbb4; font-size: 9px; }.hero-score-row strong { color: var(--lime); font-family: var(--font-display); font-size: 30px; line-height: 1; }.score-bars { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; margin-top: 10px; }.score-bars i { height: 5px; border-radius: 99px; background: var(--lime); }.score-bars i:last-child { background: linear-gradient(90deg,var(--lime) 60%,rgb(255 255 255 / 12%) 60%); }
.hero-business-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }.hero-business-card li { display: flex; align-items: center; gap: 8px; color: #d7e6e2; font-size: 10px; }.hero-business-card li::before { content: "✓"; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgb(185 231 105 / 12%); color: var(--lime); font-size: 9px; }
.quick-launch { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 16px; }.quick-launch button { min-width: 0; min-height: 76px; display: grid; grid-template-columns: 38px minmax(0,1fr) 16px; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: rgb(255 255 255 / 82%); color: var(--ink); cursor: pointer; text-align: left; box-shadow: var(--shadow-sm); transition: transform var(--ease),border-color var(--ease),box-shadow var(--ease); }.quick-launch button:hover { border-color: #b8d2c5; transform: translateY(-3px); box-shadow: 0 15px 32px rgb(17 58 52 / 9%); }.quick-launch button > svg:first-child { width: 38px; height: 38px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }.quick-launch button:nth-child(2) > svg:first-child { background: var(--gold-soft); color: #9a6819; }.quick-launch button:nth-child(3) > svg:first-child { background: var(--coral-soft); color: var(--coral); }.quick-launch button:nth-child(4) > svg:first-child { background: var(--blue-soft); color: var(--blue); }.quick-launch button > svg:last-child { width: 14px; color: #9aaca7; }.quick-launch span { min-width: 0; }.quick-launch strong,.quick-launch small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.quick-launch strong { font-size: 11px; }.quick-launch small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.metric-card { min-height: 158px; overflow: hidden; padding: 20px; }.metric-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -55px; top: -55px; border-radius: 50%; background: var(--brand-soft); opacity: .65; }.metric-coral::after { background: var(--coral-soft); }.metric-gold::after { background: var(--gold-soft); }.metric-blue::after { background: var(--blue-soft); }.metric-top { align-items: center; position: relative; z-index: 1; }.metric-icon { width: 39px; height: 39px; border-radius: 13px; }.metric-trend { color: var(--success); font-size: 15px; font-weight: 800; }.metric-value { margin-top: 16px; font-family: var(--font-display); font-size: 35px; font-weight: 780; letter-spacing: -.035em; }.metric-label { margin-top: 4px; font-size: 11px; font-weight: 760; }.metric-note { margin-top: 2px; font-size: 9px; }.metric-spark { position: absolute; right: 17px; bottom: 18px; display: flex; align-items: flex-end; gap: 3px; opacity: .45; }.metric-spark i { width: 3px; border-radius: 99px; background: var(--brand); }.metric-spark i:nth-child(1){height:7px}.metric-spark i:nth-child(2){height:12px}.metric-spark i:nth-child(3){height:9px}.metric-spark i:nth-child(4){height:18px}.metric-spark i:nth-child(5){height:23px}
.match-card { gap: 14px; overflow: hidden; }.match-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--lime),var(--brand)); }.match-head { align-items: center; }.company-avatar { width: 50px; height: 50px; border: 0; border-radius: 15px; font-family: var(--font-display); box-shadow: inset 0 0 0 1px rgb(18 105 95 / 8%); }.match-head-copy h3 { font-size: 14px; font-weight: 770; }.match-score { width: 55px; height: 55px; display: grid; place-content: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--success) calc(var(--score) * 1%),var(--surface-3) 0); box-shadow: inset 0 0 0 5px #fff; text-align: center; }.match-score strong,.match-score span { display: block; }.match-score strong { font-size: 11px; line-height: 1; }.match-score span { margin-top: 2px; color: var(--muted); font-size: 7px; }.match-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.match-band > span:last-child { color: var(--muted); font-size: 8px; }.match-title { font-family: var(--font-display); font-size: 18px; font-weight: 740; letter-spacing: -.02em; }.reason { background: #f3f7f4; }
.profile-logo,.company-cover h2,.case-top h3,.ai-panel h3,.legal-answer h2 { font-family: var(--font-display); }.company-cover { position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgb(199 221 208 / 75%); border-radius: 28px; background: linear-gradient(145deg,#e8f3ec 0%,#f8fbf8 48%,#fff7ea 100%); box-shadow: var(--shadow-md); }.company-cover-art { position: absolute; z-index: -1; inset: 0; overflow: hidden; }.company-cover-art span { position: absolute; border-radius: 50%; }.company-cover-art span:nth-child(1) { width: 350px; height: 350px; right: -100px; top: -210px; border: 50px solid rgb(185 231 105 / 20%); }.company-cover-art span:nth-child(2) { width: 220px; height: 220px; left: 34%; bottom: -180px; background: rgb(239 109 82 / 8%); }.company-cover-art span:nth-child(3) { width: 110px; height: 110px; right: 23%; top: 30px; border: 1px solid rgb(18 105 95 / 12%); }
.company-cover-top { min-height: 72px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 28px; }.company-preview { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgb(18 105 95 / 14%); border-radius: 10px; background: rgb(255 255 255 / 58%); color: var(--brand); cursor: pointer; font-size: 9px; font-weight: 750; }.company-preview svg { width: 14px; }.company-profile-main { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 21px; padding: 4px 28px 27px; }.company-profile-main .profile-logo { position: relative; width: 94px; height: 94px; display: grid; place-items: center; border: 5px solid rgb(255 255 255 / 80%); border-radius: 25px; background: linear-gradient(145deg,#125f57,#092f2b); color: #fff; font-size: 28px; font-weight: 850; box-shadow: 0 17px 35px rgb(9 52 47 / 19%); }.company-profile-main .profile-logo small { position: absolute; right: -5px; bottom: -5px; width: 25px; height: 25px; display: grid; place-items: center; border: 3px solid #f7faf7; border-radius: 50%; background: var(--lime); color: var(--brand-deep); font-size: 10px; }
.company-category { color: var(--brand); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }.company-identity h2 { margin: 3px 0 2px; font-family: var(--font-display); font-size: 30px; font-weight: 790; letter-spacing: -.035em; }.company-identity > p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }.profile-score-modern { min-width: 255px; display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid rgb(18 105 95 / 10%); border-radius: 17px; background: rgb(255 255 255 / 58%); }.score-ring { width: 59px; height: 59px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--score) * 1%),#dce8df 0); box-shadow: inset 0 0 0 7px #f8fbf8; }.score-ring strong { font-size: 11px; }.profile-score-modern > div:last-child strong,.profile-score-modern > div:last-child span { display: block; }.profile-score-modern > div:last-child strong { font-size: 11px; }.profile-score-modern > div:last-child span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.company-proof { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgb(18 105 95 / 10%); background: rgb(255 255 255 / 47%); }.company-proof > div { padding: 17px 24px; border-left: 1px solid rgb(18 105 95 / 9%); }.company-proof > div:first-child { border-left: 0; }.company-proof strong,.company-proof span { display: block; }.company-proof strong { font-family: var(--font-display); font-size: 19px; }.company-proof span { margin-top: 2px; color: var(--muted); font-size: 8px; }.profile-next-card { overflow: hidden; border-color: #d9e8bc; background: linear-gradient(145deg,#fbfff3,#f3f9e9); }.profile-next-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -60px; top: -60px; border-radius: 50%; background: rgb(185 231 105 / 22%); }
.info-block { border-radius: 14px; background: #f3f7f4; }.input,.textarea,.select { min-height: 50px; border-color: #d5e0d8; border-radius: 13px; background: #fbfdfb; }.textarea { min-height: 145px; }.chip { min-height: 36px; border-radius: 11px; }.chip:hover,.chip.active { background: #e6f3eb; }.section-tabs { border-radius: 16px; }.tab-button { border-radius: 11px; }.timeline-dot { border-width: 2px; }.card.dark { background: linear-gradient(145deg,#0d3b36,#092d29); box-shadow: var(--shadow-md); }
@media (max-width:1240px) { :root{--sidebar:92px}.sidebar{padding-inline:12px}.brand-lockup{justify-content:center}.brand-copy,.brand-status,.workspace-switcher,.network-card,.nav-section-label,.sidebar-version{display:none}.sidebar-create{display:grid;grid-template-columns:1fr;place-items:center;padding:10px}.sidebar-create span,.sidebar-create small{display:none}.nav-button{justify-content:center}.nav-button span:not(.nav-badge){display:none}.sidebar-footer .nav-button{flex:none;width:100%}.topbar-context{min-width:130px}.global-search{width:min(35vw,360px)}.opportunity-hero{grid-template-columns:minmax(0,1fr) 300px}.quick-launch{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:980px) { .global-search{display:none}.topbar-actions{margin-left:auto}.opportunity-hero{grid-template-columns:1fr}.hero-business-card{max-width:560px}.company-profile-main{grid-template-columns:auto 1fr}.profile-score-modern{grid-column:1/-1;width:100%} }
@media (max-width:760px) { :root{--topbar:66px}.sidebar{display:none}.app-stage{margin-left:0}.topbar{padding-inline:16px}.topbar-context{min-width:0}.main-content{padding:24px 16px 102px}.home-welcome{align-items:flex-start;flex-direction:column}.welcome-actions{width:100%;justify-content:flex-start}.welcome-actions .button{flex:1}.opportunity-hero{min-height:0;padding:26px 20px;border-radius:24px}.hero-panel h2{font-size:32px}.hero-business-card{padding:17px}.quick-launch{grid-template-columns:1fr}.quick-launch button{min-height:68px}.page-head{align-items:flex-start}.page-title{font-size:34px}.company-cover-top{padding:17px}.company-profile-main{grid-template-columns:1fr;padding:5px 17px 20px}.company-profile-main .profile-logo{width:78px;height:78px}.company-identity h2{font-size:25px}.profile-score-modern{grid-column:auto;min-width:0}.company-proof{grid-template-columns:repeat(2,1fr)}.company-proof > div{padding:14px 17px;border-top:1px solid rgb(18 105 95 / 9%)}.company-proof > div:nth-child(odd){border-left:0}.match-score{width:51px;height:51px} }
@media (max-width:520px) { .home-welcome h1{font-size:34px}.welcome-actions .button{width:100%;flex:1 1 100%}.hero-actions .button{width:100%}.hero-company-row .badge{display:none}.company-preview{font-size:0}.company-preview svg{width:17px}.company-proof strong{font-size:17px}.company-proof span{font-size:7px} }

/* Centro de confianza y cumplimiento */
.legal-consents { display: grid; gap: 10px; margin: 18px 0; padding: 15px; border: 1px solid #dbe7df; border-radius: 15px; background: #f7faf7; }
.legal-consents .check-row { align-items: flex-start; margin: 0; color: #526762; font-size: 10px; line-height: 1.5; }
.legal-consents input { margin-top: 3px; accent-color: var(--brand); }
.inline-legal-link { display: inline; padding: 0; border: 0; background: transparent; color: var(--brand); cursor: pointer; font: inherit; font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.auth-footer .inline-legal-link { color: inherit; text-decoration: none; }
.auth-footer .inline-legal-link:hover { color: var(--brand); }
.compliance-blocker,.compliance-ready { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; padding: 17px 19px; border: 1px solid #eccb8e; border-radius: 17px; background: linear-gradient(135deg,#fff9ea,#fffdf7); color: #6f4d16; }
.compliance-ready { border-color: #bedbc9; background: linear-gradient(135deg,#eff9f2,#fbfefc); color: #245a3f; }
.compliance-blocker > svg,.compliance-ready > svg { width: 22px; flex: 0 0 auto; margin-top: 1px; }
.compliance-blocker strong,.compliance-ready strong { display: block; font-size: 12px; }
.compliance-blocker p,.compliance-ready p { margin: 4px 0 0; font-size: 10px; line-height: 1.5; }
.operator-card { grid-column: span 1; background: linear-gradient(145deg,#0e403a,#0a302c); color: #fff; }
.operator-card .ai-label { color: var(--lime); }
.operator-card h2 { max-width: 100%; min-width: 0; margin: 10px 0 17px; overflow-wrap: anywhere; word-break: break-word; font-family: var(--font-display); font-size: clamp(16px, 1.55vw, 21px); line-height: 1.08; }
.operator-card dl { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 8px 12px; margin: 0; }
.operator-card dt { color: #8fb2aa; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.operator-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #e3efec; font-size: 9px; line-height: 1.45; }
.tracking-card { display: block; }
.tracking-card > .button { margin-top: 16px; }
.tracking-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.tracking-head .button { flex: 0 0 auto; }
.tracking-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.tracking-group { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.tracking-group h3 { margin: 0 0 11px; font-size: 13px; }
.tracking-group ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tracking-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.tracking-item strong,.tracking-item span { display: block; overflow-wrap: anywhere; }
.tracking-item strong { font-size: 10px; line-height: 1.35; text-transform: capitalize; }
.tracking-item span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.tracking-item .badge { margin: 0; white-space: nowrap; }
.tracking-empty { color: var(--muted); font-size: 10px; line-height: 1.5; }
.source-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.source-link { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbf9; color: var(--brand); font-size: 8px; font-weight: 850; text-decoration: none; }
.source-link svg { width: 11px; }
.legal-tabs { position: sticky; z-index: 3; top: calc(var(--topbar) + 8px); flex-wrap: wrap; margin-bottom: 14px; border: 1px solid var(--line); background: rgb(249 251 249 / 94%); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); }
.legal-policy { padding: clamp(23px,3vw,38px); }
.legal-policy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-policy-head h2 { margin: 9px 0 6px; font-family: var(--font-display); font-size: 29px; letter-spacing: -.03em; }
.legal-policy-head p { max-width: 800px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.legal-policy-section { max-width: 960px; padding: 22px 0; border-bottom: 1px solid #e5ece7; }
.legal-policy-section:last-child { border-bottom: 0; }
.legal-policy-section h3,.legal-dialog-copy h3 { margin: 0 0 8px; color: var(--brand-deep); font-family: var(--font-display); font-size: 17px; }
.legal-policy-section p,.legal-dialog-copy p { margin: 0; color: #526762; font-size: 11px; line-height: 1.75; }
.legal-dialog-copy { display: grid; gap: 22px; }
.legal-dialog-copy section { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal-dialog-copy section:last-child { border-bottom: 0; }

@media (max-width:760px) {
  .legal-policy-head { flex-direction: column; }
  .legal-tabs { top: calc(var(--topbar) + 4px); overflow-x: auto; flex-wrap: nowrap; }
  .operator-card dl { grid-template-columns: 68px minmax(0,1fr); }
  .tracking-head { align-items: stretch; flex-direction: column; }
  .tracking-grid { grid-template-columns: 1fr; }
}
