:root {
  --brand: #6d5dfb;
  --brand-rgb: 109, 93, 251;
  --brand-strong: #5142d8;
  --accent: #17b890;
  --danger: #e4515b;
  --warning: #e6a23c;
  --success: #1fa774;
  --info: #3f8cff;
  --ink: #1c2333;
  --muted: #6f7890;
  --muted-strong: #525d74;
  --surface: #ffffff;
  --surface-soft: #f6f7fb;
  --surface-raised: #ffffff;
  --canvas: #f2f4f8;
  --line: #e4e8f0;
  --line-strong: #d8deea;
  --sidebar: #20272f;
  --sidebar-soft: #2a323b;
  --sidebar-text: #aab2c1;
  --sidebar-heading: #707b8e;
  --shadow: 0 8px 24px rgba(28, 35, 51, .07);
  --shadow-sm: 0 3px 8px rgba(28, 35, 51, .045);
  --radius-card: 14px;
  --radius-control: 10px;
  --sidebar-width: 280px;
  --topbar-height: 82px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #eef1f7;
  --muted: #9aa5b7;
  --muted-strong: #bdc5d2;
  --surface: #20262d;
  --surface-soft: #252c34;
  --surface-raised: #242b33;
  --canvas: #181d22;
  --line: #303944;
  --line-strong: #3a4551;
  --sidebar: #151a1f;
  --sidebar-soft: #222930;
  --sidebar-text: #aab4c4;
  --sidebar-heading: #687587;
  --shadow: 0 16px 42px rgba(0, 0, 0, .22);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .16);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html,.table-wrap,.week-grid,.admin-tabs,.filter-bar {
  scrollbar-width: thin;
  scrollbar-color: rgba(162,173,183,.52) transparent;
}
html::-webkit-scrollbar,.table-wrap::-webkit-scrollbar,.week-grid::-webkit-scrollbar,.admin-tabs::-webkit-scrollbar,.filter-bar::-webkit-scrollbar { width: 11px; height: 11px; }
html::-webkit-scrollbar-track,.table-wrap::-webkit-scrollbar-track,.week-grid::-webkit-scrollbar-track,.admin-tabs::-webkit-scrollbar-track,.filter-bar::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb,.table-wrap::-webkit-scrollbar-thumb,.week-grid::-webkit-scrollbar-thumb,.admin-tabs::-webkit-scrollbar-thumb,.filter-bar::-webkit-scrollbar-thumb { background: rgba(162,173,183,.52); border: 3px solid transparent; border-radius: 7px; background-clip: padding-box; }

html { min-height: 100%; background: var(--canvas); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Play", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: "Hanken Grotesk", "Play", ui-sans-serif, system-ui, sans-serif; }

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }

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

.muted { color: var(--muted); }
.brand-text { color: var(--brand) !important; }
.admin-text { color: #e6a14a !important; }
.danger-text { color: var(--danger); }
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* App shell */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  color: var(--sidebar-text);
  background: var(--sidebar);
  border-right: 1px solid rgba(255,255,255,.05);
  transition: transform .22s ease;
}

.sidebar-brand {
  display: flex;
  min-height: 100px;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #8b7fff);
  border-radius: 13px 13px 13px 5px;
  box-shadow: 0 8px 20px rgba(var(--brand-rgb), .28);
  font-size: 22px;
  font-weight: 900;
}

