/* ============================================================================
 * AEROIR — custom styles (public/css/style.css)
 * Tailwind handles layout/spacing; this file carries the industrial theme:
 * buttons, chips, HUD frames, compare slider, portal viewer chrome, pins.
 * ========================================================================== */

:root {
  --obsidian: #0B0F19;
  --elevate: #131A2A;
  --ember: #F97316;
  --flare: #EC4899;
}

html { scroll-behavior: smooth; }
body { background: var(--obsidian); }
::selection { background: rgba(249, 115, 22, .35); color: #fff; }

/* Thin dark scrollbars */
* { scrollbar-width: thin; scrollbar-color: #2a3244 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #2a3244; border-radius: 8px; }

/* ------------------------------- brand ------------------------------- */
/* Matches the original logo: geometric sans (Poppins ≈ logo cut), mixed-case
   "Aero" + uppercase "IR" in the logo's burnt orange. On the dark theme the
   navy "Aero" renders white for contrast; the rotor badge carries the navy
   half of the palette. */
.wordmark {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.wordmark .ir { color: #D65D10; }

/* ------------------------------- buttons ------------------------------ */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.15rem; border-radius: .6rem;
  font-weight: 600; font-size: .875rem; color: #0B0F19;
  background: linear-gradient(135deg, #F97316, #F05C1A);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, .35), 0 8px 28px -8px rgba(249, 115, 22, .55);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.07);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, .55), 0 10px 34px -8px rgba(249, 115, 22, .75); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.15rem; border-radius: .6rem; font-weight: 500; font-size: .875rem;
  color: #cbd5e1; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: border-color .15s, color .15s, background .15s;
}
.btn-ghost:hover { border-color: rgba(249, 115, 22, .5); color: #fff; background: rgba(249, 115, 22, .07); }

.btn-icon {
  display: inline-grid; place-items: center; width: 2.15rem; height: 2.15rem;
  border-radius: .55rem; color: #94a3b8; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1); transition: color .15s, border-color .15s;
}
.btn-icon:hover { color: #fff; border-color: rgba(249, 115, 22, .5); }

.btn-sm { padding: .5rem .85rem; font-size: .8rem; }
.btn-xs { padding: .35rem .6rem; font-size: .72rem; border-radius: .45rem; }

.spinner {
  width: .9rem; height: .9rem; border-radius: 50%;
  border: 2px solid rgba(11, 15, 25, .3); border-top-color: #0B0F19;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------- chips ------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
}
.chip-ember { color: #FDBA74; background: rgba(249, 115, 22, .12); border: 1px solid rgba(249, 115, 22, .35); }
.chip-flare { color: #F9A8D4; background: rgba(236, 72, 153, .12); border: 1px solid rgba(236, 72, 153, .4); }
.chip-ghost { color: #94a3b8; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }

.ping { position: absolute; inset: 0; border-radius: 999px; background: rgba(249, 115, 22, .7); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.ping-core { position: absolute; inset: 2px; border-radius: 999px; background: #F97316; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

/* -------------------------------- nav --------------------------------- */
#site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .7); background: rgba(11, 15, 25, .92); }
.nav-link { position: relative; padding: .25rem 0; transition: color .15s; }
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--flare)); transition: right .2s ease;
}
.nav-link:hover::after, .nav-link.nav-active::after { right: 0; }
.nav-active { color: #fff !important; }

/* -------------------------------- hero -------------------------------- */
.hero-bg {
  background:
    radial-gradient(600px 340px at 12% 8%, rgba(249, 115, 22, .09), transparent 65%),
    radial-gradient(700px 380px at 88% 22%, rgba(236, 72, 153, .07), transparent 65%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: linear-gradient(to bottom, black 55%, transparent);
}
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 130px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(249, 115, 22, .05), transparent);
  animation: scan 9s linear infinite;
}
@keyframes scan { 0% { transform: translateY(-140px); } 100% { transform: translateY(105vh); } }

.text-gradient-thermal {
  background: linear-gradient(100deg, #F97316 10%, #EC4899 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* corner-bracket HUD frame */
.corner-frame { position: relative; padding: 10px; }
.corner-frame::before, .corner-frame::after {
  content: ''; position: absolute; width: 26px; height: 26px; pointer-events: none;
  border-color: rgba(249, 115, 22, .8); border-style: solid;
}
.corner-frame::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.corner-frame::after { bottom: 26px; right: 0; border-width: 0 2px 2px 0; }

/* ------------------------- comparison slider -------------------------- */
.cmp {
  position: relative; overflow: hidden; border-radius: .75rem;
  aspect-ratio: 3 / 2; background: #0d1220; cursor: ew-resize;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-top { position: absolute; inset: 0; will-change: clip-path; }
.cmp-label {
  position: absolute; top: 10px; z-index: 5; pointer-events: none;
  font-family: 'JetBrains Mono', monospace; font-size: .62rem; letter-spacing: .12em;
  padding: .28rem .55rem; border-radius: .35rem; color: #e2e8f0;
  background: rgba(11, 15, 25, .72); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(4px);
}
.cmp-label-l { left: 10px; } .cmp-label-r { right: 10px; color: #FDBA74; border-color: rgba(249, 115, 22, .4); }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; width: 2px; left: 50%;
  background: linear-gradient(to bottom, var(--ember), var(--flare));
  box-shadow: 0 0 18px rgba(249, 115, 22, .65); z-index: 6;
}
.cmp-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 2px; padding: .55rem .5rem; border-radius: 999px;
  background: #0B0F19; border: 1px solid rgba(249, 115, 22, .6); color: #FDBA74;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}
.cmp-range {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 7;
}
/* hide handle/labels unless in split mode */
.cmp:not(.mode-split) .cmp-handle, .cmp:not(.mode-split) .cmp-range { display: none; }

.hud-row { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.hud-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .62rem; font-family: 'JetBrains Mono', monospace; letter-spacing: .1em;
  color: #94a3b8; padding: .3rem .6rem; border-radius: .4rem;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
}

/* --------------------------- section chrome --------------------------- */
.section-head { max-width: 640px; }
.overline {
  font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .28em;
  color: var(--ember); text-transform: uppercase; margin-bottom: .9rem;
}
.overline::before { content: '// '; color: rgba(249, 115, 22, .5); }
.h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -.01em; }
.section-sub { color: #94a3b8; margin-top: 1rem; line-height: 1.65; }

.card {
  background: var(--elevate); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: .9rem; position: relative;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

/* trust bar */
.trust-item { display: flex; gap: .9rem; align-items: flex-start; }
.trust-title { color: #fff; font-weight: 600; font-size: .86rem; line-height: 1.35; }
.trust-sub { color: #64748b; font-size: .74rem; margin-top: .2rem; }

/* services */
.service-card { padding: 1.6rem; }
.service-card:hover { transform: translateY(-3px); border-color: rgba(249, 115, 22, .45);
  box-shadow: 0 18px 44px -18px rgba(249, 115, 22, .25); }
.service-icon {
  width: 3rem; height: 3rem; border-radius: .8rem; display: grid; place-items: center;
  color: var(--ember); background: rgba(249, 115, 22, .1); border: 1px solid rgba(249, 115, 22, .3);
  margin-bottom: 1.1rem;
}
.service-title { font-family: 'Space Grotesk', sans-serif; color: #fff; font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.service-desc { color: #94a3b8; font-size: .86rem; line-height: 1.65; margin-top: .6rem; }
.service-list { margin-top: 1rem; display: grid; gap: .45rem; }
.service-list li { display: flex; align-items: center; gap: .55rem; font-size: .8rem; color: #cbd5e1; }
.service-list svg { color: var(--ember); flex-shrink: 0; }
.service-foot {
  margin-top: 1.1rem; padding-top: .9rem; border-top: 1px dashed rgba(255, 255, 255, .1);
  font-family: 'JetBrains Mono', monospace; font-size: .66rem; letter-spacing: .06em; color: #FDBA74;
}

/* industries */
.industry {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem;
  background: var(--elevate); border: 1px solid rgba(255, 255, 255, .06); border-radius: .8rem;
  transition: border-color .2s;
}
.industry:hover { border-color: rgba(236, 72, 153, .4); }
.industry svg { color: #F9A8D4; flex-shrink: 0; margin-top: 2px; }
.ind-title { color: #fff; font-weight: 600; font-size: .88rem; }
.ind-sub { color: #64748b; font-size: .74rem; margin-top: .15rem; }

/* compliance */
.cert { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: .8rem;
  background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .07); }
.cert svg { color: var(--ember); flex-shrink: 0; margin-top: 2px; }
.cert-t { color: #fff; font-weight: 600; font-size: .85rem; }
.cert-s { color: #64748b; font-size: .73rem; margin-top: .15rem; line-height: 1.5; }

.step { display: flex; gap: 1rem; position: relative; padding-bottom: 1.6rem; }
.step::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 0; width: 1px; background: rgba(255, 255, 255, .1); }
.step.last::before { display: none; }
.step.last { padding-bottom: 0; }
.step-dot {
  width: 27px; height: 27px; border-radius: 999px; flex-shrink: 0; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: #FDBA74;
  background: rgba(249, 115, 22, .12); border: 1px solid rgba(249, 115, 22, .45); z-index: 1;
}
.step-t { color: #fff; font-weight: 600; font-size: .9rem; }
.step-s { color: #64748b; font-size: .78rem; margin-top: .2rem; line-height: 1.55; }

/* coverage */
.cover-row {
  display: grid; grid-template-columns: 150px 1fr auto; gap: .8rem; align-items: center;
  padding: .65rem .9rem; border-radius: .6rem; background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .06);
}
.cover-city { color: #fff; font-weight: 600; font-size: .86rem; }
.cover-note { color: #94a3b8; font-size: .78rem; }
.map-card .mp { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; fill: #94a3b8; letter-spacing: .08em; }
.map-card .mp-home { fill: #FDBA74; font-weight: 600; }
.map-card .mp-flare { fill: #F9A8D4; }

/* footer */
.footer-h { color: #fff; font-weight: 600; font-size: .82rem; margin-bottom: .8rem; }
.footer-link { color: #94a3b8; transition: color .15s; }
.footer-link:hover { color: #FDBA74; }

/* samples */
.sample-thumb { height: 170px; overflow: hidden; border-radius: .9rem .9rem 0 0; position: relative; background: #0d1220; }
.card .sample-thumb { margin: 4px; width: calc(100% - 8px); border-radius: .7rem; }

/* ------------------------------- forms -------------------------------- */
.field label {
  display: block; font-size: .68rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: .4rem;
}
.field input, .field select, .pin-form input, .pin-form select {
  width: 100%; padding: .62rem .8rem; border-radius: .55rem;
  background: rgba(11, 15, 25, .7); border: 1px solid rgba(255, 255, 255, .1);
  color: #fff; font-size: .875rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .pin-form input::placeholder { color: #475569; }
.field input:focus, .field select:focus, .pin-form input:focus, .pin-form select:focus {
  border-color: rgba(249, 115, 22, .6); box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
}
.field select option { background: #131A2A; }
.field input.invalid { border-color: rgba(236, 72, 153, .75); box-shadow: 0 0 0 3px rgba(236, 72, 153, .12); }
.field input.valid { border-color: rgba(52, 211, 153, .55); }
.field-msg { color: #F9A8D4; font-size: .7rem; margin-top: .3rem; min-height: 1em; transition: opacity .2s; }

/* toasts */
.toast {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: .6rem;
  background: #161f31; border: 1px solid rgba(255, 255, 255, .12); color: #e2e8f0;
  font-size: .8rem; box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .6);
  animation: toast-in .25s ease;
}
.toast svg { flex-shrink: 0; }
.toast-ok svg { color: #34d399; } .toast-error svg { color: #F9A8D4; } .toast-info svg { color: #FDBA74; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ============================== PORTAL ================================ */

.portal-select {
  appearance: none; padding: .5rem 2.2rem .5rem .9rem; border-radius: .55rem;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff; font-size: .82rem; font-weight: 500; outline: none; cursor: pointer; max-width: 300px;
}
.portal-select:focus { border-color: rgba(249, 115, 22, .55); }
.portal-select option { background: #131A2A; }

.ptab {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: .55rem;
  font-size: .78rem; font-weight: 500; color: #94a3b8; white-space: nowrap;
  border: 1px solid transparent; transition: all .15s;
}
.ptab:hover { color: #fff; }
.ptab.active { color: #FDBA74; background: rgba(249, 115, 22, .1); border-color: rgba(249, 115, 22, .4); }

.seg { display: inline-flex; padding: 3px; border-radius: .6rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.seg button { padding: .3rem .75rem; border-radius: .45rem; font-size: .72rem; font-weight: 600; color: #94a3b8; }
.seg button.active { background: rgba(249, 115, 22, .18); color: #FDBA74; }

body[data-role="client"] .admin-only { display: none !important; }

.side-title {
  font-family: 'JetBrains Mono', monospace; font-size: .66rem; letter-spacing: .22em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: .8rem;
}
.status-dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block;
  box-shadow: 0 0 10px currentColor; }

.meta-box { background: rgba(11, 15, 25, .6); border: 1px solid rgba(255, 255, 255, .07); border-radius: .55rem; padding: .55rem .7rem; }
.meta-box span { display: block; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: #64748b; }
.meta-box b { display: block; font-family: 'JetBrains Mono', monospace; font-size: .82rem; color: #FDBA74; margin-top: .15rem; }

/* model stage */
.model-stage { height: min(68vh, 620px); background: #0d1220; }
.model-stage model-viewer { width: 100%; height: 100%; --poster-color: #0d1220; }
.model-stage model-viewer::part(default-progress-bar) { display: none; }
#model-stage:fullscreen { border-radius: 0; height: 100vh; background: #0d1220; }
#model-stage:fullscreen model-viewer { height: 100vh; }

#mv-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255, 255, 255, .06); z-index: 10; transition: opacity .4s; }
#mv-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--flare)); transition: width .2s; }

#mv-toolbar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: .4rem; padding: .4rem; border-radius: .7rem; z-index: 10;
  background: rgba(11, 15, 25, .85); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px);
}
.mv-btn {
  display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .6rem; border-radius: .5rem;
  font-size: .72rem; font-weight: 600; color: #cbd5e1; transition: all .15s;
}
.mv-btn:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.mv-btn.active { color: #FDBA74; background: rgba(249, 115, 22, .15); }

.mv-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 5; padding: 2rem; background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, .012) 14px 28px);
}
.model-stage.annotating { cursor: crosshair; }
.model-stage.annotating model-viewer { cursor: crosshair; }
.annotate-hint {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 11;
  font-family: 'JetBrains Mono', monospace; font-size: .62rem; letter-spacing: .16em; color: #FDBA74;
  padding: .35rem .7rem; border-radius: .4rem; background: rgba(11, 15, 25, .85);
  border: 1px solid rgba(249, 115, 22, .45);
}
.annotate-hint.hidden { display: none; }

.pin-form {
  position: absolute; right: 14px; bottom: 70px; z-index: 12; width: 260px;
  display: grid; gap: .5rem; padding: 1rem; border-radius: .7rem;
  background: rgba(11, 15, 25, .95); border: 1px solid rgba(249, 115, 22, .4);
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .7);
}
.pin-form.hidden { display: none; }

/* model-viewer hotspot pins */
.mv-pin { position: absolute; transform: translate(-50%, -50%); background: none; border: none; cursor: pointer; z-index: 9; padding: 6px; }
.mv-pin .mv-pin-num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: .72rem; font-weight: 600; color: #0B0F19;
  background: radial-gradient(circle at 32% 30%, #FDBA74, #F97316);
  border: 2px solid rgba(11, 15, 25, .85); box-shadow: 0 0 0 3px rgba(249, 115, 22, .25), 0 4px 14px rgba(0, 0, 0, .5);
}
.mv-pin.sev-critical .mv-pin-num { background: radial-gradient(circle at 32% 30%, #F9A8D4, #EC4899); box-shadow: 0 0 0 3px rgba(236, 72, 153, .28), 0 4px 14px rgba(0, 0, 0, .5); }
.mv-pin .mv-pin-tip {
  position: absolute; left: 32px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: .62rem; color: #e2e8f0;
  padding: .3rem .55rem; border-radius: .4rem; background: rgba(11, 15, 25, .92);
  border: 1px solid rgba(255, 255, 255, .16); opacity: 0; pointer-events: none; transition: opacity .15s;
}
.mv-pin:hover .mv-pin-tip, .mv-pin:focus-visible .mv-pin-tip { opacity: 1; }
.mv-pin::after { content: ''; position: absolute; inset: 0; border-radius: 999px; animation: pin-pulse 2.2s ease-out infinite; border: 2px solid rgba(249, 115, 22, .55); }
.mv-pin.sev-critical::after { border-color: rgba(236, 72, 153, .6); }
@keyframes pin-pulse { 0% { transform: scale(.7); opacity: .9; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* pins list */
.pin-row { display: flex; gap: .7rem; align-items: center; padding: .6rem .75rem; border-radius: .55rem; cursor: pointer; transition: background .15s; }
.pin-row:hover { background: rgba(255, 255, 255, .04); }
.pin-row.active { background: rgba(249, 115, 22, .09); box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .4); }
.pin-badge {
  width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: .72rem; font-weight: 700; color: #0B0F19;
}
.pin-badge.sev-critical { background: linear-gradient(135deg, #F9A8D4, #EC4899); }
.pin-badge.sev-elevated { background: linear-gradient(135deg, #FDBA74, #F97316); }
.pin-badge.sev-moderate { background: #64748b; color: #fff; }

/* inspector */
.set-chip {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .8rem .45rem .45rem; border-radius: .6rem;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
  font-size: .78rem; font-weight: 500; color: #cbd5e1; white-space: nowrap; transition: all .15s;
}
.set-chip:hover { border-color: rgba(249, 115, 22, .45); }
.set-chip.active { border-color: rgba(249, 115, 22, .6); background: rgba(249, 115, 22, .1); color: #fff; }
.set-thumb { width: 44px; height: 30px; border-radius: .35rem; object-fit: cover; border: 1px solid rgba(255, 255, 255, .12); }

.insp-view { position: relative; }
#insp-zoomable { overflow: hidden; border-radius: .6rem; cursor: zoom-in; transition: transform .18s ease; }
#insp-zoomable.is-zoomed { cursor: grab; transition: none; }
#insp-zoomable.is-zoomed:active { cursor: grabbing; }
.cmp-insp .cmp-handle { cursor: inherit; }

.insp-toolbar, .insp-toolbar-right {
  position: absolute; top: 12px; z-index: 8; display: flex; gap: .35rem; padding: .35rem;
  border-radius: .6rem; background: rgba(11, 15, 25, .85); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px);
}
.insp-toolbar { left: 12px; }
.insp-toolbar-right { right: 12px; }
.insp-hint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 8;
  font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .1em; color: #94a3b8;
  padding: .28rem .6rem; border-radius: .35rem; background: rgba(11, 15, 25, .75); border: 1px solid rgba(255, 255, 255, .1);
  pointer-events: none;
}

.t-marker { position: absolute; z-index: 7; transform: translate(-50%, -50%); pointer-events: none; }
.t-cross { display: block; width: 18px; height: 18px; position: relative; }
.t-cross::before, .t-cross::after { content: ''; position: absolute; background: currentColor; }
.t-cross::before { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.t-cross::after { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.t-max { color: #EC4899; } .t-min { color: #7dd3fc; }
.t-tag {
  position: absolute; left: 14px; top: -9px; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: .6rem; font-weight: 600;
  padding: .18rem .45rem; border-radius: .3rem; color: #fff;
  background: rgba(11, 15, 25, .85); border: 1px solid currentColor;
}
.t-max .t-tag { color: #F9A8D4; } .t-min .t-tag { color: #bae6fd; }

.ironbow-legend {
  height: 12px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(90deg, #04060f, #25146e 20%, #8f1d78 40%, #d5382c 60%, #f59e0b 80%, #fde68a 93%, #fff);
}

/* deliverables */
.file-row { padding: 1.1rem 1.3rem; }
.file-row:hover { border-color: rgba(249, 115, 22, .35); }
.file-icon {
  width: 2.8rem; height: 2.8rem; border-radius: .7rem; display: grid; place-items: center; flex-shrink: 0;
  color: #FDBA74; background: rgba(249, 115, 22, .1); border: 1px solid rgba(249, 115, 22, .3);
}
.dl-progress { height: 3px; margin-top: .8rem; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.dl-bar { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--ember), var(--flare)); transition: width .3s ease; }

/* upload staging */
.drop-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 190px; border-radius: .8rem; padding: 1.5rem; cursor: pointer;
  border: 2px dashed rgba(249, 115, 22, .35); background: rgba(249, 115, 22, .04);
  transition: border-color .15s, background .15s;
}
.drop-zone:hover, .drop-zone.drag { border-color: rgba(249, 115, 22, .8); background: rgba(249, 115, 22, .1); }

.pair-drop {
  position: relative; display: grid; place-items: center; height: 130px; border-radius: .7rem; cursor: pointer;
  border: 2px dashed rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .03); overflow: hidden;
  transition: border-color .15s;
}
.pair-drop:hover { border-color: rgba(249, 115, 22, .6); }
.pair-drop-label { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .74rem; color: #94a3b8; }
.pair-drop-label svg { color: #FDBA74; }
.pair-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair-drop.has-file .pair-drop-label { display: none; }
.pair-drop img.hidden { display: none; }

.staged-item {
  display: flex; align-items: center; gap: .8rem; padding: .65rem .8rem; border-radius: .6rem;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
