@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,600;0,700;1,300&family=Barlow+Condensed:wght@400;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --navy: #0a0f1e;
  --navy-mid: #0d1528;
  --navy-card: #111d35;
  --navy-light: #1a2a4a;
  --blue: #083FAF;
  --blue-bright: #1a52c7;
  --blue-light: #4d78e0;
  --blue-dim: #062e8a;
  --red: #FF0000;
  --red-bright: #FF2222;
  --red-dim: #CC0000;
  --white: #ffffff;
  --offwhite: #e8edf5;
  --muted: #8a9ab8;
  --border: rgba(45,106,224,0.2);
  --border-bright: rgba(45,106,224,0.45);
  --border-red: rgba(212,43,43,0.35);
  --green: #1db954;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--navy);
  color: var(--offwhite);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== LOGIN ===== */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6b8fe0 0%, #2a4fa0 25%, #0d1a3a 60%, #050710 100%);
  position: relative;
  overflow: hidden;
}

.login-page-logo-wrap {
  position: absolute;
  top: -115px;
  left: -105px;
  z-index: 2;
}

.login-page-logo-img {
  width: 650px;
  height: auto;
  object-fit: contain;
  display: none;
}

.login-page-logo-placeholder {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 64px;
  color: white;
  letter-spacing: 0.06em;
}

.login-center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.login-main-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.mm-blue { color: #083FAF; }
.mm-red  { color: #FF0000; }

.login-box {
  background: var(--navy-card);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 3rem 3.5rem;
  width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(45,106,224,0.1);
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: 4px 4px 0 0;
}

.login-logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2rem;
}

.login-logo-placeholder {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 18px;
  color: white; letter-spacing: 0.05em;
  flex-shrink: 0;
}

.login-logo-img {
  display: none;
}

.login-title-wrap h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.login-title-wrap h1 .mm-blue { color: var(--blue); }
.login-title-wrap h1 .mm-red { color: var(--red); }
.login-title-wrap p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--offwhite);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; padding: 11px 14px;
  border-radius: 3px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(45,106,224,0.15);
}
.form-group input::placeholder { color: var(--muted); opacity: 0.5; }

.login-btn {
  width: 100%; padding: 13px; margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-dim));
  border: none; color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer;
  transition: all 0.2s;
}
.login-btn:hover { background: linear-gradient(135deg, var(--blue-bright), var(--blue)); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(45,106,224,0.35); }
.login-err { color: var(--red-bright); font-size: 12px; margin-top: 10px; text-align: center; display: none; font-family: 'JetBrains Mono', monospace; }

/* ===== PORTAL ===== */
#portal { display: none; flex-direction: column; min-height: 100vh; }

.topbar {
  background: linear-gradient(90deg, #6b8fe0 0%, #2a4fa0 40%, #0d1a3a 100%);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo-placeholder {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13px;
  color: white; letter-spacing: 0.05em;
  flex-shrink: 0;
}

.topbar-logo-img {
  height: 105px; width: auto; max-width: 375px;
  object-fit: contain;
  flex-shrink: 0; display: none;
}

.topbar-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white);
}
.topbar-name .mm-blue { color: var(--blue); }
.topbar-name .mm-red { color: var(--red); }

.topbar-divider {
  width: 1px; height: 20px;
  background: var(--border-bright);
  margin: 0 4px;
}

.topbar-right {
  display: flex; align-items: center; gap: 14px;
}

.lo-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
}
.lo-badge span { color: var(--blue-light); }

.logout-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: none;
  border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 3px;
  cursor: pointer; transition: all 0.2s;
}
.logout-btn:hover { border-color: var(--red); color: var(--red); }

