/* ============================================================
   Tax Command Center — dark "finance" theme
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #0a0c12;
  --bg-2: #0e111a;
  --panel: #11141f;
  --panel-2: #151926;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #eef0f6;
  --soft: #b9bed0;
  --muted: #767c92;
  --faint: #545a70;
  --primary: #7c8cff;
  --primary-2: #a78bfa;
  --green: #34d399;
  --green-deep: #0f7a55;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 16px;
  --radius-sm: 11px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
html,
body {
  background: var(--bg);
  color: var(--text);
}
body {
  font-family: var(--sans);
  line-height: 1.5;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 70% 50% at 15% -8%, rgba(124, 140, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 45% at 90% 0%, rgba(167, 139, 250, 0.1), transparent 55%);
  background-attachment: fixed;
}
.app {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 20px 64px;
}

/* Slim footer — matches the Tickbox tool footer */
.app-footer {
  display: flex; align-items: center; justify-content: center;
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.app-footer__brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; opacity: 0.5; transition: opacity 0.15s;
}
.app-footer__brand:hover { opacity: 1; }
.app-footer__label { font-size: 12px; font-weight: 600; color: var(--muted); }
.app-footer__brand img { height: 20px; width: auto; display: block; }

/* ---------- App bar ---------- */
.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  line-height: 1.15;
}
.brand-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text span {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.tabs {
  display: flex;
  gap: 4px;
  margin-left: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 11px;
  border: 1px solid var(--line);
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 13px var(--sans);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.tab:hover:not(:disabled) {
  color: var(--soft);
}
.tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 140, 255, 0.4);
}
.tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.appbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
}
.fy-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s;
}
.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.panel-ico {
  font-size: 14px;
  opacity: 0.85;
}
.panel-tag {
  margin-left: auto;
  font: 700 11px var(--mono);
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ---------- Sidebar ---------- */
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 2px 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.link-btn {
  border: 0;
  background: none;
  color: var(--primary);
  font: 600 12px var(--sans);
  cursor: pointer;
}
.link-btn:hover {
  text-decoration: underline;
}
.lbl {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 14px 0 6px;
}
.lbl:first-of-type {
  margin-top: 4px;
}
.control {
  width: 100%;
  padding: 11px 14px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: 600 14px var(--sans);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23767c92' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.control:hover {
  border-color: var(--line-strong);
}
.control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.18);
}
.control option {
  background: var(--panel-2);
  color: var(--text);
}
.rupee-field {
  display: flex;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rupee-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.18);
}
.rupee-field span {
  color: var(--muted);
  font: 600 14px var(--mono);
  padding-right: 8px;
}
.rupee-field input {
  flex: 1;
  border: 0;
  background: none;
  color: var(--text);
  font: 600 14px var(--mono);
  padding: 11px 0;
  width: 100%;
}
.rupee-field input:focus {
  outline: none;
}
.max-btn {
  flex-shrink: 0;
  margin-left: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(124, 140, 255, 0.12);
  color: #a5b4fc;
  font: 700 10px var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}
.max-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fff;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.regime-flag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.22);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--soft);
}
.check-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}
.nps-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}
input[type="checkbox"]:hover {
  border-color: var(--primary);
}
input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
}
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.more {
  margin-top: 14px;
}
.more summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  list-style: none;
  user-select: none;
}
.more summary::-webkit-details-marker {
  display: none;
}
.more summary::before {
  content: "+ ";
}
.more[open] summary::before {
  content: "− ";
}

