:root {
  --bg: #08090d;
  --bg-soft: #0e1016;
  --surface: rgba(19, 21, 29, 0.88);
  --surface-solid: #13151d;
  --surface-2: #191c26;
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(235, 36, 36, 0.38);
  --text: #f4f3f8;
  --muted: #9194a3;
  --muted-2: #666a79;
  --purple: #d71920;
  --purple-light: #ff4a43;
  --cyan: #f2a21b;
  --danger: #fb7185;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.site-content { margin-left: 248px; }
.sidebar {
  position: fixed; z-index: 30; inset: 0 auto 0 0; width: 248px; padding: 20px 14px 16px;
  display: flex; flex-direction: column; background: #0b0d12; border-right: 1px solid var(--line);
  box-shadow: 18px 0 60px rgba(0,0,0,.18); overflow-y: auto;
}
.sidebar-brand { height: 52px; padding: 0 10px; display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 2px; }
.side-nav { margin-top: 17px; display: flex; flex-direction: column; gap: 13px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group-title { min-height: 34px; padding: 0 8px; display: flex; align-items: center; color: #8990a3; font-size: 10px; font-weight: 800; letter-spacing: .75px; }
.nav-group-title > span { display: flex; align-items: center; gap: 9px; }
.nav-group-title i { color: #7f8799; font-style: normal; font-size: 15px; }
.nav-group-title b { margin-left: 9px; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: rgba(45,212,191,.13); color: var(--cyan); font-size: 10px; }
.nav-group-title em { margin-left: auto; color: #657083; font-size: 14px; font-style: normal; }
.side-nav a, .side-nav button { width: 100%; min-height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 10px; background: transparent; color: #aeb6c9; text-decoration: none; text-align: left; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .18s ease, color .18s ease; }
.side-nav a i, .side-nav button i { width: 17px; color: #7e879a; font-size: 16px; font-style: normal; text-align: center; }
.side-nav button small { margin-left:auto; padding:3px 6px; border-radius:999px; background:rgba(139,92,246,.1); color:var(--purple-light); font-size:8px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; }
.side-nav a:hover, .side-nav button:hover { background: rgba(255,255,255,.04); color: #eef2ff; }
.side-nav a.is-active, .side-nav button.is-active { background: rgba(45,212,191,.12); color: #fff; font-weight: 700; }
.side-nav a.is-active i, .side-nav button.is-active i { color: var(--cyan); }
.sidebar-foot { margin-top: auto; padding: 14px 10px 2px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.sidebar-foot .online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(45,212,191,.7); }
.sidebar-foot div { display: flex; flex-direction: column; }
.sidebar-foot b { font-size: 11px; }
.sidebar-foot small { color: var(--muted-2); font-size: 9px; }
.sidebar-toggle, .sidebar-backdrop { display: none; }

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(2px);
}

.ambient-one {
  width: 620px;
  height: 620px;
  right: -220px;
  top: 90px;
  background: radial-gradient(circle, rgba(124, 58, 237, .15), transparent 67%);
}

.ambient-two {
  width: 480px;
  height: 480px;
  left: -220px;
  top: 880px;
  background: radial-gradient(circle, rgba(45, 212, 191, .07), transparent 68%);
}

.topbar {
  width: min(1180px, calc(100% - 48px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #8b5cf6, #5b21b6);
  box-shadow: 0 0 24px rgba(139, 92, 246, .25);
}

.brand-mark svg { width: 30px; height: 30px; fill: white; }
.brand-mark .brand-accent { fill: #5eead4; }
.brand-x { color: var(--purple-light); }

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(220, 38, 38, .2));
}

.sidebar-logo { height: 46px; max-width: 126px; }
.topbar-logo { height: 52px; max-width: 132px; }
.footer-logo { height: 42px; max-width: 108px; }

.topbar nav { display: flex; gap: 30px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: .2s ease; }
.topbar nav a:hover { color: var(--text); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
}

.status i, .eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(45, 212, 191, .8);
}

main, footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.hero {
  min-height: 680px;
  padding: 92px 0 86px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid rgba(45, 212, 191, .18);
  border-radius: 999px;
  background: rgba(45, 212, 191, .05);
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 25px 0 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(46px, 5.4vw, 72px);
  line-height: .98;
  letter-spacing: -4px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--purple-light), #c4b5fd 62%, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p {
  max-width: 520px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 11px;
  background: var(--purple);
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(124, 58, 237, .24);
  transition: transform .2s ease, background .2s ease;
}

.primary-cta:hover { transform: translateY(-2px); background: #7c3aed; }
.primary-cta svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero-panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(26, 28, 39, .92), rgba(12, 14, 20, .94));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -100px;
  top: -95px;
  border-radius: 50%;
  background: rgba(139, 92, 246, .18);
  filter: blur(30px);
}

.hero-panel-head, .output-head, .card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-panel-head > div { display: flex; flex-direction: column; gap: 5px; }
.hero-panel-head strong { font-family: "Space Grotesk", sans-serif; font-size: 17px; }
.muted-label, .output-head span, .card-title > span, .display-label, .result-top > span, .saved-summary span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.live-dot {
  padding: 5px 8px;
  border: 1px solid rgba(45, 212, 191, .18);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(45, 212, 191, .05);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.kpi-grid {
  margin: 23px 0 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kpi-card {
  min-height: 112px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.kpi-card.featured { grid-column: 1 / -1; min-height: 132px; background: linear-gradient(135deg, rgba(139, 92, 246, .15), rgba(139, 92, 246, .035)); border-color: rgba(139, 92, 246, .22); }
.kpi-card span { color: var(--muted); font-size: 12px; }
.kpi-card b { margin-top: 5px; font-family: "Space Grotesk", sans-serif; font-size: 28px; letter-spacing: -1px; }
.kpi-card.featured b { font-size: 38px; }
.kpi-card small { color: var(--muted-2); font-size: 11px; }

.privacy-note { display: flex; gap: 9px; align-items: center; color: var(--muted-2); font-size: 11px; }
.privacy-note svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.workspace-section { scroll-margin-top: 22px; padding: 92px 0; border-top: 1px solid var(--line); }

.section-heading {
  margin-bottom: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading > div { display: flex; align-items: center; gap: 17px; }
.section-number { color: var(--purple-light); font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 700; }
.section-heading h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(28px, 4vw, 42px); letter-spacing: -1.8px; }
.section-heading p { max-width: 420px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }

.tool-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calculator-shell, .list-builder, .cpa-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
}

.calculator-inputs, .list-controls, .cpa-controls { padding: 34px; }
.list-target-field{min-width:0}.target-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.target-mode{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:9px;background:rgba(7,9,14,.38)}.target-mode button{height:24px;padding:0 8px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}.target-mode button.is-active{background:var(--red);color:#fff;box-shadow:0 3px 10px rgba(215,25,32,.22)}

label { display: block; }
label > span, .range-title {
  display: block;
  margin-bottom: 8px;
  color: #b6b8c2;
  font-size: 12px;
  font-weight: 600;
}

.field-row { display: grid; gap: 14px; margin-bottom: 19px; }
.field-row.two-cols { grid-template-columns: repeat(2, 1fr); }
.field-row.three-cols { grid-template-columns: repeat(3, 1fr); }

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #0c0e14;
  color: var(--text);
  font-weight: 700;
  transition: border .2s ease, box-shadow .2s ease;
}

input:focus { border-color: rgba(139, 92, 246, .72); box-shadow: 0 0 0 3px rgba(139, 92, 246, .11); }
select { width:100%; height:48px; padding:0 38px 0 14px; border:1px solid var(--line); border-radius:10px; outline:none; background:#0c0e14; color:var(--text); font-weight:700; color-scheme:dark; }
select:focus { border-color:rgba(139,92,246,.72); box-shadow:0 0 0 3px rgba(139,92,246,.11); }

.money-input { position: relative; }
.money-input i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 12px; font-style: normal; font-weight: 700; }
.money-input input { padding-left: 40px; }
.percent-input { position: relative; }
.percent-input input { padding-right: 38px; }
.percent-input i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 12px; font-style: normal; font-weight: 700; }

.quick-values { margin: 12px 0 25px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.quick-values button {
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.quick-values button:hover, .quick-values button.is-selected { color: var(--purple-light); border-color: rgba(139,92,246,.4); background: rgba(139,92,246,.08); }

.calculate-button, .save-button {
  width: 100%;
  min-height: 49px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: var(--purple);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(124, 58, 237, .18);
  transition: transform .18s ease, filter .18s ease;
}

.calculate-button:hover, .save-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.calculate-button svg, .save-button svg, .copy-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.calculator-display {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(139,92,246,.13), rgba(8,9,13,.25));
  border-left: 1px solid var(--line);
}

.calculator-display > strong {
  margin: 12px 0 28px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(42px, 5.5vw, 66px);
  line-height: 1;
  letter-spacing: -3.5px;
}

.display-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.display-breakdown > div { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.12); }
.display-breakdown span { display: block; color: var(--muted); font-size: 11px; }
.display-breakdown b { font-size: 17px; }
.formula { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--muted-2); font-size: 11px; }

.list-builder { min-height: 520px; }
.range-block { margin: 4px 0 22px; padding-top: 8px; border-top: 1px solid var(--line); }
.range-title { margin: 17px 0 14px; color: var(--muted); font-size: 10px; letter-spacing: 1.2px; }
.range-inputs { display: flex; align-items: center; gap: 8px; }
.range-inputs input { min-width: 0; }
.range-inputs em { color: var(--muted-2); font-size: 10px; font-style: normal; }
.form-hint { margin: 12px 0 0; color: var(--muted-2); font-size: 10px; }
.form-hint.error { color: var(--danger); }

.list-output-wrap { padding: 28px; background: #0b0c11; border-left: 1px solid var(--line); }
.output-head { margin-bottom: 16px; }
.output-head > div { display: flex; flex-direction: column; gap: 4px; }
.output-head strong { font-size: 13px; }
.copy-button {
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

#list-output {
  height: 405px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #08090d;
  color: #d9d6e3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.cpa-builder { min-height: 540px; }
.module-heading { margin-bottom: 26px; display: flex; flex-direction: column; gap: 5px; }
.module-heading span, .cpa-result-hero span, .operator-load span { color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.module-heading strong { font-family: "Space Grotesk", sans-serif; font-size: 19px; }
.cpa-results { padding: 32px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); background: #0b0c11; }
.cpa-result-hero { padding: 25px; border: 1px solid rgba(139,92,246,.25); border-radius: 15px; background: linear-gradient(135deg, rgba(139,92,246,.17), rgba(45,212,191,.04)); }
.cpa-result-hero strong { display: block; margin: 8px 0 3px; font-family: "Space Grotesk", sans-serif; font-size: clamp(38px, 4vw, 52px); letter-spacing: -2px; }
.cpa-result-hero small { color: var(--muted); font-size: 11px; }
.cpa-metrics { margin: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cpa-metrics > div { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); }
.cpa-metrics span { display: block; color: var(--muted); font-size: 11px; }
.cpa-metrics b { display: block; margin-top: 4px; font-size: 16px; }
.operator-load { padding: 16px; border: 1px dashed var(--line-bright); border-radius: 12px; }
.operator-load > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.operator-load b { color: var(--cyan); font-size: 13px; }
.operator-load p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }

footer {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
}

.footer-brand { font-size: 12px; }
.brand-mark.mini { width: 26px; height: 26px; border-radius: 7px; font-size: 9px; letter-spacing: 0; }

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 24px;
  padding: 11px 16px;
  border: 1px solid rgba(45,212,191,.22);
  border-radius: 10px;
  background: #12151a;
  color: #ccfbf1;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: .25s ease;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.cooperations-view { min-height: calc(100vh - 82px); padding: 58px 0 90px; }
.coop-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.coop-page-head h1 { margin: 18px 0 4px; font-family: "Space Grotesk", sans-serif; font-size: clamp(36px,5vw,54px); letter-spacing: -2.5px; }
.coop-page-head p { margin: 0; color: var(--muted); }
.new-coop-button { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; background: linear-gradient(135deg,#6d5dfc,#8b5cf6); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 12px 28px rgba(124,58,237,.24); }
.new-coop-button:hover { filter: brightness(1.08); }
.new-coop-button span { font-size: 20px; font-weight: 400; }
.coop-create-sheet { margin:30px 0 22px; padding:22px; display:grid; grid-template-columns:1.55fr .8fr .8fr auto; gap:15px; align-items:end; border:1px solid var(--line); border-radius:16px; background:linear-gradient(145deg,#111520,#0b0e15); }
.coop-create-sheet label { min-width:0; }
.coop-create-sheet label span { display:block; margin-bottom:8px; color:#9ca6b8; font-size:11px; font-weight:700; }
.coop-create-sheet input { width:100%; height:46px; padding:0 13px; border:1px solid var(--line); border-radius:9px; background:#090d14; color:var(--text); outline:none; }
.coop-create-sheet input:focus { border-color:#ef4038; box-shadow:0 0 0 3px rgba(239,64,56,.1); }
.coop-create-sheet .new-coop-button { background:linear-gradient(135deg,#f0443b,#9f0707); box-shadow:0 12px 28px rgba(192,21,17,.22); white-space:nowrap; }
.coop-mode-hint{grid-column:1/-1;display:flex;align-items:center;gap:11px;padding:0 0 14px;border-bottom:1px solid var(--line)}.coop-mode-hint span{color:#58a6ff;font-size:9px;font-weight:900;letter-spacing:1.5px}.coop-mode-hint strong{font-size:14px}.coop-mode-hint small{color:#7e8a9e;font-size:11px}.coop-mode-dialog{width:min(540px,calc(100% - 28px));padding:0}.coop-mode-picker{padding:22px}.coop-mode-help{margin:0 0 16px;padding-top:10px;border-top:1px solid var(--line);color:#76849b;font-size:12px}.coop-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:11px}.coop-mode-options button{min-height:134px;padding:17px 14px;display:flex;flex-direction:column;align-items:flex-start;border:1px solid #1e2d48;border-radius:18px;background:#0a0f1b;color:var(--text);text-align:left;cursor:pointer;transition:.18s ease}.coop-mode-options button:hover{transform:translateY(-2px);border-color:#4d83d7;background:#0d1625}.coop-mode-options button span{color:#559cff;font-size:9px;font-weight:900;letter-spacing:2px}.coop-mode-options button strong{margin:11px 0 8px;font-size:16px}.coop-mode-options button small{color:#7d8ca5;font-size:12px;line-height:1.55}.coop-mode-options .cycle-mode{border-color:rgba(20,190,156,.38);background:rgba(10,48,47,.28)}.coop-mode-options .cycle-mode span{color:#38d8ba}.coop-mode-options .amount-mode{border-color:rgba(18,146,208,.42);background:rgba(9,40,61,.42)}.coop-mode-options .amount-mode span{color:#30c7ff}.coop-mode-options .amount-mode{grid-column:1/2}
.simple-coop-list { padding:22px; border:1px solid var(--line); border-radius:16px; background:#0d1119; }
.coop-list-head { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:18px; }
.coop-list-head span { color:#ef5a54; font-size:10px; font-weight:900; letter-spacing:1.5px; }
.coop-list-head h2 { margin:6px 0 0; font-family:"Space Grotesk",sans-serif; font-size:23px; }
.coop-list-head b { padding:5px 9px; border-radius:999px; background:rgba(239,64,56,.09); color:#ff7770; font-size:10px; }
.simple-table { min-width:680px; }
.simple-table th:last-child,.simple-table td:last-child { text-align:right; }
.sheet-actions { display:flex; justify-content:flex-end; gap:8px; }
.sheet-actions button { min-height:34px; padding:0 11px; border:1px solid rgba(239,64,56,.3); border-radius:8px; background:rgba(239,64,56,.08); color:#ff6e67; font-weight:700; cursor:pointer; }
.sheet-actions .delete-sheet { border-color:var(--line); background:#141923; color:#8e98aa; }
.sheet-dialog { width:min(1180px,calc(100% - 28px)); }
.sheet-dialog-body { padding:25px; }
.dialog-head p { margin:6px 0 0; color:var(--muted); font-size:12px; }
.sheet-table-wrap { max-height:58vh; overflow:auto; border:1px solid var(--line); border-radius:12px; background:#090d14; }
.sheet-table { width:100%; min-width:900px; border-collapse:collapse; }
.sheet-table th { position:sticky; top:0; z-index:1; padding:11px; border-bottom:1px solid var(--line); background:#111722; color:#7f8ba0; font-size:10px; text-align:left; }
.sheet-table td { padding:7px 9px; border-bottom:1px solid rgba(255,255,255,.045); color:#738096; font-size:11px; }
.sheet-table td:first-child { width:48px; text-align:center; }
.sheet-table input { width:100%; height:36px; padding:0 10px; border:1px solid #202a3a; border-radius:8px; background:#080c13; color:#eef1f6; outline:none; }
.sheet-table input:focus { border-color:#ef4038; box-shadow:0 0 0 2px rgba(239,64,56,.1); }
.sheet-dialog{width:min(1500px,calc(100% - 24px))}.sheet-toolbar{margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:14px}.sheet-toolbar label{position:relative;width:min(480px,60%)}.sheet-toolbar label span{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#8190aa;font-size:22px}.sheet-toolbar input{width:100%;height:46px;padding:0 15px 0 43px;border:1px solid #22304a;border-radius:12px;background:#080d18;color:#eef3fb;outline:none}.sheet-toolbar button{height:46px;padding:0 18px;border:1px solid #22304a;border-radius:12px;background:#0b111e;color:#e7ebf4;font-weight:700;cursor:pointer}.sheet-table{min-width:1680px}.sheet-table th{padding:13px 10px;background:#111c31;color:#8496b4;font-size:12px}.sheet-table td{padding:7px 8px}.sheet-table td:nth-child(1){width:48px}.sheet-table td:nth-child(2),.sheet-table td:nth-child(3){min-width:140px}.sheet-table td:nth-child(4){min-width:150px}.sheet-table td:nth-child(n+5):nth-child(-n+9){min-width:125px}.sheet-table td:nth-child(10){min-width:125px}.sheet-table td:nth-child(11){min-width:150px}.sheet-table td:nth-child(12){min-width:180px}.sheet-table input,.sheet-status{height:43px;border-color:#172640;border-radius:12px;background:#080d18}.sheet-money{display:flex;align-items:center;gap:5px;color:#8292ae}.sheet-money span{font-size:12px}.sheet-money input{min-width:82px}.valid-bet-cell input{border-color:rgba(0,199,147,.32)}.row-profit{display:block;color:#00d783;font-size:15px;white-space:nowrap}.row-profit.negative{color:#ff5f68}.sheet-status{width:100%;padding:0 10px;color:#b6c0d2;outline:none;cursor:pointer}.sheet-status.status-ready{border-color:#694b1e;background:#40321d;color:#ffc02b}.sheet-status.status-withdrawn{border-color:#0c5e47;background:#123e35;color:#35dc9c}.sheet-status.status-not-withdrawn{border-color:#67352a;background:#42251f;color:#ff8a2c}.sheet-status.status-blocked{border-color:#642837;background:#411925;color:#ff6975}.sheet-status.status-cancelled{color:#7c879a;text-decoration:line-through}.sheet-table tfoot th{position:sticky;bottom:0;z-index:2;border-top:1px solid #26324a;background:#0d1523;color:#dfe7f5;font-size:12px;text-align:center}.sheet-table tfoot th:first-child{text-align:right}.sheet-table tfoot #valid-bets-total{background:#00a851;color:#fff;font-size:14px}.sheet-table tfoot #profit-total{background:#087a54;color:#fff;font-size:14px}.sheet-table tfoot #profit-total.negative{background:#8f2634}
.period-bar { margin: 30px 0 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.period-bar button { min-height: 36px; padding: 0 15px; border: 1px solid var(--line); border-radius: 9px; background: #0d1017; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.period-bar button.is-active { border-color: #4f8cff; background: #397bea; color: #fff; }
.coop-summary { padding: 24px; display: grid; grid-template-columns: 1.25fr .85fr; gap: 28px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg,#111520,#0b0e15); }
.summary-copy > span { color: #a6afc2; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.summary-copy h2 { margin: 10px 0 4px; font-family: "Space Grotesk",sans-serif; font-size: 25px; }
.summary-copy p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.summary-copy > div { display: flex; gap: 8px; }
.summary-copy b { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); color: #b4bbca; font-size: 10px; }
.summary-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.summary-numbers div { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5,7,12,.24); }
.summary-numbers span { display: block; min-height: 27px; color: #929caf; font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }
.summary-numbers strong { font-size: 17px; }
.coop-kpis { margin: 18px 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.coop-kpis > div { position: relative; min-height: 96px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #10141e; overflow: hidden; }
.coop-kpis > div::before { content:""; position:absolute; inset:0 0 auto; height:3px; background:#4f8cff; }
.coop-kpis .green::before { background:#14d990; }.coop-kpis .orange::before { background:#f5a524; }.coop-kpis .purple::before { background:#b15cff; }
.coop-kpis span { display:block; padding-right:28px; color:var(--muted); font-size:11px; }.coop-kpis strong { display:block; margin-top:7px; font-size:17px; }.coop-kpis i { position:absolute; right:14px; top:16px; width:29px; height:29px; display:grid; place-items:center; border-radius:9px; background:rgba(79,140,255,.12); color:#66a0ff; font-style:normal; }.coop-kpis .green i{color:#22e39e;background:rgba(20,217,144,.1)}.coop-kpis .orange i{color:#f5a524;background:rgba(245,165,36,.1)}.coop-kpis .purple i{color:#c77dff;background:rgba(177,92,255,.1)}
.cost-strip { min-height: 46px; padding: 0 15px; display:flex; align-items:center; justify-content:space-between; border:1px solid var(--line); border-radius:12px; background:#0e121b; font-size:12px; }.cost-strip span{color:#aeb6c7}.cost-strip strong{color:#fb7185;font-size:12px}
.coop-list-shell { margin-top:18px; }.coop-toolbar { display:flex; justify-content:space-between; align-items:center; gap:15px; }.coop-search { position:relative; width:260px; }.coop-search span { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--muted); }.coop-search input { height:40px; padding-left:34px; font-weight:500; }.coop-toolbar > div { padding:3px; display:flex; border:1px solid var(--line); border-radius:10px; background:#0e121b; }.coop-toolbar button,.status-tabs button{padding:7px 10px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:11px;cursor:pointer}.coop-toolbar button.is-active,.status-tabs button.is-active{background:rgba(79,140,255,.12);color:#69a2ff}
.status-tabs { margin:20px 0 12px; width:fit-content; padding:3px; display:flex; gap:3px; border:1px solid var(--line); border-radius:9px; background:#101522; }
.coop-table-wrap { position:relative; min-height:230px; border:1px solid var(--line); border-radius:14px; overflow:auto; background:#0d1119; }.coop-table{width:100%;border-collapse:collapse;min-width:920px}.coop-table th{padding:12px 13px;border-bottom:1px solid var(--line);color:#78859b;font-size:10px;text-align:left}.coop-table td{padding:14px 13px;border-bottom:1px solid rgba(255,255,255,.05);color:#cbd0db;font-size:12px}.coop-table td strong{display:block;color:#f1f3f8}.coop-table td small{color:var(--muted-2)}.coop-status{padding:4px 8px;border-radius:999px;background:rgba(20,217,144,.1);color:#3ce6aa;font-size:10px;font-weight:800}.row-actions{display:flex;gap:5px}.row-actions button{width:29px;height:29px;border:1px solid var(--line);border-radius:7px;background:#131823;color:#aeb6c7;cursor:pointer}.coop-empty{position:absolute;inset:43px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);text-align:center}.coop-empty span{font-size:30px;color:#576782}.coop-empty strong{margin-top:8px;color:#c6ccda}.coop-empty p{margin:4px 0;font-size:12px}.coop-empty[hidden]{display:none}
.coop-dialog { width:min(780px,calc(100% - 28px)); max-height:90vh; padding:0; border:1px solid var(--line-bright); border-radius:18px; background:#10131b; color:var(--text); box-shadow:0 35px 100px rgba(0,0,0,.65); }.coop-dialog::backdrop{background:rgba(2,3,6,.78);backdrop-filter:blur(5px)}.coop-dialog form{padding:26px;overflow:auto}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:23px}.dialog-head span{color:var(--purple-light);font-size:10px;font-weight:800;letter-spacing:1.5px}.dialog-head h2{margin:5px 0 0;font-family:"Space Grotesk",sans-serif;font-size:27px}.dialog-head button{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#171a24;color:var(--muted);font-size:22px;cursor:pointer}.dialog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.dialog-list{margin-top:15px}.dialog-list textarea{width:100%;padding:13px;border:1px solid var(--line);border-radius:10px;resize:vertical;background:#0c0e14;color:var(--text);font:12px ui-monospace,monospace;outline:none}.dialog-actions{margin-top:20px;display:flex;justify-content:flex-end;gap:10px}.dialog-actions>button:first-child{padding:0 18px;border:1px solid var(--line);border-radius:10px;background:#171a24;color:var(--muted);font-weight:700;cursor:pointer}
.dialog-intro{margin:-13px 0 18px;padding-bottom:15px;border-bottom:1px solid var(--line);color:var(--muted);font-size:12px}.creation-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.creation-mode{min-height:120px;padding:15px;border:1px solid var(--line);border-radius:15px;background:#0c1019;color:var(--text);text-align:left;cursor:pointer}.creation-mode:hover{border-color:rgba(79,140,255,.45)}.creation-mode.is-active{border-color:rgba(45,212,191,.42);background:rgba(45,212,191,.06)}.creation-mode>span{display:block;color:#5da3ff;font-size:9px;font-weight:900;letter-spacing:1.7px}.creation-mode.is-active>span{color:var(--cyan)}.creation-mode strong{display:block;margin:8px 0 5px;font-size:14px}.creation-mode p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.creation-steps{margin:26px 0 22px;display:flex;align-items:center;justify-content:center}.creation-steps>span{width:62px;height:1px;background:var(--line)}.creation-steps button{padding:0;display:flex;align-items:center;gap:6px;border:0;background:transparent;color:#6f798c;font-size:10px}.creation-steps button i{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#172033;font-style:normal}.creation-steps button.is-active{color:#e6e9ef;font-weight:800}.creation-steps button.is-active i{background:#4f8cff;color:white;box-shadow:0 0 0 2px rgba(79,140,255,.22)}.form-step h3{margin:0 0 16px;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:13px}.form-step[hidden]{display:none}.dialog-actions>#previous-step{padding:0 18px;border:1px solid var(--line);border-radius:10px;background:#171a24;color:#c1c7d2;font-weight:700;cursor:pointer}
.networks-view{min-height:calc(100vh - 82px);padding:58px 0 90px}.networks-layout{margin-top:32px;display:grid;grid-template-columns:minmax(270px,.62fr) 1.38fr;gap:18px;align-items:start}.network-create-card,.network-list-card{padding:25px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#111520,#0b0e15)}.module-kicker,.network-list-head span{color:var(--purple-light);font-size:10px;font-weight:800;letter-spacing:1.6px}.network-create-card h2,.network-list-head h2{margin:7px 0 4px;font-family:"Space Grotesk",sans-serif;font-size:24px}.network-create-card>p{margin:0 0 22px;color:var(--muted);font-size:13px}.network-create-card .new-coop-button{width:100%;margin-top:15px}.network-list-card{min-height:320px}.network-list-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid var(--line)}.network-list-head b{padding:5px 9px;border-radius:999px;background:rgba(45,212,191,.09);color:var(--cyan);font-size:10px}.network-items{display:flex;flex-direction:column}.network-item{min-height:62px;padding:10px 4px;display:flex;align-items:center;gap:13px;border-bottom:1px solid rgba(255,255,255,.055)}.network-item-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:rgba(139,92,246,.12);color:var(--purple-light)}.network-item strong{font-size:14px}.network-item small{display:block;color:var(--muted-2);font-size:10px}.network-item-actions{margin-left:auto;display:flex;gap:6px}.network-item-actions button{height:31px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#151925;color:var(--muted);font-size:11px;cursor:pointer}.network-item-actions button:last-child:hover{color:var(--danger);border-color:rgba(251,113,133,.25)}.network-empty{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);text-align:center}.network-empty[hidden]{display:none}.network-empty>span{font-size:32px;color:#59647a}.network-empty strong{margin-top:8px;color:#cbd0dc}.network-empty p{max-width:330px;margin:4px 0;font-size:12px}

@media (max-width: 860px) {
  .coop-create-sheet{grid-template-columns:1fr 1fr}.coop-create-sheet label:first-child{grid-column:1/-1}.coop-create-sheet .new-coop-button{width:100%}
  .networks-layout{grid-template-columns:1fr}
  .coop-summary { grid-template-columns:1fr; }.coop-kpis{grid-template-columns:repeat(2,1fr)}.dialog-grid{grid-template-columns:repeat(2,1fr)}
  .site-content { margin-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-toggle { position: fixed; z-index: 42; left: 14px; top: 16px; width: 40px; height: 40px; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: #12141b; box-shadow: 0 8px 26px rgba(0,0,0,.28); }
  .sidebar-toggle span { width: 100%; height: 2px; border-radius: 4px; background: #dfe3ec; }
  .sidebar-backdrop { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(3,4,7,.68); opacity: 0; pointer-events: none; transition: opacity .24s ease; }
  .sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .topbar { padding-left: 50px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 72px 0; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero h1 { letter-spacing: -3px; }
  .calculator-shell, .list-builder, .cpa-builder { grid-template-columns: 1fr; }
  .calculator-display, .list-output-wrap, .cpa-results { border-left: 0; border-top: 1px solid var(--line); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading p { text-align: left; }
}

@media (max-width: 620px) {
  .coop-create-sheet{grid-template-columns:1fr;padding:18px}.coop-create-sheet label:first-child{grid-column:auto}.simple-coop-list{padding:15px}.coop-list-head{align-items:flex-start}.sheet-dialog-body{padding:18px}
  .creation-modes{grid-template-columns:1fr}.creation-mode{min-height:104px}.creation-steps>span{width:20px}.creation-steps button{font-size:0}.creation-steps button i{font-size:10px}.coop-dialog{max-height:94vh}
  .networks-view{padding:72px 0 65px}.network-create-card,.network-list-card{padding:19px}.network-item{align-items:flex-start}.network-item-actions{flex-direction:column}
  .cooperations-view{padding:72px 0 65px}.coop-page-head{align-items:flex-start;flex-direction:column}.coop-page-head .new-coop-button{width:100%}.period-bar{flex-wrap:nowrap;overflow:auto;padding-bottom:4px}.period-bar button{flex:0 0 auto}.coop-summary{padding:18px}.summary-numbers{grid-template-columns:1fr 1fr}.coop-kpis{grid-template-columns:1fr}.coop-toolbar{align-items:stretch;flex-direction:column}.coop-search{width:100%}.coop-toolbar>div{align-self:flex-end}.status-tabs{max-width:100%;overflow:auto}.dialog-grid{grid-template-columns:1fr}.coop-dialog form{padding:20px}.dialog-actions{flex-direction:column-reverse}.dialog-actions button{min-height:45px}.cost-strip{align-items:flex-start;flex-direction:column;justify-content:center;gap:3px;padding:10px 14px}
  .topbar, main, footer { width: min(100% - 28px, 1180px); }
  .topbar { height: 70px; }
  .topbar nav { display: none; }
  .status { font-size: 0; }
  .hero { min-height: auto; padding: 58px 0 70px; }
  .hero h1 { margin-top: 20px; font-size: 43px; letter-spacing: -2.8px; }
  .hero-copy > p { font-size: 15px; }
  .hero-panel { padding: 18px; }
  .kpi-card.featured b { font-size: 32px; }
  .workspace-section { padding: 70px 0; }
  .section-heading > div { align-items: flex-start; }
  .section-heading h2 { font-size: 31px; }
  .calculator-inputs, .list-controls, .calculator-display, .list-output-wrap, .cpa-controls, .cpa-results { padding: 22px; }
  .field-row.two-cols, .field-row.three-cols { grid-template-columns: 1fr; }
  .quick-values { grid-template-columns: repeat(3, 1fr); }
  .calculator-display > strong { font-size: 43px; letter-spacing: -2.5px; }
  .display-breakdown { grid-template-columns: 1fr; }
  .list-builder { min-height: 0; }
  .tab { flex: 0 0 auto; }
  .cpa-metrics { grid-template-columns: 1fr; }
  .operator-load > div { align-items: flex-start; flex-direction: column; }
  #list-output { height: 340px; }
  footer { padding: 35px 0; flex-direction: column; justify-content: center; text-align: center; }
}

/* Painel de cooperações inspirado na referência enviada */
.cooperations-view{padding:0 0 90px}
.coop-admin-bar{min-height:62px;margin:0 calc((100vw - 248px - min(1180px,calc(100vw - 248px - 48px)))/-2);padding:0 max(18px,calc((100vw - 248px - min(1180px,calc(100vw - 248px - 48px)))/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.coop-admin-bar>div{display:flex;flex-direction:column}.coop-admin-bar strong{font-size:14px}.coop-admin-bar span{color:var(--muted);font-size:11px}.coop-admin-bar>b{padding:7px 12px;border:1px solid rgba(0,200,145,.28);border-radius:999px;background:rgba(0,200,145,.07);color:#05d99d;font-size:10px}.coop-admin-bar b i{display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:#05d99d;box-shadow:0 0 9px #05d99d}
.cooperations-view .coop-page-head{padding-top:34px}.cooperations-view .coop-page-head h1{margin:0 0 2px;font-size:25px;letter-spacing:-.8px}.cooperations-view .new-coop-button{min-height:38px;background:#00c793;color:#04110d;box-shadow:0 10px 26px rgba(0,199,147,.14)}
.cooperations-view .period-bar{margin:24px 0}.cooperations-view .period-bar button.is-active{border-color:#00c793;background:#00c793;color:#04110d}
.coop-dashboard-kpis{margin:24px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.coop-dashboard-kpis article{min-height:110px;padding:20px;border:1px solid #2b303a;border-radius:14px;background:#15181f}.coop-dashboard-kpis span{display:block;color:#9aa8c1;font-size:10px;letter-spacing:.5px}.coop-dashboard-kpis strong{display:block;margin-top:8px;font-family:"Space Grotesk",sans-serif;font-size:29px}.coop-dashboard-kpis .profit-kpi strong{color:#00c793}
.cooperations-view .coop-create-sheet{margin:18px 0 22px;background:#12151c}.cooperations-view .coop-create-sheet[hidden]{display:none}.cooperations-view .coop-create-sheet .new-coop-button{background:#00c793}
.cooperations-view .simple-coop-list{padding:0;border-color:#2b303a;background:#14171e;overflow:hidden}.cooperations-view .coop-list-head{min-height:68px;padding:0 20px;border-bottom:1px solid #2b303a}.cooperations-view .coop-list-head h2{margin:0;font-size:14px}.coop-status-tabs{padding:3px;display:flex;gap:2px;border-radius:9px;background:#1c2028}.coop-status-tabs button{padding:7px 10px;border:0;border-radius:7px;background:transparent;color:#93a0b7;font-size:11px;cursor:pointer}.coop-status-tabs button.is-active{background:#262b35;color:#fff;box-shadow:inset 0 0 0 1px #3a414e}.coop-status-tabs span{color:inherit!important;font-size:inherit!important;letter-spacing:0!important}.cooperations-view .simple-coop-list .coop-table-wrap{min-height:140px;border:0;border-radius:0;background:#14171e}.cooperations-view .simple-coop-list .coop-empty{inset:0;min-height:140px}.cooperations-view .simple-coop-list .coop-empty p{font-size:12px;color:#8e9bb0}
@media(max-width:860px){.coop-dashboard-kpis{grid-template-columns:repeat(2,1fr)}.coop-admin-bar{margin:0 calc((100vw - min(1180px,calc(100vw - 48px)))/-2);padding:0 max(18px,calc((100vw - min(1180px,calc(100vw - 48px)))/2))}}
@media(max-width:620px){.coop-dashboard-kpis{grid-template-columns:1fr}.cooperations-view .coop-list-head{align-items:flex-start;flex-direction:column;padding:16px}.coop-status-tabs{width:100%;overflow:auto}.coop-status-tabs button{white-space:nowrap}.coop-admin-bar{padding-left:52px}.coop-admin-bar span{display:none}}

/* Planilha expandida: usa toda a área disponível sem alterar os dados */
@media (min-width: 1050px) {
  .coop-dialog.sheet-dialog{position:fixed;z-index:20;inset:0 0 0 248px;width:calc(100vw - 248px);height:100vh;max-width:none;max-height:none;margin:0;padding:0;border-radius:0;border:0}
  .sheet-dialog-body{height:100%;padding:16px 18px;display:flex;flex-direction:column;overflow:hidden}
  .sheet-dialog .dialog-head{flex:0 0 auto;margin-bottom:10px}
  .sheet-dialog .dialog-head h2{font-size:22px}
  .sheet-dialog .sheet-toolbar{flex:0 0 auto;margin-bottom:10px}
  .sheet-dialog .sheet-toolbar input,.sheet-dialog .sheet-toolbar button{height:40px}
  .sheet-dialog .sheet-table-wrap{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;border-radius:10px}
  .sheet-dialog .sheet-table{width:100%;min-width:0;table-layout:fixed}
  .sheet-dialog .sheet-table th{padding:9px 5px;font-size:10px;white-space:normal;line-height:1.15}
  .sheet-dialog .sheet-table td{min-width:0;padding:4px 5px}
  .sheet-dialog .sheet-table input,.sheet-dialog .sheet-status{width:100%;min-width:0;height:34px;padding:0 7px;border-radius:8px;font-size:11px}
  .sheet-dialog .sheet-money{gap:3px}.sheet-dialog .sheet-money span{font-size:9px}.sheet-dialog .sheet-money input{min-width:0}
  .sheet-dialog .row-profit{font-size:11px}
  .sheet-dialog .sheet-table th:nth-child(1){width:3%}.sheet-dialog .sheet-table th:nth-child(2){width:10%}.sheet-dialog .sheet-table th:nth-child(3){width:8%}.sheet-dialog .sheet-table th:nth-child(4){width:8%}.sheet-dialog .sheet-table th:nth-child(5){width:8%}.sheet-dialog .sheet-table th:nth-child(6){width:8%}.sheet-dialog .sheet-table th:nth-child(7){width:7%}.sheet-dialog .sheet-table th:nth-child(8){width:7%}.sheet-dialog .sheet-table th:nth-child(9){width:7%}.sheet-dialog .sheet-table th:nth-child(10){width:7%}.sheet-dialog .sheet-table th:nth-child(11){width:10%}.sheet-dialog .sheet-table th:nth-child(12){width:17%}
  .sheet-dialog .dialog-actions{flex:0 0 auto;margin-top:10px}
  .sheet-dialog .dialog-actions button{min-height:38px}
}

/* Painel ProfitX Intelligence */
.intelligence-dashboard{min-height:auto;padding:48px 0 72px;display:block}
.intelligence-dashboard[hidden]{display:none!important}
.workspace-section[hidden]{display:none!important}
.dashboard-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.dashboard-heading h1{margin:14px 0 3px;font-size:clamp(32px,4vw,48px);line-height:1;letter-spacing:-2px}.dashboard-heading p{margin:0;color:var(--muted);font-size:14px}.dashboard-live{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid rgba(45,212,191,.2);border-radius:999px;background:rgba(45,212,191,.055);color:var(--cyan);font-size:10px;font-weight:800;letter-spacing:.7px}.dashboard-live i{width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 12px var(--cyan)}
.dashboard-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.dashboard-metrics article{position:relative;min-height:122px;padding:18px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(150deg,#161923,#0e1118);overflow:hidden}.dashboard-metrics article:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#4c5770}.dashboard-metrics .metric-net:before{background:var(--cyan)}.dashboard-metrics .metric-loss:before{background:var(--danger)}.dashboard-metrics span{color:#8490a7;font-size:10px;font-weight:800;letter-spacing:.7px}.dashboard-metrics strong{display:block;margin:12px 0 4px;font-family:"Space Grotesk",sans-serif;font-size:23px;letter-spacing:-.7px}.dashboard-metrics .metric-net strong{color:#20dda3}.dashboard-metrics .metric-net strong.negative{color:#fb7185}.dashboard-metrics .metric-loss strong{color:#ff7187}.dashboard-metrics small{color:#657086;font-size:10px}
.dashboard-grid{margin-top:14px;display:grid;grid-template-columns:1.25fr .75fr;gap:14px}.dashboard-card{position:relative;min-height:270px;padding:22px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(150deg,rgba(20,23,32,.98),rgba(10,13,19,.98));overflow:hidden}.dashboard-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.dashboard-card-head span{color:#78849a;font-size:9px;font-weight:900;letter-spacing:1.4px}.dashboard-card-head h2{margin:6px 0 0;font-family:"Space Grotesk",sans-serif;font-size:20px;letter-spacing:-.5px}.dashboard-card-head>b{padding:5px 8px;border-radius:999px;background:rgba(45,212,191,.08);color:var(--cyan);font-size:9px}.dashboard-card-head button{padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#151a24;color:#aeb7c7;font-size:10px;cursor:pointer}
.network-ranking{margin-top:20px;display:flex;flex-direction:column;gap:13px}.network-row{display:grid;grid-template-columns:28px minmax(90px,1fr) minmax(120px,2fr) auto;gap:10px;align-items:center}.network-position{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#1b2130;color:#8f9db4;font-size:10px;font-weight:800}.network-name strong{display:block;font-size:12px}.network-name small{display:block;color:#657086;font-size:9px}.network-bar{height:7px;border-radius:999px;background:#202633;overflow:hidden}.network-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6d5dfc,#2dd4bf)}.network-value{text-align:right}.network-value strong{display:block;color:#25dda5;font-size:12px}.network-value strong.negative{color:#fb7185}.network-value small{color:#647086;font-size:9px}.network-empty-state{min-height:150px;display:grid;place-items:center;color:#69758a;font-size:12px;text-align:center}
.ai-advisor{background:radial-gradient(circle at 95% 0,rgba(139,92,246,.18),transparent 36%),linear-gradient(150deg,#151723,#0b0e15)}.ai-orbit{position:absolute;right:-38px;top:-45px;width:145px;height:145px;border:1px solid rgba(167,139,250,.22);border-radius:50%;display:grid;place-items:center}.ai-orbit:before,.ai-orbit:after{content:"";position:absolute;border:1px solid rgba(45,212,191,.13);border-radius:50%}.ai-orbit:before{inset:18px}.ai-orbit:after{inset:36px}.ai-orbit span{color:rgba(255,255,255,.16);font-family:"Space Grotesk";font-size:22px;font-weight:900}.ai-advisor>p{position:relative;margin:22px 0 15px;color:#d9deea;font-size:13px;line-height:1.55}.ai-insights{display:flex;flex-direction:column;gap:8px}.ai-insight{padding:10px 11px;border-left:2px solid var(--purple-light);border-radius:0 9px 9px 0;background:rgba(139,92,246,.06);color:#9da8ba;font-size:11px;line-height:1.45}.ai-insight.positive{border-color:var(--cyan);background:rgba(45,212,191,.05)}.ai-insight.warning{border-color:#f59e0b;background:rgba(245,158,11,.05)}.ai-footnote{position:absolute;left:22px;bottom:14px;color:#505a6c;font-size:8px}
.dashboard-recent{margin-top:17px}.recent-row{min-height:50px;display:grid;grid-template-columns:1fr .65fr .55fr auto;gap:12px;align-items:center;border-bottom:1px solid rgba(255,255,255,.055)}.recent-row:last-child{border-bottom:0}.recent-row strong{display:block;font-size:12px}.recent-row small{color:#68748a;font-size:9px}.recent-row span{color:#939eb1;font-size:11px}.recent-row b{color:#22dca3;font-size:12px}.recent-row b.negative{color:#fb7185}
.health-grid{margin-top:21px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.health-grid>div{min-height:79px;padding:13px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.02)}.health-grid span{display:block;color:#748096;font-size:10px}.health-grid strong{display:block;margin-top:7px;font-size:18px}.legacy-kpis{display:none}
.coop-create-sheet select{width:100%;height:46px;padding:0 13px;border:1px solid var(--line);border-radius:9px;background:#090d14;color:var(--text);outline:none}.coop-create-sheet{grid-template-columns:1.35fr 1fr .8fr .8fr auto}
@media(max-width:1100px){.dashboard-metrics{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr}.ai-advisor{min-height:300px}.coop-create-sheet{grid-template-columns:1fr 1fr}.coop-create-sheet .new-coop-button{width:100%}}
@media(max-width:700px){.intelligence-dashboard{padding:76px 0 60px}.dashboard-heading{align-items:flex-start;flex-direction:column}.dashboard-metrics{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1fr}.dashboard-card{padding:18px}.network-row{grid-template-columns:28px 1fr auto}.network-bar{display:none}.recent-row{grid-template-columns:1fr auto}.recent-row>span,.recent-row>small{display:none}.ai-footnote{position:static;display:block;margin-top:14px}.coop-create-sheet{grid-template-columns:1fr}}
@media(max-width:460px){.dashboard-metrics{grid-template-columns:1fr}.health-grid{grid-template-columns:1fr}}

/* Gestão de chaves PIX */
.pix-view{min-height:calc(100vh - 82px);padding:28px 0 80px}.pix-view[hidden]{display:none!important}.pix-hero{padding:25px 22px;display:grid;grid-template-columns:1.35fr .9fr;gap:28px;border:1px solid rgba(245,158,11,.2);border-radius:18px;background:radial-gradient(circle at 0 0,rgba(245,158,11,.13),transparent 36%),linear-gradient(145deg,#17151a,#0c1018)}.pix-hero h1{margin:10px 0 5px;font-family:"Space Grotesk",sans-serif;font-size:29px;letter-spacing:-1px}.pix-hero p{margin:0 0 16px;color:var(--muted);font-size:12px}.pix-hero-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pix-hero-stats>div{padding:14px;border:1px solid var(--line);border-radius:14px;background:rgba(5,8,13,.3)}.pix-hero-stats span{display:block;color:#8e98aa;font-size:9px;font-weight:800;letter-spacing:1.4px}.pix-hero-stats strong{display:block;margin-top:8px;font-size:17px}.pix-group-form{margin:14px 0;padding:18px;display:grid;grid-template-columns:1.2fr .8fr 1fr auto;gap:12px;align-items:end;border:1px solid var(--line);border-radius:15px;background:#11151e}.pix-group-form[hidden]{display:none}.pix-group-form label span{display:block;margin-bottom:7px;color:#8f9aac;font-size:10px}.pix-group-form input{width:100%;height:42px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:#090d14;color:var(--text);outline:none}.pix-summary-grid{margin:18px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.pix-summary-grid article{min-height:86px;padding:16px;border:1px solid var(--line);border-top:2px solid #4f8cff;border-radius:14px;background:#10141d}.pix-summary-grid span{color:#7f8ba0;font-size:10px}.pix-summary-grid strong{display:block;margin-top:6px;font-size:20px}.pix-toolbar{margin:10px 0 18px}.pix-toolbar label{position:relative;display:block;width:min(360px,100%)}.pix-toolbar span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#708099}.pix-toolbar input{width:100%;height:38px;padding:0 12px 0 35px;border:1px solid var(--line);border-radius:9px;background:#090d14;color:var(--text);outline:none}.pix-groups{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.pix-group-card{padding:19px;border:1px solid #1d2a41;border-radius:15px;background:#0d131f}.pix-card-head,.pix-card-head>div{display:flex;align-items:center;gap:10px}.pix-card-head{justify-content:space-between}.pix-bank-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:rgba(79,140,255,.12);color:#67a2ff}.pix-card-head h3{margin:0;font-size:13px}.pix-card-head p{margin:2px 0 0;color:#687892;font-size:9px}.pix-card-head>b{padding:4px 7px;border:1px solid #223250;border-radius:999px;color:#b8c3d3;font-size:9px}.pix-card-status{margin:14px 0 12px;display:flex;gap:12px;color:#66758d;font-size:10px}.pix-card-status .available,.pix-key-row .available{color:#19d893}.pix-card-actions{display:flex;gap:7px;flex-wrap:wrap}.pix-card-actions button{min-height:33px;padding:0 10px;border:1px solid #233451;border-radius:8px;background:#101725;color:#d7dce7;font-size:10px;font-weight:700;cursor:pointer}.pix-card-actions .danger{color:#fb7185}.pix-key-list{margin-top:14px;padding-top:10px;border-top:1px solid var(--line)}.pix-key-list[hidden]{display:none}.pix-key-row{min-height:49px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.05)}.pix-key-row>div{min-width:0;flex:1}.pix-key-row strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:11px}.pix-key-row small{display:block;color:#6e7b90;font-size:9px}.pix-key-row>span{font-size:9px}.pix-key-row .used{color:#f59e0b}.pix-key-row button{width:27px;height:27px;border:0;border-radius:7px;background:#191e29;color:#8994a6;cursor:pointer}.pix-no-keys{color:#69758a;font-size:10px}.pix-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed var(--line);border-radius:14px;color:#7b879c}.pix-empty[hidden]{display:none}.pix-empty p{margin:4px 0;font-size:11px}.pix-key-dialog select,.pix-key-dialog input{width:100%;height:43px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:#0a0e15;color:var(--text)}
.pix-key-select{width:100%;height:34px;min-width:0;padding:0 5px;border:1px solid rgba(45,212,191,.22);border-radius:8px;background:#081117;color:#bdece3;font-size:9px;outline:none}
@media(min-width:1050px){.sheet-dialog .sheet-table th:nth-child(1){width:3%}.sheet-dialog .sheet-table th:nth-child(2){width:8%}.sheet-dialog .sheet-table th:nth-child(3){width:7%}.sheet-dialog .sheet-table th:nth-child(4){width:7%}.sheet-dialog .sheet-table th:nth-child(5){width:10%}.sheet-dialog .sheet-table th:nth-child(6){width:7%}.sheet-dialog .sheet-table th:nth-child(7){width:7%}.sheet-dialog .sheet-table th:nth-child(8){width:6%}.sheet-dialog .sheet-table th:nth-child(9){width:6%}.sheet-dialog .sheet-table th:nth-child(10){width:6%}.sheet-dialog .sheet-table th:nth-child(11){width:6%}.sheet-dialog .sheet-table th:nth-child(12){width:10%}.sheet-dialog .sheet-table th:nth-child(13){width:17%}}
@media(max-width:1050px){.pix-groups{grid-template-columns:1fr 1fr}.pix-hero{grid-template-columns:1fr}.pix-group-form{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.pix-view{padding:72px 0 60px}.pix-groups,.pix-summary-grid,.pix-group-form{grid-template-columns:1fr}.pix-hero{padding:19px}.pix-hero-stats{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.coop-mode-options{grid-template-columns:1fr}.coop-mode-options .amount-mode{grid-column:auto}.coop-mode-hint{align-items:flex-start;flex-direction:column;gap:4px}}

.pix-key-row{padding:8px 0;align-items:flex-start}.pix-key-row em{display:block;margin-top:4px;color:#a98a55;font-size:8px;font-style:normal;line-height:1.45}.pix-key-row>span{max-width:105px;text-align:right;line-height:1.35}.assign-coop-field{display:block}.assign-coop-field span{display:block;margin-bottom:7px;color:#8f9aac;font-size:10px}.assign-coop-field select{width:100%;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:#0a0e15;color:var(--text);outline:none}.pix-assign-dialog .dialog-head p{max-width:430px;margin:5px 0 0;color:#7f8ba0;font-size:10px;line-height:1.45}
.pix-key-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pix-key-columns section{min-width:0}.pix-key-columns header{height:30px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.08);color:#20d894;font-size:10px;font-weight:800}.pix-key-columns header b{min-width:20px;padding:2px 6px;border-radius:999px;background:rgba(32,216,148,.1);text-align:center}.pix-key-columns .used-keys header{color:#f59e0b}.pix-key-columns .used-keys header b{background:rgba(245,158,11,.12)}.pix-key-row.is-used{padding-left:7px;border-left:2px solid rgba(245,158,11,.55);background:linear-gradient(90deg,rgba(245,158,11,.06),transparent 70%)}.pix-key-row em b,.pix-key-row em span{display:block}.pix-key-row em b{color:#f2b94b;font-size:9px}.pix-key-row em span{margin-top:1px;color:#7f8ba0}.pix-key-row.is-used>span{padding:3px 6px;border-radius:999px;background:rgba(245,158,11,.1)}
@media(max-width:1250px){.pix-key-columns{grid-template-columns:1fr}}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ProfitX brand theme */
.ambient-one{background:radial-gradient(circle,rgba(218,24,31,.2),transparent 67%)}.ambient-two{background:radial-gradient(circle,rgba(242,162,27,.08),transparent 68%)}
.side-nav a.is-active,.side-nav button.is-active{background:linear-gradient(90deg,rgba(215,25,32,.22),rgba(215,25,32,.06));color:#fff;box-shadow:inset 3px 0 #e3292f}.side-nav a.is-active i,.side-nav button.is-active i{color:#ff4a43}.nav-group-title b,.side-nav button small{background:rgba(215,25,32,.13);color:#ff625c}.sidebar-foot .online-dot{background:#f2a21b;box-shadow:0 0 10px rgba(242,162,27,.7)}
.new-coop-button,.cooperations-view .new-coop-button,.cooperations-view .coop-create-sheet .new-coop-button{background:linear-gradient(135deg,#f13b36,#a8070b);color:#fff;box-shadow:0 12px 28px rgba(194,16,22,.24)}.dashboard-live,.eyebrow,.dashboard-card-head>div>span,.module-kicker{color:#ff4a43}.dashboard-live i,.eyebrow i{background:#f2a21b;box-shadow:0 0 12px rgba(242,162,27,.55)}
.topbar-actions{display:flex;align-items:center;gap:10px}.theme-toggle{height:38px;padding:0 13px;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(215,25,32,.3);border-radius:10px;background:rgba(215,25,32,.08);color:#ffaaa6;font-size:12px;font-weight:800;cursor:pointer;transition:.2s ease}.theme-toggle:hover{border-color:#e3292f;background:rgba(215,25,32,.15)}.theme-toggle-icon{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:rgba(242,162,27,.13);color:#f7b942;font-size:14px}

body[data-theme="light"]{
  --bg:#f5f6f8;--bg-soft:#eef0f4;--surface:rgba(255,255,255,.94);--surface-solid:#fff;--surface-2:#f1f3f6;--line:rgba(28,31,38,.11);--line-bright:rgba(215,25,32,.28);--text:#17191f;--muted:#646b78;--muted-2:#89909c;--shadow:0 22px 60px rgba(28,31,38,.1);
  background:#f5f6f8;color:var(--text)
}
body[data-theme="light"] .sidebar{background:#fff;border-right-color:#dde0e6;box-shadow:14px 0 40px rgba(35,38,44,.07)}
body[data-theme="light"] .nav-group-title,body[data-theme="light"] .nav-group-title i{color:#727987}body[data-theme="light"] .side-nav a,body[data-theme="light"] .side-nav button{color:#535a67}body[data-theme="light"] .side-nav a:hover,body[data-theme="light"] .side-nav button:hover{background:#f4f5f7;color:#17191f}body[data-theme="light"] .side-nav a.is-active,body[data-theme="light"] .side-nav button.is-active{background:linear-gradient(90deg,rgba(215,25,32,.13),rgba(215,25,32,.035));color:#9f1015}
body[data-theme="light"] .topbar,body[data-theme="light"] footer{border-color:#dfe2e7}body[data-theme="light"] .theme-toggle{background:#fff;color:#8d161a;border-color:#e2b5b7;box-shadow:0 4px 14px rgba(33,35,40,.06)}body[data-theme="light"] .status{background:#fff;color:#5f6671;border-color:#dde0e5}
body[data-theme="light"] .ambient-one{background:radial-gradient(circle,rgba(215,25,32,.1),transparent 67%)}body[data-theme="light"] .ambient-two{background:radial-gradient(circle,rgba(242,162,27,.08),transparent 68%)}
body[data-theme="light"] .dashboard-card,body[data-theme="light"] .dashboard-metrics article,body[data-theme="light"] .health-grid>div,body[data-theme="light"] .network-row,body[data-theme="light"] .recent-row,body[data-theme="light"] .operation-card,body[data-theme="light"] .calculator-card,body[data-theme="light"] .list-card,body[data-theme="light"] .summary-card,body[data-theme="light"] .coop-dashboard-kpis article,body[data-theme="light"] .coop-list-shell,body[data-theme="light"] .coop-create-sheet,body[data-theme="light"] .network-create-card,body[data-theme="light"] .network-list-card,body[data-theme="light"] .pix-summary-grid article,body[data-theme="light"] .pix-group-card{background:#fff;border-color:#dfe2e7;box-shadow:0 10px 30px rgba(31,34,40,.055)}
body[data-theme="light"] .pix-hero{background:radial-gradient(circle at 0 0,rgba(215,25,32,.09),transparent 38%),linear-gradient(145deg,#fff,#f3f4f6);border-color:rgba(215,25,32,.18)}
body[data-theme="light"] input,body[data-theme="light"] select,body[data-theme="light"] textarea,body[data-theme="light"] .sheet-toolbar input,body[data-theme="light"] .pix-toolbar input{background:#f8f9fb;color:#1d2027;border-color:#d9dde4}
body[data-theme="light"] .coop-dialog{background:#fff;color:#17191f;border-color:#d9dde4}body[data-theme="light"] .dialog-head button,body[data-theme="light"] .dialog-actions>button:first-child{background:#f2f3f6;color:#5d6470;border-color:#d9dde4}body[data-theme="light"] .coop-mode-options button{background:#f8f9fb;color:#1c1f25;border-color:#d9dde4}body[data-theme="light"] .coop-mode-options .cycle-mode{background:#eefaf7;border-color:#b8e4d9}body[data-theme="light"] .coop-mode-options .amount-mode{background:#eef7fc;border-color:#b8dced}
body[data-theme="light"] .sheet-table-wrap{background:#fff;border-color:#d9dde4}body[data-theme="light"] .sheet-table th{background:#eceff3;color:#596170;border-color:#d7dbe2}body[data-theme="light"] .sheet-table td{color:#4f5867;border-color:#e7e9ed}body[data-theme="light"] .sheet-table input,body[data-theme="light"] .sheet-table select{background:#f7f8fa;color:#22262d}
body[data-theme="light"] .coop-admin-bar{background:#fff;border-color:#dfe2e7}body[data-theme="light"] .period-bar button,body[data-theme="light"] .status-tabs button,body[data-theme="light"] .coop-status-tabs button{background:#fff;color:#5d6572;border-color:#d9dde4}body[data-theme="light"] .period-bar button.is-active,body[data-theme="light"] .status-tabs button.is-active,body[data-theme="light"] .coop-status-tabs button.is-active{background:#c71920;color:#fff;border-color:#c71920}
body[data-theme="light"] .pix-key-row.is-used{background:linear-gradient(90deg,rgba(242,162,27,.1),transparent 75%)}body[data-theme="light"] .pix-key-row button,body[data-theme="light"] .pix-card-actions button{background:#f4f5f7;color:#555d69;border-color:#d9dde4}body[data-theme="light"] .pix-key-select{background:#f7f8fa;color:#176e5d}
body[data-theme="light"] .sidebar-toggle{background:#fff;border-color:#d9dde4}body[data-theme="light"] .sidebar-toggle span{background:#2b2e35}
body[data-theme="light"] .target-mode{background:#f1f2f5;border-color:#d9dde4}body[data-theme="light"] .target-mode button{color:#656b76}body[data-theme="light"] .target-mode button.is-active{background:var(--red);color:#fff}
@media(max-width:700px){.topbar-actions .status{display:none}.theme-toggle{padding:0 10px}.theme-toggle #theme-toggle-label{display:none}}

/* Recolhimento independente das permissões de navegação. */
.nav-group.is-collapsed > :not(.nav-group-title){display:none!important}
.nav-group-title[role="button"]{cursor:pointer;border-radius:8px}
.nav-group-title[role="button"]:focus-visible{outline:2px solid var(--purple-light);outline-offset:2px}
.nav-group.is-collapsed .nav-group-title em{transform:rotate(-90deg)}
#sidebar-close{position:absolute;right:12px;top:12px;width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:var(--surface-solid);color:var(--text);font-size:24px;cursor:pointer}
.sidebar-brand{padding-right:28px}
@media(min-width:861px){
 body.sidebar-collapsed .sidebar{transform:translateX(-100%)}
 body.sidebar-collapsed .site-content{margin-left:0}
 body.sidebar-collapsed .sidebar-toggle{position:fixed;z-index:42;left:12px;top:14px;width:40px;height:40px;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-solid);cursor:pointer}
 body.sidebar-collapsed .sidebar-toggle span{height:2px;width:100%;background:var(--text)}
 body.sidebar-collapsed .topbar{padding-left:64px}
}