.brand-mark.admin { background: linear-gradient(145deg, #d8882e, #f4be64); box-shadow: 0 8px 20px rgba(216,136,46,.25); }
.brand-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.brand-copy strong { color: #fff; font-size: 16px; line-height: 1.25; }
.brand-copy span { color: #788498; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sidebar-close { display: none !important; color: #fff !important; }
.sidebar-close { background: rgba(255,255,255,.055) !important; border-color: rgba(255,255,255,.09) !important; }
.supplier-brand .tenant-logo { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; font-size: 13px; }
.supplier-brand .brand-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.supplier-brand .brand-copy span { font-size: 9px; }

.tenant-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 16px 14px 8px;
  padding: 12px;
  background: var(--sidebar-soft);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  cursor: pointer;
}
.tenant-logo, .upload-preview {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--accent));
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
}
.tenant-logo img, .upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.tenant-card div:nth-child(2) { min-width: 0; }
.tenant-card .eyebrow { color: #687587; font-size: 8px; }
.tenant-card strong { display: block; overflow: hidden; color: #e7ebf2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tenant-card > i { color: #7d899b; }

.sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.sidebar-scroll:hover { scrollbar-color: rgba(162,173,183,.48) transparent; }
.sidebar-scroll::-webkit-scrollbar { width: 11px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: transparent; border: 3px solid transparent; border-radius: 7px; background-clip: padding-box; }
.sidebar-scroll:hover::-webkit-scrollbar-thumb { background: rgba(162,173,183,.48); border: 3px solid transparent; background-clip: padding-box; }
/* The native scrollbar is a fallback. After initialization, SimpleBar owns the scroll. */
.sidebar-scroll[data-simplebar="init"] { overflow: visible; overflow: clip; }
.sidebar-scroll > .simplebar-wrapper { height: 100%; }
.sidebar-scroll .simplebar-content-wrapper { overscroll-behavior-y: contain; }
.sidebar-nav {
  padding: 10px 0 22px;
}
.nav-heading {
  height: 36px;
  margin: 8px 0 0;
  padding: 10px 30px;
  color: var(--sidebar-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin: 1px 0;
  padding: 10px 25px 10px 22px;
  color: var(--sidebar-text);
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.035); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(var(--brand-rgb), .14), transparent 88%); border-left-color: var(--brand); }
.nav-item i { width: 22px; flex: 0 0 22px; font-size: 20px; text-align: center; }
.nav-item.active > i:first-child { color: var(--brand); }
.nav-item span:nth-child(2) { flex: 1; }
.nav-parent .nav-chevron { width: auto; flex: 0 0 auto; color: #6f7b8e; font-size: 15px; transition: transform .2s ease; }
.nav-parent.expanded .nav-chevron { transform: rotate(180deg); }
/* The sidebar scrolls as a whole, so expanded groups can use their full height. */
.nav-submenu { display: none; }
.nav-submenu.open { display: grid; }
.nav-subitem { position: relative; display: flex; width: 100%; min-height: 34px; align-items: center; gap: 8px; padding: 7px 24px 7px 59px; color: #8792a4; background: transparent; border: 0; font-size: 12px; font-weight: 500; text-align: left; cursor: pointer; transition: color .16s ease,transform .16s ease; }
.nav-subitem::before { content: ""; position: absolute; left: 35px; width: 5px; height: 5px; background: #596577; border-radius: 50%; transition: background .16s ease,box-shadow .16s ease; }
.nav-subitem:hover { color: #fff; transform: translateX(4px); }
.nav-subitem.active { color: #fff; font-weight: 700; }
.nav-subitem.active::before { background: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.13); }
.nav-subitem > span:first-child { flex: 1; }
.nav-subitem small { color: #697589; font-size: 9px; }
.nav-count { display: grid; min-width: 22px; height: 20px; place-items: center; color: #fff; background: var(--brand); border-radius: 7px; font-size: 10px; }
.nav-count.warning { background: var(--warning); }
.nav-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(23,184,144,.12); }

.sidebar-footer { display: grid; gap: 10px; padding: 13px 18px 15px; border-top: 1px solid rgba(255,255,255,.06); }
.supplier-context { display: flex; align-items: center; gap: 10px; }
.supplier-context > div { display: flex; flex-direction: column; }
.supplier-context strong { color: #dce2eb; font-size: 10px; }
.supplier-context small { color: #748094; font-size: 8px; }
.role-pill { display: inline-flex; width: fit-content; align-items: center; gap: 7px; padding: 7px 10px; color: #dad6ff; background: rgba(var(--brand-rgb), .16); border: 1px solid rgba(var(--brand-rgb), .22); border-radius: 999px; font-size: 10px; font-weight: 800; }
.role-pill.light { align-self: center; color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.18); }
.role-pill.danger { color: #ffd6d9; background: rgba(228,81,91,.13); border-color: rgba(228,81,91,.25); }
.elune-zone-link { display: flex; align-items: center; gap: 7px; color: #778398; font-size: 11px; font-weight: 700; text-decoration: none; }
.elune-zone-link:hover { color: #fff; }

.app-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
html[data-theme="dark"] .topbar { background: rgba(32,38,45,.86); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 12px; }
#menu-toggle { display: none; }
.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--muted-strong);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.icon-button:hover { color: var(--brand); border-color: rgba(var(--brand-rgb), .35); transform: translateY(-1px); }
.icon-button.small { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.search-box {
  display: flex;
  width: min(440px, 42vw);
  height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color .15s ease, background .15s ease;
}
.search-box:focus-within { background: var(--surface); border-color: rgba(var(--brand-rgb), .4); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .08); }
.search-box input { width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 12px; }
.search-box input::placeholder { color: var(--muted); }
.search-box kbd { padding: 3px 6px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: none; font-size: 9px; }
.sync-state { display: flex; align-items: center; gap: 9px; padding: 6px 10px; }
.sync-state > span:last-child { display: flex; flex-direction: column; }
.sync-state strong { font-size: 11px; line-height: 1.2; }
.sync-state small { color: var(--muted); font-size: 9px; }
.status-pulse { width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 5px rgba(31,167,116,.11); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(31,167,116,0); } }
.notification-button { position: relative; }
.notification-button > span { position: absolute; top: -5px; right: -4px; display: grid; width: 18px; height: 18px; place-items: center; color: #fff; background: var(--danger); border: 2px solid var(--surface); border-radius: 50%; font-size: 8px; font-weight: 900; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 3px 6px 3px 3px; color: var(--ink); background: transparent; border: 0; border-radius: 12px; cursor: pointer; }
.profile-button:hover { background: var(--surface-soft); }
.avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: #fff; background: linear-gradient(145deg, var(--brand), #9187ff); border-radius: 11px; font-size: 11px; font-weight: 900; }
.avatar.blue { background: linear-gradient(145deg, #377dff, #64a4ff); }
.avatar.amber { background: linear-gradient(145deg, #d88723, #f0b45a); }
.avatar.admin { background: linear-gradient(145deg, #d8882e, #efb755); }
.profile-copy { display: flex; flex-direction: column; text-align: left; }
.profile-copy strong { font-size: 11px; }
.profile-copy small { color: var(--muted); font-size: 9px; }

.page-content { width: 100%; max-width: 1720px; margin: 0 auto; padding: 30px clamp(22px,2.4vw,38px) 54px; }
.screen { display: none; animation: screenIn .22s ease; }
.screen.active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(4px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading.compact { margin-bottom: 18px; }
.page-heading h1 { margin: 4px 0 5px; color: var(--ink); font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.035em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.page-actions, .form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.btn-brand, .btn-admin, .btn-soft {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease,box-shadow .15s ease,background .15s ease,color .15s ease;
}
.btn-brand { color: #fff; background: var(--brand); border: 1px solid var(--brand); box-shadow: 0 3px 7px rgba(var(--brand-rgb), .18); }
.btn-brand:hover { background: var(--brand-strong); border-color: var(--brand-strong); box-shadow: 0 5px 12px rgba(var(--brand-rgb), .24); }
.btn-soft { color: var(--muted-strong); background: var(--surface); border: 1px solid var(--line); }
.btn-soft:hover { color: var(--brand); background: rgba(var(--brand-rgb),.04); border-color: rgba(var(--brand-rgb), .32); }
.btn-compact { min-height: 34px; padding: 6px 10px; font-size: 10px; }
.btn-admin { color: #21170b; background: #eca94d; border: 1px solid #eca94d; box-shadow: 0 8px 18px rgba(236,169,77,.18); }
.danger-outline { color: var(--danger) !important; }

.notice { display: flex; min-height: 58px; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 15px; border: 1px solid; border-radius: 14px; }
.notice > i { flex: 0 0 auto; font-size: 22px; }
.notice > div { display: flex; flex: 1; flex-direction: column; }
.notice strong { font-size: 12px; }
.notice span { color: var(--muted-strong); font-size: 10px; }
.notice button { color: inherit; background: transparent; border: 0; font-size: 10px; font-weight: 900; cursor: pointer; }
.notice-warning { color: #8f5c13; background: rgba(230,162,60,.10); border-color: rgba(230,162,60,.25); }
.notice-info { color: var(--info); background: rgba(63,140,255,.08); border-color: rgba(63,140,255,.2); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.metric-card, .panel {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.metric-card { position: relative; display: flex; min-height: 126px; align-items: center; gap: 14px; overflow: hidden; padding: 19px; }
.metric-card > div:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.metric-card span { color: var(--muted); font-size: 10px; font-weight: 750; }
.metric-card strong { margin: 2px 0; color: var(--ink); font-size: 27px; line-height: 1.2; }
.metric-card small { color: var(--muted); font-size: 9px; }
.metric-card small b { color: var(--success); }
.metric-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb), .11); border-radius: 14px; font-size: 23px; }
.metric-icon.success { color: var(--success); background: rgba(31,167,116,.1); }
.metric-icon.warning { color: var(--warning); background: rgba(230,162,60,.11); }
.metric-icon.info { color: var(--info); background: rgba(63,140,255,.1); }
.metric-icon.rose { color: var(--danger); background: rgba(228,81,91,.1); }
.metric-icon.admin { color: #e6a14a; background: rgba(230,161,74,.12); }
.metric-spark { position: absolute; right: 16px; bottom: 16px; display: flex; width: 64px; height: 38px; align-items: end; gap: 4px; opacity: .5; }
.metric-spark span { width: 8px; background: var(--brand); border-radius: 4px 4px 1px 1px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .75fr); gap: 18px; margin-bottom: 18px; }
.lower-grid { grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr); }
.panel { padding: 20px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-header h2 { margin: 3px 0 0; color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -.015em; }
.text-button { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); background: transparent; border: 0; font-size: 10px; font-weight: 850; cursor: pointer; }
.table-wrap { position: relative; overflow-x: auto; margin: 0 -4px -4px; }
.data-table { width: 100%; margin: 0; color: var(--ink); border-collapse: collapse; font-size: 10px; }
.data-table th { padding: 9px 10px; color: var(--muted); background: var(--surface-soft); border: 0; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table th:first-child { border-radius: 9px 0 0 9px; }
.data-table th:last-child { border-radius: 0 9px 9px 0; }
.data-table td { padding: 13px 10px; color: var(--muted-strong); border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong { color: var(--ink); }
.entity-cell, .user-cell { display: flex; min-width: 250px; align-items: center; gap: 10px; }
.entity-cell > span:last-child, .user-cell > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.entity-cell small, .user-cell small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.entity-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb),.1); border-radius: 10px; font-size: 9px; font-weight: 900; }
.entity-icon.teal { color: var(--accent); background: rgba(23,184,144,.1); }
.entity-icon.amber { color: var(--warning); background: rgba(230,162,60,.12); }
.score { display: flex; min-width: 94px; align-items: center; gap: 7px; }
.score > span { width: 50px; height: 5px; overflow: hidden; background: var(--line); border-radius: 99px; }
.score i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: inherit; }
.score strong { font-size: 9px; }
.status { display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 850; white-space: nowrap; }
.status.success { color: var(--success); background: rgba(31,167,116,.1); }
.status.warning { color: #a36c19; background: rgba(230,162,60,.12); }
.status.neutral { color: var(--muted-strong); background: var(--surface-soft); }
.status-dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.row-action { display: grid; width: 30px; height: 30px; place-items: center; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.row-action:hover { color: var(--brand); }

.timeline-list { display: grid; gap: 2px; }
.timeline-item { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.date-chip { display: grid; width: 44px; height: 48px; place-content: center; color: var(--muted-strong); background: var(--surface-soft); border-radius: 11px; text-align: center; }
.date-chip strong { color: var(--ink); font-size: 16px; line-height: 1; }
.date-chip span { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.timeline-item.urgent .date-chip { color: var(--danger); background: rgba(228,81,91,.09); }
.timeline-item.urgent .date-chip strong { color: var(--danger); }
.timeline-item > div:last-child { display: flex; flex-direction: column; }
.timeline-item > div:last-child strong { font-size: 10px; }
.timeline-item > div:last-child span { color: var(--muted-strong); font-size: 9px; }
.timeline-item > div:last-child small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.full-soft-button { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: center; gap: 7px; margin-top: 13px; color: var(--muted-strong); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; font-size: 9px; font-weight: 850; cursor: pointer; }

.health-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.health-row:last-child { border-bottom: 0; }
.health-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; font-size: 17px; }
.health-icon.success { color: var(--success); background: rgba(31,167,116,.1); }
.health-icon.info { color: var(--info); background: rgba(63,140,255,.1); }
.health-icon.warning { color: var(--warning); background: rgba(230,162,60,.11); }
.health-row > div { display: flex; flex-direction: column; }
.health-row strong { font-size: 10px; }
.health-row span { color: var(--muted); font-size: 8px; }
.health-value { color: var(--muted-strong) !important; font-size: 9px !important; font-weight: 800; }
.company-spotlight { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; background: linear-gradient(135deg, rgba(var(--brand-rgb),.1), rgba(23,184,144,.06)), var(--surface); }
.spotlight-icon { display: grid; width: 52px; height: 52px; place-items: center; color: #fff; background: linear-gradient(145deg, var(--brand), var(--accent)); border-radius: 15px; font-size: 25px; }
.company-spotlight h2 { margin: 3px 0 7px; font-size: 17px; }
.company-spotlight p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.company-spotlight .btn-brand { grid-column: 2; justify-self: start; }

/* Opportunity screen */
.filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-sm); }
.filter-bar label { display: flex; min-width: 240px; flex: 1; align-items: center; gap: 8px; padding: 0 10px; }
.filter-bar label input { width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 10px; }
.filter-chip { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 6px 10px; color: var(--muted); background: var(--surface-soft); border: 1px solid transparent; border-radius: 10px; font-size: 9px; font-weight: 800; cursor: pointer; }
.filter-chip span { display: grid; min-width: 19px; height: 19px; place-items: center; background: var(--surface); border-radius: 6px; font-size: 8px; }
.filter-chip.active { color: var(--brand); background: rgba(var(--brand-rgb),.09); border-color: rgba(var(--brand-rgb),.14); }
.opportunity-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); gap: 16px; }
.opportunity-list { display: grid; gap: 12px; align-content: start; }
.opportunity-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.opportunity-card:hover { transform: translateY(-1px); border-color: rgba(var(--brand-rgb), .25); }
.opportunity-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.07), var(--shadow-sm); }
.opportunity-top, .opportunity-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.opportunity-card h3 { margin: 11px 0 4px; color: var(--ink); font-size: 14px; }
.opportunity-card > p { margin: 0; color: var(--muted); font-size: 10px; }
.time-left { color: var(--muted); font-size: 8px; font-weight: 800; }
.time-left.urgent { color: var(--danger); }
.opportunity-meta { display: flex; flex-wrap: wrap; gap: 15px; margin: 13px 0; color: var(--muted-strong); font-size: 9px; }
.opportunity-meta span { display: inline-flex; align-items: center; gap: 5px; }
.opportunity-footer { padding-top: 11px; color: var(--muted); border-top: 1px solid var(--line); font-size: 8px; }
.opportunity-preview { position: sticky; top: calc(var(--topbar-height) + 20px); align-self: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.preview-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.opportunity-preview h2 { margin: 5px 0 6px; font-size: 19px; line-height: 1.25; }
.opportunity-preview > p { font-size: 10px; }
.compatibility-ring { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 14px; background: var(--surface-soft); border-radius: 14px; }
.compatibility-ring > div { display: grid; width: 64px; height: 64px; flex: 0 0 64px; place-content: center; color: var(--success); background: conic-gradient(var(--success) 92%, var(--line) 0); border-radius: 50%; box-shadow: inset 0 0 0 6px var(--surface); text-align: center; }
.compatibility-ring strong { font-size: 20px; }
.compatibility-ring > div span { font-size: 9px; }
.compatibility-ring p { display: flex; flex-direction: column; margin: 0; }
.compatibility-ring p strong { color: var(--ink); font-size: 11px; }
.compatibility-ring p span { color: var(--muted); font-size: 8px; }
.signal-list { display: grid; gap: 10px; }
.signal-list > div { display: flex; gap: 9px; padding: 10px; background: var(--surface-soft); border-radius: 11px; }
.signal-list i { margin-top: 2px; font-size: 16px; }
.signal-list .positive i { color: var(--success); }
.signal-list .warning i { color: var(--warning); }
.signal-list span { display: flex; flex-direction: column; }
.signal-list strong { font-size: 9px; }
.signal-list small { color: var(--muted); font-size: 8px; }
.preview-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; margin-top: 18px; }

/* Company admin */
.admin-banner { display: flex; align-items: center; gap: 15px; margin-bottom: 17px; padding: 20px; color: #fff; background: linear-gradient(125deg, var(--brand-strong), var(--brand) 54%, #4977d9); border-radius: 20px; box-shadow: 0 16px 34px rgba(var(--brand-rgb),.2); }
.admin-banner-icon { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16); border-radius: 15px; font-size: 25px; }
.admin-banner > div:nth-child(2) { flex: 1; }
.admin-banner .eyebrow { color: rgba(255,255,255,.62); }
.admin-banner h1 { margin: 3px 0; color: #fff; font-size: 25px; }
.admin-banner p { margin: 0; color: rgba(255,255,255,.76); font-size: 11px; }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 5px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.admin-tabs button { min-height: 36px; padding: 7px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: 9px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.admin-tabs button.active { color: var(--brand); background: rgba(var(--brand-rgb),.1); }
.company-tab-panel { display: none; animation: screenIn .18s ease; }
.company-tab-panel.active { display: block; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.settings-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: start; gap: 13px; }
.settings-card .settings-icon { display: grid; width: 45px; height: 45px; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb),.1); border-radius: 13px; font-size: 22px; }
.settings-card .settings-icon.teal { color: var(--accent); background: rgba(23,184,144,.1); }
.settings-card .settings-icon.amber { color: var(--warning); background: rgba(230,162,60,.12); }
.settings-card .settings-icon.rose { color: var(--danger); background: rgba(228,81,91,.1); }
.settings-card h2 { margin: 0 0 5px; font-size: 14px; }
.settings-card p { margin: 0 0 10px; color: var(--muted); font-size: 9px; }
.settings-card .text-button { align-self: center; }
.completion { display: flex; align-items: center; gap: 8px; }
.completion span { width: 90px; height: 5px; overflow: hidden; background: var(--line); border-radius: 99px; }
.completion i { display: block; height: 100%; background: var(--brand); }
.completion strong { font-size: 8px; }
.avatar-stack { display: flex; }
.avatar-stack span { display: grid; width: 28px; height: 28px; place-items: center; margin-left: -5px; color: #fff; background: var(--brand); border: 2px solid var(--surface); border-radius: 9px; font-size: 7px; font-weight: 850; }
.avatar-stack span:first-child { margin-left: 0; }

.brand-settings-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 18px; }
.brand-controls { display: flex; flex-direction: column; gap: 15px; }
.field-label { display: flex; flex-direction: column; gap: 7px; color: var(--muted-strong); font-size: 9px; font-weight: 800; }
.field-label.static { margin-bottom: 7px; }
.field-label > input, .input-with-icon { width: 100%; min-height: 43px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; outline: 0; }
.field-label > input { padding: 9px 12px; }
.field-label > input:focus { border-color: rgba(var(--brand-rgb),.45); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.07); }
.upload-box { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 11px; padding: 11px; background: var(--surface-soft); border: 1px dashed var(--line-strong); border-radius: 13px; cursor: pointer; }
.upload-box input { display: none; }
.upload-preview { width: 44px; height: 44px; }
.upload-box > span:nth-child(3) { display: flex; flex-direction: column; }
.upload-box strong { font-size: 10px; }
.upload-box small { color: var(--muted); font-size: 8px; }
.upload-box > i { color: var(--brand); font-size: 20px; }
.color-options { display: flex; flex-wrap: wrap; gap: 9px; }
.color-swatch, .custom-color { position: relative; display: grid; width: 37px; height: 37px; place-items: center; background: var(--swatch, var(--surface-soft)); border: 3px solid var(--surface); border-radius: 11px; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.color-swatch.active::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 900; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.custom-color input { position: absolute; width: 0; height: 0; opacity: 0; }
.custom-color i { color: var(--muted); font-size: 18px; }
.field-help { color: var(--muted); font-size: 8px; }
.field-help code { color: var(--brand); }
.brand-controls .form-actions { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.brand-preview-panel { padding: 18px; background: #1b2026; border-radius: 19px; box-shadow: var(--shadow); }
.preview-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: #d6dce5; font-size: 10px; font-weight: 800; }
.segmented { display: flex; padding: 3px; background: #282f37; border-radius: 9px; }
.segmented button { padding: 5px 8px; color: #8d98a8; background: transparent; border: 0; border-radius: 6px; font-size: 8px; cursor: pointer; }
.segmented button.active { color: #fff; background: #3a434e; }
.mini-app { display: grid; grid-template-columns: 100px 1fr; height: 350px; overflow: hidden; color: #222a38; background: #f2f4f8; border: 5px solid #2a3139; border-radius: 14px; }
.mini-app[data-preview-mode="dark"] { color: #eef1f7; background: #181d22; }
.mini-sidebar { padding: 13px 10px; background: #20272f; }
.mini-brand { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 7px; }
.mini-brand span { display: grid; width: 23px; height: 23px; place-items: center; background: var(--brand); border-radius: 7px; font-size: 7px; }
.mini-sidebar > i { display: block; width: 70px; height: 9px; margin-top: 16px; background: rgba(255,255,255,.08); border-radius: 4px; }
.mini-sidebar > i:nth-of-type(1) { background: rgba(var(--brand-rgb),.35); box-shadow: inset 2px 0 var(--brand); }
.mini-main { display: flex; flex-direction: column; }
.mini-topbar { display: flex; height: 42px; align-items: center; justify-content: space-between; padding: 0 12px; background: #fff; border-bottom: 1px solid #e6e9ef; }
.mini-app[data-preview-mode="dark"] .mini-topbar { background: #20262d; border-color: #303944; }
.mini-topbar span { width: 58px; height: 8px; background: #edf0f5; border-radius: 4px; }
.mini-app[data-preview-mode="dark"] .mini-topbar span { background: #333c46; }
.mini-topbar span:last-child { width: 23px; height: 23px; border-radius: 7px; }
.mini-content { padding: 16px; }
.mini-content small { color: var(--brand); font-size: 6px; font-weight: 850; text-transform: uppercase; }
.mini-content h3 { margin: 4px 0 12px; font-size: 13px; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.mini-cards span { height: 50px; background: #fff; border: 1px solid #e5e9f0; border-radius: 8px; }
.mini-app[data-preview-mode="dark"] .mini-cards span { background: #242b33; border-color: #303944; }
.mini-cards span:first-child { border-top: 3px solid var(--brand); }
.mini-chart { display: flex; height: 115px; align-items: end; gap: 8px; margin-top: 9px; padding: 12px; background: #fff; border: 1px solid #e5e9f0; border-radius: 8px; }
.mini-app[data-preview-mode="dark"] .mini-chart { background: #242b33; border-color: #303944; }
.mini-chart i { flex: 1; background: linear-gradient(var(--brand), rgba(var(--brand-rgb),.25)); border-radius: 4px 4px 1px 1px; }
.contrast-note { display: flex; align-items: center; gap: 9px; margin-top: 13px; color: #cbd2dc; }
.contrast-note i { color: #43c792; font-size: 18px; }
.contrast-note span { display: flex; flex-direction: column; }
.contrast-note strong { font-size: 9px; }
.contrast-note small { color: #8894a5; font-size: 7px; }

.connection-card { display: grid; gap: 18px; }
.connection-hero { display: flex; align-items: center; gap: 14px; }
.connection-logo { display: grid; width: 52px; height: 52px; place-items: center; color: #fff; background: linear-gradient(145deg,#12539b,#2e84d5); border-radius: 15px; font-size: 22px; font-weight: 900; }
.connection-hero > div { flex: 1; }
.connection-hero h2 { margin: 3px 0; font-size: 16px; }
.connection-hero p { margin: 0; color: var(--muted); font-size: 9px; }
.connection-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 13px; }
.connection-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--surface-soft); }
.connection-stats span { color: var(--muted); font-size: 8px; }
.connection-stats strong { font-size: 10px; }
.connection-card .notice { margin: 0; }

.security-score-card, .plan-card { display: flex; align-items: center; gap: 17px; margin-bottom: 15px; padding: 22px; color: #fff; background: linear-gradient(125deg,#253044,#313d54); border-radius: 18px; box-shadow: var(--shadow); }
.security-score { display: flex; width: 72px; height: 72px; flex: 0 0 72px; align-items: baseline; justify-content: center; padding-top: 19px; background: conic-gradient(var(--warning) 78%,rgba(255,255,255,.12) 0); border-radius: 50%; box-shadow: inset 0 0 0 7px #2d384c; }
.security-score strong { font-size: 22px; }
.security-score span { font-size: 8px; }
.security-score-card > div:nth-child(2), .plan-card > div { flex: 1; }
.security-score-card .eyebrow, .plan-card .eyebrow { color: #8491a8; }
.security-score-card h2, .plan-card h2 { margin: 3px 0; color: #fff; font-size: 18px; }
.security-score-card p, .plan-card p { margin: 0; color: #aeb8c9; font-size: 9px; }
.security-item { display: flex; align-items: center; gap: 12px; }
.security-item > i { color: var(--brand); font-size: 24px; }
.security-item > div { flex: 1; }
.security-item h3 { margin: 0 0 3px; font-size: 11px; }
.security-item p { margin: 0; color: var(--muted); font-size: 8px; }
.usage-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.usage-grid article { display: flex; flex-direction: column; }
.usage-grid span { color: var(--muted); font-size: 9px; }
.usage-grid strong { margin: 5px 0 12px; font-size: 22px; }
.usage-grid strong small { color: var(--muted); font-size: 10px; }
.usage-bar, .resource-bar { display: block; height: 7px; overflow: hidden; background: var(--line); border-radius: 99px; }
.usage-bar i, .resource-bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--brand),var(--accent)); border-radius: inherit; }

.empty-state { display: grid; min-height: calc(100vh - 180px); place-items: center; align-content: center; padding: 40px; text-align: center; }
.empty-icon { display: grid; width: 72px; height: 72px; place-items: center; margin-bottom: 16px; color: var(--brand); background: rgba(var(--brand-rgb),.1); border-radius: 22px; font-size: 34px; }
.empty-state h1 { margin: 5px 0; font-size: 27px; }
.empty-state p { max-width: 470px; margin: 0 0 18px; color: var(--muted); font-size: 11px; }

/* Módulos integrales */
.process-stage-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.stage-card { display: grid; min-height: 94px; grid-template-columns: 42px 1fr; grid-template-rows: 1fr auto; gap: 0 12px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.stage-icon { display: grid; width: 42px; height: 42px; grid-row: 1 / 3; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb),.1); border-radius: 11px; font-size: 21px; }
.stage-icon.info { color: var(--info); background: rgba(63,140,255,.1); }
.stage-icon.warning { color: var(--warning); background: rgba(230,162,60,.11); }
.stage-icon.success { color: var(--success); background: rgba(31,167,116,.1); }
.stage-icon.neutral { color: var(--muted); background: var(--surface-soft); }
.stage-card div { display: flex; align-self: end; flex-direction: column; }
.stage-card strong { font-size: 22px; line-height: 1; }
.stage-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.stage-card > b { align-self: start; color: var(--muted); font-size: 7px; font-weight: 700; }
.table-tools { display: flex; align-items: center; gap: 8px; }
.table-tools label { display: flex; height: 34px; align-items: center; gap: 7px; padding: 0 10px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; }
.table-tools input { width: 145px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 9px; }
.score.compact { min-width: 92px; }
.assignee { display: flex; min-width: 120px; align-items: center; gap: 7px; }
.assignee .avatar { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; font-size: 8px; }
.assignee strong { font-size: 8px; white-space: nowrap; }

.offer-header { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(260px,.6fr); gap: 26px; align-items: center; margin-bottom: 18px; }
.offer-process { display: flex; min-width: 0; align-items: center; gap: 12px; }
.offer-process .entity-icon { width: 45px; height: 45px; flex-basis: 45px; }
.offer-process h2 { margin: 3px 0; font-size: 16px; }
.offer-process p { margin: 0; color: var(--muted); font-size: 8px; }
.offer-progress { display: grid; gap: 7px; }
.offer-progress > div { display: flex; justify-content: space-between; font-size: 9px; }
.offer-progress small { color: var(--muted); font-size: 7px; }
.offer-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(300px,.65fr); gap: 18px; align-items: start; }
.offer-checklist { display: grid; }
.offer-item { display: grid; grid-template-columns: 18px 38px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.offer-item:last-child { border-bottom: 0; }
.offer-item input { accent-color: var(--brand); }
.offer-type { display: grid; width: 36px; height: 36px; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb),.08); border-radius: 9px; font-size: 18px; }
.offer-type.warning { color: var(--warning); background: rgba(230,162,60,.1); }
.offer-type.info { color: var(--info); background: rgba(63,140,255,.09); }
.offer-item > div { display: flex; flex-direction: column; }
.offer-item strong { font-size: 9px; }
.offer-item small { color: var(--muted); font-size: 7px; }
.offer-side { display: grid; gap: 14px; }
.offer-member { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.offer-member:last-child { border-bottom: 0; }
.offer-member .avatar { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; font-size: 8px; }
.offer-member > div { display: flex; flex-direction: column; }
.offer-member strong { font-size: 9px; }
.offer-member small { color: var(--muted); font-size: 7px; }
.offer-alert { display: flex; gap: 12px; color: #fff; background: linear-gradient(135deg,#29364a,#202b3b); border-color: transparent; }
.offer-alert > i { color: #ffc46b; font-size: 26px; }
.offer-alert strong { display: block; margin: 2px 0; color: #fff; font-size: 21px; }
.offer-alert p { margin: 0; color: #9eabbc; font-size: 8px; line-height: 1.5; }
.offer-submit { width: 100%; }

.notification-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 18px; align-items: start; }
.notification-tabs { display: flex; gap: 4px; overflow-x: auto; margin: -4px -4px 10px; padding: 4px; border-bottom: 1px solid var(--line); }
.notification-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 9px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.notification-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.notification-tabs span { display: grid; min-width: 18px; height: 18px; place-items: center; color: #fff; background: var(--brand); border-radius: 6px; font-size: 7px; }
.notification-list { display: grid; }
.notification-item { display: grid; width: 100%; grid-template-columns: 40px 1fr auto; gap: 11px; align-items: center; padding: 13px 6px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: var(--surface-soft); }
.notification-item.unread { background: rgba(var(--brand-rgb),.025); }
.notification-icon { display: grid; width: 39px; height: 39px; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb),.09); border-radius: 10px; font-size: 20px; }
.notification-icon.success { color: var(--success); background: rgba(31,167,116,.09); }
.notification-icon.warning { color: var(--warning); background: rgba(230,162,60,.1); }
.notification-icon.danger { color: var(--danger); background: rgba(228,81,91,.09); }
.notification-icon.info { color: var(--info); background: rgba(63,140,255,.09); }
.notification-item > div { display: flex; flex-direction: column; }
.notification-item strong { font-size: 10px; }
.notification-item p { margin: 2px 0; color: var(--muted-strong); font-size: 8px; }
.notification-item small { color: var(--muted); font-size: 7px; }
.unread-dot { width: 7px; height: 7px; margin-right: 7px; background: var(--brand); border-radius: 50%; }
.notification-side { display: grid; gap: 18px; }
.channel-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.channel-row:last-child { border-bottom: 0; }
.channel-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb),.08); border-radius: 9px; font-size: 17px; }
.channel-row > div { display: flex; flex-direction: column; }
.channel-row strong { font-size: 9px; }
.channel-row small { color: var(--muted); font-size: 7px; }
.channel-row input { width: 31px; height: 17px; accent-color: var(--brand); }
.digest-card h2 { margin: 4px 0 7px; font-size: 16px; }
.digest-card p { color: var(--muted); font-size: 8px; line-height: 1.6; }

.audit-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.audit-summary-grid article { display: flex; align-items: center; gap: 11px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.audit-summary-icon { display: grid; width: 38px; height: 38px; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb),.09); border-radius: 10px; font-size: 20px; }
.audit-summary-icon.success { color: var(--success); background: rgba(31,167,116,.09); }
.audit-summary-icon.info { color: var(--info); background: rgba(63,140,255,.09); }
.audit-summary-icon.warning { color: var(--warning); background: rgba(230,162,60,.1); }
.audit-summary-grid article > div { display: flex; flex-direction: column; }
.audit-summary-grid strong { font-size: 10px; }
.audit-summary-grid small { color: var(--muted); font-size: 7px; }
.audit-timeline { display: grid; }
.audit-row { display: grid; grid-template-columns: 54px 36px 1fr 34px; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: 0; }
.audit-time { display: flex; flex-direction: column; color: var(--ink); font-size: 9px; font-weight: 800; }
.audit-time small { color: var(--muted); font-size: 7px; font-weight: 500; }
.audit-action-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb),.09); border-radius: 9px; font-size: 17px; }
.audit-action-icon.success { color: var(--success); background: rgba(31,167,116,.09); }
.audit-action-icon.info { color: var(--info); background: rgba(63,140,255,.09); }
.audit-action-icon.warning { color: var(--warning); background: rgba(230,162,60,.1); }
.audit-row > div { display: flex; flex-direction: column; }
.audit-row strong { font-size: 9px; }
.audit-row p { margin: 2px 0; color: var(--muted-strong); font-size: 8px; }
.audit-row small { color: var(--muted); font-size: 7px; }

.support-hero { display: grid; min-height: 238px; place-items: center; align-content: center; margin-bottom: 18px; padding: 30px; color: #fff; background: radial-gradient(circle at 16% 15%,rgba(var(--brand-rgb),.52),transparent 31%),radial-gradient(circle at 88% 78%,rgba(23,184,144,.18),transparent 32%),linear-gradient(135deg,#1a2230,#263246); border-radius: 17px; text-align: center; box-shadow: var(--shadow); }
.support-hero .eyebrow { color: #9da9ba; }
.support-hero h1 { margin: 7px 0; color: #fff; font-size: 30px; }
.support-hero p { margin: 0 0 16px; color: #abb6c6; font-size: 10px; }
.support-hero label { display: flex; width: min(560px,100%); height: 45px; align-items: center; gap: 9px; padding: 0 12px; color: #718097; background: #fff; border-radius: 11px; }
.support-hero input { flex: 1; color: #1c2333; background: transparent; border: 0; outline: 0; font-size: 10px; }
.support-hero kbd { padding: 4px 7px; color: #657087; background: #f1f3f7; border-radius: 6px; font-size: 7px; }
.support-category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.support-category-grid button { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; gap: 1px 11px; align-items: center; padding: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); text-align: left; cursor: pointer; transition: border-color .15s ease,box-shadow .15s ease; }
.support-category-grid button:hover { border-color: rgba(var(--brand-rgb),.32); box-shadow: var(--shadow-sm); }
.support-category-grid button > span { display: grid; width: 40px; height: 40px; grid-row: 1 / 3; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb),.09); border-radius: 10px; font-size: 20px; }
.support-category-grid strong { font-size: 10px; }
.support-category-grid small { color: var(--muted); font-size: 7px; }
.support-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.6fr); gap: 18px; align-items: start; }
.help-list { display: grid; }
.help-list button { display: grid; width: 100%; grid-template-columns: 31px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.help-list button:last-child { border-bottom: 0; }
.help-list button > span { display: grid; width: 30px; height: 30px; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb),.08); border-radius: 8px; font-size: 8px; font-weight: 900; }
.help-list button > div { display: flex; flex-direction: column; }
.help-list strong { font-size: 9px; }
.help-list small { color: var(--muted); font-size: 7px; }
.help-list button > i { color: var(--muted); }
.support-contact { display: flex; flex-direction: column; align-items: flex-start; }
.support-contact-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 13px; color: #fff; background: var(--brand); border-radius: 13px; font-size: 25px; }
.support-contact h2 { margin: 5px 0; font-size: 18px; }
.support-contact p { margin: 0 0 14px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.support-status { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.support-status > div { display: flex; flex-direction: column; }
.support-status strong { font-size: 9px; }
.support-status small { color: var(--muted); font-size: 7px; }

.profile-completion { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; margin-bottom: 18px; }
.profile-completion-ring { display: grid; width: 68px; height: 68px; grid-template-columns: auto auto; place-content: center; align-items: baseline; color: var(--brand); background: conic-gradient(var(--brand) 82%,var(--line) 0); border-radius: 50%; box-shadow: inset 0 0 0 7px var(--surface); }
.profile-completion-ring strong { font-size: 20px; }
.profile-completion-ring span { font-size: 7px; }
.profile-completion h2 { margin: 3px 0; font-size: 16px; }
.profile-completion p { margin: 0; color: var(--muted); font-size: 8px; }
.company-profile-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 18px; margin-bottom: 18px; align-items: start; }
.profile-side { display: grid; gap: 18px; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.profile-form-grid .full { grid-column: 1 / -1; }
.profile-form-grid input,.profile-form-grid select,.profile-form-grid textarea { width: 100%; padding: 10px 11px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; outline: 0; font: inherit; font-size: 9px; }
.profile-form-grid input:focus,.profile-form-grid select:focus,.profile-form-grid textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.08); }
.coverage-map { position: relative; display: grid; min-height: 112px; place-items: center; overflow: hidden; background: radial-gradient(circle at 25% 30%,rgba(var(--brand-rgb),.12) 0 2px,transparent 3px),linear-gradient(145deg,var(--surface-soft),rgba(var(--brand-rgb),.04)); border-radius: 11px; }
.coverage-map::before,.coverage-map::after { content: ""; position: absolute; width: 180%; height: 1px; background: var(--line); transform: rotate(25deg); }
.coverage-map::after { transform: rotate(-18deg); }
.coverage-map > div { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 9px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.coverage-map strong { font-size: 10px; }
.coverage-map small { color: var(--muted); font-size: 7px; }
.map-point { position: absolute; z-index: 3; width: 8px; height: 8px; background: var(--brand); border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.14); }
.map-point.p1 { top: 24px; left: 24%; }.map-point.p2 { right: 18%; bottom: 23px; }.map-point.p3 { left: 16%; bottom: 18px; }
.certificate-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.certificate-row:last-child { border-bottom: 0; }
.certificate-row > span:first-child { display: grid; width: 32px; height: 32px; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb),.08); border-radius: 8px; font-size: 16px; }
.certificate-row > div { display: flex; flex-direction: column; }
.certificate-row strong { font-size: 9px; }.certificate-row small { color: var(--muted); font-size: 7px; }
.profile-capability-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 18px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud span,.capacity-list span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; color: var(--muted-strong); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; font-size: 7px; font-weight: 700; }
.experience-stat { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 10px; }
.experience-stat div { display: flex; flex-direction: column; padding: 11px; background: var(--surface-soft); }
.experience-stat strong { font-size: 15px; }.experience-stat small { color: var(--muted); font-size: 6px; }
.capacity-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* Demo funcional */
.demo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: var(--brand); background: rgba(var(--brand-rgb),.08); border: 1px solid rgba(var(--brand-rgb),.17); border-radius: 99px; font-size: 8px; font-weight: 850; white-space: nowrap; }
.demo-badge i { font-size: 14px; }
.compact-metrics { margin-bottom: 18px; }
.compact-metrics .metric-card { min-height: 108px; }
.document-layout,.analysis-layout,.participation-layout,.calendar-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(310px,.7fr); gap: 18px; align-items: start; }
.document-table-panel { min-width: 0; }
.file-cell { display: flex; min-width: 220px; align-items: center; gap: 10px; }
.file-cell > i { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; color: #ef5d65; background: rgba(239,93,101,.09); border-radius: 10px; font-size: 20px; }
.file-cell.sheet > i { color: var(--success); background: rgba(31,171,121,.1); }
.file-cell span { display: flex; flex-direction: column; }
.file-cell small { color: var(--muted); font-size: 7px; }
.row-action:disabled { cursor: wait; opacity: .45; }
.process-queue { display: grid; gap: 0; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 8px; font-weight: 850; }
.live-dot::before { content: ""; width: 7px; height: 7px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 4px rgba(31,171,121,.12); }
.queue-step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 10px 0; }
.queue-step:not(:last-child)::after { content: ""; position: absolute; top: 42px; bottom: -7px; left: 16px; width: 1px; background: var(--line); }
.queue-step > span { position: relative; z-index: 1; display: grid; width: 33px; height: 33px; place-items: center; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; font-size: 9px; font-weight: 900; }
.queue-step.complete > span { color: #fff; background: var(--success); border-color: var(--success); }
.queue-step.active > span { color: var(--brand); background: rgba(var(--brand-rgb),.1); border-color: rgba(var(--brand-rgb),.25); }
.queue-step.active > span i { animation: demo-spin 1s linear infinite; }
.queue-step > div { display: flex; flex-direction: column; justify-content: center; }
.queue-step strong { font-size: 9px; }
.queue-step small { color: var(--muted); font-size: 7px; }
@keyframes demo-spin { to { transform: rotate(360deg); } }

.analysis-hero { display: flex; align-items: center; gap: 24px; margin-bottom: 18px; padding: 25px 28px; color: #fff; background: radial-gradient(circle at 85% 20%,rgba(var(--brand-rgb),.34),transparent 34%),linear-gradient(130deg,#1b2330,#2a3547); border-radius: 19px; box-shadow: var(--shadow); }
.analysis-hero > div:first-child { display: flex; min-width: 0; flex: 1; flex-wrap: wrap; align-items: center; gap: 8px; }
.analysis-hero .eyebrow { color: #9ca8ba; }
.analysis-hero h2 { width: 100%; margin: 4px 0 0; color: #fff; font-size: 20px; }
.analysis-hero p { width: 100%; margin: 0; color: #aeb8c8; font-size: 9px; }
.analysis-score { display: grid; width: 112px; height: 112px; flex: 0 0 112px; grid-template-columns: auto auto; place-content: center; align-items: baseline; background: conic-gradient(var(--success) 92%,rgba(255,255,255,.1) 0); border-radius: 50%; box-shadow: inset 0 0 0 9px #273244; }
.analysis-score strong { font-size: 33px; }
.analysis-score span { font-size: 10px; }
.analysis-score small { grid-column: 1 / -1; color: #bdc6d3; font-size: 7px; text-align: center; }
.criteria-list { display: grid; }
.criterion { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.criterion:last-child { border-bottom: 0; }
.criterion > i { font-size: 22px; }
.criterion.positive > i,.criterion.positive > b { color: var(--success); }
.criterion.warning > i,.criterion.warning > b { color: var(--warning); }
.criterion.neutral > i,.criterion.neutral > b { color: var(--info); }
.criterion strong { font-size: 10px; }
.criterion p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.criterion b { font-size: 9px; }
.analysis-side { display: grid; gap: 18px; }
.executive-summary { background: linear-gradient(145deg,rgba(var(--brand-rgb),.08),var(--surface) 50%); }
.executive-summary h2 { margin: 4px 0 8px; font-size: 17px; }
.executive-summary > p { margin: 0; color: var(--muted-strong); font-size: 9px; line-height: 1.7; }
.summary-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0; }
.summary-facts span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; background: var(--surface-soft); border-radius: 8px; font-size: 7px; font-weight: 800; }
.summary-facts span:first-child i { color: var(--success); }
.summary-facts span:nth-child(2) i { color: var(--warning); }
.summary-facts span:last-child i { color: var(--danger); }
.human-check { display: flex; gap: 12px; align-items: flex-start; }
.human-check > i { color: var(--brand); font-size: 27px; }
.human-check strong { font-size: 10px; }
.human-check p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }

.workflow-strip { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; padding: 17px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); }
.workflow-strip > div { display: grid; grid-template-columns: 31px auto; grid-template-rows: auto auto; column-gap: 9px; align-items: center; }
.workflow-strip > div > span { display: grid; width: 31px; height: 31px; grid-row: 1 / 3; place-items: center; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; font-size: 8px; font-weight: 900; }
.workflow-strip > div.complete > span { color: #fff; background: var(--success); border-color: var(--success); }
.workflow-strip > div.active > span { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 6px 18px rgba(var(--brand-rgb),.24); }
.workflow-strip strong { font-size: 9px; }
.workflow-strip small { color: var(--muted); font-size: 7px; }
.workflow-strip > i { color: var(--muted); font-size: 15px; }
.decision-list { display: grid; gap: 8px; }
.decision-card { display: grid; width: 100%; grid-template-columns: 39px 1fr auto; align-items: center; gap: 10px; padding: 11px; color: var(--ink); background: var(--surface-soft); border: 1px solid transparent; border-radius: 12px; text-align: left; cursor: pointer; }
.decision-card:hover,.decision-card.active { background: rgba(var(--brand-rgb),.07); border-color: rgba(var(--brand-rgb),.2); }
.decision-card > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.decision-card strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.decision-card small { color: var(--muted); font-size: 7px; }
.decision-card b { color: var(--brand); font-size: 10px; }
.decision-panel { display: grid; gap: 11px; }
.decision-check { display: flex; align-items: flex-start; gap: 9px; padding: 10px; background: var(--surface-soft); border-radius: 10px; cursor: pointer; }
.decision-check input { margin-top: 2px; accent-color: var(--brand); }
.decision-check span { display: flex; flex-direction: column; }
.decision-check strong { font-size: 9px; }
.decision-check small { color: var(--muted); font-size: 7px; }
.field-label { display: grid; gap: 6px; color: var(--muted-strong); font-size: 8px; font-weight: 800; }
.field-label select,.field-label textarea { width: 100%; padding: 10px 11px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; outline: 0; font: inherit; font-size: 9px; resize: vertical; }
.field-label select:focus,.field-label textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.1); }
.decision-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }

.calendar-panel { min-width: 0; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.calendar-toolbar > div { text-align: center; }
.calendar-toolbar h2 { margin: 3px 0 0; font-size: 16px; }
.week-grid { display: grid; min-height: 390px; grid-template-columns: repeat(7,minmax(90px,1fr)); overflow: auto; border: 1px solid var(--line); border-radius: 13px; }
.week-day { display: flex; min-width: 90px; flex-direction: column; gap: 7px; padding: 11px 8px; border-right: 1px solid var(--line); }
.week-day:last-child { border-right: 0; }
.week-day > span { color: var(--muted); font-size: 7px; font-weight: 900; }
.week-day > strong { display: grid; width: 27px; height: 27px; place-items: center; font-size: 10px; }
.week-day.today { background: rgba(var(--brand-rgb),.035); }
.week-day.today > strong { color: #fff; background: var(--brand); border-radius: 9px; }
.calendar-event { width: 100%; padding: 8px; color: var(--muted-strong); background: rgba(var(--brand-rgb),.08); border: 0; border-left: 3px solid var(--brand); border-radius: 7px; font-size: 7px; font-weight: 800; text-align: left; cursor: pointer; }
.calendar-event small { display: block; margin-bottom: 2px; color: var(--brand); font-size: 6px; }
.calendar-event.urgent { background: rgba(229,85,93,.09); border-color: var(--danger); }
.calendar-event.urgent small { color: var(--danger); }
.calendar-event.info { background: rgba(40,146,215,.09); border-color: var(--info); }
.calendar-event.info small { color: var(--info); }
.calendar-event.success { background: rgba(31,171,121,.09); border-color: var(--success); }
.calendar-event.success small { color: var(--success); }
.agenda-panel { display: grid; align-content: start; }
.agenda-item { display: grid; grid-template-columns: 45px 1fr; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.agenda-item:last-child { border-bottom: 0; }
.agenda-item > span { color: var(--brand); font-size: 9px; font-weight: 900; }
.agenda-item.urgent > span { color: var(--danger); }
.agenda-item div { display: flex; flex-direction: column; }
.agenda-item strong { font-size: 9px; }
.agenda-item small { color: var(--muted); font-size: 7px; }

.demo-modal { position: fixed; inset: 0; z-index: 200; display: grid; visibility: hidden; place-items: center; padding: 20px; opacity: 0; transition: opacity .18s ease,visibility .18s ease; }
.demo-modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,9,14,.66); border: 0; backdrop-filter: blur(5px); cursor: default; }
.modal-card { position: relative; z-index: 1; width: min(520px,100%); padding: 28px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 28px 80px rgba(0,0,0,.3); transform: translateY(12px) scale(.98); transition: transform .18s ease; }
.demo-modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-icon { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 14px; color: #fff; background: var(--brand); border-radius: 13px; font-size: 22px; }
.modal-card h2 { margin: 5px 0 9px; font-size: 21px; }
.modal-card #demo-modal-content { color: var(--muted-strong); font-size: 9px; line-height: 1.65; }
.modal-summary { display: grid; gap: 8px; margin: 15px 0; padding: 12px; background: var(--surface-soft); border-radius: 11px; }
.modal-summary div { display: flex; justify-content: space-between; gap: 20px; }
.modal-summary span { color: var(--muted); }
.modal-summary strong { color: var(--ink); text-align: right; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 250; display: grid; width: min(360px,calc(100vw - 32px)); gap: 8px; }
.demo-toast { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 18px 45px rgba(0,0,0,.2); animation: toast-in .22s ease both; }
.demo-toast > i { display: grid; width: 33px; height: 33px; place-items: center; color: var(--success); background: rgba(31,171,121,.1); border-radius: 9px; font-size: 18px; }
.demo-toast span { display: flex; flex-direction: column; }
.demo-toast strong { font-size: 9px; }
.demo-toast small { color: var(--muted); font-size: 7px; }
.demo-toast button { color: var(--muted); background: transparent; border: 0; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* Superadmin */
.superadmin-sidebar { --brand: #e6a14a; --brand-rgb: 230,161,74; --brand-strong: #c47c24; }
.restricted-badge { display: flex; align-items: center; gap: 10px; margin: 16px 14px 6px; padding: 12px; color: #f1bf7b; background: rgba(230,161,74,.08); border: 1px solid rgba(230,161,74,.16); border-radius: 13px; }
.restricted-badge > i { font-size: 20px; }
.restricted-badge span { display: flex; flex-direction: column; }
.restricted-badge strong { font-size: 10px; }
.restricted-badge small { color: #866e54; font-size: 8px; }
.superadmin-topbar { border-bottom-color: rgba(230,161,74,.16); }
.environment-badge { display: flex; align-items: center; gap: 8px; color: var(--muted-strong); font-size: 10px; font-weight: 800; }
.environment-badge span { width: 8px; height: 8px; background: var(--success); border-radius: 50%; }
.admin-warning { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 11px 14px; color: #d9a356; background: rgba(230,161,74,.08); border: 1px solid rgba(230,161,74,.18); border-radius: 13px; font-size: 9px; }
.admin-warning i { font-size: 19px; }
.infrastructure-panel { align-self: start; }
.resource-item { display: grid; gap: 7px; margin-bottom: 15px; }
.resource-item > div { display: flex; justify-content: space-between; font-size: 9px; }
.resource-item small { color: var(--muted); font-size: 8px; }
.resource-bar i { background: linear-gradient(90deg,#2db987,#62d7ae); }
.resource-bar.warning i { background: linear-gradient(90deg,#d38a2b,#f0bd63); }
.scale-note { display: flex; gap: 9px; margin-top: 5px; padding: 11px; background: rgba(230,161,74,.08); border: 1px solid rgba(230,161,74,.15); border-radius: 11px; }
.scale-note i { color: #e6a14a; font-size: 19px; }
.scale-note span { display: flex; flex-direction: column; }
.scale-note strong { font-size: 9px; }
.scale-note small { color: var(--muted); font-size: 8px; }
.connector-health { display: grid; gap: 5px; }
.connector-health > div { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.connector-health > div:last-child { border-bottom: 0; }
.connector-health > div > span:nth-child(2) { display: flex; flex-direction: column; }
.connector-health strong { font-size: 10px; }
.connector-health small { color: var(--muted); font-size: 8px; }
.connector-health b { font-size: 10px; }
.audit-event { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.audit-event:last-child { border-bottom: 0; }
.audit-icon { display: grid; width: 34px; height: 34px; place-items: center; color: #e6a14a; background: rgba(230,161,74,.1); border-radius: 10px; }
.audit-event > div { display: flex; flex-direction: column; }
.audit-event strong { font-size: 9px; }
.audit-event span { color: var(--muted-strong); font-size: 8px; }
.audit-event small { color: var(--muted); font-size: 7px; }
.admin-plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.admin-plan-card { position: relative; display: flex; min-height: 260px; flex-direction: column; align-items: flex-start; }
.admin-plan-card.featured { border-color: rgba(230,161,74,.35); box-shadow: 0 10px 28px rgba(230,161,74,.08); }
.admin-plan-card > .status { align-self: flex-end; }
.admin-plan-card h2 { margin: 8px 0 3px; font-size: 19px; }
.admin-plan-card > strong { color: var(--ink); font-size: 27px; }
.admin-plan-card > strong small { color: var(--muted); font-size: 9px; }
.admin-plan-card ul { display: grid; flex: 1; gap: 6px; margin: 15px 0; padding-left: 17px; color: var(--muted-strong); font-size: 9px; }
.admin-plan-card button { width: 100%; }
.admin-setting-list { display: grid; }
.admin-setting-list > div { display: grid; grid-template-columns: minmax(220px,1fr) minmax(130px,.35fr) auto; gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.admin-setting-list > div:last-child { border-bottom: 0; }
.admin-setting-list > div > span:first-child { display: flex; flex-direction: column; }
.admin-setting-list strong { font-size: 9px; }
.admin-setting-list small { color: var(--muted); font-size: 7px; }
.admin-setting-list b { color: var(--muted-strong); font-size: 8px; font-weight: 700; }
.connector-module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.connector-module-card > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.connector-module-card h2 { margin: 13px 0 5px; font-size: 17px; }
.connector-module-card > p { min-height: 36px; margin: 0 0 16px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.connection-logo.browser { background: linear-gradient(145deg,#8047db,#b379f5); }
.connection-logo.docs { background: linear-gradient(145deg,#128e74,#41c5a6); }
.observability-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.service-metric { display: grid; grid-template-columns: 1fr auto; gap: 3px 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.service-metric:last-child { border-bottom: 0; }
.service-metric span { color: var(--muted-strong); font-size: 9px; }
.service-metric strong { color: var(--ink); font-size: 12px; }
.service-metric small { grid-column: 1 / -1; color: var(--muted); font-size: 7px; }
.switch-control { position: relative; display: inline-flex; width: 36px; height: 20px; cursor: pointer; }
.switch-control input { position: absolute; opacity: 0; pointer-events: none; }
.switch-control span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 99px; transition: background .15s ease; }
.switch-control span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .15s ease; }
.switch-control input:checked + span { background: #e6a14a; }
.switch-control input:checked + span::after { transform: translateX(16px); }

/* Authentication */
.auth-page { display: grid; min-height: 100vh; place-items: center; overflow-x: hidden; background: #11171e; }
.auth-shell { display: grid; width: 100%; min-height: 100vh; grid-template-columns: minmax(480px, 1.15fr) minmax(470px, .85fr); }
.auth-story { position: relative; display: flex; overflow: hidden; flex-direction: column; justify-content: space-between; padding: 42px 54px; color: #fff; background: radial-gradient(circle at 10% 10%, rgba(109,93,251,.55), transparent 32%), radial-gradient(circle at 85% 80%, rgba(23,184,144,.28), transparent 35%), linear-gradient(145deg,#171d27,#242c39 58%,#19212b); }
.auth-story::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom right,#000,transparent 78%); }
.auth-story > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand > div:last-child { display: flex; flex-direction: column; }
.auth-brand strong { font-size: 16px; }
.auth-brand span { color: #8290a5; font-size: 9px; }
.story-copy { max-width: 680px; margin: auto 0; padding: 60px 0 50px; }
.story-copy .eyebrow { color: #a89fff; }
.story-copy h1 { max-width: 650px; margin: 12px 0 18px; color: #fff; font-size: clamp(40px,5.2vw,72px); line-height: 1.02; letter-spacing: -.055em; }
.story-copy p { max-width: 550px; margin: 0; color: #aeb8c8; font-size: 14px; line-height: 1.7; }
.story-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 24px; }
.story-metrics div { display: flex; flex-direction: column; padding: 14px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); border-radius: 13px; backdrop-filter: blur(10px); }
.story-metrics strong { font-size: 20px; }
.story-metrics span { color: #8290a5; font-size: 8px; }
.security-strip { display: flex; align-items: center; gap: 10px; color: #c7ced9; }
.security-strip > i { color: #54d3aa; font-size: 25px; }
.security-strip span { display: flex; flex-direction: column; }
.security-strip strong { font-size: 10px; }
.security-strip small { color: #78869a; font-size: 8px; }
.auth-form-side { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(35px,5vw,88px); background: var(--surface); }
.auth-card { width: 100%; max-width: 440px; margin: auto; }
.auth-card h2 { margin: 6px 0 7px; font-size: 29px; letter-spacing: -.03em; }
.auth-card > p { margin: 0 0 20px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 28px; }
.passkey-button { display: grid; width: 100%; grid-template-columns: 44px 1fr auto; align-items: center; gap: 11px; padding: 11px; color: var(--ink); background: rgba(var(--brand-rgb),.07); border: 1px solid rgba(var(--brand-rgb),.18); border-radius: 14px; text-align: left; cursor: pointer; }
.passkey-button > i:first-child { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: var(--brand); border-radius: 11px; font-size: 21px; }
.passkey-button span { display: flex; flex-direction: column; }
.passkey-button strong { font-size: 10px; }
.passkey-button small { color: var(--muted); font-size: 8px; }
.passkey-button > i:last-child { color: var(--brand); }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--muted); font-size: 8px; }
.auth-divider::before,.auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-card form { display: grid; gap: 15px; }
.input-with-icon { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; }
.input-with-icon > i { color: var(--muted); text-align: center; }
.input-with-icon input { width: 100%; min-height: 42px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 10px; }
.password-toggle { display: grid; width: 38px; height: 38px; place-items: center; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.auth-options { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; }
.auth-options a { color: var(--brand); font-weight: 800; text-decoration: none; }
.check-line { display: inline-flex; align-items: center; gap: 7px; }
.check-line input { accent-color: var(--brand); }
.auth-submit { width: 100%; }
.auth-note { display: flex; gap: 8px; margin-top: 16px; padding: 10px; color: var(--muted); background: var(--surface-soft); border-radius: 10px; font-size: 8px; line-height: 1.45; }
.auth-note i { color: var(--info); font-size: 16px; }
.auth-footer { display: flex; justify-content: center; gap: 15px; margin-top: 28px; color: var(--muted); font-size: 8px; }
.auth-footer a { text-decoration: none; }
.auth-theme-toggle { position: fixed; top: 18px; right: 18px; z-index: 10; }

.sidebar-backdrop { position: fixed; inset: 0; z-index: 70; display: none; background: rgba(7,11,16,.55); backdrop-filter: blur(2px); }

/* Responsive */
@media (max-width: 1280px) {
  :root { --sidebar-width: 252px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .deadlines-panel { min-width: 0; }
  .brand-settings-layout { grid-template-columns: 1fr; }
  .brand-preview-panel { max-width: 700px; }
  .opportunity-layout { grid-template-columns: 1fr; }
  .opportunity-preview { position: static; }
  .document-layout,.analysis-layout,.participation-layout,.calendar-layout { grid-template-columns: 1fr; }
  .process-stage-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .offer-layout,.notification-layout,.support-layout,.company-profile-layout { grid-template-columns: 1fr; }
  .offer-side,.notification-side,.profile-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-capability-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-plan-grid,.connector-module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 1024px) {
  .sidebar { width: min(320px,86vw); transform: translateX(-100%); box-shadow: 18px 0 50px rgba(0,0,0,.28); }
  .sidebar.open { transform: translateX(0); }
  .sidebar.open + .sidebar-backdrop { display: block; }
  .sidebar-close, #menu-toggle { display: inline-grid !important; }
  .app-shell { margin-left: 0; }
  .topbar { padding: 0 20px; }
  .page-content { padding: 26px 20px 45px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .mobile-brand { display: flex; }
  .auth-form-side { min-height: 100vh; }
  .support-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .observability-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --topbar-height: 70px; }
  .topbar { gap: 8px; padding: 0 13px; }
  .search-box { width: 42px; padding: 0; justify-content: center; background: var(--surface-soft); border-color: var(--line); }
  .search-box input,.search-box kbd { display: none; }
  .sync-state,.profile-copy,.profile-button > i { display: none; }
  .demo-badge { display: none; }
  .topbar-actions { gap: 6px; }
  .page-content { padding: 22px 13px 40px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions > * { flex: 1; }
  .metric-grid,.settings-grid,.usage-grid { grid-template-columns: 1fr; }
  .process-stage-grid,.audit-summary-grid,.profile-capability-grid { grid-template-columns: 1fr; }
  .admin-plan-grid,.connector-module-grid { grid-template-columns: 1fr; }
  .offer-side,.notification-side,.profile-side { grid-template-columns: 1fr; }
  .offer-header { grid-template-columns: 1fr; }
  .offer-item { grid-template-columns: 18px 34px 1fr; }
  .offer-item > .status { grid-column: 3; justify-self: start; }
  .support-category-grid { grid-template-columns: 1fr; }
  .profile-completion { grid-template-columns: 60px 1fr; }
  .profile-completion .btn-brand { grid-column: 1 / -1; width: 100%; }
  .profile-form-grid { grid-template-columns: 1fr; }
  .profile-form-grid .full { grid-column: auto; }
  .audit-row { grid-template-columns: 42px 32px 1fr; }
  .audit-row > .row-action { display: none; }
  .table-tools { width: 100%; }
  .table-tools label { flex: 1; }
  .table-tools input { width: 100%; }
  .admin-setting-list > div { grid-template-columns: 1fr auto; }
  .admin-setting-list > div > span:first-child { grid-column: 1 / -1; }
  .metric-card { min-height: 108px; }
  .panel { padding: 16px; }
  .notice { align-items: flex-start; }
  .notice button { display: none; }
  .filter-bar { align-items: stretch; overflow-x: auto; }
  .filter-bar label { min-width: 190px; }
  .connection-card { grid-template-columns: minmax(0, 1fr); }
  .connection-card .form-actions { flex-wrap: wrap; justify-content: flex-start; }
  .connection-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-banner { align-items: flex-start; flex-wrap: wrap; }
  .admin-banner .role-pill { margin-left: 67px; }
  .settings-card { grid-template-columns: 46px 1fr; }
  .settings-card .text-button { grid-column: 2; justify-self: start; }
  .brand-preview-panel { padding: 11px; }
  .mini-app { grid-template-columns: 74px 1fr; height: 300px; }
  .mini-sidebar { padding: 10px 7px; }
  .mini-sidebar > i { width: 50px; }
  .mini-brand b { display: none; }
  .mini-content { padding: 11px; }
  .security-score-card,.plan-card { align-items: flex-start; flex-wrap: wrap; }
  .security-score-card .btn-brand { width: 100%; }
  .analysis-hero { align-items: flex-start; flex-direction: column; }
  .analysis-score { width: 92px; height: 92px; flex-basis: 92px; }
  .workflow-strip { align-items: stretch; overflow-x: auto; }
  .workflow-strip > div { min-width: 105px; }
  .decision-actions { flex-direction: column-reverse; }
  .decision-actions > * { width: 100%; }
  .modal-card { padding: 22px 18px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions > * { width: 100%; }
  .auth-form-side { padding: 30px 20px; }
  .auth-card h2 { font-size: 26px; }
}

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

@media (max-height: 560px) {
  .sidebar-brand { min-height: 68px; }
  .sidebar-footer { gap: 6px; padding-block: 8px; }
}

[hidden] { display: none !important; }
.sidebar-brand, .sidebar-footer { flex-shrink: 0; }
.sidebar-scroll .simplebar-scrollbar::before { background: #a2adb7; }
.topbar .mobile-search { display: none; }
.demo-badge, .case-links a, .row-action, .passkey-button, .auth-submit { text-decoration: none; }
.demo-badge:hover { color: var(--brand); background: rgba(var(--brand-rgb), .12); }
.btn-brand, .btn-soft, .btn-admin { font-size: 13px; min-height: 40px; }
.btn-compact { font-size: 12px; min-height: 34px; }
.page-actions { flex-wrap: wrap; }
.auth-card > p, .auth-card form > a, .auth-options, .auth-back { font-size: 13px; }
.auth-card .field-label { font-size: 13px; }
.auth-card .input-with-icon input { font-size: 14px; }
.auth-card .auth-note, .auth-footer { font-size: 12px; }
.auth-back { display: inline-block; margin-top: 12px; }

.explorer-filters { display: flex; gap: 14px; margin-bottom: 12px; padding: 14px 16px; }
.explorer-filters label { display: grid; flex: 1; min-width: 0; gap: 5px; font-size: 13px; font-weight: 700; }
.explorer-filters label:first-child { flex: 1.6; }
.explorer-filters input, .explorer-filters select { min-height: 40px; font-size: 14px; }
.result-count { margin: 10px 0; color: var(--muted); font-size: 13px; }
.opportunity-card { cursor: default; }
.opportunity-card h3 { font-size: 17px; }
.opportunity-card > p, .opportunity-meta, .opportunity-footer { font-size: 13px; }
.opportunity-footer { gap: 8px; }
.opportunity-footer .text-button { font-size: 12px; }
.case-card-link { display: none; }
.opportunity-preview > p, .opportunity-preview .signal-list small { font-size: 13px; }
.saved-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.saved-searches h2 { margin: 0 0 3px; font-size: 17px; }
.saved-searches p { margin: 0; color: var(--muted); font-size: 13px; }
.saved-searches > div:first-child { flex: 1 1 250px; }
.saved-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.case-facts, .case-grid { display: grid; gap: 14px; margin-bottom: 16px; }
.case-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-facts .panel { display: grid; align-content: start; gap: 6px; }
.case-facts span { color: var(--muted); font-size: 13px; }
.case-facts strong { color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.case-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.case-grid p { font-size: 14px; }
.case-evidence { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; }
.case-evidence > i { color: var(--brand); font-size: 24px; }
.case-evidence > div { flex: 1 1 180px; }
.case-evidence small, .case-timeline small { display: block; color: var(--muted); }
.case-links { display: flex; flex-wrap: wrap; gap: 8px; }
.case-grid .case-links { margin-top: 16px; }
.evidence-sample { margin: 10px 0 0; padding: 10px 12px; border-left: 2px solid var(--brand); color: var(--muted-strong); }
.case-timeline { display: grid; gap: 14px; margin: 0; padding-left: 23px; font-size: 14px; }
.case-timeline li::marker { color: var(--brand); font-weight: 700; }
.case-dialog { margin: auto; color: var(--ink); }
.case-dialog::backdrop { background: rgba(7,11,16,.58); }
.page-actions a.btn-soft, .page-actions a.btn-brand, .bid-context a { text-decoration: none; }
.bid-context { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.bid-context label, .bid-dialog-fields label, .bid-draft-editor { display: grid; min-width: 0; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 700; }
.bid-context label { flex: 1 1 230px; }
.bid-context .form-control, .bid-context .form-select, .bid-dialog-fields .form-control, .bid-dialog-fields .form-select, .bid-draft-editor textarea { font-size: 14px; }
.bid-context .form-select { text-overflow: ellipsis; }
.bid-process-table a, .bid-unreviewed a { text-decoration: none; }
.bid-selected { align-items: center; justify-content: space-between; }
.bid-selected > div:first-child { display: grid; gap: 5px; }
.bid-selected strong { color: var(--ink); font-size: 16px; }
.bid-search { margin-bottom: 14px; }
.bid-process-table td { font-size: 13px; }
.bid-process-name small, .bid-library td small { display: block; margin-top: 4px; }
.bid-process-table .status { font-size: 11px; }
.bid-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.bid-pager .result-count { margin: 0; }
.bid-unreviewed h2 { font-size: 19px; }
.bid-unreviewed p { color: var(--muted); font-size: 14px; }
.bid-folders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 8px; margin-bottom: 14px; }
.bid-folder { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 9px; color: var(--muted-strong); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 13px; text-align: left; }
.bid-folder span { flex: 1; }
.bid-folder[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: rgba(var(--brand-rgb), .08); }
.bid-template-note { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.bid-link-cell .text-button { margin-top: 4px; white-space: nowrap; }
.bid-link-cell small { overflow-wrap: anywhere; }
.bid-link-results { display: grid; gap: 7px; max-height: 235px; margin-top: 12px; overflow-y: auto; }
.bid-link-choice { display: flex; gap: 9px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); overflow-wrap: anywhere; }
.bid-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.bid-requirements { margin: 0; padding: 0; list-style: none; }
.bid-requirement { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.bid-requirement-copy { display: grid; min-width: 0; gap: 4px; overflow-wrap: anywhere; }
.bid-requirement-copy strong, .bid-draft-result strong { color: var(--ink); font-size: 14px; }
.bid-requirement .status { flex-shrink: 0; }
.bid-requirement .status, .bid-library .status { font-size: 11px; }
.bid-requirement .status.info { color: var(--brand); background: rgba(var(--brand-rgb), .1); }
.bid-source, .bid-evidence, .bid-draft-result small { color: var(--muted); font-size: 12px; }
.bid-draft-result { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding: 12px 0; }
.bid-draft-result small { display: block; margin-top: 3px; }
.bid-note, .bid-empty { color: var(--muted); margin: 12px 0 0; font-size: 13px; }
.bid-library-footer { align-items: center; justify-content: space-between; margin: 12px 0 0; }
.bid-library .data-table { min-width: 530px; }
.bid-library td { font-size: 13px; }
.bid-library .table-wrap .library-filename { max-width: 400px; overflow-wrap: anywhere; color: var(--ink); font-weight: 700; }
.bid-dialog-fields { display: grid; gap: 12px; }
.bid-draft-dialog { width: min(640px, calc(100% - 24px)); }
#library-dialog, #bid-draft-dialog, #library-links-dialog { max-height: calc(100dvh - 32px); }
.case-mail, .source-overview { margin-bottom: 16px; }
.case-mail summary { cursor: pointer; font-size: 15px; font-weight: 700; }
.case-mail dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 14px 0; }
.case-mail dd { margin: 0; color: var(--muted-strong); }
.search-panel { margin-bottom: 16px; }
.search-fields { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.search-fields label { display: grid; gap: 5px; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.search-fields input, .search-fields select, .delivery-panel input, .delivery-panel select { min-height: 39px; font-size: 14px; }
.search-fields select, .delivery-panel select { text-overflow: ellipsis; }
.search-fields .text-button { justify-self: start; min-height: 39px; }
.advanced-search { margin-top: 12px; }
.advanced-search summary { width: fit-content; padding: 4px 0; cursor: pointer; color: var(--muted-strong); font-size: 13px; font-weight: 700; }
.advanced-search[open] .search-fields { margin-top: 8px; }
.filter-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; border-top: 1px solid var(--line); }
.filter-footer .text-button { font-size: 13px; }
.inline-search { grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr)) auto; margin-bottom: 8px; }
.directory-table td:first-child { min-width: 210px; }
.directory-table td:first-child small, .case-detail td small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.directory-table td, .case-detail td { font-size: 13px; }
.directory-name { color: var(--ink); font-size: 14px; font-weight: 700; }
.directory-table .btn-soft { white-space: nowrap; text-decoration: none; }
.attached-files { display: grid; gap: 3px; margin: 3px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.case-tabs { margin-bottom: 16px; }
.case-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 9px; color: var(--muted-strong); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.case-tabs a.active { color: var(--brand); background: rgba(var(--brand-rgb), .1); }
.case-tabs a span { color: var(--muted); font-size: 12px; }
.case-detail a { text-decoration: none; }
.analysis-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 13px; }
.case-analysis-note { margin: 13px 0 0; color: var(--muted-strong); font-size: 14px; }
.notification-list a { text-decoration: none; }
.delivery-panel form { display: grid; gap: 12px; }
.delivery-panel .field-label { font-size: 13px; }
.delivery-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(136px, .9fr); gap: 10px; align-items: center; font-size: 13px; }
.delivery-panel a, #screen-notifications .page-actions a { text-decoration: none; }

.review-page { background: var(--page); }
.review-wrap { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.review-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.review-header > div { display: flex; min-height: 72px; align-items: center; justify-content: space-between; }
.review-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 17px; }
.review-main { padding-block: 36px 48px; }
.review-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.review-intro h1 { margin: 5px 0 6px; color: var(--ink); font-size: clamp(30px, 4vw, 43px); }
.review-intro p { margin: 0; max-width: 620px; color: var(--muted); font-size: 15px; }
.review-intro a { flex-shrink: 0; text-decoration: none; }
.review-grid { display: grid; align-items: start; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; }
.review-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-card-heading h2 { margin: 0; font-size: 18px; }
.review-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: var(--brand); background: rgba(var(--brand-rgb), .1); border-radius: 9px; font-size: 19px; }
.review-card ul { display: grid; margin: 0; padding: 0; list-style: none; }
.review-card li + li { border-top: 1px solid var(--line); }
.review-card a { display: flex; min-height: 32px; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 3px; color: var(--ink); text-decoration: none; font-size: 14px; }
.review-card a::after { content: '›'; color: var(--muted); font-size: 18px; line-height: 1; }
.review-card a:hover { color: var(--brand); }
.review-access { margin-top: 18px; }
.review-page :focus-visible, .elune-app :focus-visible, .auth-page :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 1024px) {
  .sidebar:not(.open) { visibility: hidden; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .bid-layout { grid-template-columns: minmax(0, 1fr); }
  .bid-process-table .data-table, .bid-process-table tbody, .bid-library .data-table, .bid-library tbody { display: block; min-width: 0; }
  .bid-process-table thead, .bid-library thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .bid-process-table tbody tr, .bid-library tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .bid-process-table td, .bid-library td { padding: 0; border: 0; white-space: normal; }
  .bid-process-name { grid-column: 1 / -1; }
  .bid-process-close::before { content: 'Cierre · '; }
  .bid-library .library-filename, .bid-link-cell { grid-column: 1 / -1; }
  .bid-link-cell:not(:has(button)) { display: none; }
  .review-grid, .case-grid { grid-template-columns: 1fr; }
  .review-intro { align-items: flex-start; flex-direction: column; }
  .review-wrap { width: calc(100% - 28px); }
  .review-main { padding-top: 24px; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .explorer-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .explorer-filters > label:first-child { grid-column: 1 / -1; }
  .opportunity-footer .text-button, .opportunity-preview { display: none; }
  .case-card-link { display: inline-block; margin-top: 8px; padding: 7px 0; font-size: 13px; font-weight: 700; }
  .topbar .demo-badge { display: inline-grid; width: 39px; height: 40px; place-items: center; padding: 0; font-size: 0; }
  .topbar .demo-badge i { font-size: 17px; }
  .topbar .search-box { display: none; }
  .topbar .mobile-search { display: inline-grid; }
  .search-fields, .inline-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-fields > label:first-child { grid-column: 1 / -1; }
  [data-main-filters] > label:last-child { grid-column: 1 / -1; }
  .advanced-search .search-fields > label:first-child { grid-column: auto; }
  .delivery-row { grid-template-columns: minmax(0,1fr) minmax(127px,.9fr); }
  .directory-table .table-wrap { overflow: visible; }
  .directory-table .data-table, .directory-table tbody { display: block; min-width: 0; }
  .directory-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .directory-table tbody tr { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .directory-table tbody tr:first-child { padding-top: 0; }
  .directory-table tbody tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .directory-table tbody td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; white-space: normal; }
  .directory-table [data-column-label]::before { display: block; margin-bottom: 2px; color: var(--muted); content: attr(data-column-label); font-size: 11px; font-weight: 700; }
}
