:root {
  color-scheme: dark;
  --bg: #070910;
  --bg-soft: #0c101b;
  --panel: rgba(17, 22, 37, .76);
  --panel-strong: rgba(21, 27, 45, .94);
  --border: rgba(255, 255, 255, .085);
  --border-strong: rgba(0, 226, 202, .30);
  --text: #f6f7fb;
  --muted: #9099ad;
  --muted-2: #6f788c;
  --accent: #00dfc4;
  --accent-2: #00a8ff;
  --accent-soft: rgba(0, 223, 196, .14);
  --success: #55e4aa;
  --danger: #ff6f8c;
  --warning: #ffc66d;
  --shadow: 0 28px 90px rgba(0, 0, 0, .44);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 2%, rgba(0, 223, 196, .18), transparent 31rem),
    radial-gradient(circle at 92% 82%, rgba(0, 168, 255, .14), transparent 36rem),
    linear-gradient(145deg, #090c15 0%, #060810 58%, #080912 100%);
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.glass {
  background: linear-gradient(145deg, rgba(24, 30, 49, .78), rgba(11, 14, 24, .78));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(24px);
}
.ambient {
  position: fixed;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  filter: blur(115px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
.ambient-a { left: -140px; top: 20%; background: var(--accent); }
.ambient-b { right: -140px; bottom: 4%; background: var(--accent-2); }

.brand-mark { display: flex; gap: 5px; width: fit-content; }
.brand-mark span {
  width: 8px;
  height: 30px;
  border-radius: 99px;
  transform: skew(-18deg);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px rgba(0, 223, 196, .48);
}
.brand-mark span:nth-child(2) { height: 22px; margin-top: 4px; opacity: .75; }
.brand-mark span:nth-child(3) { height: 14px; margin-top: 8px; opacity: .45; }
.brand-mark.compact { transform: scale(.72); transform-origin: left center; }
.brand-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.brand-lockup strong { display: block; font-size: 15px; }
.brand-lockup small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .16em; }

.eyebrow { margin: 0 0 10px; color: #69ffec; font-size: 10px; letter-spacing: .19em; font-weight: 900; }
h1, h2, h3, p { text-wrap: balance; }
h1 { margin: 0; font-size: clamp(36px, 5.2vw, 64px); line-height: .98; letter-spacing: -.052em; }
h1 span { color: #99b9bd; }
h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.muted { color: var(--muted); line-height: 1.68; }

.primary, .ghost, .action-card, .mode, .auth-mode, .icon-button {
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.primary {
  padding: 14px 18px;
  font-weight: 850;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 15px 36px rgba(0, 223, 196, .28);
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(0, 223, 196, .36); }
.primary:disabled { opacity: .5; cursor: wait; transform: none; }
.primary.wide { width: 100%; padding-block: 16px; }
.ghost { padding: 10px 14px; border: 1px solid var(--border); background: rgba(255,255,255,.035); }
.ghost:hover { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.14); }
.small-button { padding: 7px 10px; font-size: 11px; }
.icon-button { width: 38px; height: 38px; font-size: 24px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.icon-button:hover { background: rgba(255,255,255,.08); }

.field > span, label > span { display: block; margin-bottom: 8px; color: #c8cedb; font-size: 12px; font-weight: 750; }
input[type="text"], input[type="password"], input[type="url"], input[type="number"], input:not([type]) {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px 15px;
  color: var(--text);
  background: rgba(4, 6, 12, .58);
  outline: none;
  transition: .2s ease;
}
input:focus { border-color: rgba(0, 223, 196, .74); box-shadow: 0 0 0 4px rgba(0, 223, 196, .11); }
input::placeholder { color: #586075; }

/* Authentication */
.auth-body { display: grid; place-items: center; padding: 28px; }
.auth-shell { width: min(455px, 100%); }
.register-shell { width: min(620px, 100%); }
.login-card { position: relative; overflow: hidden; padding: 42px; border-radius: 30px; }
.login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 223, 196, .28), transparent 42%, rgba(0, 168, 255, .15));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}
.login-card h1 { font-size: clamp(36px, 8vw, 46px); }
.login-card .muted { margin: 14px 0 0; }
.stack { display: grid; gap: 17px; margin-top: 30px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.error { min-height: 20px; margin: 0; color: var(--danger); font-size: 12px; }
.auth-footer { display: flex; justify-content: center; gap: 7px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.auth-footer a { color: #65f7e3; text-decoration: none; font-weight: 750; }
.auth-footer a:hover { text-decoration: underline; }
.security-note { display: flex; justify-content: center; gap: 9px; align-items: center; margin-top: 24px; color: var(--muted-2); font-size: 11px; }
.security-note i, .online i, .status-pill i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px var(--success);
}

/* Header and dashboard */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  width: min(1210px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 12px 16px;
  border-radius: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-row, .top-actions, .online { display: flex; align-items: center; }
.brand-row { gap: 2px; }
.brand-row strong { display: block; font-size: 14px; }
.brand-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: .15em; }
.top-actions { gap: 12px; }
.online { gap: 8px; padding: 0 4px; color: #bcc4d3; font-size: 12px; }
.dashboard { width: min(1120px, calc(100% - 34px)); margin: 70px auto 110px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 34px; }
.hero .muted { max-width: 660px; margin: 18px 0 0; }
.status-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 12px;
}
.status-pill.bad i { background: var(--danger); box-shadow: 0 0 14px var(--danger); }
.quota-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.quota { padding: 20px 21px; border-radius: 19px; }
.quota span, .quota small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.quota strong { display: block; margin: 9px 0 5px; font-size: 25px; letter-spacing: -.03em; }

/* Workspace */
.workspace { border-radius: 25px; overflow: hidden; }
.workspace-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 28px 18px; }
.workspace-head .eyebrow { margin-bottom: 6px; }
.secure-badge { padding: 8px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 10px; background: rgba(255,255,255,.025); }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 28px 24px; border-bottom: 1px solid var(--border); }
.action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  text-align: left;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
}
.action-card:hover { transform: translateY(-1px); border-color: rgba(0,226,202,.22); background: rgba(119,88,255,.055); }
.action-card.active { color: #fff; border-color: rgba(0,226,202,.42); background: linear-gradient(145deg, rgba(119,88,255,.18), rgba(177,71,255,.08)); box-shadow: inset 0 0 0 1px rgba(119,88,255,.09); }
.action-card.featured::after { content: "AUTO"; margin-left: auto; color: #6ff6e5; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.action-card > span:last-child { min-width: 0; }
.action-card strong, .action-card small { display: block; }
.action-card strong { font-size: 13px; }
.action-card small { margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; color: #c7bcff; background: rgba(119,88,255,.13); border: 1px solid rgba(119,88,255,.24); font-size: 11px; font-weight: 900; }
.workspace-content { padding: 28px; }
.mode-switch { width: fit-content; display: flex; padding: 4px; border-radius: 12px; background: rgba(4,6,12,.52); border: 1px solid var(--border); }
.mode { padding: 9px 13px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 850; }
.mode.active { background: rgba(255,255,255,.07); color: var(--text); }
.process-form { margin-top: 22px; }
.mode-panel { display: none; }
.mode-panel.active { display: block; }
.dropzone {
  min-height: 245px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1px dashed rgba(151, 132, 255, .34);
  border-radius: 19px;
  background: rgba(8,10,18,.4);
  cursor: pointer;
  transition: .2s ease;
}
.dropzone:hover, .dropzone.is-dragging { border-color: rgba(151,132,255,.8); background: rgba(119,88,255,.09); transform: translateY(-1px); }
.dropzone.has-file { border-color: rgba(85,228,170,.45); background: rgba(85,228,170,.045); }
.dropzone input, .mini-dropzone input { display: none; }
.upload-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 17px; color: #c0b4ff; font-size: 27px; background: rgba(119,88,255,.14); border: 1px solid rgba(119,88,255,.27); }
.dropzone strong { font-size: 18px; }
.dropzone span, .dropzone small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.selected-file { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(85,228,170,.08); border: 1px solid rgba(85,228,170,.19); color: #adf3d5; font-size: 12px; }
.error-file { color: #ffc0cd !important; border-color: rgba(255,111,140,.25) !important; background: rgba(255,111,140,.07) !important; }

.auth-options { margin-top: 24px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: rgba(4,6,12,.28); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-title .eyebrow { margin-bottom: 5px; }
.section-title > span { max-width: 390px; color: var(--muted); font-size: 10px; text-align: right; line-height: 1.5; }
.auth-mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.auth-mode { padding: 14px; text-align: left; color: var(--muted); background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.auth-mode:hover { border-color: rgba(0,226,202,.24); }
.auth-mode.active { color: #fff; background: rgba(119,88,255,.12); border-color: rgba(0,226,202,.4); }
.auth-mode strong, .auth-mode small { display: block; }
.auth-mode strong { font-size: 12px; }
.auth-mode small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.credential-panel { margin-top: 13px; }
.mini-dropzone { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 15px; border-radius: 13px; border: 1px dashed rgba(151,132,255,.3); background: rgba(4,6,12,.45); cursor: pointer; transition: .2s ease; }
.mini-dropzone:hover, .mini-dropzone.is-dragging { border-color: rgba(151,132,255,.7); background: rgba(119,88,255,.07); }
.mini-dropzone.has-file { border-color: rgba(85,228,170,.42); }
.mini-dropzone strong { font-size: 12px; }
.mini-dropzone span { margin: 0; color: var(--muted); font-size: 10px; font-weight: 500; }
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 20px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.consent span { margin: 0; color: inherit; font-size: inherit; font-weight: 500; }

/* Job state */
.job-card { margin-top: 18px; padding: 27px; border-radius: 24px; }
.job-head { display: flex; justify-content: space-between; align-items: center; }
.job-head h2 { font-size: 24px; }
.job-status { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 900; letter-spacing: .08em; }
.job-status.done { color: var(--success); background: rgba(85,228,170,.1); }
.job-status.error { color: var(--danger); background: rgba(255,111,140,.1); }
.stage-row { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.stage-row > i { width: 38px; height: 1px; background: var(--border); }
.stage { color: var(--muted-2); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.stage.active { color: #b8abff; }
.stage.done { color: var(--success); }
.progress-track { height: 9px; margin-top: 21px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.06); }
.progress-track > div { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s ease; box-shadow: 0 0 24px rgba(119,88,255,.55); }
.progress-meta { display: flex; justify-content: space-between; margin: 10px 0 18px; color: var(--muted); font-size: 11px; }
.job-log { min-height: 125px; max-height: 280px; overflow: auto; margin: 0; padding: 17px; border-radius: 14px; color: #afb7c8; background: rgba(3,5,10,.72); border: 1px solid var(--border); font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.download { display: inline-block; margin-top: 16px; text-decoration: none; }

/* Invite modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,4,9,.76); backdrop-filter: blur(9px); }
.modal-card { position: relative; width: min(820px, 100%); max-height: min(780px, calc(100vh - 44px)); overflow: auto; border-radius: 25px; padding: 26px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.invite-form { display: grid; grid-template-columns: minmax(0, 1fr) 115px 130px auto; gap: 10px; align-items: end; margin-top: 22px; }
.compact-field input { text-align: center; }
.generated-invite { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 16px; padding: 14px 15px; border-radius: 14px; background: rgba(85,228,170,.07); border: 1px solid rgba(85,228,170,.19); }
.generated-invite small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.generated-invite code { display: block; margin-top: 5px; color: #c7f6df; font-size: 14px; }
.invite-list-head { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.invite-list-head strong { font-size: 13px; }
.invite-list-head span { color: var(--muted); font-size: 10px; }
.invite-list { display: grid; gap: 8px; margin-top: 10px; }
.invite-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 13px 14px; border-radius: 13px; border: 1px solid var(--border); background: rgba(255,255,255,.025); }
.invite-item > div:first-child { min-width: 0; }
.invite-item strong, .invite-item span { display: block; }
.invite-item strong { font-size: 12px; }
.invite-item > div:first-child span { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.invite-item > div:last-child { display: flex; align-items: center; gap: 8px; }
.invite-status { padding: 6px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.invite-status.active { color: var(--success); background: rgba(85,228,170,.09); }
.invite-status.inactive { color: var(--muted); background: rgba(255,255,255,.05); }
.empty-state { padding: 24px; border-radius: 13px; border: 1px dashed var(--border); color: var(--muted); text-align: center; font-size: 11px; }

@media (max-width: 900px) {
  .action-grid { grid-template-columns: 1fr; }
  .action-card small { white-space: normal; }
  .invite-form { grid-template-columns: 1fr 1fr; }
  .invite-form .field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .auth-body { padding: 18px; }
  .login-card { padding: 30px 23px; }
  .two-col { grid-template-columns: 1fr; }
  .topbar { top: 8px; }
  .online { display: none; }
  .dashboard { margin-top: 48px; }
  .hero { display: block; }
  .status-pill { width: fit-content; margin-top: 20px; }
  .quota-grid { grid-template-columns: 1fr; }
  .workspace-head, .workspace-content { padding-left: 20px; padding-right: 20px; }
  .action-grid { padding-left: 20px; padding-right: 20px; }
  .section-title { display: block; }
  .section-title > span { display: block; margin-top: 8px; text-align: left; }
  .auth-mode-grid { grid-template-columns: 1fr; }
  .dropzone { min-height: 210px; }
  .mini-dropzone { display: block; }
  .mini-dropzone span { margin-top: 6px; }
  .invite-form { grid-template-columns: 1fr; }
  .invite-form .field:first-child { grid-column: auto; }
  .invite-item { align-items: flex-start; flex-direction: column; }
  .invite-item > div:last-child { width: 100%; justify-content: space-between; }
  .generated-invite { align-items: flex-start; flex-direction: column; }
}

/* V6 workflow modal, compact launcher and bulk queue */
button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  border: 0;
  outline: 0;
  background-clip: padding-box;
}
button:disabled { cursor: not-allowed !important; opacity: .52; transform: none !important; }

.compact-workspace-head { padding-bottom: 17px; }
.workflow-launch {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  width: calc(100% - 56px);
  margin: 0 28px 24px;
  padding: 16px 17px;
  overflow: hidden;
  border: 1px solid rgba(0,226,202,.26);
  border-radius: 18px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(119,88,255,.13), rgba(177,71,255,.045) 48%, rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 13px 38px rgba(16,10,43,.12);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.workflow-launch::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #8b6cff, #c44cff);
  box-shadow: 0 0 22px rgba(0,226,202,.5);
}
.workflow-launch:hover {
  transform: translateY(-1px);
  border-color: rgba(0,226,202,.48);
  background: linear-gradient(135deg, rgba(119,88,255,.19), rgba(177,71,255,.065) 48%, rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 17px 42px rgba(16,10,43,.2);
}
.workflow-launch-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: #d5ceff;
  background: rgba(119,88,255,.16);
  border: 1px solid rgba(0,226,202,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  font-size: 13px;
  font-weight: 950;
}
.workflow-launch-copy { min-width: 0; }
.workflow-launch-copy small, .workflow-launch-copy strong, .workflow-launch-copy em { display: block; }
.workflow-launch-copy small {
  margin-bottom: 5px;
  color: #9a90c5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.workflow-launch-copy strong { font-size: 14px; }
.workflow-launch-copy em {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.workflow-launch-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0,226,202,.2);
  border-radius: 12px;
  color: #cfc7ff;
  background: rgba(119,88,255,.1);
  font-size: 10px;
  font-weight: 850;
}
.workflow-launch-action b { font-size: 15px; line-height: 1; }

.selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.selection-head strong, .selection-head span { display: block; }
.selection-head strong { font-size: 12px; }
.selection-head span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.selected-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}
.selected-file-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(85,228,170,.15);
  border-radius: 13px;
  background: rgba(85,228,170,.045);
}
.selected-file-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: #aef2d6;
  background: rgba(85,228,170,.09);
  border: 1px solid rgba(85,228,170,.18);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .06em;
}
.selected-file-item > div { min-width: 0; }
.selected-file-item strong, .selected-file-item span { display: block; }
.selected-file-item strong {
  overflow: hidden;
  color: #e6f8f0;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.selected-file-item > div > span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.file-remove {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  font-size: 18px;
}
.file-remove:hover { color: var(--danger); border-color: rgba(255,111,140,.28); background: rgba(255,111,140,.08); }
.inline-error {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255,111,140,.24);
  border-radius: 12px;
  color: #ffc0cd;
  background: rgba(255,111,140,.07);
  font-size: 11px;
  line-height: 1.5;
}
.url-note { margin: 10px 0 0; color: var(--muted-2); font-size: 10px; }

.workflow-modal-card { width: min(830px, 100%); }
.settings-block {
  margin-top: 22px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(4,6,12,.32);
}
.settings-label {
  display: block;
  margin-bottom: 10px;
  color: #69ffec;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.settings-operation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.settings-operation {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  background: rgba(255,255,255,.025);
  transition: .18s ease;
}
.settings-operation:hover { color: #fff; border-color: rgba(0,226,202,.25); }
.settings-operation.active { color: #fff; border-color: rgba(0,226,202,.45); background: rgba(119,88,255,.12); }
.settings-operation strong, .settings-operation small { display: block; }
.settings-operation strong { font-size: 12px; }
.settings-operation small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.settings-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.settings-heading .settings-label { margin-bottom: 5px; }
.settings-heading > small { max-width: 300px; color: var(--muted); font-size: 9px; text-align: right; line-height: 1.5; }
.settings-auth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.settings-auth {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  background: rgba(255,255,255,.02);
}
.settings-auth:hover { border-color: rgba(0,226,202,.24); }
.settings-auth.active { color: #fff; border-color: rgba(0,226,202,.42); background: rgba(119,88,255,.1); }
.settings-radio {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 4px rgba(4,6,12,.9);
  background: transparent;
}
.settings-auth.active .settings-radio { background: var(--accent); border-color: #5ef6e0; box-shadow: inset 0 0 0 3px rgba(4,6,12,.9), 0 0 14px rgba(119,88,255,.45); }
.settings-auth strong, .settings-auth small { display: block; }
.settings-auth strong { font-size: 12px; }
.settings-auth small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.credential-panel { margin-top: 12px; }
.mini-dropzone > span { min-width: 0; }
.mini-dropzone > span strong, .mini-dropzone > span small { display: block; }
.mini-dropzone > span small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.mini-dropzone > b {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 10px;
  color: #c8beff;
  background: rgba(119,88,255,.11);
  border: 1px solid rgba(0,226,202,.2);
  font-size: 9px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.batch-card { margin-top: 18px; padding: 27px; border-radius: 24px; }
.batch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.batch-meta { margin: 7px 0 0; font-size: 10px; }
.batch-jobs { display: grid; gap: 10px; margin-top: 18px; }
.batch-job {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(4,6,12,.34);
  transition: border-color .2s ease, background .2s ease;
}
.batch-job.done { border-color: rgba(85,228,170,.2); background: rgba(85,228,170,.035); }
.batch-job.error { border-color: rgba(255,111,140,.22); background: rgba(255,111,140,.035); }
.batch-job-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.batch-job-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.batch-job-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #bdb1ff;
  background: rgba(119,88,255,.11);
  border: 1px solid rgba(0,226,202,.2);
  font-size: 10px;
  font-weight: 950;
}
.batch-job-identity > div { min-width: 0; }
.batch-job-identity strong, .batch-job-identity span { display: block; }
.batch-job-identity strong { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.batch-job-stage { margin-top: 4px; color: var(--muted); font-size: 9px; }
.job-progress-track { height: 6px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.055); }
.job-progress-track > div { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .28s ease; }
.batch-job-details { display: flex; justify-content: space-between; gap: 18px; margin-top: 8px; color: var(--muted-2); font-size: 9px; }
.batch-job-id { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.batch-job-log-wrap { margin-top: 10px; }
.batch-job-log-wrap summary { width: fit-content; color: #a99dd4; cursor: pointer; font-size: 9px; font-weight: 800; }
.batch-job-log { min-height: 85px; max-height: 180px; margin-top: 9px; }
.batch-download { display: inline-flex; margin-top: 11px; padding: 8px 11px; font-size: 10px; text-decoration: none; }
.job-status.running { color: #baaaff; background: rgba(119,88,255,.1); }
.job-status.partial { color: var(--warning); background: rgba(255,198,109,.1); }

@media (max-width: 900px) {
  .selected-files { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .workflow-launch { grid-template-columns: 46px minmax(0, 1fr); width: calc(100% - 40px); margin-left: 20px; margin-right: 20px; }
  .workflow-launch-icon { width: 46px; height: 46px; }
  .workflow-launch-action { grid-column: 1 / -1; justify-content: center; }
  .settings-operation-grid, .settings-auth-grid { grid-template-columns: 1fr; }
  .settings-heading { align-items: flex-start; flex-direction: column; }
  .settings-heading > small { text-align: left; }
  .selection-head { align-items: flex-start; flex-direction: column; }
  .selection-head .ghost { width: 100%; }
  .batch-card { padding: 20px; }
  .batch-head { align-items: flex-start; flex-direction: column; }
  .batch-job-details { align-items: flex-start; flex-direction: column; gap: 4px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions > * { width: 100%; }
}

/* V7: output delivery and admin control center */
.nav-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.output-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.batch-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.batch-result-actions .batch-download { margin-top: 0; }
.batch-download-secondary { color: var(--muted); background: rgba(255,255,255,.018); }

.admin-dashboard { width: min(1320px, calc(100% - 34px)); }
.admin-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-hero h1 { font-size: clamp(42px, 5vw, 66px); }
.admin-hero .muted { max-width: 720px; margin: 14px 0 0; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.admin-shell { overflow: hidden; border-radius: 25px; }
.admin-tabs { display: flex; gap: 7px; padding: 14px; border-bottom: 1px solid var(--border); background: rgba(4,6,12,.22); }
.admin-tab {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}
.admin-tab:hover { color: #fff; background: rgba(255,255,255,.035); }
.admin-tab.active { color: #fff; border-color: rgba(0,226,202,.28); background: rgba(119,88,255,.13); }
.admin-panel { display: none; padding: 27px; }
.admin-panel.active { display: block; }
.admin-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 19px; }
.admin-panel-head .eyebrow { margin-bottom: 6px; }
.admin-search { width: min(310px, 100%); }
.admin-search > span { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
input[type="search"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(4,6,12,.58);
  outline: none;
}
input[type="search"]:focus { border-color: rgba(119,88,255,.74); box-shadow: 0 0 0 4px rgba(119,88,255,.11); }
.admin-inline-form { display: grid; grid-template-columns: minmax(220px, 1fr) 130px 150px auto; gap: 10px; align-items: end; margin-bottom: 15px; }
.admin-inline-form .field > span { margin-bottom: 6px; }
.admin-inline-form input { padding: 11px 12px; }
.admin-inline-form .primary { min-height: 43px; }
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 16px; background: rgba(4,6,12,.27); }
.admin-table { width: 100%; min-width: 880px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.055); text-align: left; vertical-align: middle; }
.admin-table th { position: sticky; top: 0; z-index: 1; color: #8f98aa; background: rgba(13,17,29,.97); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.admin-table td { color: #cbd1dd; font-size: 11px; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: rgba(119,88,255,.025); }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td strong { color: #fff; font-size: 12px; }
.admin-table td small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.table-empty { padding: 34px !important; color: var(--muted) !important; text-align: center !important; }
.table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.admin-select {
  min-width: 120px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: #0a0d16;
  outline: none;
}
.admin-select:disabled { opacity: .55; }
.admin-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #cbd1dd; font-size: 10px; }
.admin-toggle input { accent-color: var(--accent); }
.admin-toggle > span { display: inline; margin: 0; color: inherit; font-size: inherit; }
.admin-status { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.admin-status.done { color: #99f0cb; background: rgba(85,228,170,.1); }
.admin-status.error { color: #ffafbf; background: rgba(255,111,140,.1); }
.admin-status.running { color: #c4b7ff; background: rgba(119,88,255,.12); }
.admin-status.inactive { color: #a4acbc; background: rgba(255,255,255,.055); }
.mono-cell { max-width: 180px; overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; text-overflow: ellipsis; }
.truncate-cell { max-width: 240px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.admin-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  max-width: min(390px, calc(100% - 44px));
  padding: 13px 16px;
  border: 1px solid rgba(85,228,170,.24);
  border-radius: 13px;
  color: #c7f8e2;
  background: rgba(17,37,31,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
  font-size: 11px;
}
.admin-toast.error { color: #ffd0da; border-color: rgba(255,111,140,.28); background: rgba(43,19,27,.96); }

@media (max-width: 980px) {
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-inline-form { grid-template-columns: 1fr 1fr; }
  .admin-inline-form .field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .output-mode-grid { grid-template-columns: 1fr; }
  .admin-hero, .admin-panel-head { align-items: flex-start; flex-direction: column; }
  .admin-stat-grid { grid-template-columns: 1fr; }
  .admin-tabs { overflow-x: auto; }
  .admin-tab { flex: 0 0 auto; }
  .admin-panel { padding: 20px; }
  .admin-inline-form { grid-template-columns: 1fr; }
  .admin-inline-form .field:first-child { grid-column: auto; }
  .admin-search { width: 100%; }
}

/* Production V8 — Volt turquoise system */
:root {
  --cyan: #00dfc4;
  --cyan-bright: #58ffe9;
  --blue: #00a8ff;
  --panel-glow: rgba(0, 223, 196, .13);
}
body {
  background:
    radial-gradient(circle at 12% 4%, rgba(0, 223, 196, .16), transparent 32rem),
    radial-gradient(circle at 91% 78%, rgba(0, 168, 255, .13), transparent 38rem),
    linear-gradient(145deg, #060b12 0%, #05080e 58%, #071017 100%);
}
.glass { background: linear-gradient(145deg, rgba(16, 27, 40, .82), rgba(6, 12, 20, .84)); }
.topbar { border-color: rgba(0, 223, 196, .12); }
.brand-mark span { background: linear-gradient(180deg, var(--cyan-bright), var(--blue)); box-shadow: 0 0 28px rgba(0, 223, 196, .42); }
.primary { color: #001b1a; background: linear-gradient(135deg, var(--cyan-bright), var(--cyan) 52%, var(--blue)); box-shadow: 0 16px 38px rgba(0, 223, 196, .22); }
.primary:hover { box-shadow: 0 20px 48px rgba(0, 223, 196, .34); }
.eyebrow { color: var(--cyan-bright); text-shadow: 0 0 20px rgba(0, 223, 196, .32); }
input:focus, select:focus { border-color: rgba(0, 223, 196, .68) !important; box-shadow: 0 0 0 4px rgba(0, 223, 196, .10) !important; }
.secure-badge { display: inline-flex; align-items: center; gap: 7px; }
.secure-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }

.reveal-top { animation: revealTop .55s cubic-bezier(.2,.8,.2,1) both; }
.reveal-up { animation: revealUp .62s cubic-bezier(.2,.8,.2,1) both; }
.reveal-up:nth-of-type(2) { animation-delay: .05s; }
.reveal-up:nth-of-type(3) { animation-delay: .10s; }
.reveal-up:nth-of-type(4) { animation-delay: .15s; }
@keyframes revealTop { from { opacity: 0; transform: translateY(-14px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes revealUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 0 rgba(0,223,196,0); } 50% { box-shadow: 0 0 32px rgba(0,223,196,.13); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.modal:not(.hidden) .modal-card { animation: modalIn .28s cubic-bezier(.2,.9,.2,1) both; }
.quota, .workflow-launch, .batch-job, .user-job-row, .admin-job-card, .category-stat { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease; }
.quota:hover, .user-job-row:hover, .admin-job-card:hover, .category-stat:hover { transform: translateY(-3px); border-color: rgba(0,223,196,.24); box-shadow: 0 18px 48px rgba(0,0,0,.28), 0 0 32px rgba(0,223,196,.06); }
.workflow-launch:hover { border-color: rgba(0,223,196,.38); box-shadow: 0 18px 55px rgba(0,0,0,.32), inset 0 0 44px rgba(0,223,196,.045); }
.workflow-launch-icon, .job-type-icon { background: linear-gradient(145deg, rgba(0,223,196,.20), rgba(0,168,255,.15)); border-color: rgba(0,223,196,.28); color: var(--cyan-bright); }
.settings-operation.active, .settings-auth.active { border-color: rgba(0,223,196,.48) !important; background: linear-gradient(145deg, rgba(0,223,196,.13), rgba(0,168,255,.08)) !important; box-shadow: inset 0 0 0 1px rgba(0,223,196,.08), 0 12px 34px rgba(0,0,0,.18); }
.settings-radio { border-color: rgba(0,223,196,.35) !important; }
.settings-auth.active .settings-radio { background: var(--cyan) !important; box-shadow: inset 0 0 0 4px #0b1420, 0 0 15px rgba(0,223,196,.45); }
.disabled-option { opacity: .38; cursor: not-allowed !important; }

.saved-secret {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 15px; margin-bottom: 12px; border: 1px solid rgba(0,223,196,.19);
  border-radius: 14px; background: rgba(0,223,196,.055);
}
.saved-secret small, .saved-secret strong { display: block; }
.saved-secret small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.saved-secret strong { margin-top: 4px; color: var(--cyan-bright); font-size: 13px; }
.compact-consent { margin: 10px 0 14px !important; }

.history-shell { margin-top: 18px; padding: 24px; border-radius: 24px; }
.history-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.user-job-list { display: grid; gap: 9px; }
.user-job-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 13px 14px; border: 1px solid var(--border); border-radius: 15px; background: rgba(255,255,255,.018);
}
.user-job-main { min-width: 0; }
.user-job-main strong, .user-job-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-job-main strong { font-size: 13px; }
.user-job-main span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.user-job-meta { display: flex; align-items: center; gap: 8px; }
.user-job-actions { display: flex; justify-content: flex-end; }
.category-chip { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.category-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #7d8798; box-shadow: 0 0 13px currentColor; }
.category-general { background: #68ffe8; color: #68ffe8; }
.category-clothing { background: #ff79c6; color: #ff79c6; }
.category-police { background: #4da3ff; color: #4da3ff; }
.category-ambulance { background: #ff647c; color: #ff647c; }
.category-vehicles { background: #ffc75f; color: #ffc75f; }
.category-inventory { background: #b994ff; color: #b994ff; }
.category-housing { background: #75e69b; color: #75e69b; }
.category-jobs { background: #ff9f5c; color: #ff9f5c; }
.category-ui { background: #32d8ff; color: #32d8ff; }
.category-other { background: #a4adbc; color: #a4adbc; }

.progress-track > div, .job-progress-track > div {
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--cyan-bright));
  background-size: 200% 100%; animation: shimmer 2.4s linear infinite;
}
.batch-job.done { border-color: rgba(0,223,196,.28); }
.batch-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }

.admin-dashboard { width: min(1400px, calc(100% - 34px)); }
.jobs-panel-head { margin-bottom: 6px; }
.category-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; padding: 0 26px 18px; }
.category-stat {
  border: 1px solid var(--border); border-radius: 15px; padding: 13px 14px; text-align: left; color: var(--text);
  background: rgba(255,255,255,.02); cursor: pointer;
}
.category-stat span, .category-stat strong, .category-stat small { display: block; }
.category-stat span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.category-stat strong { margin: 7px 0 3px; font-size: 22px; }
.category-stat small { color: var(--muted-2); font-size: 9px; }
.jobs-toolbar { display: grid; grid-template-columns: minmax(230px, 1fr) repeat(3, minmax(145px, 190px)); gap: 10px; padding: 18px 26px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.jobs-toolbar .field > span, .jobs-toolbar .admin-search > span { margin-bottom: 6px; }
.filter-field { min-width: 0; }
.grow { min-width: 0; }
.jobs-groups { display: grid; gap: 18px; padding: 22px 26px 28px; }
.job-category-group { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: rgba(0,0,0,.10); }
.job-category-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.018); }
.job-category-head > div { display: flex; align-items: center; gap: 10px; }
.job-category-head h3 { font-size: 14px; }
.job-category-head > span { color: var(--muted); font-size: 10px; }
.admin-job-list { display: grid; gap: 1px; background: var(--border); }
.admin-job-card { padding: 16px; background: rgba(9,14,23,.95); }
.admin-job-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-job-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.job-type-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid; border-radius: 12px; font-weight: 900; font-size: 12px; }
.admin-job-title > div { min-width: 0; }
.admin-job-title strong, .admin-job-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-job-title strong { font-size: 14px; }
.admin-job-title span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-job-badges { display: flex; align-items: center; gap: 8px; }
.job-owner { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 9px; }
.admin-job-details { display: grid; grid-template-columns: 1.2fr 1fr .7fr .6fr; gap: 10px; margin: 14px 0; }
.admin-job-details span { min-width: 0; padding: 10px 11px; border-radius: 11px; background: rgba(255,255,255,.022); }
.admin-job-details b, .admin-job-details code, .admin-job-details em { display: block; }
.admin-job-details b { margin-bottom: 5px; color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.admin-job-details code, .admin-job-details em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cbd4df; font-size: 10px; font-style: normal; }
.admin-job-editor { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto; gap: 10px; align-items: end; }
.job-save-button { height: 45px; }
.admin-job-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 12px; }
.job-error { min-width: 0; color: var(--danger); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-error { border-left: 2px solid var(--danger); }
.status-done { border-left: 2px solid var(--cyan); }

.admin-select {
  width: 100%; min-height: 42px; border: 1px solid var(--border); border-radius: 11px;
  padding: 9px 11px; color: var(--text); background: #0a1019; outline: none;
}

@media (max-width: 1000px) {
  .jobs-toolbar { grid-template-columns: 1fr 1fr; }
  .admin-job-details { grid-template-columns: 1fr 1fr; }
  .admin-job-editor { grid-template-columns: 1fr 1fr; }
  .job-save-button { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .user-job-row { grid-template-columns: auto minmax(0,1fr); }
  .user-job-meta, .user-job-actions { grid-column: 2; justify-content: flex-start; }
  .jobs-toolbar { grid-template-columns: 1fr; }
  .admin-job-main, .admin-job-footer { align-items: flex-start; flex-direction: column; }
  .admin-job-details, .admin-job-editor { grid-template-columns: 1fr; }
  .top-actions .online { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* V8.3 production hotfix */
.batch-job-log {
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.batch-job.partial {
  border-color: rgba(255, 190, 80, .28);
  box-shadow: inset 3px 0 0 rgba(255, 190, 80, .75);
}
.job-status.partial {
  color: #ffd27a;
  background: rgba(255, 190, 80, .12);
  border-color: rgba(255, 190, 80, .26);
}


/* V8.4: buyer UI cleanup + stable live log viewport */
#quotaGrid,
#apiHealth,
.workspace-head .secure-badge {
  display: none !important;
}

.hero {
  grid-template-columns: minmax(0, 1fr);
}

.compact-workspace-head {
  justify-content: flex-start;
}

.batch-job {
  min-width: 0;
  overflow: hidden;
}

.batch-job-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
}

.batch-job-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 223, 196, .24);
  border-radius: 13px;
  color: var(--accent);
  background: rgba(0, 223, 196, .07);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}

.batch-job-copy {
  min-width: 0;
}

.batch-job-copy strong,
.batch-job-copy .batch-job-stage {
  display: block;
  min-width: 0;
}

.batch-job-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.batch-job-copy .batch-job-stage {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.batch-job-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 10px;
}

.batch-job-id {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.batch-job-percent {
  flex: 0 0 auto;
}

.batch-job-log {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 220px;
  min-height: 160px;
  max-height: 220px;
  margin: 13px 0 0;
  padding: 15px 16px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  color: #b8c3cf;
  background: rgba(2, 7, 12, .78);
  font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  scroll-behavior: smooth;
}

.batch-job-log::-webkit-scrollbar {
  width: 9px;
}

.batch-job-log::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .025);
}

.batch-job-log::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(0, 223, 196, .34);
  background-clip: padding-box;
}

.batch-job-log::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 223, 196, .58);
  background-clip: padding-box;
}

@media (max-width: 620px) {
  .batch-job-top {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .batch-job-top .job-status {
    grid-column: 2;
    justify-self: start;
  }

  .batch-job-index {
    width: 38px;
    height: 38px;
  }
}

.admin-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* V8.5: authenticated navigation + server dumper */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(3, 7, 13, .42);
}
.main-nav-link {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.main-nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,.045);
  transform: translateY(-1px);
}
.main-nav-link.active {
  color: #dffffa;
  background: linear-gradient(135deg, rgba(0,223,196,.17), rgba(0,168,255,.10));
  box-shadow: inset 0 0 0 1px rgba(0,223,196,.20), 0 8px 24px rgba(0,223,196,.08);
}

.dump-dashboard { width: min(1120px, calc(100% - 34px)); }
.dump-hero { align-items: center; }
.dump-hero .muted { max-width: 720px; }
.dump-hero-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  flex: 0 0 auto;
  border: 1px solid rgba(0,223,196,.17);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,223,196,.12), rgba(0,168,255,.025) 60%, transparent 61%);
  box-shadow: inset 0 0 35px rgba(0,223,196,.06), 0 0 70px rgba(0,223,196,.08);
}
.dump-hero-orbit::before,
.dump-hero-orbit::after,
.dump-hero-orbit span {
  content: "";
  position: absolute;
  border: 1px solid rgba(0,223,196,.22);
  border-radius: 50%;
}
.dump-hero-orbit::before { inset: 18px; animation: dumpOrbit 10s linear infinite; }
.dump-hero-orbit::after { inset: 38px; border-color: rgba(0,168,255,.22); animation: dumpOrbit 7s linear infinite reverse; }
.dump-hero-orbit span:first-child {
  width: 10px; height: 10px; top: 15px; left: 70px;
  border: 0; background: var(--accent); box-shadow: 0 0 18px var(--accent);
  transform-origin: 5px 60px; animation: dumpSatellite 6s linear infinite;
}
.dump-hero-orbit span:nth-child(2) {
  width: 7px; height: 7px; right: 22px; bottom: 34px;
  border: 0; background: var(--accent-2); box-shadow: 0 0 16px var(--accent-2);
}
.dump-hero-orbit b { position: relative; z-index: 2; color: #dffffa; font-size: 18px; letter-spacing: .12em; }
@keyframes dumpOrbit { to { transform: rotate(360deg); } }
@keyframes dumpSatellite { to { transform: rotate(360deg); } }

.dump-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr);
  gap: 16px;
  margin-bottom: 18px;
}
.dump-form-card,
.dump-guide-card,
.dump-live-card {
  border-radius: 25px;
}
.dump-form-card { padding: 28px; }
.dump-guide-card { padding: 28px; }
.dump-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.dump-card-head .eyebrow { margin-bottom: 6px; }
.dump-state-label {
  color: var(--muted-2);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.dump-form { display: grid; gap: 19px; }
.field em { color: var(--muted-2); font-size: 10px; font-style: normal; font-weight: 600; }
.field-help { display: block; margin-top: 7px; color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.secret-input-wrap { position: relative; }
.secret-input-wrap input { padding-right: 92px; }
.secret-toggle {
  position: absolute;
  top: 50%; right: 7px;
  transform: translateY(-50%);
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  cursor: pointer;
}
.secret-toggle:hover { color: var(--text); background: rgba(255,255,255,.07); }
.dump-security-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0,223,196,.16);
  border-radius: 15px;
  background: rgba(0,223,196,.045);
}
.dump-security-icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #07120f;
  background: var(--accent);
  font-weight: 950;
  box-shadow: 0 0 24px rgba(0,223,196,.22);
}
.dump-security-note strong,
.dump-security-note small { display: block; }
.dump-security-note strong { font-size: 11px; }
.dump-security-note small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.dump-guide-card h2 { margin-bottom: 22px; }
.dump-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.dump-steps li { display: flex; align-items: flex-start; gap: 12px; }
.dump-steps li > span {
  display: grid; place-items: center;
  width: 36px; height: 36px; flex: 0 0 auto;
  border: 1px solid rgba(0,223,196,.18);
  border-radius: 11px;
  color: var(--accent);
  background: rgba(0,223,196,.055);
  font-size: 9px; font-weight: 900;
}
.dump-steps strong,
.dump-steps small { display: block; }
.dump-steps strong { font-size: 11px; }
.dump-steps small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.dump-live-card { margin-bottom: 18px; padding: 26px; }
.dump-live-log { height: 280px; max-height: 280px; }
.dump-history-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(0,223,196,.22);
  border-radius: 12px;
  color: var(--accent);
  background: rgba(0,223,196,.06);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
}
.dump-history-row { grid-template-columns: auto minmax(0,1fr) auto auto; }

.jobs-toolbar { grid-template-columns: minmax(230px, 1fr) repeat(4, minmax(130px, 175px)); }
.job-type-icon { color: var(--accent); border-color: rgba(0,223,196,.23); background: rgba(0,223,196,.06); }

@media (max-width: 1060px) {
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .topbar { flex-wrap: wrap; gap: 10px; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .dump-layout { grid-template-columns: 1fr; }
  .dump-guide-card { order: 2; }
  .jobs-toolbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { overflow-x: auto; justify-content: flex-start; }
  .main-nav-link { white-space: nowrap; }
  .dump-hero-orbit { display: none; }
  .dump-form-card, .dump-guide-card, .dump-live-card { padding: 20px; }
  .dump-card-head { align-items: flex-start; flex-direction: column; }
  .dump-history-row { grid-template-columns: auto minmax(0,1fr); }
  .dump-history-row .user-job-meta,
  .dump-history-row .user-job-actions { grid-column: 2; }
  .jobs-toolbar { grid-template-columns: 1fr; }
}
