:root {
  --navy-950: #041127;
  --navy-900: #071a3b;
  --navy-800: #0b2855;
  --navy-700: #12396f;
  --cyan: #18c8ec;
  --cyan-soft: #e5faff;
  --teal: #20c9aa;
  --teal-dark: #087f75;
  --teal-soft: #e5faf6;
  --violet: #8b6ff2;
  --violet-soft: #f0ecff;
  --coral: #ff718a;
  --coral-soft: #fff0f3;
  --amber: #f6b94a;
  --amber-soft: #fff8e7;
  --green: #23b26d;
  --green-soft: #e9f9f1;
  --red: #e54e61;
  --red-soft: #fff0f2;
  --ink: #111827;
  --text: #253047;
  --muted: #6b7487;
  --muted-2: #98a1b2;
  --line: #e2e8f0;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 18px 45px rgba(8, 30, 67, .09);
  --shadow-sm: 0 8px 24px rgba(8, 30, 67, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--canvas);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(440px, .75fr);
  background: var(--surface);
}
.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: white;
  padding: 54px 7vw 42px;
  background:
    radial-gradient(circle at 70% 10%, rgba(38, 206, 238, .18), transparent 32%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 58%, #0b3060);
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}
.login-spyre-logo {
  position: relative;
  z-index: 2;
  width: 210px;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.2));
}
.login-copy {
  position: relative;
  z-index: 2;
  max-width: 790px;
  margin-top: clamp(90px, 13vh, 150px);
}
.overline, .eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.login-copy h1 {
  max-width: 760px;
  margin: 19px 0 21px;
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.login-copy p {
  max-width: 690px;
  margin: 0;
  font-size: 18px;
  color: #b9d8ed;
  line-height: 1.7;
}
.login-illustration {
  position: absolute;
  z-index: 1;
  width: min(760px, 72vw);
  left: 50%;
  bottom: 18px;
  transform: translateX(-46%);
  opacity: .92;
}
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(5px);
  opacity: .4;
}
.orb-one {
  width: 280px;
  height: 280px;
  right: -100px;
  top: 36%;
  border: 55px solid rgba(24, 200, 236, .24);
}
.orb-two {
  width: 190px;
  height: 190px;
  left: -100px;
  bottom: 12%;
  background: rgba(139, 111, 242, .22);
}
.login-trust {
  position: absolute;
  z-index: 2;
  left: 7vw;
  bottom: 35px;
  display: flex;
  gap: 24px;
  color: #cae4f2;
  font-size: 12px;
}
.login-trust span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--teal);
  font-weight: 900;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background:
    radial-gradient(circle at 100% 0%, var(--cyan-soft), transparent 29%),
    #fff;
}
.login-card { width: min(460px, 100%); }
.powered-by {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 58px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.powered-by img {
  width: 150px;
  max-height: 44px;
  object-fit: contain;
}
.login-card h2 {
  margin: 10px 0 8px;
  color: var(--navy-900);
  font-size: 36px;
  letter-spacing: -.03em;
}
.muted { color: var(--muted); }
.login-card > .muted { margin: 0 0 31px; line-height: 1.55; }
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 17px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #d7dfeb;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: .18s border-color, .18s box-shadow;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(24, 200, 236, .12);
}
textarea { min-height: 100px; resize: vertical; }
.btn {
  border: 0;
  border-radius: 11px;
  padding: 11px 16px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .18s transform, .18s box-shadow, .18s opacity;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  box-shadow: 0 12px 28px rgba(7, 26, 59, .18);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(7, 26, 59, .24); }