/* ===== NAV TABS ===== */
.nav-tabs {
  background: var(--navy-mid);
  border-bottom: 2px solid var(--border);
  display: flex; padding: 0 1.5rem;
  overflow-x: auto;
  position: sticky; top: 56px; z-index: 99;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-tab {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: none;
  border: none; border-bottom: 3px solid transparent;
  padding: 13px 18px; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
  margin-bottom: -2px;
}
.nav-tab:hover { color: var(--offwhite); }
.nav-tab.active { color: var(--white); border-bottom-color: var(--blue-bright); }

/* ===== CONTENT ===== */
.content { flex: 1; padding: 1.75rem; max-width: 960px; margin: 0 auto; width: 100%; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-header { margin-bottom: 1.5rem; border-left: 3px solid var(--blue); padding-left: 12px; }
.panel-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--white);
}
.panel-title span { color: var(--blue-light); }
.panel-title span.mm-blue { color: #083FAF; }
.panel-title span.mm-red  { color: #FF0000; }
.panel-subtitle { font-size: 13px; color: var(--muted); margin-top: 3px; font-weight: 300; }

/* ===== CHAT ===== */
.chat-container {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; flex-direction: column;
  height: 560px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }

.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.bot { align-self: flex-start; }

.msg-bubble {
  padding: 10px 14px; border-radius: 4px;
  font-size: 15px; line-height: 1.6;
  white-space: pre-wrap;
}
.msg.user .msg-bubble {
  background: var(--blue);
  color: white; font-weight: 400;
  border-radius: 12px 12px 2px 12px;
}
.msg.bot .msg-bubble {
  background: var(--navy-light);
  border: 1px solid var(--border);
  color: var(--offwhite);
  border-radius: 12px 12px 12px 2px;
}
.msg-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted);
  opacity: 0.6; margin-top: 4px;
}

.chat-input-row {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex; gap: 10px; align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--offwhite);
  font-family: 'Barlow', sans-serif;
  font-size: 15px; padding: 10px 14px;
  border-radius: 3px; outline: none;
  resize: none; min-height: 44px; max-height: 120px;
  transition: border-color 0.2s; line-height: 1.5;
}
.chat-input:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(45,106,224,0.12); }
.chat-input::placeholder { color: var(--muted); opacity: 0.5; }

.chat-send-btn {
  padding: 10px 22px; height: 44px;
  background: var(--blue);
  border: none; color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.chat-send-btn:hover { background: var(--blue-bright); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.typing-indicator {
  display: none; align-self: flex-start;
  padding: 10px 14px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 2px;
}
.typing-dots { display: flex; gap: 4px; }
.typing-dot {
  width: 6px; height: 6px;
  background: var(--blue-light); border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px)} }

/* ===== SHARED FORM ELEMENTS ===== */
.field-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}

.field-input, .field-select {
  width: 100%;
  background: var(--navy-card);
  border: 1px solid var(--border);
  color: var(--offwhite);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; padding: 10px 13px;
  border-radius: 3px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.field-input:focus, .field-select:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(45,106,224,0.12);
}
.field-select option { background: var(--navy-card); }

/* ===== INCOME CALCULATOR ===== */
.doc-type-row { display: flex; gap: 8px; margin-bottom: 1.25rem; }
.doc-type-btn {
  flex: 1; padding: 9px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; transition: all 0.2s;
}
.doc-type-btn.active {
  background: rgba(45,106,224,0.15);
  border-color: var(--blue-bright); color: var(--white);
}
.doc-type-btn:hover:not(.active) { border-color: var(--blue); color: var(--offwhite); }

.income-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.option-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.option-group select, .option-group input {
  width: 100%;
  background: var(--navy-card); border: 1px solid var(--border);
  color: var(--offwhite);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; padding: 9px 12px;
  border-radius: 3px; outline: none;
  transition: border-color 0.2s; appearance: none;
}
.option-group select:focus, .option-group input:focus { border-color: var(--blue-bright); }
.option-group select option { background: var(--navy-card); }

/* YTD zone — full width above the two-column grid */
.ytd-slot { margin-bottom: 1rem; }
.ytd-slot .snip-zone { min-height: 120px; }

.income-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

/* Misc income drop */
.misc-slot { margin-bottom: 1rem; }
.misc-slot .snip-zone { min-height: 100px; border-color: rgba(212,43,43,0.3); }
.misc-slot .snip-zone:focus-within { border-color: var(--red); }

/* Snip zones */
.snip-zone-wrap { display: flex; flex-direction: column; }
.snip-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}

.snip-zone {
  background: var(--navy-card);
  border: 2px dashed var(--border-bright);
  border-radius: 3px; min-height: 150px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  position: relative; padding: 1rem; overflow: hidden;
}
.snip-zone:focus-within, .snip-zone.focused { border-color: var(--blue-bright); background: rgba(45,106,224,0.04); }
.snip-zone.has-image { border-style: solid; border-color: var(--blue); }
.snip-zone.drag-over { border-color: var(--blue-light); background: rgba(45,106,224,0.08); }

.snip-target {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
  outline: none; caret-color: transparent; color: transparent;
  background: transparent; overflow: hidden;
  -webkit-user-select: text; user-select: text;
}

.snip-visual {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1rem; pointer-events: none; z-index: 1;
}
.snip-zone.has-image .snip-visual { display: none; }

