/* EIDA Studio — visual layer, loaded after existing Tailwind and view CSS.
   No JS state classes are removed; hidden, disabled, validation and sizing
   utilities remain the responsibility of the existing templates/scripts. */
:root {
  --eida-brand-navy: #032b53;
  --eida-brand-green: #01c36e;
  --accent: #2459cc;
  --accent-2: #087d65;
  --accent-soft-bg: #dceaff;
  --bg: #edf2f8;
  --surface: #fff;
  --surface-2: #f4f7fb;
  --text: #17243b;
  --muted: #52647b;
  --border: #d4deeb;
  --radius: 16px;
  --shadow-sm: 0 2px 5px #142d4d08,0 8px 24px #142d4d05;
  --shadow-md: 0 20px 60px #1a315914, 0 3px 10px #1a315909;
  --focus: 0 0 0 3px #2459cc35;
  --eida-field: #fbfcff;
  --eida-field-border: #b9c6d8;
  --eida-navy: #10284e;
  --eida-accent-text: #2459cc;
  --eida-danger: #be123c;
}
.dark {
  --accent: #416fe1;
  --accent-2: #087d65;
  --accent-soft-bg: #203966;
  --bg: #0b1424;
  --surface: #142137;
  --surface-2: #101c30;
  --text: #eef4ff;
  --muted: #a7b8ce;
  --border: #31415b;
  --shadow-sm: 0 3px 12px #0002;
  --shadow-md: 0 16px 45px #0004;
  --focus: 0 0 0 3px #83aaff55;
  --eida-field: #101c30;
  --eida-field-border: #4a5c76;
  --eida-accent-text: #a1baff;
  --eida-danger: #fda4af;
  color-scheme: dark;
}
.eida-ui {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.eida-ui :where(h1,h2,h3) { letter-spacing: -.025em; }
.eida-ui :where(a,button,summary,input,textarea,select):focus-visible {
  outline: 2px solid var(--eida-accent-text); outline-offset: 2px;
}
.eida-ui :where(a,button,summary) { -webkit-tap-highlight-color: transparent; }
.eida-ui :where(button:not(:disabled),summary) { cursor: pointer; }
.eida-ui :where(button:disabled,input:disabled,select:disabled,textarea:disabled) { cursor: not-allowed; }
.eida-ui :where(input[type=checkbox],input[type=radio]) { accent-color: var(--accent); }
.eida-ui .text-main { color: var(--text); }
.eida-ui .text-muted { color: var(--muted); }
.eida-ui .eida-container { max-width: 1440px; padding: 28px 32px 40px; }
.eida-ui .eida-main { min-width: 0; }

/* Neutral surfaces; stateful chips, alerts, switches and table row states are excluded. */
.eida-ui .eida-panel, .eida-ui .card-premium {
  background: var(--surface); border-color: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.eida-ui .card-premium.featured-plan.card-premium--soft { border-color: var(--accent); background: color-mix(in srgb,var(--accent) 7%,var(--surface)); box-shadow: var(--shadow-md); }
.eida-ui .eida-panel :where(h1,h2) { line-height: 1.25; }
.eida-ui .eida-panel :where(header,.border-b,.border-t) { border-color: var(--border); }
/* Form field skin. Keep existing padding (icons), width, height, validation classes and inline positioning. */
.eida-ui :where(input:not([type=hidden],[type=file],[type=checkbox],[type=radio],[type=range],[type=color],[type=image],[type=button],[type=reset],[type=submit],.autofill-bait),textarea,select):not([class~="hidden"]) {
  border-radius: 10px;
  background-color: var(--eida-field);
  color: var(--text);
  border-color: var(--eida-field-border);
  box-shadow: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.eida-ui :where(input:not([type=hidden],[type=file],[type=checkbox],[type=radio],[type=range],[type=color],[type=image],[type=button],[type=reset],[type=submit],.autofill-bait),textarea,select):focus {
  border-color: var(--accent); background-color: var(--surface); outline: 2px solid var(--eida-accent-text); outline-offset: 1px;
}
.eida-ui :where(input,textarea)::placeholder { color: var(--muted); opacity: .88; }
.eida-ui :where(input[readonly],textarea[readonly],.eida-input-ro) { background-color: var(--surface-2); }
.eida-ui :where(input,textarea,select):disabled { opacity: .75; }
/* Existing JS toggles these validation classes. Do not wash out feedback. */
.eida-ui :is(input,textarea,select):is(.border-rose-500,[class~="border-red-500/60"],.border-red-500,[aria-invalid=true]) { border-color: var(--eida-danger); outline-color: var(--eida-danger); }
.eida-ui :is(input,textarea,select):is([class~="border-emerald-500/60"],.border-green-500) { border-color: #16a34a; }
.eida-ui :is(input,textarea,select):is([class~="border-amber-500/60"],.border-amber-500) { border-color: #d97706; }
.eida-ui .nip-box.ring-rose-500 { box-shadow: 0 0 0 2px var(--eida-danger); }
.eida-ui :where(form label:not(.sr-only)) { line-height: 1.45; }
.eida-ui :where(button[type=submit],input[type=submit],.cta-press,.dashboard-btn,.upload-cta) { border-radius: 10px; font-weight: 650; letter-spacing: -.01em; }
.eida-ui :where(button[type=submit],.cta-press):where(.bg-blue-600,[class~="bg-[color:var(--accent)]"]) { background: var(--accent); color: white; }
.eida-ui .upload-cta { border-radius: 10px; }
.eida-ui :where(button[type=submit],.cta-press):not(:disabled):hover { filter: brightness(.96); }
.eida-ui .modal-content,.eida-ui .confirm-modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-md); }
.eida-ui .modal-bg { background: #07132699; }
/* Tables: no forced widths, no change to selection, sticky headers or scroll containers. */
.eida-workspace table th,.eida-admin table th { font-size: 11px; font-weight: 750; letter-spacing: .045em; }
.eida-workspace table thead,.eida-admin table thead { background: var(--surface-2); color: var(--muted); }
.eida-workspace table td,.eida-admin table td { border-color: var(--border); }
.eida-workspace table,.eida-admin table { font-variant-numeric: tabular-nums; }
.eida-ui .copy-btn { font-weight: 650; border-radius: 7px; }
.eida-admin-sidebar > div { border-radius: 16px; background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); padding: 14px; }
.eida-admin-sidebar nav a { padding-block: 10px; color: var(--text); }
.eida-admin-sidebar nav a[class~="bg-black/5"] { color: var(--eida-accent-text); background: color-mix(in srgb,var(--accent) 12%,var(--surface)); }

.eida-upload-multi #dropzone { background-color: color-mix(in srgb,var(--accent) 5%,var(--surface)); border-radius: 17px; min-height: 190px; }
.eida-upload-multi #dropzone:hover { background-color: color-mix(in srgb,var(--accent) 9%,var(--surface)); }
.eida-contractors .contractors-row.is-selected,.eida-contractors .contractors-row[data-active="1"] { background: color-mix(in srgb,var(--accent) 12%,var(--surface)); }
/* Landing / recipient form */
.eida-index .eida-container { padding-top: 30px; padding-bottom: 32px; }
.eida-home-shell { padding: 0; overflow: visible; }
.eida-hero {
  max-width: none; padding: clamp(18px,3vw,38px); gap: clamp(24px,3vw,42px);
  border-radius: 28px; border: 1px solid var(--border); align-items: center;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.eida-hero-story,.eida-auth-story {
  position: relative; isolation: isolate; overflow: hidden;
  color: #e9f2ff; text-align: left;
  background: radial-gradient(ellipse at 95% 5%,#285ca7 0%,transparent 57%), linear-gradient(145deg,#112c53,#0a1b36 75%);
  border-radius: 22px;
}
.eida-hero-story::before,.eida-auth-story::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background-image: linear-gradient(#95c5ff10 1px,transparent 1px),linear-gradient(90deg,#95c5ff10 1px,transparent 1px);
  background-size: 38px 38px; mask-image: linear-gradient(135deg,transparent 10%,black 85%);
}
.eida-hero-story { min-height: 460px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(25px,3.2vw,48px); gap: 19px; }
.eida-hero-story > * { margin: 0 !important; }
.eida-hero-story > div:first-child > span { color: #c3ddff; background: #ffffff10; border-color: #a1c8ff3b; font-weight: 700; letter-spacing: .085em; line-height: 1.6; }
.eida-hero-story h1 { font-size: clamp(38px,4.4vw,65px); line-height: 1.04; letter-spacing: -.06em; color: #fff; font-weight: 750; }
.eida-hero-story h1 .eida-hero-highlight { display: block; color: #92d8ff; }
.eida-hero-story > p { color: #c7d7ee; font-size: 16px; line-height: 1.7; }
.eida-hero-story .accent-bar { width: 48px; height: 3px; background: #92d8ff; }
.eida-hero-story > div:last-child { flex-wrap: wrap; padding: 0; justify-content: flex-start; align-items: stretch; }
.eida-hero-story .cta-press { background: #fff; color: #153565; box-shadow: none; border-radius: 11px; }
.eida-hero-story #howItWorksBtn { color: #edf5ff; border-color: #b8d6ff55; border-radius: 11px; }
.eida-hero-story #howItWorksBtn:hover { background: #fff1; }
.eida-ui .eida-download { margin: 0 auto; padding: 26px; border-radius: 19px; max-width: 540px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.eida-download.hover-lift:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }
.eida-download-heading { margin: 0 0 24px; padding-right: 16px; }
.eida-download-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb,var(--accent) 10%,var(--surface)); color: var(--eida-accent-text); margin-bottom: 15px; }
.eida-kicker { font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--eida-accent-text); }
.eida-download-heading h2 { font-size: clamp(25px,2.4vw,32px); line-height: 1.2; margin: 5px 0 7px; font-weight: 750; color: var(--text); }
.eida-download-heading > p:last-child { font-size: 13px; color: var(--muted); line-height: 1.55; }
.eida-field-title { display: flex; gap: 9px; align-items: center; width: 100%; text-align: left; color: var(--eida-accent-text); font-size: 11px; font-weight: 750; letter-spacing: .06em; margin-bottom: 8px; }
.eida-field-title > span { font-size: 13px; color: var(--text); letter-spacing: 0; }
.eida-download fieldset { align-items: stretch; min-width: 0; }
.eida-download fieldset > div { justify-content: space-between; gap: 5px; }
.eida-ui .eida-download .nip-box { width: 0; min-width: 0; max-width: none; height: 43px; flex: 1 1 0%; padding: 0; font-size: 16px; letter-spacing: 0; border-radius: 8px; }
.eida-download #nipHelp,.eida-download #nipError { text-align: left; font-size: 11px; }
.eida-download textarea { text-align: left; min-height: 75px; padding: 13px; font-family: ui-monospace,monospace; }
.eida-download textarea::placeholder { font-family: ui-sans-serif,system-ui,sans-serif; font-size: 13px; }
.eida-download #codesHint { justify-content: flex-start; color: var(--muted); font-size: 11px; }
.eida-download #codesHint code { border-radius: 5px; padding: 1px 5px; background: var(--surface-2); color: var(--text); }
.eida-download button[type=submit] { min-height: 48px; box-shadow: 0 5px 14px #087d6526; }
.eida-download #zoomBtn { padding: 5px; border-radius: 9px; color: var(--eida-accent-text) !important; }
.eida-features { padding: 28px 0 0; }
.eida-features > div { max-width: none; }
.eida-features-label { text-align: center; margin: 0 0 14px; color: var(--muted); }
.eida-features > div > div { display: grid; gap: 12px; }
.eida-features > div > div > div { align-items: flex-start; text-align: left; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); gap: 10px; }
.eida-features > div > div > div > svg { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: color-mix(in srgb,var(--accent) 9%,var(--surface)); color: var(--eida-accent-text); }
.eida-features h3 { font-size: 15px; color: var(--text); }
.eida-features p:not(.eida-kicker) { color: var(--muted); line-height: 1.55; font-size: 13px; max-width: none; }
/* Zoom moves the original node; viewport dimensions avoid off-screen controls. */
#zoomModal > div {
  box-sizing:border-box;
  max-width:100%;
  width:min(780px,100%);
  padding:12px;
}
#zoomModal > div > div {
  transform:none;
  scale:none;
  width:100%;
  min-width:0;
  transition:none;
}
#zoomWrapper {
  width:100%;
  min-width:0;
}
#zoomContent {
  max-height:calc(100dvh - 24px);
  overflow-x:hidden;
  overflow-y:auto;
  border-radius:19px;
  scrollbar-width:thin;
  overscroll-behavior:contain;
}
#zoomContent #heroCard {
  width:100%;
  max-width:none;
  margin:0;
  opacity:1;
  animation:none;
  transform:none;
  transition:none;
}
.eida-index #zoomModal #closeZoom {
  top:10px;
  right:16px;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  line-height:1;
  color:#e6f0ff;
  border-radius:9px;
}
#zoomModal #closeZoom:hover {
  background:#ffffff18;
}
@media (min-width:768px) {
  #zoomContent #heroCard .eida-download-heading h2 {
    font-size:32px;
  }
  #zoomContent #heroCard .eida-download-heading > p:last-child {
    font-size:15px;
  }
  #zoomContent #heroCard .eida-field-title > span {
    font-size:15px;
  }
  #zoomContent #heroCard fieldset > div {
    grid-template-columns:repeat(10,minmax(0,48px));
    gap:7px;
  }
  #zoomContent #heroCard .nip-box {
    max-width:48px;
    font-size:19px;
  }
  #zoomContent #heroCard textarea {
    font-size:16px;
  }
  #zoomContent #heroCard textarea::placeholder {
    font-size:15px;
  }
  #zoomContent #heroCard button[type=submit] {
    font-size:16px;
    min-height:50px;
  }
}
/* Authentication and personal forms. */
.eida-auth .eida-container { max-width: 1180px; }
.eida-auth .eida-auth-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; align-items: stretch; max-width: 1060px; margin-inline: auto; min-height: 0; padding: 12px 0; }
.eida-auth-story { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 15px; padding: clamp(28px,4vw,52px); min-height: 430px; }
.eida-auth-story .eida-kicker { color: #bad8ff; }
.eida-auth-story .eida-auth-headline { color: #fff; font-weight: 750; font-size: clamp(32px,4vw,48px); line-height: 1.06; letter-spacing: -.055em; margin: 0; }
.eida-auth-story .eida-auth-description,.eida-auth-story p:not(.eida-auth-headline) { color: #d2e0f5; font-size: 15px; line-height: 1.65; }
.eida-auth-story h1 { color: #fff; }
.eida-auth-story h1 span { color: #92d8ff; }
.eida-auth-footnote { margin-top: 18px; font-size: 12px; font-weight: 650; color: #a9ccff; padding-top: 15px; border-top: 1px solid #94bcfa40; }
.eida-auth-orbit { display: grid; place-items: center; color: #a4d6ff; width: 124px; height: 124px; border: 1px solid #99c9ff35; background: #a4c8ff12; border-radius: 26px; margin-bottom: 10px; }
.eida-auth .eida-auth-split > .eida-panel,.eida-auth .eida-register-story ~ .eida-panel { align-self: center; }
.eida-auth .eida-panel { max-width: 480px; border-radius: 22px; padding: clamp(22px,3vw,36px); box-shadow: var(--shadow-md); }
.eida-auth .eida-panel h2 { font-size: 26px; line-height: 1.15; font-weight: 750; color: var(--text); }
.eida-auth .eida-panel img[alt="EIDA Logo"] { height: 42px; width: auto; margin-bottom: 16px; object-fit: contain; }
.dark .eida-auth .eida-panel img[alt="EIDA Logo"] { filter: brightness(2.3) saturate(1.2); }
.eida-auth .eida-panel form .w-11\/12 { width: 100%; }
.eida-auth .eida-panel form input:not([type=checkbox],[type=radio],[type=hidden]) { font-size: 14px; }
.eida-register > .eida-main section.min-h-screen,.eida-account-settings section.min-h-screen,.eida-account-security section.min-h-screen { min-height: 0; padding-block: 16px; }
.eida-account-settings .eida-panel,.eida-account-security .eida-panel { max-width: 600px; }
.eida-register-google .eida-main section { gap: 28px; margin-top: 12px; }
.eida-invite-invalid .eida-main .max-w-lg { border-radius: 20px; box-shadow: var(--shadow-md); padding: 28px; }
/* Small screens and user accessibility preferences. */
@media (max-width: 1000px){

  .eida-ui .eida-container { padding-inline: 18px; }

  .eida-hero { padding: 18px; gap: 18px; }
  .eida-hero-story { padding: 28px; }
  .eida-ui .eida-download { padding: 20px; }

}
@media (max-width: 767px){

  .eida-ui .eida-container { padding: 18px 12px 28px; }

  .eida-hero { grid-template-columns: minmax(0,1fr); padding: 9px; border-radius: 19px; }
  .eida-hero-story { min-height: 0; padding: 27px 23px; border-radius: 14px; gap: 16px; }
  .eida-hero-story h1 { font-size: clamp(35px,7vw,48px); }
  .eida-hero-story > p { font-size: 14px; }
  .eida-hero-story > div:first-child > span { font-size: 10px; }
  .eida-hero-story .cta-press,.eida-hero-story #howItWorksBtn { font-size: 13px; padding: 10px 14px; }
  .eida-ui .eida-download { padding: 16px 13px; border-radius: 14px; }
  .eida-download-heading { margin-bottom: 18px; }
  .eida-ui .eida-download .nip-box { width: 0 !important; max-width: none; height: 38px; font-size: 15px; }
  .eida-download fieldset > div { gap: 3px; }
  .eida-features { padding-top: 20px; }
  .eida-auth .eida-auth-split { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 0; }
  .eida-auth .eida-auth-split > .eida-panel { grid-row: 1; }
  .eida-auth-story { min-height: 0; padding: 24px; border-radius: 17px; }
  .eida-auth-orbit { display: none; }
  .eida-auth-story .eida-auth-headline { font-size: 31px; }
  .eida-auth .eida-panel { padding: 24px 18px; }
  .eida-auth .eida-panel input:not([type=hidden],[type=file],[type=checkbox],[type=radio]) { font-size: 16px; }
  .eida-ui .eida-main > .eida-container > main { padding-inline: 0; }

}
@media (prefers-reduced-motion: reduce){

  .eida-ui .reveal { opacity: 1; transform: none; animation: none; }
  .eida-ui .hover-lift,.eida-ui .cta-press { transition: none; }

}
/* Readability and recipient-first mobile shortcut. */
.eida-mobile-download { display: none; }
.eida-download { scroll-margin-top: 76px; }
.eida-index .eida-features .reveal { opacity: 1; transform: none; }

.dark .eida-features a,.dark .eida-ui .copy-btn { color: var(--eida-accent-text) !important; }
.dark .eida-ui :where(a,button,span,p,strong,svg)[class~="text-[color:var(--accent)]"]:not(.eida-hero-highlight):not(.eida-kicker) { color: var(--eida-accent-text); }
@media (max-width: 767px){

  .eida-mobile-download { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; margin-bottom: 10px; font-size: 13px; font-weight: 650; color: var(--eida-accent-text); background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
  .eida-hero-story > div:last-child { flex-direction: row; gap: 8px; }
  .eida-hero-story .cta-press,.eida-hero-story #howItWorksBtn { padding: 10px 11px; font-size: 12px; }

}

/* Studio v2 — visual refinement; preserve existing JS state classes. */

.eida-ui :where(form label:not(.sr-only)) { font-size:14px; }
.eida-ui :where(.eida-panel,.card-premium) :where(input:not([type=hidden],[type=file],[type=checkbox],[type=radio]),select,textarea) { font-size:14px; }
.eida-ui :where(.cta-press,.copy-btn,.eida-worknav a,#dropzone,.combo-toggle) { transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,filter .16s ease; }
.eida-ui .cta-press:not(:disabled):hover { box-shadow:0 3px 12px #152b5122; }
.eida-workspace table th,.eida-admin table th { font-size:12px; letter-spacing:.025em; }
/* Landing — standalone surfaces, no enclosing white card. */
.eida-index .eida-hero { border:0; background:transparent; box-shadow:none; padding:0; gap:clamp(18px,3vw,36px); align-items:stretch; }
.eida-index .eida-hero-story { min-height:0; padding:clamp(30px,4vw,60px); border-radius:24px; gap:22px; box-shadow:0 14px 36px #142d4d19; }
.eida-index .eida-hero-story h1 { font-size:clamp(40px,4.5vw,68px); }
.eida-index .eida-hero-story > p { font-size:17px; line-height:1.7; }
.eida-index .eida-hero > .eida-download { max-width:none; padding:clamp(22px,3vw,36px); border-radius:24px; box-shadow:var(--shadow-md); }
.eida-download-heading > p:last-child { font-size:15px; }
.eida-download #nipHelp,.eida-download #nipError,.eida-download #codesHint { font-size:12px; }
.eida-download textarea { min-height:86px; }
.eida-features { padding-top:32px; }
.eida-features > div > div > div { padding:24px; }
.eida-features h3 { font-weight:700; font-size:17px; }
.eida-features p:not(.eida-kicker) { font-size:14px; line-height:1.65; }
/* Workspace — wider content, distinct stats, readable table. */
.eida-ui.eida-workspace .eida-container { max-width:1680px; width:94%; padding-inline:0; }

.eida-workspace .eida-container > main { max-width:none; padding-inline:0; }

.eida-dashboard .eida-dashboard-heading h1 { font-size:clamp(26px,3vw,36px); font-weight:750; letter-spacing:-.045em; margin:4px 0 8px; }
.eida-dashboard-heading > div > p { color:var(--muted); font-weight:500; font-size:13px; white-space:normal; overflow-wrap:anywhere; }

.eida-dashboard .eida-documents > div:first-child { padding:20px 24px; background:var(--surface); }
.eida-dashboard .eida-documents h2 { font-size:21px; }
.eida-dashboard .eida-documents table { font-size:14px; }
.eida-dashboard .eida-documents th { padding-block:13px; white-space:nowrap; }
.eida-dashboard .eida-documents td { padding-block:12px; vertical-align:middle; }
.eida-dashboard .eida-contractor-name { font-weight:600; max-width:260px; }
.eida-dashboard .eida-filename { font-weight:550; }
.eida-dashboard .eida-documents td .text-xs { font-size:12px; }
.eida-dashboard .eida-documents tbody tr:hover { background:var(--surface-2); }
.eida-dashboard .eida-documents tbody tr:has(.attachment-checkbox:checked) { background:color-mix(in srgb,var(--accent) 10%,var(--surface)); }
.eida-dashboard .eida-documents .copy-btn { background:color-mix(in srgb,var(--accent) 6%,var(--surface)) !important; color:var(--eida-accent-text) !important; border-color:color-mix(in srgb,var(--accent) 23%,var(--border)) !important; padding:5px 9px; font-size:13px; letter-spacing:.025em; white-space:nowrap; }
.eida-dashboard .eida-documents .copy-btn:hover { background:color-mix(in srgb,var(--accent) 15%,var(--surface)) !important; }
.eida-dashboard .attachment-checkbox { width:16px; height:16px; vertical-align:middle; }
/* Upload — distinct composer and queue, original form and dynamic state. */
.eida-ui.eida-upload-multi .eida-container { max-width:1380px; }
.eida-upload-multi .eida-container > main { padding-block:0; }
.eida-upload-multi .eida-upload-shell { background:transparent; border:0; box-shadow:none; padding:0; }
.eida-upload-multi .eida-upload-header { position:relative; top:auto; margin:0; padding:0 0 20px; background:transparent; border:0; box-shadow:none; border-radius:0; }
.eida-upload-header h2 { font-size:clamp(26px,3vw,36px); line-height:1.15; letter-spacing:-.04em; }
.eida-upload-header p { font-size:14px; margin-top:6px; color:var(--muted); }
.eida-upload-header > div > div:first-child { min-width:0; }
.eida-upload-header > div > div:first-child > div:first-child { background:color-mix(in srgb,var(--accent) 10%,var(--surface)); border-radius:14px; padding:12px; }
.eida-upload-header > div > div:last-child > span { font-size:13px; background:var(--surface) !important; padding:8px 12px; }
.eida-upload-multi #multiUploadForm { padding-top:0; }
.eida-upload-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 22px; padding:0; list-style:none; }
.eida-upload-steps li { display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:13px 16px; font-weight:650; color:var(--text); font-size:14px; }
.eida-upload-steps li span { color:var(--eida-accent-text); background:color-mix(in srgb,var(--accent) 10%,var(--surface)); border-radius:9px; padding:6px 8px; font:700 12px ui-monospace,monospace; }
.eida-upload-grid { gap:20px; align-items:stretch; }
.eida-upload-compose,.eida-upload-queue { min-width:0; border:1px solid var(--border); background:var(--surface); border-radius:18px; box-shadow:var(--shadow-sm); padding:24px; }
.eida-upload-section-head h3,.eida-upload-queue h3 { font-size:21px; font-weight:730; line-height:1.25; }
.eida-upload-section-head p { font-size:13px; color:var(--muted); margin-top:5px; }
.eida-upload-multi #dropzone { min-height:240px; padding:24px 18px; display:grid; place-items:center; }
.eida-upload-multi #dropzone:focus-within { outline:2px solid var(--eida-accent-text); outline-offset:3px; }
.eida-upload-multi #dz-input { z-index:1; width:100%; height:100%; }
.eida-upload-multi #dropzone p.text-sm { font-size:17px; }
.eida-upload-multi #dropzone p.text-xs { font-size:14px; }
.eida-drop-cta { display:flex; width:max-content; align-items:center; gap:10px; margin:12px auto 0; border-radius:9px; padding:10px 16px; background:var(--accent); color:white; font-size:14px; font-weight:650; }
.eida-upload-multi #dropzone:hover .eida-drop-cta { filter:brightness(.94); }
.eida-upload-multi #invoice-no-input,.eida-upload-multi .combo-input { min-height:46px; }
.eida-upload-multi .combo-list { max-width:min(640px,calc(100vw - 64px)); }
.eida-add-actions { flex-wrap:wrap; align-items:center; }
.eida-add-actions #btn-add { min-height:44px; padding:10px 16px; }
.eida-add-actions > span { flex:1 1 180px; font-size:12px; }
.eida-upload-queue > div:first-child { margin-bottom:16px; gap:8px; }
.eida-upload-queue #btn-clear-all { color:var(--eida-accent-text) !important; font-size:13px; white-space:nowrap; }
.eida-upload-queue #processed-empty:not(.hidden) { min-height:290px; display:grid; place-items:center; padding:30px; border-style:dashed; background:var(--surface-2) !important; text-align:center; }
.eida-upload-queue #processed-empty > div { flex-direction:column; align-items:center; max-width:300px; }
.eida-upload-queue #processed-empty > div > div:first-child { width:64px; height:64px; background:color-mix(in srgb,var(--accent) 10%,var(--surface)) !important; color:var(--eida-accent-text) !important; }
.eida-upload-queue #processed-empty svg { width:28px; height:28px; }
.eida-upload-queue #processed-empty .font-semibold { font-size:16px; }
.eida-upload-queue #processed-empty .text-xs { font-size:13px; line-height:1.6; margin-top:8px; }
.eida-upload-queue #processed-list > li { border-color:var(--border); border-radius:12px; background:var(--surface-2); padding:16px; }
.eida-upload-queue #processed-list > li .btn-remove:hover { color:var(--eida-danger); }
.eida-upload-actions { padding:20px 0 0; }
.eida-upload-actions > a { color:var(--muted) !important; border-color:var(--border) !important; background:var(--surface); min-height:44px; }
.eida-upload-actions > a:hover { background:var(--surface-2); }
.eida-upload-actions #btn-submit-all { min-height:46px; padding:12px 22px; }
@media (max-width:1000px){

 .eida-upload-compose,.eida-upload-queue { padding:18px; }
 .eida-index .eida-hero-story { padding:30px; }
 .eida-index .eida-hero-story h1 { font-size:clamp(36px,4.8vw,55px); }

}
@media (max-width:767px){

 .eida-ui.eida-workspace .eida-container{ width:calc(100% - 24px); }

 .eida-index .eida-hero { gap:14px; }
 .eida-index .eida-hero-story { padding:27px 23px; gap:16px; border-radius:17px; }
 .eida-index .eida-hero-story h1 { font-size:clamp(35px,7vw,48px); }
 .eida-index .eida-hero-story > p { font-size:15px; }
 .eida-index .eida-hero > .eida-download { padding:20px 14px; border-radius:17px; }

 .eida-dashboard #subscription-alert { flex-wrap:wrap; }
 .eida-dashboard .eida-documents > div:first-child { padding:16px; }
 .eida-upload-steps { gap:6px; margin-bottom:12px; }
 .eida-upload-steps li { flex-direction:column; align-items:flex-start; gap:6px; padding:9px; font-size:12px; }
 .eida-upload-grid { gap:12px; }
 .eida-upload-compose,.eida-upload-queue { padding:16px; }
 .eida-upload-queue #processed-empty:not(.hidden) { min-height:200px; padding:20px; }
 .eida-upload-queue #processed-list > li > div { flex-wrap:wrap; }
 .eida-upload-actions { padding-top:14px; }
 .eida-upload-actions #btn-submit-all { padding-inline:13px; font-size:13px; }

}
@media (prefers-reduced-motion:reduce){

 .eida-ui :where(.cta-press,.copy-btn,.eida-worknav a,#dropzone,.combo-toggle) { transition:none; }

}

/* Studio v2.4 — balanced spacing, stable landing; scoped to the home page. */
.eida-index .eida-container { max-width:1240px; padding-top:40px; padding-bottom:48px; }
.eida-index .eida-hero { max-width:1160px; gap:34px; align-items:start; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); }
.eida-index .eida-hero-story { align-self:center; min-height:0; padding:38px; gap:20px; border-radius:19px; box-shadow:var(--shadow-sm); background:radial-gradient(ellipse at 100% 0%,#315c91 0%,transparent 70%),linear-gradient(145deg,#1c395c,#122842); }
.dark .eida-index .eida-hero-story { background:radial-gradient(ellipse at 100% 0%,#294a73 0%,transparent 70%),linear-gradient(145deg,#1b3352,#13263e); }
.eida-index .eida-hero-story::before { opacity:.4; }
.eida-index .eida-hero-story h1 { font-size:clamp(36px,3.5vw,48px); line-height:1.09; letter-spacing:-.045em; }
.eida-index .eida-hero-story > p { font-size:15px; line-height:1.6; color:#dce8f7; }
.eida-index .eida-hero-story h1 .eida-hero-highlight { color:#a3d4f6; }
.eida-index .eida-hero-story .accent-bar { display:none; }
.eida-index .eida-hero-story .cta-press,.eida-index .eida-hero-story #howItWorksBtn { font-size:14px; padding:11px 15px; }
.eida-index .eida-hero > .eida-download { max-width:none; align-self:start; padding:28px; border-radius:19px; box-shadow:var(--shadow-sm); }
.eida-index .eida-download-heading { display:grid; grid-template-columns:38px minmax(0,1fr); column-gap:12px; row-gap:3px; align-items:center; margin:0 0 20px; padding-right:18px; }
.eida-index .eida-download-mark { grid-row:1 / 3; width:38px; height:38px; margin:0; border-radius:10px; }
.eida-index .eida-download-mark svg { width:22px; height:22px; }
.eida-index .eida-download-heading .eida-kicker { font-size:10px; letter-spacing:.08em; }
.eida-index .eida-download-heading h2 { font-size:27px; line-height:1.15; margin:0; }
.eida-index .eida-download-heading > p:last-child { grid-column:1 / -1; font-size:13px; line-height:1.45; margin-top:6px; }
.eida-index #publicDownloadForm { display:flex; flex-direction:column; gap:9px; }
.eida-index #publicDownloadForm > * { margin-block:0 !important; }
.eida-index .eida-download .eida-field-title { margin:0 0 7px; font-size:11px; }
.eida-index .eida-download fieldset { gap:4px; }
.eida-index .eida-download fieldset > div { display:grid; grid-template-columns:repeat(10,minmax(0,40px)); justify-content:start; gap:5px; }
.eida-index .eida-download .nip-box { width:100% !important; max-width:40px; height:auto; aspect-ratio:1; min-height:0; font-size:16px; border-radius:6px; }
.eida-index .eida-download #nipHelp,.eida-index .eida-download #nipError { font-size:12px; line-height:16px; margin:0; }
.eida-index .eida-download #nipError { display:block; min-height:16px; color:var(--eida-danger); }
.eida-index .eida-download #nipError.hidden { visibility:hidden; }
.eida-index .eida-download .nip-box.ring-rose-500 { box-shadow:none; border-color:var(--eida-danger); background:color-mix(in srgb,var(--eida-danger) 4%,var(--eida-field)); }
.eida-index .eida-download .nip-box.ring-rose-500:focus { outline:1px solid var(--eida-danger); outline-offset:1px; }
.eida-index .eida-download textarea { min-height:60px; height:60px; padding:9px 11px; display:block; }
.eida-index .eida-download #codesPreview { margin:3px 0 0; min-height:25px; max-height:25px; overflow:auto; align-content:start; align-items:flex-start; justify-content:flex-start; gap:3px; padding:1px; scrollbar-width:thin; }
.eida-index .eida-download #codesPreview > span { max-width:100%; overflow-wrap:anywhere; white-space:normal; }
.eida-index .eida-download #codesHint { margin:3px 0 0; height:36px; min-height:36px; overflow:visible; align-content:start; align-items:center; font-size:12px; line-height:18px; }
.eida-index .eida-download button[type=submit] { min-height:44px; padding-block:10px; font-size:14px; }
.eida-index .eida-download #publicDownloadForm > div:last-child > p { margin-top:6px; font-size:11px; line-height:15px; }
.eida-index .eida-features { max-width:1160px; padding-top:36px; }
.eida-index .eida-features > div > div > div { padding:23px; gap:10px; }
.eida-index .eida-features > div > div > div > svg { width:34px; height:34px; padding:7px; }
.eida-index .eida-features h3 { font-size:15px; }
.eida-index .eida-features p:not(.eida-kicker) { font-size:14px; line-height:1.6; }
@media (max-width:1000px){

 .eida-index .eida-hero { grid-template-columns:minmax(0,1fr); gap:18px; max-width:600px; }
 .eida-index .eida-hero-story { padding:28px; }
 .eida-index .eida-hero > .eida-download { max-width:none; }

}
@media (max-width:767px){

 .eida-index .eida-container { padding-top:18px; padding-bottom:28px; }
 .eida-index .eida-hero-story { padding:24px 20px; gap:14px; border-radius:16px; }
 .eida-index .eida-hero-story h1 { font-size:clamp(32px,7vw,42px); }
 .eida-index .eida-hero-story > p { font-size:14px; }
 .eida-index .eida-hero-story .cta-press,.eida-index .eida-hero-story #howItWorksBtn { font-size:12px; padding:10px 11px; }
 .eida-index .eida-hero > .eida-download { padding:20px 14px; border-radius:16px; }
 .eida-index .eida-download fieldset > div { gap:3px; }
 .eida-index .eida-download-heading h2 { font-size:24px; }

}
@media (min-width:1100px){

 .eida-index .eida-hero-story { min-height:440px; }

}
@media (min-width:1200px){

 .eida-index .eida-download #codesHint { height:20px; min-height:20px; }

}
/* Give the layout room, not the inputs. Keep feedback slots stable. */

.eida-index .eida-download #codesHint code { line-height:16px; padding-block:0; }
.eida-index .eida-features-label { display:none; }
.eida-index .eida-features > div > div { gap:18px; }
/* Home content only; shared shell lives in eida-brand.css. */

@media (max-width:767px){

 .eida-index .eida-features { padding-top:24px; }
 .eida-index .eida-features > div > div { gap:12px; }
 .eida-index .eida-features > div > div > div { padding:18px; }

}

/* Studio 2.5 — shared product hero, fixed-width recipient tool. Home only. */
.eida-ui.eida-index { background:var(--bg); }
.eida-index .eida-hero {
  --hero-ink:#e4eefb;
  padding:24px;
  gap:30px;
  grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);
  align-items:center;
  isolation:isolate;
  position:relative;
  border-radius:24px;
  background:radial-gradient(ellipse at 76% -10%,#315981 0%,transparent 65%),linear-gradient(140deg,#193657,#10243d 88%);
  box-shadow:0 16px 38px #10284e19;
}
.eida-index .eida-hero::before { content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none; background:linear-gradient(#b9d4f909 1px,transparent 1px),linear-gradient(90deg,#b9d4f909 1px,transparent 1px); background-size:40px 40px; mask-image:linear-gradient(100deg,#0000,#000); }
.dark .eida-index .eida-hero { background:radial-gradient(ellipse at 85% 0%,#2a466a 0%,transparent 70%),linear-gradient(145deg,#142a47,#0d2037); }
.eida-index .eida-hero-story,.dark .eida-index .eida-hero-story { padding:12px 6px 12px 15px; gap:15px; min-height:0; background:none; border-radius:0; box-shadow:none; overflow:visible; }
.eida-index .eida-hero-story::before { display:none; }
.eida-index .eida-hero-story > div:first-child > span { border:0; background:none; padding:0; font-size:11px; letter-spacing:.12em; color:#b6d4f2; }
.eida-index .eida-hero-story h1 { font-size:clamp(32px,3.35vw,48px); line-height:1.11; letter-spacing:-.045em; }
.eida-index .eida-hero-story > p { font-size:15px; line-height:1.55; color:#d5e4f5; max-width:480px; }
.eida-index .eida-exchange { width:100%; max-width:490px; padding:5px 0 0; }
.eida-index .eida-exchange > svg { display:block; width:100%; height:auto; }
.eida-index .eida-hero-story > div:last-child { gap:12px; padding-top:1px; }
.eida-index .eida-hero-story .cta-press,.eida-index .eida-hero-story #howItWorksBtn { padding:12px 15px; min-height:44px; }
/* Keep the existing recipient node, even when moved into the zoom modal. */
.eida-ui.eida-index .eida-download { padding:0; border-radius:19px; background:var(--surface); border-color:var(--border); box-shadow:0 14px 38px #06162930; }
.eida-index .eida-hero > .eida-download { align-self:center; max-width:550px; }
.eida-index .eida-download-heading { grid-template-columns:44px minmax(0,1fr); column-gap:12px; row-gap:4px; padding:24px 28px 22px; margin:0; border-radius:18px 18px 0 0; background:linear-gradient(112deg,#203d63,#2b537c); color:#fff; }
.dark .eida-index .eida-download-heading { background:linear-gradient(112deg,#213b5e,#294d73); }
.eida-index .eida-download-heading .eida-kicker { color:#bdd9fb; font-size:10px; padding-right:24px; }
.eida-index .eida-download-heading h2 { color:#fff; font-size:27px; line-height:1.16; padding-right:18px; }
.eida-index .eida-download-heading > p:last-child { color:#e0ebfa; font-size:13px; margin-top:7px; }
.eida-index .eida-download-mark { width:44px; height:44px; color:#d6e8ff; background:#ffffff16; border:1px solid #b2d2ff35; border-radius:12px; }
.eida-index .eida-download #zoomBtn { color:#e6f0ff !important; top:13px; right:13px; z-index:2; }
.eida-index .eida-download #zoomBtn:hover { background:#ffffff18; }
.eida-index #publicDownloadForm { padding:25px 28px 24px; gap:13px; }
.eida-index .eida-download .eida-field-title { margin-bottom:8px; }
.eida-index .eida-download .nip-box { width:100% !important; max-width:40px; height:auto; aspect-ratio:1; }
.eida-index .eida-download textarea { resize:none; height:70px; min-height:70px; }
.eida-index .eida-download #codesHint { height:36px; min-height:36px; }
.eida-index .eida-download #codesPreview { scrollbar-width:thin; }
.eida-index .eida-download #codesPreview:empty { overflow:hidden; }
.eida-index .eida-download button[type=submit] { min-height:46px; }
/* Three supporting benefits as a light, continuous strip, not more cards. */
.eida-index .eida-features { padding-top:32px; }
.eida-index .eida-features > div > div { gap:0; border-block:1px solid var(--border); }
.eida-index .eida-features > div > div > div { display:grid; grid-template-columns:38px minmax(0,1fr); gap:6px 12px; padding:20px 22px; border:0; border-radius:0; background:transparent; box-shadow:none; align-content:start; }
.eida-index .eida-features > div > div > div + div { border-left:1px solid var(--border); }
.eida-index .eida-features > div > div > div > svg { grid-row:1 / 3; width:38px; height:38px; padding:8px; }
.eida-index .eida-features h3 { align-self:center; font-size:14px; line-height:1.45; }
.eida-index .eida-features p:not(.eida-kicker) { grid-column:2; font-size:13px; line-height:1.55; }
@media (min-width:1200px){
 .eida-index .eida-download #codesHint { height:22px; min-height:22px; } 
}
@media (max-width:1000px){

 .eida-index .eida-hero { grid-template-columns:minmax(0,1fr); max-width:600px; padding:22px; gap:24px; }
 .eida-index .eida-hero-story,.dark .eida-index .eida-hero-story { padding:6px 4px; }
 .eida-index .eida-hero > .eida-download { max-width:none; }
 .eida-index .eida-features > div > div > div { padding:16px 12px; gap:6px 8px; grid-template-columns:32px minmax(0,1fr); }
 .eida-index .eida-features > div > div > div > svg { width:32px; height:32px; }

}
@media (max-width:767px){

 .eida-index .eida-hero { padding:14px; gap:20px; border-radius:18px; }
 .eida-index .eida-hero-story,.dark .eida-index .eida-hero-story { padding:8px 6px; gap:12px; }
 .eida-index .eida-hero-story h1 { font-size:clamp(29px,7.5vw,42px); }
 .eida-index .eida-hero-story > p { font-size:14px; }
 .eida-index .eida-download-heading { padding:20px 14px 17px; grid-template-columns:36px minmax(0,1fr); gap:4px 9px; border-radius:18px 18px 0 0; }
 .eida-index .eida-download-heading h2 { font-size:23px; }
 .eida-index .eida-download-mark { width:36px; height:36px; }
 .eida-index .eida-download-heading .eida-kicker { font-size:9px; }
 .eida-index #publicDownloadForm { padding:19px 14px 18px; gap:10px; }
 .eida-index .eida-download fieldset > div { grid-template-columns:repeat(10,minmax(0,40px)); gap:3px; }
 .eida-index .eida-download #nipError { min-height:32px; }
 .eida-index .eida-download #codesHint { min-height:36px; height:36px; }
 .eida-index .eida-hero-story .cta-press,.eida-index .eida-hero-story #howItWorksBtn { padding:10px 12px; font-size:12px; }
 .eida-index .eida-features { padding-top:24px; }
 .eida-index .eida-features > div > div { grid-template-columns:1fr; }
 .eida-index .eida-features > div > div > div + div { border-left:0; border-top:1px solid var(--border); }

}