/* FBP toggle items */
.fbp-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.015);
  transition: all 0.18s;
}
.fbp-item:not(.off) {
  border-color: rgba(124, 140, 255, 0.3);
  background: rgba(124, 140, 255, 0.05);
}
.fbp-item.off {
  opacity: 0.6;
}
.fbp-item-head {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
}
.fbp-item-head .chip {
  margin-left: auto;
}
.chip {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(124, 140, 255, 0.16);
  color: #a5b4fc;
  border: 1px solid rgba(124, 140, 255, 0.25);
}
.chip.old {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.25);
}
.fbp-item .rupee-field {
  margin-top: 8px;
}
.fbp-item.off .rupee-field {
  display: none;
}
.fbp-item .hint {
  margin-top: 6px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(124, 140, 255, 0.12), transparent 55%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 24px;
}
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.hero-amount {
  font: 800 46px/1 var(--mono);
  letter-spacing: -0.02em;
  margin: 10px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-delta {
  font: 700 14px var(--mono);
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
  padding: 3px 9px;
  border-radius: 8px;
}
.hero-delta.neg {
  color: var(--red);
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.22);
}
.hero-sub {
  font-size: 13px;
  color: var(--soft);
  max-width: 340px;
}
.hero-sub b {
  color: var(--text);
}
.hero-reco {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: none;
  margin-left: 6px;
}
.hero-right {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
@media (max-width: 720px) {
  .hero-right {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
}
.dist-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.dist-head .eyebrow {
  font-size: 10px;
}
.dist-ctc {
  text-align: right;
}
.dist-ctc span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.dist-ctc b {
  font: 700 16px var(--mono);
}
.dist-bar {
  display: flex;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  gap: 2px;
}
.dist-seg {
  display: grid;
  place-items: center;
  font: 700 11px var(--mono);
  color: #0a0c12;
  min-width: 0;
}
.dist-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}
.dist-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--soft);
}
.dist-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 720px) {
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-label {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.stat-val {
  font: 800 22px var(--mono);
  letter-spacing: -0.01em;
}
.stat-sub {
  font-size: 11px;
  color: var(--faint);
}

/* ---------- Year-over-year ---------- */
.yoy {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  align-items: end;
  height: 220px;
  margin-top: 8px;
}
.yoy-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
  text-align: center;
}
.yoy-bar {
  width: 70%;
  max-width: 46px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--primary), rgba(124, 140, 255, 0.35));
  transition: filter 0.15s;
}
.yoy-col.current .yoy-bar {
  background: linear-gradient(180deg, var(--green), var(--green-deep));
}
.yoy-col:hover .yoy-bar {
  filter: brightness(1.2);
}
.yoy-val {
  font: 700 11px var(--mono);
  color: var(--text);
}
.yoy-tax {
  font: 500 9.5px var(--mono);
  color: var(--faint);
}
.yoy-fy {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}
.yoy-col.current .yoy-fy {
  color: var(--green);
}

/* ---------- Assumptions ---------- */
.assume summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  user-select: none;
}
.assume summary::-webkit-details-marker {
  display: none;
}
.assume summary::after {
  content: "▸";
  color: var(--muted);
  margin-left: auto;
  transition: transform 0.15s;
}
.assume[open] summary::after {
  transform: rotate(90deg);
}
.assume-list {
  list-style: none;
  margin-top: 14px;
}
.assume-list li {
  font-size: 12.5px;
  color: var(--soft);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.5;
}
.assume-list li:last-child {
  border-bottom: 0;
  color: var(--muted);
  font-style: italic;
}
.assume-list b {
  color: var(--text);
}

/* ---------- Headroom meters ---------- */
.meter {
  margin-bottom: 16px;
}
.meter:last-child {
  margin-bottom: 0;
}
.meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 6px;
}
.meter-amt {
  font: 600 12px var(--mono);
  color: var(--text);
}
.meter-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}
.meter-left {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

/* ---------- Scenario cards ---------- */
.scenario-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 720px) {
  .scenario-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.scard {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.scard:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
/* Which scenario the hero/cashflow are currently showing. */
.scard.selected {
  box-shadow: 0 0 0 2px var(--primary);
  border-color: transparent;
}
.scard.best.selected {
  box-shadow: 0 0 0 2px var(--green);
}
.scard.best {
  border-color: rgba(52, 211, 153, 0.5);
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.12), rgba(52, 211, 153, 0.02));
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25), 0 14px 40px rgba(52, 211, 153, 0.15);
}
.scard-name {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.scard.best .scard-name {
  color: var(--green);
}
.scard-amt {
  font: 800 22px var(--mono);
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.scard.best .scard-amt {
  color: var(--green);
}
.scard-amt small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.scard-foot {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--mono);
}
.scard-badge {
  position: absolute;
  top: -9px;
  right: 12px;
  font: 800 9px var(--sans);
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #04130d;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.4);
}

/* ---------- Matrix ---------- */
.matrix-panel {
  padding-bottom: 8px;
}
.matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.matrix-head h2 {
  margin-bottom: 0;
}
.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  font: 600 12px var(--sans);
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s;
}
.ghost-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.matrix-scroll {
  overflow-x: auto;
  margin-top: 14px;
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}
.matrix th,
.matrix td {
  padding: 12px 14px;
  text-align: right;
  white-space: nowrap;
}
.matrix th:first-child,
.matrix td:first-child {
  text-align: left;
  color: var(--soft);
  font-weight: 500;
}
.matrix thead th {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.matrix tbody td {
  font-family: var(--mono);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--soft);
}
.matrix tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}
.matrix .row-ti td {
  color: var(--text);
  font-weight: 600;
}
.matrix .row-net td {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  border-bottom: 0;
}
.matrix .col-best {
  background: rgba(52, 211, 153, 0.07) !important;
  color: var(--text) !important;
}
.matrix thead .col-best {
  color: var(--green) !important;
  border-bottom-color: rgba(52, 211, 153, 0.4);
}
.matrix .row-net .col-best {
  color: var(--green) !important;
}
.matrix .neg {
  color: var(--red);
}