.snip-icon { font-size: 1.5rem; margin-bottom: 6px; color: var(--blue-light); }
.snip-hint { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.snip-hint strong { color: var(--offwhite); display: block; font-weight: 600; }
.snip-hint small { font-size: 10px; font-family: 'JetBrains Mono', monospace; opacity: 0.7; }

.snip-preview {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; display: none; z-index: 1;
  background: rgba(0,0,0,0.3); pointer-events: none;
}
.snip-zone.has-image .snip-preview { display: block; }

.snip-clear {
  position: absolute; top: 6px; right: 6px;
  background: rgba(212,43,43,0.9); border: none; color: white;
  width: 22px; height: 22px; border-radius: 50%;
  cursor: pointer; font-size: 10px;
  display: none; align-items: center; justify-content: center;
  z-index: 3; pointer-events: all;
}
.snip-zone.has-image .snip-clear { display: flex; }

.snip-status { font-family: 'JetBrains Mono', monospace; font-size: 10px; margin-top: 5px; min-height: 16px; }
.snip-status.ready { color: var(--green); }
.snip-status.error { color: var(--red-bright); }

.file-fallback { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); margin-top: 4px; cursor: pointer; display: inline-block; }
.file-fallback:hover { color: var(--blue-light); }
.file-fallback input { display: none; }

.action-btn {
  width: 100%; padding: 13px; margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-dim));
  border: none; color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; transition: all 0.2s;
}
.action-btn:hover { background: linear-gradient(135deg, var(--blue-bright), var(--blue)); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(45,106,224,0.3); }
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.result-card {
  background: var(--navy-card); border: 1px solid var(--border-bright);
  border-top: 3px solid var(--blue);
  border-radius: 4px; padding: 1.5rem; margin-top: 1rem; display: none;
}
.result-card.visible { display: block; }
.result-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 1rem;
}
.result-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--offwhite);
  line-height: 1.72;
  white-space: pre-wrap;
  background: rgba(2, 8, 23, 0.28);
  border: 1px solid rgba(135, 166, 255, 0.16);
  border-radius: 6px;
  padding: 14px 16px;
}

.err-msg { color: var(--red-bright); font-family: 'JetBrains Mono', monospace; font-size: 11px; margin-top: 8px; display: none; }

.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SS GROSS-UP CALCULATOR ===== */
.ss-method-row { display:flex; gap:20px; margin-bottom:1.25rem; }
.ss-method-row label { display:flex; align-items:center; gap:8px; cursor:pointer; font-family:'Barlow Condensed',sans-serif; font-size:14px; font-weight:600; letter-spacing:0.05em; color:var(--offwhite); }
.ss-method-row input[type=radio] { accent-color:var(--blue-bright); width:15px; height:15px; }
.ss-taxreturn-box { background:rgba(8,63,175,0.08); border:1px solid rgba(8,63,175,0.3); border-radius:6px; padding:1rem 1rem 0; margin-bottom:1.25rem; }
.ss-borrower-label { font-family:'Barlow Condensed',sans-serif; font-size:13px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--blue-light); margin-bottom:8px; }
.ss-result-row { display:flex; justify-content:space-between; align-items:baseline; padding:5px 0; border-bottom:1px solid rgba(255,255,255,0.05); }
.ss-result-row:last-child { border-bottom:none; }
.ss-result-label { font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--muted); }
.ss-result-value { font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--offwhite); }
.ss-result-total { display:flex; justify-content:space-between; align-items:baseline; padding:10px 0 4px; margin-top:6px; border-top:2px solid var(--blue); }
.ss-result-total .ss-result-label { color:var(--offwhite); font-weight:600; font-size:12px; }
.ss-result-total .ss-result-value { color:var(--green); font-size:14px; font-weight:600; }
.ss-borrower-block { padding:12px; background:rgba(255,255,255,0.03); border:1px solid var(--border); border-radius:4px; margin-bottom:10px; }
.ss-borrower-block-title { font-family:'Barlow Condensed',sans-serif; font-size:12px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--blue-light); margin-bottom:8px; }