.btn-cyan { color: var(--navy-900); background: linear-gradient(135deg, #31d5ef, #31e0ba); }
.btn-light { color: var(--navy-800); background: #f1f5f9; border: 1px solid var(--line); }
.btn-outline { color: var(--navy-800); background: white; border: 1px solid #cdd7e5; }
.btn-danger { color: var(--red); background: var(--red-soft); border: 1px solid #ffd4da; }
.btn-success { color: #08764a; background: var(--green-soft); border: 1px solid #c6efd9; }
.btn-small { padding: 7px 10px; font-size: 12px; border-radius: 8px; }
.btn-wide { width: 100%; justify-content: space-between; padding: 14px 17px; margin-top: 4px; }
.form-error {
  padding: 11px 13px;
  border-radius: 9px;
  color: #9f2333;
  background: var(--red-soft);
  font-size: 13px;
}
.demo-access {
  margin-top: 29px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.demo-access > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-access small { color: var(--muted); font-size: 11px; }
.demo-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.role-login {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  color: var(--text);
  background: #fff;
  transition: .18s border, .18s transform, .18s box-shadow;
}
.role-login:hover {
  transform: translateY(-2px);
  border-color: #a8dcec;
  box-shadow: var(--shadow-sm);
}
.role-login > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.role-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 850;
}
.role-avatar.manager { color: #6141d0; background: var(--violet-soft); }
.role-avatar.sales { color: #087b71; background: var(--teal-soft); }
.security-note {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 15px 17px;
  overflow-y: auto;
  color: #d9e9f5;
  background:
    radial-gradient(circle at 40% 0%, rgba(24, 200, 236, .12), transparent 22%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 5px 13px 24px;
  text-decoration: none;
}
.brand img {
  width: 142px;
  max-height: 39px;
  object-fit: contain;
  object-position: left center;
}
.brand span {
  color: #7eb8d2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .2em;
}
#main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  position: relative;
  width: 100%;
  min-height: 43px;
  display: grid;
  grid-template-columns: 29px 1fr auto;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  padding: 8px 11px;
  color: #a9bfd1;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  transition: .16s;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active {
  color: white;
  background: linear-gradient(90deg, rgba(24,200,236,.18), rgba(32,201,170,.08));
  box-shadow: inset 3px 0 0 var(--cyan);
}
.nav-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #88c9de;
  font-size: 17px;
}
.nav-item.active .nav-icon { color: var(--cyan); }
.nav-badge {
  min-width: 21px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--navy-950);
  background: var(--coral);
  font-size: 9px;
  font-weight: 900;
}
.nav-badge.ai { color: #041b2a; background: linear-gradient(135deg, var(--cyan), var(--teal)); }
.sidebar-proposal {
  margin: auto 5px 16px;
  padding: 15px;
  border: 1px solid rgba(78, 214, 236, .17);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(24,200,236,.12), rgba(139,111,242,.1));
}
.proposal-spark {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  margin-bottom: 9px;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}
.sidebar-proposal b { color: #fff; font-size: 12px; }
.sidebar-proposal p { color: #8fa9bd; font-size: 10px; line-height: 1.45; }
.sidebar-proposal a { color: var(--cyan); font-size: 10px; font-weight: 800; text-decoration: none; }
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.sidebar-footer > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.sidebar-footer b { color: #d7e9f4; font-size: 10px; }
.sidebar-footer small { color: #7192a9; font-size: 9px; }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(32,201,170,.11);
}
.workspace { min-width: 0; }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 13px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}
.page-heading span {
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
}
.page-heading h1 {
  margin: 3px 0 0;
  color: var(--navy-900);
  font-size: 23px;
  letter-spacing: -.025em;
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-search {
  min-width: 225px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
  color: var(--muted);
  background: #f7f9fc;
  text-align: left;
  font-size: 11px;
}
kbd {
  border: 1px solid #d6deea;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 5px;
  color: var(--muted-2);
  background: white;
  font-size: 9px;
}
.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--navy-800);
  background: white;
}
#notification-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid white;
  border-radius: 50%;
  background: var(--coral);
}
.user-menu { position: relative; }
.user-menu > button {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  text-align: left;
}
.user-menu > button > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.user-menu b { color: var(--navy-900); font-size: 11px; }
.user-menu small { color: var(--muted); font-size: 9px; text-transform: capitalize; }
.user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #073143;
  background: linear-gradient(135deg, #57dbf0, #54e0b8);
  font-size: 12px;
  font-weight: 900;
}
.dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  width: 140px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
}
.dropdown button { width: 100%; border: 0; padding: 9px; border-radius: 7px; background: transparent; text-align: left; }
.dropdown button:hover { background: #f3f6fa; }
.content { padding: 24px 28px 55px; }

.page-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.page-toolbar h2 {
  margin: 0 0 6px;
  color: var(--navy-900);
  font-size: 22px;
  letter-spacing: -.03em;
}
.page-toolbar p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero {
  position: relative;
  min-height: 235px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, .7fr);
  gap: 24px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 31px 34px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 100% 30%, rgba(32,201,170,.22), transparent 34%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -70px;
  bottom: -145px;
  border: 40px solid rgba(24,200,236,.16);
  border-radius: 50%;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { color: #59e2f5; }
.hero h2 {
  max-width: 680px;
  margin: 12px 0 12px;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.hero p {
  max-width: 670px;
  margin: 0;
  color: #bad9e9;
  font-size: 13px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 9px; margin-top: 22px; }
.hero-visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}
.network-card {
  position: relative;
  width: 270px;
  height: 168px;
  border: 1px solid rgba(115,223,237,.22);
  border-radius: 22px;
  background: rgba(6,22,50,.54);
  box-shadow: inset 0 0 40px rgba(24,200,236,.05);
}
.network-card .server {
  position: absolute;
  left: 97px;
  top: 28px;
  width: 76px;
  height: 104px;
  padding: 12px;
  border: 1px solid #30cae3;
  border-radius: 14px;
  background: #0b2c5a;
}
.server i {
  display: block;
  height: 17px;
  margin-bottom: 7px;
  border-radius: 5px;
  background: #16457d;
}
.server i::after {
  content: "";
  float: right;
  width: 5px;
  height: 5px;
  margin: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.network-node {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.network-node.one { left: 35px; top: 44px; }
.network-node.two { right: 33px; top: 50px; background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.network-node.three { left: 35px; bottom: 32px; background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.network-node.four { right: 33px; bottom: 31px; background: var(--coral); box-shadow: 0 0 14px var(--coral); }
.network-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}
.kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 115px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.kpi-card::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  right: -22px;
  top: -22px;
  border-radius: 50%;
  background: var(--accent-soft, var(--cyan-soft));
}
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-head span:first-child { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.kpi-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent, var(--teal-dark));
  background: var(--accent-soft, var(--teal-soft));
  font-size: 13px;
}
.kpi-value {
  margin-top: 15px;
  color: var(--navy-900);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.035em;
}
.kpi-foot { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 16px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.panel-header h3 { margin: 0; color: var(--navy-900); font-size: 14px; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.panel-link { border: 0; color: var(--teal-dark); background: transparent; font-size: 10px; font-weight: 800; }
.bar-chart { min-height: 210px; display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 82px 1fr 75px; gap: 10px; align-items: center; font-size: 10px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 650; }
.bar-track { height: 9px; overflow: hidden; border-radius: 99px; background: #edf2f7; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--teal)); }
.bar-value { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.timeline-chart { height: 225px; display: flex; align-items: flex-end; gap: 10px; padding-top: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.timeline-column { flex: 1; min-width: 35px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; }
.timeline-bar {
  width: min(34px, 68%);
  min-height: 3px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--violet), var(--cyan));
  box-shadow: 0 4px 16px rgba(92, 104, 238, .2);
}
.timeline-column b { color: var(--navy-800); font-size: 9px; white-space: nowrap; }
.timeline-column span { color: var(--muted); font-size: 8px; white-space: nowrap; }
.status-list { display: flex; flex-direction: column; gap: 11px; }
.status-line { display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center; }
.status-line i { width: 8px; height: 8px; border-radius: 3px; background: var(--status-color, var(--cyan)); }
.status-line div { display: flex; flex-direction: column; gap: 2px; }
.status-line b { color: var(--text); font-size: 10px; }
.status-line small { color: var(--muted-2); font-size: 8px; }
.status-line strong { color: var(--navy-800); font-size: 12px; }
.quality-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quality-card { padding: 13px; border-radius: 11px; background: #f6f8fb; }
.quality-card span { display: block; color: var(--muted); font-size: 9px; }
.quality-card b { display: block; margin-top: 6px; color: var(--navy-900); font-size: 20px; }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: grid; grid-template-columns: 31px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf1f6; }
.activity-item:last-child { border-bottom: 0; }
.activity-symbol { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #087f75; background: var(--teal-soft); font-size: 11px; }
.activity-item b { display: block; color: var(--text); font-size: 10px; }
.activity-item small { color: var(--muted); font-size: 8px; }
.activity-time { color: var(--muted-2); font-size: 8px; }

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, .65fr)) auto;
  gap: 9px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  box-shadow: var(--shadow-sm);
}
.search-field { position: relative; }
.search-field span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { padding-left: 35px; }
.filter-bar input, .filter-bar select { padding: 9px 11px; font-size: 11px; }
.table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 12px 14px;
  color: var(--muted);
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .055em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1f6;
  color: var(--text);
  font-size: 10px;
  vertical-align: middle;
}
tbody tr { transition: .13s background; }
tbody tr:hover { background: #f9fbfd; }
tbody tr:last-child td { border-bottom: 0; }
.cell-title { display: flex; flex-direction: column; gap: 3px; min-width: 145px; }
.cell-title b { color: var(--navy-900); font-size: 11px; }
.cell-title span { color: var(--muted); font-size: 9px; }
.mw-cell { color: var(--navy-800); font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.freshness { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.freshness::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.freshness.stale::before { background: var(--amber); }
.freshness.missing::before { background: var(--red); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  padding: 5px 8px;
  color: #355067;
  background: #edf3f7;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.badge.available { color: #08764a; background: var(--green-soft); }
.badge.reserved { color: #8a5d02; background: var(--amber-soft); }
.badge.loi { color: #6044bd; background: var(--violet-soft); }
.badge.sold { color: #8e2940; background: var(--coral-soft); }
.badge.review { color: #0b6680; background: var(--cyan-soft); }
.badge.released { color: #4f5a67; background: #edf1f5; }
.badge.pending { color: #8a5d02; background: var(--amber-soft); }
.table-action {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy-800);
  background: white;
}
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.pagination { display: flex; gap: 5px; }
.pagination button { min-width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 9px; }
.pagination button.active { color: white; background: var(--navy-800); border-color: var(--navy-800); }
.empty-state {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state .empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 18px; color: var(--teal-dark); background: var(--teal-soft); font-size: 24px; }
.empty-state h3 { margin: 0 0 7px; color: var(--navy-900); }
.empty-state p { max-width: 430px; margin: auto; font-size: 11px; line-height: 1.6; }
.skeleton { position: relative; overflow: hidden; background: #eaf0f5; border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.loading-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.loading-grid .skeleton { height: 110px; }

.smart-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 31px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 90% 20%, rgba(139,111,242,.32), transparent 30%),
    linear-gradient(135deg, #101c4f, #173e72 60%, #075c70);
  box-shadow: var(--shadow);
}
.smart-hero::before { content: "✦"; position: absolute; right: 65px; top: 8px; color: rgba(255,255,255,.08); font-size: 160px; }
.smart-hero h2 { max-width: 720px; margin: 10px 0; font-size: 31px; letter-spacing: -.04em; }
.smart-hero p { max-width: 750px; margin: 0; color: #c5dcec; font-size: 12px; line-height: 1.6; }
.ai-query {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 22px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 15px;
  background: rgba(4,17,39,.58);
  backdrop-filter: blur(10px);
}
.ai-query input { border: 0; color: white; background: transparent; padding: 12px 14px; }
.ai-query input::placeholder { color: #9eb9ce; }
.ai-query input:focus { box-shadow: none; }
.example-queries { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.example-queries button { border: 1px solid rgba(255,255,255,.15); border-radius: 99px; padding: 6px 9px; color: #c3e3ef; background: rgba(255,255,255,.06); font-size: 9px; }
.interpretation { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.interpretation > span:first-child { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.portfolio-note { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; margin: 0 0 16px; padding: 13px 15px; border: 1px solid #a8e6da; border-radius: 13px; background: linear-gradient(135deg,#eefcf9,#f2f9ff); }
.portfolio-note > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg,var(--teal),var(--cyan)); font-size: 20px; font-weight: 850; }
.portfolio-note b { color: var(--navy); font-size: 11px; }
.portfolio-note p { margin: 3px 0 0; color: #547080; font-size: 9px; line-height: 1.5; }
.filter-chip { display: inline-flex; gap: 5px; padding: 6px 9px; border: 1px solid #cfe8ec; border-radius: 99px; color: #08756d; background: #effcf9; font-size: 9px; }
.match-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.match-card {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  box-shadow: var(--shadow-sm);
}
.match-card.selected { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(24,200,236,.1), var(--shadow-sm); }
.match-check { position: absolute; right: 15px; top: 15px; width: 17px; height: 17px; accent-color: var(--teal); }
.score-ring {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border: 5px solid var(--teal-soft);
  border-top-color: var(--teal);
  border-right-color: var(--cyan);
  border-radius: 50%;
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 900;
}
.match-card h3 { margin: 0 30px 4px 0; color: var(--navy-900); font-size: 14px; }
.match-card .location { color: var(--muted); font-size: 10px; }
.match-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.match-metric { padding: 9px; border-radius: 9px; background: #f5f8fb; }
.match-metric span { display: block; color: var(--muted); font-size: 8px; }
.match-metric b { display: block; margin-top: 4px; color: var(--navy-900); font-size: 11px; }
.reason-list { margin: 0; padding: 0; list-style: none; }
.reason-list li { position: relative; padding: 4px 0 4px 15px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.reason-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.floating-action {
  position: sticky;
  z-index: 12;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  max-width: 620px;
  margin: 20px auto 0;
  padding: 11px 14px;
  border: 1px solid rgba(24,200,236,.35);
  border-radius: 14px;
  color: white;
  background: rgba(7, 26, 59, .94);
  box-shadow: 0 18px 45px rgba(4,17,39,.25);
  backdrop-filter: blur(12px);
}
.floating-action span { font-size: 10px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.opportunity-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: .18s transform, .18s box-shadow;
}
.opportunity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.opportunity-accent { height: 5px; background: linear-gradient(90deg, var(--cyan), var(--teal)); }
.opportunity-body { padding: 17px; }
.opportunity-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.opportunity-top h3 { margin: 0 0 5px; color: var(--navy-900); font-size: 14px; }
.opportunity-top p { margin: 0; color: var(--muted); font-size: 9px; }
.demo-pill { border-radius: 99px; padding: 4px 7px; color: #6646c3; background: var(--violet-soft); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.opportunity-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 16px 0; }
.opportunity-stat { padding: 9px; border-radius: 9px; background: #f5f7fa; }
.opportunity-stat span { display: block; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.opportunity-stat b { display: block; margin-top: 4px; color: var(--navy-900); font-size: 10px; }
.opportunity-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.owner-chip { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.owner-chip i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #08776e; background: var(--teal-soft); font-style: normal; font-weight: 850; }
.list-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow-sm); }
.list-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; color: #684bc6; background: var(--violet-soft); font-size: 20px; }
.list-card h3 { margin: 0 0 4px; color: var(--navy-900); font-size: 12px; }
.list-card p { margin: 0; color: var(--muted); font-size: 9px; }
.list-capacity { text-align: right; }
.list-capacity b { display: block; color: var(--navy-900); font-size: 15px; }
.list-capacity span { color: var(--muted); font-size: 8px; }
.vertical-list { display: flex; flex-direction: column; gap: 10px; }

.supplier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.supplier-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.supplier-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.supplier-card h3 { margin: 0; color: var(--navy-900); font-size: 13px; }
.supplier-card header span { color: var(--teal-dark); font-size: 10px; font-weight: 850; }
.contact-line { display: grid; grid-template-columns: 32px 1fr; gap: 9px; align-items: center; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.contact-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #6648bd; background: var(--violet-soft); font-size: 10px; font-weight: 850; }
.contact-line b { display: block; color: var(--text); font-size: 9px; }
.contact-line small { display: block; color: var(--muted); font-size: 8px; margin-top: 2px; }

.dropzone {
  position: relative;
  padding: 34px 25px;
  border: 2px dashed #bdd8df;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4fcfd, #f4fbf8);
  text-align: center;
}
.dropzone.dragging { border-color: var(--cyan); background: var(--cyan-soft); }
.dropzone-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 16px; color: #087d74; background: white; box-shadow: var(--shadow-sm); font-size: 23px; }
.dropzone h3 { margin: 0 0 7px; color: var(--navy-900); font-size: 15px; }
.dropzone p { margin: 0 0 15px; color: var(--muted); font-size: 10px; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.import-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 13px 0; }
.summary-box { padding: 10px; border-radius: 9px; background: #f5f7fa; text-align: center; }
.summary-box span { display: block; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.summary-box b { display: block; margin-top: 4px; color: var(--navy-900); font-size: 15px; }
.validation-ready { color: var(--green) !important; }
.validation-warning { color: #b67800 !important; }
.validation-error { color: var(--red) !important; }

.approval-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.approval-card h3 { margin: 0 0 6px; color: var(--navy-900); font-size: 12px; }
.approval-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; color: var(--muted); font-size: 8px; }
.approval-payload { margin-top: 11px; padding: 10px; border-radius: 9px; background: #f6f8fb; color: var(--text); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; word-break: break-all; }
.approval-actions { display: flex; align-items: center; gap: 7px; }

.strategy-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  margin-bottom: 16px;
  padding: 24px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #092c5c, #075e70);
}
.strategy-banner h2 { margin: 8px 0; font-size: 25px; letter-spacing: -.03em; }
.strategy-banner p { max-width: 700px; margin: 0; color: #c2e1eb; font-size: 11px; line-height: 1.6; }
.strategy-mark { width: 90px; height: 90px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 25px; color: var(--navy-900); background: linear-gradient(135deg, var(--cyan), var(--teal)); font-size: 35px; }
.integration-card { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.integration-card header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.integration-card h3 { margin: 0 0 5px; color: var(--navy-900); font-size: 14px; text-transform: capitalize; }
.integration-card p { margin: 0; color: var(--muted); font-size: 9px; }
.toggle { position: relative; width: 39px; height: 22px; flex: 0 0 auto; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: #cfd8e3; transition: .2s; }
.toggle span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: .2s; box-shadow: 0 2px 7px rgba(0,0,0,.15); }
.toggle input:checked + span { background: var(--teal); }
.toggle input:checked + span::after { transform: translateX(17px); }
.mapping-list { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.mapping-line { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 7px; color: var(--text); font-size: 9px; }
.mapping-line i { color: var(--teal); font-style: normal; text-align: center; }
.architecture-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.architecture-option {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-sm);
}
.architecture-option.selected { border-color: rgba(24,200,236,.58); box-shadow: 0 16px 38px rgba(16, 168, 201, .14); }
.architecture-option.selected::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 3px rgba(24,200,236,.11); }
.architecture-option header { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 12px; margin-top: 12px; }
.architecture-option h3 { margin: 0 0 4px; color: var(--navy-900); font-size: 15px; }
.architecture-option header p { margin: 0; color: var(--muted); font-size: 9px; }
.architecture-option > p { min-height: 43px; margin: 17px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.option-ribbon { position: absolute; top: 0; left: 0; padding: 5px 13px; border-radius: 0 0 9px 0; color: #064c49; background: var(--teal-soft); font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.option-ribbon.alternative { color: #5c45ab; background: var(--violet-soft); }
.option-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--navy-950); background: linear-gradient(135deg, var(--cyan), var(--teal)); font-weight: 900; }
.option-icon.salesforce { color: #fff; background: linear-gradient(135deg, #6d8bf6, var(--violet)); font-size: 11px; }
.selection-state { padding: 5px 8px; border-radius: 99px; color: #087267; background: var(--teal-soft); font-size: 8px; font-weight: 850; }
.comparison-panel { margin-bottom: 16px; }
.comparison-table td { line-height: 1.45; }
.comparison-table th:nth-child(2) { color: #08776d; background: #f2fcfa; }
.comparison-table td:nth-child(2) { background: #fbfffe; }
.comparison-good { margin-right: 7px; color: var(--green); font-weight: 900; }
.integration-paths { align-items: stretch; }
.clm-explainer { margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.guide-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 15px;
  padding: 28px;
  overflow: hidden;
  border-radius: 20px;
  color: white;
  background:
    radial-gradient(circle at 86% 10%, rgba(139,111,242,.4), transparent 25%),
    linear-gradient(135deg, var(--navy-900), #0b5570);
}
.guide-hero h2 { max-width: 650px; margin: 9px 0; font-size: 28px; letter-spacing: -.035em; }
.guide-hero > div > p { max-width: 620px; margin: 0; color: #c8e1ec; font-size: 11px; line-height: 1.6; }
.guide-role { display: flex; align-items: center; gap: 10px; max-width: 620px; margin-top: 18px; padding: 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.07); }
.guide-role > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--navy-950); background: linear-gradient(135deg, var(--cyan), var(--teal)); font-weight: 900; }
.guide-role b, .guide-role small { display: block; }
.guide-role b { font-size: 10px; text-transform: capitalize; }
.guide-role small { margin-top: 3px; color: #b8d7e6; font-size: 8px; line-height: 1.4; }
.guide-hero-art { display: flex; align-items: center; gap: 8px; padding: 19px; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: rgba(3,15,34,.22); }
.guide-hero-art span { padding: 10px 12px; border-radius: 10px; color: var(--navy-900); background: white; font-size: 9px; font-weight: 850; }
.guide-hero-art i { color: var(--cyan); font-style: normal; }
.guide-quick-start { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }
.guide-quick-start article { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.guide-quick-start article > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; color: #5d45bc; background: var(--violet-soft); font-size: 11px; font-weight: 900; }
.guide-quick-start h3 { margin: 1px 0 4px; color: var(--navy-900); font-size: 10px; }
.guide-quick-start p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.guide-lifecycle { margin-bottom: 15px; }
.guide-flow { display: flex; align-items: center; justify-content: center; gap: 7px; overflow-x: auto; padding: 13px 0 19px; }
.guide-flow span { flex: 0 0 auto; padding: 9px 12px; border: 1px solid #cde9ed; border-radius: 10px; color: #086b68; background: linear-gradient(135deg, var(--cyan-soft), var(--teal-soft)); font-size: 9px; font-weight: 850; }
.guide-flow i { color: var(--cyan); font-style: normal; font-weight: 900; }
.guide-sections { align-items: stretch; }
.guide-list { display: flex; flex-direction: column; gap: 11px; }
.guide-list > div { display: grid; grid-template-columns: 32px 1fr; gap: 9px; align-items: start; }
.guide-list > div > span { min-width: 31px; min-height: 31px; display: grid; place-items: center; padding: 3px; border-radius: 9px; color: #6450b4; background: var(--violet-soft); font-size: 8px; font-weight: 900; }
.guide-list p { margin: 0; }
.guide-list b, .guide-list small { display: block; }
.guide-list b { color: var(--text); font-size: 9px; }
.guide-list small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.role-comparison { display: flex; flex-direction: column; gap: 12px; }
.role-comparison > div { display: grid; grid-template-columns: 39px 1fr; gap: 11px; padding: 12px; border-radius: 11px; background: #f6f8fb; }
.role-comparison p { margin: 0; }
.role-comparison b, .role-comparison small { display: block; }
.role-comparison b { color: var(--navy-900); font-size: 10px; }
.role-comparison small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.guide-support { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.guide-support > div { display: flex; align-items: center; gap: 13px; }
.guide-support .proposal-spark { flex: 0 0 auto; margin: 0; }
.guide-support h3 { margin: 0 0 5px; color: var(--navy-900); font-size: 12px; }
.guide-support p { margin: 0; color: var(--muted); font-size: 9px; }

.transition-exception { flex: 0 0 auto; margin-left: 8px; padding: 7px 9px; border: 1px solid #ffd9df; border-radius: 8px; color: #a33244; background: var(--coral-soft); font-size: 8px; font-weight: 800; }

.tedra-launcher {
  position: fixed;
  z-index: 148;
  right: 23px;
  bottom: 22px;
  min-width: 205px;
  height: 60px;
  display: grid;
  grid-template-columns: 43px 1fr auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 19px;
  color: white;
  background:
    radial-gradient(circle at 7% 20%, rgba(255,255,255,.28), transparent 22%),
    linear-gradient(120deg, #7048e8, #0d8db4 52%, #13bda0);
  box-shadow: 0 18px 46px rgba(5, 28, 72, .34), 0 0 0 5px rgba(24,200,236,.08);
  text-align: left;
  transition: .2s transform, .2s box-shadow;
}
.tedra-launcher:hover { transform: translateY(-3px); box-shadow: 0 23px 55px rgba(5, 28, 72, .4), 0 0 0 7px rgba(24,200,236,.1); }
.tedra-launcher.active { min-width: 60px; width: 60px; grid-template-columns: 43px; padding: 8px; }
.tedra-launcher.active .tedra-launcher-copy, .tedra-launcher.active .tedra-launcher-status { display: none; }
.tedra-launcher-glow { position: absolute; width: 90px; height: 90px; right: -30px; top: -60px; border-radius: 50%; background: rgba(255,113,138,.48); filter: blur(4px); }
.tedra-launcher-orb { position: relative; width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 14px; color: white; background: linear-gradient(145deg, rgba(255,255,255,.3), rgba(255,255,255,.08)); box-shadow: inset 0 1px 8px rgba(255,255,255,.22); font-size: 18px; font-weight: 950; }
.tedra-launcher-copy { position: relative; display: flex; flex-direction: column; gap: 2px; }
.tedra-launcher-copy b { font-size: 12px; }
.tedra-launcher-copy small { color: #d9f6fa; font-size: 7px; }
.tedra-launcher-status { position: relative; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: #36e0ad; box-shadow: 0 0 0 4px rgba(54,224,173,.18); }

.tedra-panel {
  position: fixed;
  z-index: 147;
  right: 23px;
  bottom: 94px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  border: 1px solid rgba(17, 83, 125, .18);
  border-radius: 22px;
  background: #f8fbfe;
  box-shadow: 0 28px 90px rgba(3, 20, 52, .32);
  transform-origin: bottom right;
  animation: tedra-open .22s ease-out;
}
@keyframes tedra-open { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.tedra-size-small { width: min(420px, calc(100vw - 30px)); height: min(670px, calc(100vh - 120px)); }
.tedra-size-medium { width: min(780px, calc(100vw - 46px)); height: min(750px, calc(100vh - 116px)); }
.tedra-size-full { inset: 18px; width: auto; height: auto; border-radius: 24px; }
.tedra-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  color: white;
  background:
    radial-gradient(circle at 82% -30%, rgba(255,113,138,.7), transparent 32%),
    radial-gradient(circle at 10% 130%, rgba(24,200,236,.65), transparent 38%),
    linear-gradient(120deg, #182c6d, #6849d7 49%, #0c9a9b);
}
.tedra-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tedra-avatar { position: relative; width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.43); border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.08)); box-shadow: 0 8px 20px rgba(6,17,54,.18); }
.tedra-avatar i { position: absolute; width: 9px; height: 9px; right: -2px; bottom: -2px; border: 2px solid white; border-radius: 50%; background: #36e0ad; }
.tedra-avatar b { color: white; font-size: 17px; font-style: normal; }
.tedra-identity > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tedra-identity > span:last-child b { font-size: 14px; letter-spacing: .08em; }
.tedra-identity > span:last-child small { overflow: hidden; color: #d5eff4; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.tedra-window-controls { display: flex; gap: 4px; }
.tedra-window-controls button { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #e6fbff; background: rgba(255,255,255,.09); font-size: 12px; }
.tedra-window-controls button:hover, .tedra-window-controls button.active { color: white; background: rgba(255,255,255,.23); }
.tedra-assurance { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 13px; border-bottom: 1px solid #dfe9f2; color: #527080; background: white; font-size: 7px; font-weight: 750; }
.tedra-assurance span:first-child { display: flex; align-items: center; gap: 6px; }
.tedra-assurance i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
#tedra-role-chip { padding: 4px 7px; border-radius: 99px; color: #6348bd; background: var(--violet-soft); text-transform: capitalize; }
.tedra-messages { overflow-y: auto; overscroll-behavior: contain; padding: 14px; background: radial-gradient(circle at 100% 0%, rgba(139,111,242,.07), transparent 25%), #f7fafc; }
.tedra-message { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 13px; }
.tedra-message.user { justify-content: flex-end; }
.tedra-message-avatar { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: white; background: linear-gradient(135deg, var(--violet), #0ca8b1); box-shadow: 0 5px 12px rgba(76,74,184,.2); font-size: 9px; font-weight: 900; }
.tedra-bubble { max-width: calc(100% - 36px); padding: 10px 12px; border: 1px solid #dde7f0; border-radius: 4px 14px 14px; color: var(--text); background: white; box-shadow: 0 5px 14px rgba(6,30,66,.05); }
.tedra-message.user .tedra-bubble { max-width: 83%; border: 0; border-radius: 14px 14px 4px 14px; color: white; background: linear-gradient(135deg, #253b78, #654dd1); }
.tedra-message-name { display: block; margin-bottom: 6px; color: #6750bd; font-size: 6px; font-weight: 900; letter-spacing: .11em; }
.tedra-bubble > p { margin: 0; font-size: 9px; line-height: 1.58; }
.tedra-evidence { margin-top: 9px; border-top: 1px solid #edf1f5; padding-top: 8px; }
.tedra-evidence summary { cursor: pointer; color: #0b7d7b; font-size: 7px; font-weight: 850; list-style: none; }
.tedra-evidence summary::-webkit-details-marker { display: none; }
.tedra-evidence > div { display: grid; gap: 6px; margin-top: 7px; }
.tedra-evidence section { display: flex; flex-direction: column; gap: 2px; padding: 7px 8px; border-radius: 8px; background: #f3f8fa; }
.tedra-evidence b { color: var(--text); font-size: 7px; }
.tedra-evidence span, .tedra-evidence small, .tedra-evidence a { color: var(--muted); font-size: 6px; line-height: 1.4; }
.tedra-evidence a { color: #087f75; font-weight: 800; text-decoration: none; }
.tedra-entities { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 9px; }
.tedra-size-medium .tedra-entities, .tedra-size-full .tedra-entities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tedra-entity { display: grid; grid-template-columns: 1fr auto; gap: 5px 9px; align-items: center; width: 100%; padding: 8px; border: 1px solid #dce7ef; border-radius: 9px; color: var(--text); background: #fbfdff; text-align: left; }
.tedra-entity:hover { border-color: #92dce7; background: var(--cyan-soft); }
.tedra-entity > span { min-width: 0; }
.tedra-entity b, .tedra-entity small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tedra-entity b { font-size: 7px; }
.tedra-entity small { margin-top: 2px; color: var(--muted); font-size: 6px; }
.tedra-entity strong { color: var(--navy-900); font-size: 7px; }
.tedra-entity em { grid-column: span 2; justify-self: start; font-style: normal; font-size: 6px; }
.tedra-action { width: 100%; display: flex; flex-direction: column; gap: 3px; margin-top: 9px; padding: 10px; border: 1px solid rgba(99,73,210,.2); border-radius: 10px; color: white; background: linear-gradient(120deg, #253c78, #6949d7 55%, #0c9f9a); text-align: left; box-shadow: 0 8px 20px rgba(71,62,176,.15); }
.tedra-action span { color: #bdeef2; font-size: 6px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.tedra-action b { font-size: 8px; }
.tedra-action small { color: white; font-size: 7px; }
.tedra-suggestions { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid #e3ebf1; background: white; scrollbar-width: thin; }
.tedra-suggestion { flex: 0 0 auto; max-width: 250px; padding: 7px 9px; border: 1px solid #cfe2e8; border-radius: 99px; color: #155c70; background: #f2fbfc; font-size: 7px; white-space: nowrap; }
.tedra-suggestion:hover { color: #5c40bd; border-color: #cfc2ff; background: var(--violet-soft); }
.tedra-composer { padding: 10px 12px 9px; border-top: 1px solid #e1eaf1; background: white; }
.tedra-web-option { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 6px; margin: 0 0 7px; font-size: 7px; }
.tedra-web-option input { width: 12px; height: 12px; margin: 0; padding: 0; accent-color: var(--violet); }
.tedra-web-option span { color: var(--text); font-weight: 850; }
.tedra-web-option small { color: var(--muted); font-size: 6px; font-weight: 500; text-align: right; }
#tedra-form { display: grid; grid-template-columns: 1fr 38px; gap: 7px; align-items: end; }
#tedra-input { min-height: 39px; max-height: 120px; resize: none; padding: 10px 11px; border-radius: 12px; background: #f8fafc; font-size: 9px; }
#tedra-send { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--violet), #08ad9e); box-shadow: 0 8px 17px rgba(70,66,187,.22); }
#tedra-send:disabled { opacity: .5; cursor: wait; }
.tedra-composer > p { margin: 6px 0 0; color: var(--muted-2); font-size: 6px; text-align: center; }
.tedra-typing { display: flex; align-items: center; gap: 4px; }
.tedra-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); animation: tedra-pulse 1s infinite alternate; }
.tedra-typing i:nth-child(2) { animation-delay: .2s; }
.tedra-typing i:nth-child(3) { animation-delay: .4s; }
.tedra-typing span { margin-left: 4px; color: var(--muted); font-size: 7px; }
@keyframes tedra-pulse { to { opacity: .25; transform: translateY(-2px); } }
.tedra-confirm-hero { display: grid; grid-template-columns: 45px 1fr; gap: 12px; align-items: center; padding: 15px; border-radius: 13px; color: white; background: linear-gradient(125deg, var(--navy-800), #6549d3, #0b9f9d); }
.tedra-confirm-hero h3 { margin: 0 0 5px; font-size: 14px; }
.tedra-confirm-hero p { margin: 0; color: #d8ecf3; font-size: 9px; line-height: 1.5; }
.tedra-result-link { display: inline-flex; margin-top: 9px; padding: 7px 9px; border: 0; border-radius: 8px; color: white; background: linear-gradient(135deg, #644bd0, #0a9f99); font-size: 7px; font-weight: 850; text-decoration: none; }

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 25px;
  background: rgba(3, 14, 33, .68);
  backdrop-filter: blur(5px);
}
.modal {
  width: min(770px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: white;
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
  animation: modal-in .18s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 23px 16px; border-bottom: 1px solid var(--line); }
.modal > header h2 { margin: 5px 0 0; color: var(--navy-900); font-size: 20px; letter-spacing: -.03em; }
#modal-close { width: 34px; height: 34px; border: 0; border-radius: 10px; color: var(--muted); background: #f2f5f8; font-size: 20px; }
.modal-body { overflow-y: auto; padding: 21px 23px; }
.modal > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 23px; border-top: 1px solid var(--line); background: #f9fafc; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
.form-grid .span-2 { grid-column: span 2; }
.detail-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.detail-hero h3 { margin: 7px 0 5px; font-size: 21px; }
.detail-hero p { margin: 0; color: #bfdaea; font-size: 10px; }
.capacity-bubble { min-width: 110px; padding: 14px; border-radius: 14px; color: var(--navy-950); background: linear-gradient(135deg, var(--cyan), var(--teal)); text-align: center; }
.capacity-bubble strong { display: block; font-size: 24px; }
.capacity-bubble span { font-size: 8px; font-weight: 800; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 13px; }
.detail-field { padding: 11px; border-radius: 10px; background: #f5f7fa; }
.detail-field small { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.detail-field b { display: block; margin-top: 5px; color: var(--text); font-size: 10px; overflow-wrap: anywhere; }
.schedule-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.schedule-pill { padding: 7px 9px; border-radius: 9px; color: #0b6980; background: var(--cyan-soft); font-size: 9px; }
.transition-flow { display: flex; align-items: center; gap: 5px; overflow-x: auto; padding: 7px 0; }
.transition-step { padding: 7px 9px; border-radius: 8px; color: var(--muted); background: #f1f4f8; font-size: 8px; white-space: nowrap; }
.transition-step.current { color: #086d65; background: var(--teal-soft); font-weight: 850; }
.transition-arrow { color: #b0bac7; font-size: 9px; }
.inline-note { padding: 11px 13px; border-left: 4px solid var(--cyan); border-radius: 8px; color: #315166; background: var(--cyan-soft); font-size: 9px; line-height: 1.55; }
.toast-container { position: fixed; z-index: 200; right: 20px; bottom: 96px; display: flex; flex-direction: column; gap: 9px; }
.toast { min-width: 280px; max-width: 380px; display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: white; box-shadow: var(--shadow); animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateX(15px); } }
.toast-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #08764a; background: var(--green-soft); }
.toast.error .toast-icon { color: var(--red); background: var(--red-soft); }
.toast b { display: block; font-size: 10px; }
.toast small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.toast button { border: 0; color: var(--muted); background: transparent; }

@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .match-grid, .card-grid, .supplier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .brand img { width: 56px; object-fit: cover; object-position: left; }
  .brand span, .nav-item > span:nth-child(2), .nav-badge, .sidebar-proposal, .sidebar-footer > span:last-child { display: none; }
  .nav-item { grid-template-columns: 1fr; padding: 8px; }
  .nav-icon { margin: auto; }
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { min-height: 440px; }
  .login-panel { padding: 55px 30px; }
  .login-illustration { display: none; }
  .login-trust { bottom: 28px; }
  .login-copy { margin-top: 75px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .filter-bar { grid-template-columns: repeat(3, 1fr); }
  .guide-quick-start { grid-template-columns: repeat(2, 1fr); }
  .guide-hero-art { display: none; }
  .guide-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 50; left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 65px; flex-direction: row; overflow-x: auto; padding: 7px; }
  .brand, .sidebar-proposal, .sidebar-footer { display: none; }
  #main-nav { flex-direction: row; min-width: max-content; }
  .nav-item { width: 54px; min-height: 50px; }
  .nav-item.manager-only[hidden] { display: none; }
  .topbar { padding: 12px 15px; }
  .top-search, .user-menu > button > span:nth-child(2), .user-menu > button > span:last-child { display: none; }
  .content { padding: 18px 14px 90px; }
  .page-heading h1 { font-size: 19px; }
  .hero { min-height: auto; padding: 24px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .search-field { grid-column: span 2; }
  .match-grid, .card-grid, .supplier-grid { grid-template-columns: 1fr; }
  .page-toolbar { flex-direction: column; }
  .login-visual { padding: 37px 25px; min-height: 430px; }
  .login-copy h1 { font-size: 39px; }
  .login-copy p { font-size: 15px; }
  .login-trust { left: 25px; flex-direction: column; gap: 6px; }
  .login-panel { padding: 42px 22px; }
  .powered-by { margin-bottom: 40px; }
  .demo-buttons { grid-template-columns: 1fr; }
  .strategy-banner { grid-template-columns: 1fr; }
  .strategy-mark { display: none; }
  .architecture-choice { grid-template-columns: 1fr; }
  .guide-quick-start { grid-template-columns: 1fr; }
  .guide-flow { justify-content: flex-start; }
  .guide-support { align-items: flex-start; flex-direction: column; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .modal-backdrop { padding: 10px; }
  .modal { max-height: 96vh; }
  .tedra-launcher { right: 14px; bottom: 78px; }
  .tedra-launcher.active { display: none; }
  .tedra-panel,
  .tedra-size-small,
  .tedra-size-medium,
  .tedra-size-full {
    inset: 8px 8px 74px;
    width: auto;
    height: auto;
    border-radius: 18px;
  }
  .tedra-window-controls #tedra-size-small,
  .tedra-window-controls #tedra-size-medium,
  .tedra-window-controls #tedra-size-full { display: none; }
  .tedra-size-medium .tedra-entities, .tedra-size-full .tedra-entities { grid-template-columns: 1fr; }
  .toast-container { right: 12px; bottom: 145px; left: 12px; }
  .toast { min-width: 0; width: 100%; }
  .approval-card { grid-template-columns: 1fr; gap: 12px; }
  .approval-actions { justify-content: flex-end; }
}