/* ---------- Bottom grid ---------- */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}
.cashflow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cashflow-row:last-child {
  border-bottom: 0;
}
.cashflow-row i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.cashflow-row .cf-label {
  font-size: 13px;
  color: var(--soft);
}
.cashflow-row .cf-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.cashflow-row .cf-fill {
  height: 100%;
  border-radius: 3px;
}
.cashflow-row .cf-amt {
  font: 600 13px var(--mono);
  min-width: 90px;
  text-align: right;
}
.insights {
  list-style: none;
}
.insights li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  color: var(--soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.45;
}
.insights li:last-child {
  border-bottom: 0;
}
.insights li::before {
  content: "▸";
  color: var(--primary);
  flex-shrink: 0;
}
.insights li.warn::before {
  content: "⚠";
  color: var(--amber);
}
.insights li > span {
  flex: 1;
  min-width: 0;
}
.insights li b {
  color: var(--text);
  white-space: nowrap;
}

/* ---------- Documents ---------- */
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.doc-btn-row {
  display: flex;
  gap: 8px;
}
.text-input {
  flex: 1;
  min-width: 200px;
  padding: 9px 13px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: 500 13px var(--sans);
}
.text-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.18);
}
.import-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.profiles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.profile-name {
  font-weight: 600;
  font-size: 13px;
}
.profile-meta {
  font: 500 11px var(--mono);
  color: var(--muted);
  margin-right: auto;
}
.mini-btn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font: 600 11px var(--sans);
  padding: 5px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}
.mini-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}
.mini-btn.danger:hover {
  border-color: var(--red);
  color: var(--red);
}
.doc-banner {
  font-size: 12px;
  color: var(--soft);
  background: rgba(124, 140, 255, 0.08);
  border: 1px solid rgba(124, 140, 255, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.checklist {
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  color: var(--soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.checklist li:last-child {
  border-bottom: 0;
}
.checklist li span:not(.tag-new) {
  flex: 1;
}
.tag-new {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(124, 140, 255, 0.16);
  border: 1px solid rgba(124, 140, 255, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
}
.stmt {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stmt-brand {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}
.stmt-brand img {
  height: 34px;
  width: auto;
  display: block;
}
.stmt-head {
  background: rgba(255, 255, 255, 0.03);
  padding: 11px 14px;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.stmt-line {
  display: flex;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.stmt-line span:last-child {
  font-family: var(--mono);
  color: var(--text);
}
.stmt-tax {
  font-weight: 700;
  color: var(--red);
}
.stmt-tax span:last-child {
  color: var(--red);
}
.stmt-net {
  font-weight: 800;
  border-bottom: 0;
  background: rgba(52, 211, 153, 0.07);
}
.stmt-net span:last-child {
  color: var(--green);
}
.declaration {
  margin-top: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  font: 500 12.5px var(--mono);
  color: var(--soft);
  white-space: pre-wrap;
  line-height: 1.6;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 26px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.dropzone:hover {
  border-color: var(--primary);
  background: rgba(124, 140, 255, 0.04);
}
.dropzone.dragover {
  border-color: var(--primary);
  border-style: solid;
  background: rgba(124, 140, 255, 0.1);
  transform: scale(1.01);
}
.dropzone-ico {
  font-size: 26px;
  margin-bottom: 2px;
}
.dropzone-main {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.dropzone-sub {
  font-size: 12px;
  color: var(--muted);
}
.dropzone * {
  pointer-events: none;
}
.f16-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 720px) {
  .f16-grid {
    grid-template-columns: 1fr;
  }
}
.f16-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--soft);
}
#form16-status .ok {
  color: var(--green);
}
#form16-status .warn-txt {
  color: var(--amber);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
::selection {
  background: rgba(124, 140, 255, 0.35);
  color: #fff;
}