/* ===== EEP COST ESTIMATOR ===== */
.eep-section { margin-bottom:1.5rem; }
.eep-section-title { font-family:'Barlow Condensed',sans-serif; font-size:12px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--blue-light); padding-bottom:6px; border-bottom:1px solid var(--border); margin-bottom:1rem; }
.eep-results { margin-top:1.5rem; }
.eep-result-block { background:var(--navy-card); border:1px solid var(--border-bright); border-radius:4px; overflow:hidden; margin-bottom:1rem; }
.eep-result-block-title { background:rgba(8,63,175,0.15); border-bottom:1px solid var(--border); padding:8px 14px; font-family:'Barlow Condensed',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--blue-light); }
.eep-result-rows { padding:10px 14px; }
.eep-row { display:flex; justify-content:space-between; align-items:baseline; padding:5px 0; border-bottom:1px solid rgba(255,255,255,0.04); }
.eep-row:last-child { border-bottom:none; }
.eep-row-label { font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--muted); }
.eep-row-value { font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--offwhite); }
.eep-row-value.neg { color:var(--red-bright); }
.eep-subtotal-row { display:flex; justify-content:space-between; align-items:baseline; padding:8px 14px; border-top:2px solid var(--border-bright); background:rgba(255,255,255,0.02); }
.eep-subtotal-label { font-family:'Barlow Condensed',sans-serif; font-size:13px; font-weight:700; letter-spacing:0.08em; color:var(--offwhite); }
.eep-subtotal-value { font-family:'JetBrains Mono',monospace; font-size:14px; font-weight:600; color:var(--offwhite); }
.eep-grand-total-block { background:linear-gradient(135deg,rgba(8,63,175,0.2),rgba(6,46,138,0.25)); border:2px solid var(--blue); border-radius:4px; padding:16px 18px; display:flex; justify-content:space-between; align-items:center; }
.eep-grand-label { font-family:'Barlow Condensed',sans-serif; font-size:16px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--white); }
.eep-grand-value { font-family:'JetBrains Mono',monospace; font-size:22px; font-weight:600; color:var(--green); }
.eep-fixed-tag { font-family:'JetBrains Mono',monospace; font-size:9px; color:var(--muted); opacity:0.7; margin-left:4px; }

/* ===== VA CALCULATOR ===== */
.va-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1rem; }
.input-row { margin-bottom: 1.1rem; }
.input-row label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.input-row input, .input-row select {
  width: 100%;
  background: var(--navy-card); border: 1px solid var(--border);
  color: var(--offwhite);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; padding: 10px 13px;
  border-radius: 3px; outline: none;
  transition: border-color 0.2s; appearance: none;
}
.input-row input:focus, .input-row select:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(45,106,224,0.12); }
.limit-note { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--blue-light); margin-top: 5px; display: none; }

/* COE snip zone for VA */
.coe-snip-section { margin-bottom: 1.25rem; }
.coe-snip-section .snip-zone { min-height: 130px; border-color: rgba(212,43,43,0.4); }
.coe-snip-section .snip-zone:focus-within { border-color: var(--red); }
.coe-snip-section .snip-icon { color: var(--red); }
.coe-status-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.coe-extracted {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--green); display: none;
}

.calc-results { display: none; margin-top: 1.5rem; }
.calc-results.visible { display: block; }

.verdict { padding: 1.25rem 1.5rem; border-radius: 3px; margin-bottom: 1rem; }
.verdict.positive { background: rgba(29,185,84,0.08); border: 1px solid rgba(29,185,84,0.3); border-left: 4px solid var(--green); }
.verdict.negative { background: rgba(212,43,43,0.08); border: 1px solid var(--border-red); border-left: 4px solid var(--red); }
.verdict-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px;
}
.verdict.positive .verdict-label { color: var(--green); }
.verdict.negative .verdict-label { color: var(--red-bright); }
.verdict-amount { font-size: 2.2rem; font-weight: 700; color: var(--white); font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.02em; }
.verdict-sub { font-size: 12px; color: var(--muted); margin-top: 4px; font-family: 'JetBrains Mono', monospace; }

.max-loan-box {
  background: rgba(45,106,224,0.1); border: 1px solid var(--border-bright);
  border-left: 4px solid var(--blue);
  padding: 1rem 1.25rem; border-radius: 3px; margin-bottom: 1rem;
}
.max-loan-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 4px; }
.max-loan-amount { font-size: 2rem; font-weight: 700; color: var(--white); font-family: 'Barlow Condensed', sans-serif; }

.steps-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 1rem; }
.steps-table tr { border-bottom: 1px solid var(--border); }
.steps-table tr:last-child { border-bottom: none; }
.steps-table td { padding: 8px 6px; font-family: 'JetBrains Mono', monospace; }
.steps-table td:first-child { color: var(--muted); }
.steps-table td:last-child { text-align: right; color: var(--offwhite); }
.steps-table tr.highlight td { color: var(--blue-light); font-weight: 600; }

.section-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-light);
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 8px;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
