@import url("./workbench-v10.css?v=20260828-single-screen-4");

/* V11 — Aurora Command Surface
   A complete visual reset for the shared composer / task cockpit. */

:root {
  --v11-bg: #04070d;
  --v11-bg-soft: #07101a;
  --v11-panel: #09131f;
  --v11-panel-2: #0c1826;
  --v11-panel-3: #101e2d;
  --v11-line: rgba(105, 213, 255, .15);
  --v11-line-strong: rgba(105, 225, 255, .33);
  --v11-cyan: #55e5ff;
  --v11-cyan-2: #28bfdc;
  --v11-blue: #668bff;
  --v11-green: #4de5ae;
  --v11-amber: #ffcc73;
  --v11-red: #ff7087;
  --v11-text: #edfaff;
  --v11-muted: #8195a8;
  --v11-quiet: #52687c;
  --v11-radius: 18px;
  --v11-shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --accent: var(--v11-cyan);
  --accent-strong: var(--v11-cyan-2);
  --violet: var(--v11-cyan);
  --muted: var(--v11-muted);
  --quiet: var(--v11-quiet);
}

* { scrollbar-color: rgba(85, 229, 255, .38) transparent; }
html { color-scheme: dark; background: var(--v11-bg); }
html::-webkit-scrollbar { width: 7px; height: 7px; }
html::-webkit-scrollbar-track { background: #03060a; }
html::-webkit-scrollbar-thumb {
  border: 2px solid #03060a;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--v11-cyan), var(--v11-blue));
}

body {
  color: var(--v11-text);
  background:
    linear-gradient(rgba(91, 215, 255, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 215, 255, .024) 1px, transparent 1px),
    radial-gradient(circle at 12% -10%, rgba(54, 197, 228, .14), transparent 34%),
    radial-gradient(circle at 96% 8%, rgba(72, 108, 224, .12), transparent 31%),
    var(--v11-bg);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}
::selection { color: #021018; background: var(--v11-cyan); }
#ambient-particles { display: none; }
.shell, .app-layout { min-height: 100dvh; }

/* Top command rail */
.app-sidebar {
  position: sticky;
  top: 10px;
  z-index: 90;
  width: min(1600px, calc(100% - 24px));
  min-height: 68px;
  margin: 10px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--v11-line);
  border-radius: 19px;
  color: var(--v11-text);
  background: rgba(6, 13, 23, .91);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .36), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(24px) saturate(128%);
}
.app-sidebar::before {
  position: absolute;
  top: -1px;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--v11-cyan), var(--v11-blue), transparent);
  content: "";
  opacity: .62;
}
.sidebar-brand { gap: 11px; color: var(--v11-text); }
.sidebar-brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(113, 232, 255, .45);
  border-radius: 12px;
  color: #03141a;
  background: linear-gradient(145deg, #8cf2ff, #47cbe4);
  box-shadow: 0 0 0 5px rgba(85, 229, 255, .06), 0 10px 28px rgba(31, 191, 217, .22);
  font-size: 16px;
}
.sidebar-brand strong { font-size: 15px; font-weight: 780; letter-spacing: .02em; }
.sidebar-brand small { color: #60798e; font-size: 7px; letter-spacing: .22em; }
.app-sidebar .topbar-actions-dock { gap: 7px; }
.app-sidebar .topbar-clock {
  min-height: 36px;
  padding: 3px 13px 3px 5px;
  border-right-color: rgba(114, 181, 208, .17);
}
.topbar-clock span { color: #526c82; font-size: 7px; letter-spacing: .17em; }
.topbar-clock strong { color: #dffaff; font-family: var(--mono); font-size: 12px; }
.app-sidebar .connection,
.app-sidebar .license-indicator,
.app-sidebar .secondary,
.app-sidebar .cdk-merge-details > summary,
.sidebar-community {
  min-height: 36px;
  border: 1px solid rgba(115, 170, 195, .17);
  border-radius: 10px;
  color: #afc3d4;
  background: rgba(13, 26, 39, .82);
}
.app-sidebar .connection.online,
.app-sidebar .license-indicator {
  color: #87f3c8;
  border-color: rgba(77, 229, 174, .24);
  background: rgba(24, 93, 73, .18);
}
.app-sidebar .connection .dot,
.app-sidebar .license-indicator i { background: var(--v11-green); box-shadow: 0 0 12px rgba(77, 229, 174, .72); }
.sidebar-community { padding-inline: 12px; }
.sidebar-community span { color: #02151c; background: var(--v11-cyan); }
.cdk-merge-popover {
  border: 1px solid var(--v11-line-strong);
  border-radius: 15px;
  background: #08131f;
  box-shadow: var(--v11-shadow);
}

/* Compact overview deck: restore the full upper half without making the page tall. */
.overview-deck {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(330px, .36fr) minmax(0, .64fr);
  grid-template-rows: 108px 62px;
  gap: 10px;
  margin-bottom: 10px;
}
.topbar {
  position: relative;
  top: auto;
  display: flex !important;
  min-width: 0;
  min-height: 0;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  margin: 0;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--v11-line);
  border-radius: 20px;
  color: var(--v11-text);
  background:
    linear-gradient(118deg, rgba(13, 31, 48, .98), rgba(6, 14, 24, .98)),
    radial-gradient(circle at 0 0, rgba(85, 229, 255, .18), transparent 36%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .03);
}
.topbar::before {
  position: absolute;
  top: 16px;
  right: 17px;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(85, 229, 255, .12);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(85, 229, 255, .08) 0 1px, transparent 1px 10px);
  content: "";
}
.topbar::after {
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--v11-cyan), var(--v11-blue), transparent 88%);
  content: "";
  opacity: .62;
}
.topbar-copy { position: relative; z-index: 1; min-width: 0; }
.topbar-copy > span { color: var(--v11-cyan); font: 720 7px/1 var(--mono); letter-spacing: .22em; }
.topbar-copy h1 { margin: 8px 0 4px; color: #f2fcff; font-size: clamp(24px, 2vw, 31px); font-weight: 740; line-height: 1; letter-spacing: -.04em; }
.topbar-copy p { margin: 0; color: #70899c; font-size: 10px; }

.task-success-status {
  position: relative;
  display: grid !important;
  min-width: 0;
  min-height: 0;
  grid-column: 2;
  grid-row: 1 / 3;
  grid-template-rows: auto minmax(0, 1fr) 38px;
  align-content: stretch;
  margin: 0;
  padding: 13px 15px;
  overflow: hidden;
  border: 1px solid var(--v11-line);
  border-radius: 20px;
  color: var(--v11-text);
  background:
    radial-gradient(circle at 100% 0, rgba(102, 139, 255, .13), transparent 30%),
    linear-gradient(138deg, rgba(9, 24, 38, .98), rgba(5, 13, 23, .98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .03);
}
.task-success-status::after {
  top: -90px;
  right: -70px;
  width: 240px;
  height: 240px;
  border-color: rgba(85, 229, 255, .08);
  background: repeating-radial-gradient(circle, rgba(85, 229, 255, .045) 0 1px, transparent 1px 14px);
}
.task-success-head { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.task-success-kicker { margin-bottom: 4px; color: var(--v11-cyan); font-size: 7px; letter-spacing: .18em; }
.task-success-title-wrap h2 { margin: 0; color: #eefbff; font-size: clamp(16px, 1.25vw, 20px); font-weight: 720; letter-spacing: -.025em; }
.task-success-title-wrap p { margin: 3px 0 0; color: #627b8f; font-size: 8px; }
.task-success-summary {
  min-width: 92px;
  padding: 5px 9px;
  border: 1px solid rgba(85, 229, 255, .14);
  border-radius: 10px;
  background: rgba(13, 48, 63, .45);
}
.task-success-summary strong { color: var(--v11-cyan); font-size: 27px; }
.task-success-summary span { color: #b7d0dc; font-size: 9px; }
.task-success-summary small { color: #5e788b; font-size: 7px; }
.task-success-legend { display: none; }
.task-success-dot.is-success { border-color: var(--v11-green); background: var(--v11-green); box-shadow: 0 0 10px rgba(77, 229, 174, .42); }
.task-success-dot.is-empty { border-color: #345064; background: transparent; }
.task-success-grid {
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 0;
  margin: 7px 0 6px;
  padding: 5px 7px;
  gap: 3px;
  border: 1px solid rgba(99, 177, 207, .12);
  border-radius: 9px;
  background: rgba(2, 9, 16, .48);
}
.task-success-cell { border-color: rgba(80, 130, 153, .14); border-radius: 2px; background: rgba(42, 77, 95, .22); }
.task-success-cell.is-success { border-color: rgba(77, 229, 174, .62); background: rgba(77, 229, 174, .48); box-shadow: 0 0 7px rgba(77, 229, 174, .22); }
.task-success-cell.level-2 { background: rgba(77, 229, 174, .62); }
.task-success-cell.level-3,
.task-success-cell.level-4 { background: var(--v11-green); box-shadow: 0 0 9px rgba(77, 229, 174, .34); }
.task-success-lane {
  position: relative;
  z-index: 1;
  min-height: 38px;
  height: 38px;
  margin: 0;
  grid-template-columns: 96px minmax(0, 1fr);
  border: 1px solid rgba(99, 177, 207, .12);
  border-radius: 9px;
  background: rgba(2, 9, 16, .48);
}
.task-success-lane-label { gap: 5px; border-right-color: rgba(99, 177, 207, .12); color: var(--v11-cyan); font-size: 8px; white-space: nowrap; }
.task-success-lane-label span { font-size: 8px; line-height: 1; white-space: nowrap; }
.task-success-lane-label small { display: none; }
.task-success-pulse { width: 6px; height: 6px; background: var(--v11-green); box-shadow: 0 0 0 4px rgba(77, 229, 174, .1); }
.task-success-empty { color: #4f687b; font-size: 9px; }
.task-success-item { padding: 5px 9px; border-color: rgba(85, 229, 255, .13); border-radius: 7px; background: rgba(21, 79, 92, .18); }
.task-success-item b { color: #dffaff; font-size: 9px; }
.task-success-item time { color: #688296; font-size: 8px; }

.workflow-strip {
  display: grid !important;
  min-width: 0;
  min-height: 0;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--v11-line);
  border-radius: 16px;
  background: rgba(6, 15, 25, .92);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .025);
}
.workflow-strip > div {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 25px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 6px;
  padding: 3px 7px;
  border: 0;
  border-radius: 0;
  color: #c8dce6;
  background: transparent !important;
  box-shadow: none;
}
.workflow-strip > div + div { border-left: 1px solid rgba(99, 177, 207, .1); }
.workflow-strip span {
  display: grid;
  width: 23px;
  height: 23px;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid rgba(85, 229, 255, .27);
  border-radius: 7px;
  color: var(--v11-cyan);
  background: rgba(30, 119, 140, .14);
  font: 800 8px/1 var(--mono);
}
.workflow-strip > div:nth-child(1) span,
.workflow-strip > div:nth-child(3) span { color: var(--v11-cyan); background: rgba(30, 119, 140, .14); }
.workflow-strip b { align-self: end; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-strip small { align-self: start; overflow: hidden; color: #4e687b; font-size: 6px; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.app-main {
  display: block;
  width: min(1600px, calc(100% - 24px));
  margin: 0 auto;
  padding: 10px 0 20px;
}

/* Unified workspace */
.workspace-grid {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: minmax(510px, .46fr) minmax(590px, .54fr);
  grid-template-rows: 52px minmax(0, 1fr);
  border: 1px solid var(--v11-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 44% -12%, rgba(72, 211, 237, .1), transparent 28%),
    linear-gradient(145deg, rgba(9, 19, 31, .98), rgba(5, 11, 20, .99));
  box-shadow: var(--v11-shadow), inset 0 1px rgba(255, 255, 255, .025);
}
.workspace-grid::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(112deg, transparent 0 45.8%, rgba(85, 229, 255, .025) 46%, transparent 46.2%);
  content: "";
  pointer-events: none;
}
.workspace-grid::after {
  background: linear-gradient(90deg, transparent, rgba(85, 229, 255, .9) 28%, rgba(102, 139, 255, .8) 72%, transparent);
  opacity: .5;
}
.workspace-command-header {
  min-height: 52px;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(99, 177, 207, .12);
  background: rgba(7, 15, 25, .72);
}
.workspace-command-title > span { color: #4f7187; font-size: 7px; letter-spacing: .2em; }
.workspace-command-title h2 { color: #dffaff; font-size: 15px; font-weight: 730; }
.workspace-command-flow { color: #6f8799; font-size: 8px; }
.workspace-command-flow i { background: linear-gradient(90deg, var(--v11-cyan-2), var(--v11-blue)); box-shadow: 0 0 9px rgba(85, 229, 255, .3); }
.workspace-command-state { color: #7fa194; font-size: 9px; }
.workspace-command-state i { background: var(--v11-green); box-shadow: 0 0 12px rgba(77, 229, 174, .62); }

.panel,
.tasks-panel {
  min-width: 0;
  min-height: 0;
  padding: 16px;
  color: var(--v11-text);
  background: transparent;
}
.submit-panel { border-right: 1px solid rgba(99, 177, 207, .12); }
.tasks-panel { border-left: 0; }
.module-kicker { margin-bottom: 8px; color: #547086; }
.module-kicker::after { background: linear-gradient(90deg, rgba(85, 229, 255, .23), transparent); }
.module-kicker span,
.tasks-panel .module-kicker span {
  border: 1px solid rgba(85, 229, 255, .24);
  color: var(--v11-cyan);
  background: rgba(29, 121, 144, .15);
}
.module-kicker em { font-size: 7px; letter-spacing: .18em; }
.panel-heading,
.section-heading { margin-bottom: 10px; }
.panel-heading h2,
.section-heading h2 {
  color: #effbff;
  font-size: clamp(22px, 1.65vw, 29px);
  font-weight: 720;
  letter-spacing: -.035em;
}
.panel-heading p,
.section-heading p { color: #6f8497; font-size: 10px; }
.privacy-note {
  border: 1px solid rgba(85, 229, 255, .13);
  color: #658397;
  background: rgba(11, 34, 46, .46);
}

/* Controls */
.primary,
.secondary,
.filter-button,
.view-button,
.cdk-merge-details > summary {
  border-width: 1px;
  border-radius: 9px;
  box-shadow: none;
  font-weight: 720;
}
.primary {
  color: #03141b;
  border-color: #6deaff;
  background: linear-gradient(135deg, #73edff, #47cbe5);
  box-shadow: 0 8px 20px rgba(39, 190, 218, .14);
}
.secondary,
.filter-button,
.view-button,
.cdk-merge-details > summary {
  color: #9eb4c6;
  border-color: rgba(105, 181, 210, .17);
  background: rgba(15, 29, 44, .82);
}
.primary:hover:not(:disabled) { color: #001218; border-color: #a0f5ff; background: #83efff; transform: translateY(-1px); }
.secondary:hover:not(:disabled),
.filter-button:hover,
.view-button:hover,
.cdk-merge-details > summary:hover { color: #eaffff; border-color: rgba(85, 229, 255, .42); background: #112b3b; transform: translateY(-1px); }
.filter-button.active,
.view-button.active { color: #03141b; border-color: var(--v11-cyan); background: var(--v11-cyan); }
input[type="checkbox"] { accent-color: var(--v11-cyan-2); }

/* Composer */
#task-form { gap: 10px; }
.form-content { display: contents; }
.form-submit-dock {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  padding-top: 6px;
  border-top: 1px solid rgba(99, 177, 207, .12);
  background: linear-gradient(180deg, rgba(7, 15, 25, 0), rgba(7, 15, 25, .72) 28%);
}
.form-submit-dock .form-error { min-height: 0; margin: 3px 2px 0; }
.form-submit-dock .form-error:empty { display: none; }
.credential-field,
.form-grid,
.form-actions {
  border: 1px solid rgba(99, 177, 207, .14);
  border-radius: 14px;
  box-shadow: none;
}
.credential-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: linear-gradient(150deg, #08121e, #07101b);
}
.credential-input-field { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
.credential-field .credential-tools {
  display: flex;
  min-height: 32px;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.credential-field .credential-preview { min-height: 0; }
.form-grid,
.form-actions { background: rgba(7, 15, 25, .76); }
.credential-label,
.field > span,
.field > label,
.proxy-pool-label { color: #bed3e1; }
.field > label { font-size: 11px; font-weight: 800; }
.field input,
.field select,
.field textarea,
.cdk-inline-form input,
.cdk-merge-popover textarea {
  border: 1px solid rgba(104, 180, 209, .2);
  border-radius: 10px;
  color: #e7faff;
  background: #050c15;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.cdk-inline-form input:focus,
.cdk-merge-popover textarea:focus {
  border-color: rgba(85, 229, 255, .72);
  box-shadow: 0 0 0 3px rgba(85, 229, 255, .08);
}
.select-field { position: relative; }
.select-field > select.native-select-control {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.custom-select { position: relative; min-width: 0; }
.custom-select-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(104, 180, 209, .2);
  border-radius: 10px;
  color: #e7faff;
  background: linear-gradient(145deg, rgba(7, 18, 29, .98), rgba(5, 12, 21, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  font: 600 13px/1.2 Inter, "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.custom-select-trigger:hover { border-color: rgba(85, 229, 255, .42); background: #0a1a28; }
.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  border-color: rgba(85, 229, 255, .78);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(85, 229, 255, .09), inset 0 1px rgba(255, 255, 255, .035);
}
.custom-select-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.5px solid #8ddceb;
  border-bottom: 1.5px solid #8ddceb;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}
.custom-select.open .custom-select-chevron { transform: rotate(225deg) translate(-1px, -1px); }
.custom-select-menu {
  position: fixed;
  z-index: 3000;
  display: grid;
  max-height: min(286px, calc(100dvh - 24px));
  gap: 2px;
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(100, 212, 241, .3);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(10, 25, 39, .995), rgba(4, 11, 19, .995));
  box-shadow: 0 20px 58px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .035);
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 229, 255, .35) transparent;
}
.custom-select-menu[hidden] { display: none; }
.custom-select-option {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 7px 32px 7px 10px;
  border: 0;
  border-radius: 8px;
  color: #b9ccda;
  background: transparent;
  font: 600 12px/1.25 Inter, "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
}
.custom-select-option:hover,
.custom-select-option:focus-visible { color: #f0fdff; outline: 0; background: rgba(85, 229, 255, .09); }
.custom-select-option.selected { color: #05151c; background: linear-gradient(135deg, #73edff, #42c6df); }
.custom-select-option.selected::after {
  position: absolute;
  right: 11px;
  color: #05202a;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}
.credential-status::before { color: var(--v11-cyan); }
.credential-status { color: #a4bbc9; }
.account-preview strong { color: var(--v11-cyan); }
.credential-actions { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.credential-actions .credential-file-button { display: none !important; }
.form-divider { color: #5c788c; }
.form-divider::after { background: rgba(91, 173, 205, .15); }
.form-divider > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.form-divider span small { color: #02141b; background: var(--v11-cyan); }
.form-divider::after { order: 1; }
.route-mode-toggle {
  display: inline-flex;
  min-height: 28px;
  order: 2;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid rgba(92, 202, 232, .2);
  border-radius: 999px;
  color: #b9cfdd;
  background: rgba(11, 27, 42, .74);
  font: 700 9px/1 var(--mono);
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
}
.route-mode-toggle:hover { color: #effcff; border-color: rgba(85, 229, 255, .45); background: rgba(17, 45, 62, .84); }
.route-mode-toggle input { width: 14px; height: 14px; margin: 0; }
.proxy-pool-label strong { color: var(--v11-cyan); }
.proxy-pool-feedback { color: #71889b; }
.proxy-pool-toggle { color: #b6c9d6; }
.submit-panel .route-control {
  min-height: 0;
  padding: 9px;
  border-color: rgba(99, 177, 207, .13);
  background: linear-gradient(155deg, rgba(12, 29, 44, .86), rgba(7, 18, 29, .88));
}
.submit-panel .proxy-pool-field { min-height: 0; }
.submit-panel .proxy-pool-toggle { margin-top: 6px; font-size: 9px; }
.submit-panel .proxy-pool-feedback { min-height: 11px; font-size: 8px; }
.submit-dock-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f8799;
  font: 700 9px/1 var(--mono);
  letter-spacing: .04em;
}
.submit-dock-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v11-green);
  box-shadow: 0 0 12px rgba(77, 229, 174, .65);
}
.submit-task-button { min-height: 40px; font-size: 11px; }
.form-error { color: var(--v11-red); }

/* Task cockpit */
.tasks-panel { display: flex; flex-direction: column; overflow: hidden; }
.tasks-panel .section-heading {
  display: grid;
  grid-template-columns: minmax(145px, .58fr) minmax(360px, 1fr);
  align-items: end;
  gap: 12px;
}
.task-stats {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(99, 177, 207, .14);
  border-radius: 12px;
  color: var(--v11-text);
  background: rgba(5, 13, 22, .78);
}
.task-stats > span { min-height: 46px; padding: 6px 10px; }
.task-stats > span + span { border-left-color: rgba(99, 177, 207, .12); }
.task-stats small { color: #577085; font-size: 8px; }
.task-stats strong { color: #e9faff; font-size: 17px; }
.task-stats > span:nth-child(2) strong { color: var(--v11-green); }
.task-stats > span:nth-child(3) strong { color: var(--v11-red); }
.task-overview {
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid rgba(99, 177, 207, .13);
  border-radius: 13px;
  background: rgba(5, 13, 22, .72);
}
.task-toolbar,
.export-toolbar,
.draft-toolbar { gap: 5px; }
.tasks-panel .filter-button,
.tasks-panel .view-button,
.tasks-panel .task-overview button { min-height: 29px; padding: 4px 9px; font-size: 9px; }
.tasks-panel .primary { color: #02141b; border-color: var(--v11-cyan); background: var(--v11-cyan); }
.tasks-panel .secondary { color: #92aabd; border-color: rgba(99, 177, 207, .16); background: #0c1927; }
.tasks-panel .bulk-delete-button { color: #d899a4; border-color: rgba(255, 112, 135, .18); background: rgba(70, 24, 34, .24); }
.tasks-panel .draft-toolbar,
.tasks-panel .export-toolbar { border-top-color: rgba(99, 177, 207, .1); }
.task-count { color: #5f788c; }
.task-list {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 9px;
  padding: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(99, 177, 207, .13);
  border-radius: 14px;
  background: rgba(3, 9, 16, .72);
}
.task-list::-webkit-scrollbar { width: 5px; height: 0; }
.task-list::-webkit-scrollbar-thumb { border-radius: 999px; background: linear-gradient(var(--v11-cyan-2), var(--v11-blue)); }
.tasks-panel .empty-state {
  min-height: 100%;
  border: 1px dashed rgba(85, 229, 255, .18);
  border-radius: 11px;
  color: #567286;
  background: radial-gradient(circle at 50% 20%, rgba(43, 189, 217, .08), transparent 46%), #050d16;
}

/* Stable task card: identity, facts, result/error, controls. */
.task-list.list-view .task-row {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 146px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 76px 76px 76px minmax(112px, .75fr) minmax(122px, .85fr);
  grid-template-rows: minmax(30px, auto) minmax(26px, auto) minmax(38px, auto) minmax(32px, auto);
  gap: 0 6px;
  margin-bottom: 7px;
  padding: 5px 8px 5px 12px;
  border: 1px solid rgba(103, 178, 206, .18);
  border-radius: 12px;
  color: var(--v11-text);
  background: linear-gradient(120deg, rgba(13, 28, 43, .96), rgba(8, 18, 30, .96));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .02);
}
.task-list.list-view .task-row:last-child { margin-bottom: 0; }
.task-list.list-view .task-row::before { width: 2px; background: var(--v11-blue); }
.task-list.list-view .task-row-failed::before,
.task-list.list-view .task-row-cancelled::before { background: var(--v11-red); }
.task-list.list-view .task-row-succeeded::before { background: var(--v11-green); }
.task-list.list-view .task-row:hover { border-color: rgba(85, 229, 255, .38); background: linear-gradient(120deg, #10283a, #0a1827); }
.task-list.list-view .task-row-field,
.task-list.list-view .task-row-actions {
  min-width: 0;
  min-height: 0;
  padding: 5px 8px;
  border-right: 1px solid rgba(96, 170, 198, .08);
}
.task-list.list-view .task-row-field { display: grid; align-content: center; justify-content: stretch; gap: 3px; }
.task-list.list-view .task-row-field > span { color: #59758b; font: 700 8px/1.2 var(--mono); letter-spacing: .08em; }
.task-list.list-view .task-row-field > strong { color: #e8f8ff; font-size: 11px; }
.task-list.list-view .task-row-account > strong {
  overflow: visible;
  color: #f5fcff;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.task-list.list-view .task-row-time-field {
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  column-gap: 8px;
}
.task-list.list-view .task-row-time-field > small { color: #59758b; font-size: 8.5px; }
.task-list.list-view .task-row-progress {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto 5px;
  align-items: center;
  column-gap: 8px;
  row-gap: 5px;
}
.task-list.list-view .task-row-progress > span:first-child { grid-column: 1; grid-row: 1; }
.task-list.list-view .task-row-progress > strong { grid-column: 2; grid-row: 1; min-width: 0; }
.task-list.list-view .task-row-progress > .task-elapsed { grid-column: 3; grid-row: 1; white-space: nowrap; }
.task-list.list-view .task-row-progress > .task-progress-track { grid-column: 1 / -1; grid-row: 2; width: 100%; }
.task-list.list-view .task-row-status-value { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.task-list.list-view .status {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid rgba(109, 188, 216, .2);
  font-size: 8.5px;
  line-height: 1.2;
  white-space: normal;
}
.status-running,
.status-queued,
.status-starting,
.task-list.list-view .status-draft { color: #a8efff; border-color: rgba(85, 229, 255, .25); background: rgba(24, 111, 132, .22); }
.status-succeeded { color: #82efc3; border-color: rgba(77, 229, 174, .25); background: rgba(21, 105, 78, .23); }
.status-failed,
.status-error-category { color: #ff9cac; border-color: rgba(255, 112, 135, .27); background: rgba(116, 32, 48, .25); }
.status-network { color: #ffda94; border-color: rgba(255, 204, 115, .28); background: rgba(110, 76, 21, .24); }
.task-list.list-view .task-row-error { color: #ff99a9; font-size: 10px; line-height: 1.35; -webkit-line-clamp: 2; }
.task-list.list-view .task-row-result-field,
.task-list.list-view .task-row-error-field {
  min-height: 38px;
  align-self: stretch;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  column-gap: 7px;
  overflow: visible;
}
.task-list.list-view .task-row-result {
  display: grid;
  min-height: 30px;
  width: min(100%, 640px);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}
.task-list.list-view .task-row-result .result-link {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #76eaff;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-list.list-view .task-row-result > [data-copy] {
  min-width: 52px;
  min-height: 30px;
  height: 30px;
  flex: 0 0 auto;
  padding: 4px 8px;
}
.task-list.list-view .task-progress-bar { background: linear-gradient(90deg, var(--v11-cyan), var(--v11-blue)); }
.task-list.list-view .task-row-actions { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 5px; border-right: 0; }
.task-list.list-view .task-row-actions .task-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 5px; }
.task-list.list-view .task-row-actions .primary,
.task-list.list-view .task-row-actions .secondary { min-height: 30px; padding: 5px 10px; border-radius: 8px; font-size: 9px; }
.task-list.list-view .task-row-actions .retry-option {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(98, 179, 210, .16);
  border-radius: 8px;
  color: #9db3c3;
  background: rgba(4, 12, 21, .56);
  font-size: 9px;
  white-space: nowrap;
}
.task-list.list-view .task-row > .task-row-account { grid-column: 1 / 4; grid-row: 1; }
.task-list.list-view .task-row > .task-row-status { grid-column: 4 / -1; grid-row: 1; }
.task-list.list-view .task-row > .task-row-field:nth-child(2) { grid-column: 1; grid-row: 2; }
.task-list.list-view .task-row > .task-row-field:nth-child(3) { grid-column: 2; grid-row: 2; }
.task-list.list-view .task-row > .task-row-field:nth-child(6) { grid-column: 3; grid-row: 2; }
.task-list.list-view .task-row > .task-row-field:nth-child(7) { grid-column: 4 / -1; grid-row: 2; }
.task-list.list-view .task-row > .task-row-field:nth-child(5) { grid-column: 1 / -1; grid-row: 3; border-top: 1px solid rgba(96, 170, 198, .08); }
.task-list.list-view .task-row > .task-row-actions { grid-column: 1 / -1; grid-row: 4; border-top: 1px solid rgba(96, 170, 198, .1); }
.task-list.list-view .task-row-failed .task-row-actions > .task-actions,
.task-list.list-view .task-row-cancelled .task-row-actions > .task-actions { order: 1; flex: 1 1 auto; }
.task-list.list-view .task-row-failed .task-row-actions > [data-details],
.task-list.list-view .task-row-cancelled .task-row-actions > [data-details] { order: 2; }
.task-list.list-view .task-row-failed .task-row-actions > .task-row-delete,
.task-list.list-view .task-row-cancelled .task-row-actions > .task-row-delete { order: 3; }
.task-list.list-view .task-row-failed .task-actions > [data-retry],
.task-list.list-view .task-row-cancelled .task-actions > [data-retry] { margin-left: auto; }

/* Dense desktop task rows: keep the live output useful when a batch has many
   failures. Details remain available from the existing 详情 modal. */
@media (min-width: 1280px) {
  .task-list.list-view .task-row {
    min-height: 104px;
    grid-template-rows: 23px 21px 30px 28px;
    gap: 0 4px;
    margin-bottom: 4px;
    padding: 0 6px 0 9px;
  }
  .task-list.list-view .task-row-field,
  .task-list.list-view .task-row-actions { padding: 2px 5px; }
  .task-list.list-view .task-row > .task-row-account,
  .task-list.list-view .task-row > .task-row-status,
  .task-list.list-view .task-row > .task-row-field:nth-child(2),
  .task-list.list-view .task-row > .task-row-field:nth-child(3),
  .task-list.list-view .task-row > .task-row-field:nth-child(6) {
    display: flex;
    min-width: 0;
    align-items: center;
    align-content: center;
    gap: 6px;
  }
  .task-list.list-view .task-row > .task-row-account > span,
  .task-list.list-view .task-row > .task-row-status > span,
  .task-list.list-view .task-row > .task-row-field:nth-child(2) > span,
  .task-list.list-view .task-row > .task-row-field:nth-child(3) > span,
  .task-list.list-view .task-row > .task-row-field:nth-child(6) > span { flex: 0 0 auto; }
  .task-list.list-view .task-row-field > span { font-size: 7px; }
  .task-list.list-view .task-row-field > strong { font-size: 10px; }
  .task-list.list-view .task-row-account > strong {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .task-list.list-view .task-row-error { font-size: 9px; -webkit-line-clamp: 1; }
  .task-list.list-view .task-row-result-field,
  .task-list.list-view .task-row-error-field { min-height: 28px; }
  .task-list.list-view .task-row-progress { padding-bottom: 4px; }
  .task-list.list-view .task-row > .task-row-actions { justify-content: flex-end; }
  .task-list.list-view .task-row-result > [data-copy] {
    min-height: 24px;
    height: 24px;
    padding-block: 2px;
  }
  .task-list.list-view .task-row-actions .primary,
  .task-list.list-view .task-row-actions .secondary,
  .task-list.list-view .task-row-actions .retry-option { min-height: 24px; padding: 3px 7px; font-size: 8px; }
}

/* Modals and access gates */
.task-modal-backdrop,
.announcement-backdrop,
.auth-gate,
.maintenance-gate { background: rgba(1, 5, 10, .84); backdrop-filter: blur(12px); }
.task-modal-dialog,
.announcement-dialog,
.auth-card,
.maintenance-card {
  border: 1px solid var(--v11-line-strong);
  border-radius: 21px;
  color: var(--v11-text);
  background: linear-gradient(145deg, #0c1927, #07111c);
  box-shadow: 0 38px 110px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 255, 255, .03);
}
.task-modal-header { border-bottom-color: rgba(99, 177, 207, .13); }
.eyebrow { color: var(--v11-cyan); }
.detail-item,
.batch-import-summary,
.batch-import-results,
.history-summary,
.history-item { border-color: rgba(99, 177, 207, .14); background: rgba(5, 14, 23, .74); }
.brand-mark { color: #02141b; background: linear-gradient(145deg, #82efff, #42c9e2); }
.task-failure-panel { margin-top: 16px; padding: 15px; border: 1px solid rgba(255, 129, 149, .3); border-radius: 12px; background: rgba(134, 42, 65, .16); }
.task-failure-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 129, 149, .2); }
.task-failure-heading span { color: var(--v11-red); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.task-failure-heading strong { color: #ffd7df; font-size: 14px; }
.task-failure-summary { display: flex; flex-direction: column; gap: 5px; padding: 12px 0; }
.task-failure-summary span, .task-failure-grid span, .task-failure-raw-wrap > span { color: #9fb3c7; font-size: 10px; }
.task-failure-summary strong { color: #ff9ab0; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.task-failure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.task-failure-grid > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border: 1px solid rgba(99, 177, 207, .13); border-radius: 8px; background: rgba(3, 12, 21, .35); }
.task-failure-grid strong { color: #e1effd; font-size: 11px; overflow-wrap: anywhere; }
.task-failure-raw-wrap { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.task-failure-raw { max-height: 180px; margin: 0; overflow: auto; padding: 10px 12px; border: 1px solid rgba(99, 177, 207, .15); border-radius: 8px; background: rgba(2, 8, 15, .72); color: #c7d8e8; font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }

@media (min-width: 1280px) {
  .workspace-grid {
    /* Keep the composer inside the first desktop viewport. The previous
       760px floor stretched the credential textarea and left a dead block
       below the proxy controls on 900-1080px displays. */
    height: clamp(560px, calc(100dvh - 330px), 620px);
    min-height: 560px;
    max-height: 620px;
  }
  .panel,
  .tasks-panel { height: auto; overflow: hidden; }
  .submit-panel { display: flex; flex-direction: column; overflow: hidden; }
  .submit-panel #task-form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0;
  }
  .submit-panel .form-content {
    display: grid;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    grid-template-columns: minmax(235px, .76fr) minmax(0, 1.24fr);
    grid-template-rows: 34px minmax(0, 1fr);
    gap: 9px 11px;
  }
  .submit-panel .credential-field { min-height: 0; grid-column: 1; grid-row: 1 / 3; padding: 13px; }
  .submit-panel .credential-field textarea {
    min-height: 180px;
    height: 100%;
    max-height: 300px;
    resize: none;
  }
  .submit-panel .credential-field .credential-tools { min-height: 26px; margin-top: 8px; padding: 0 2px; }
  .submit-panel .form-divider { grid-column: 2; grid-row: 1; margin: 0; padding: 1px 2px 5px; }
  .submit-panel .form-grid {
    min-height: 0;
    grid-column: 2;
    grid-row: 2;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    overflow: hidden;
  }
  .submit-panel .form-grid > .field:nth-child(1) { grid-column: 1; grid-row: 1; }
  .submit-panel .form-grid > .field:nth-child(2) { grid-column: 2; grid-row: 1; }
  .submit-panel .form-grid > .route-control:nth-child(3) { grid-column: 1; grid-row: 2; }
  .submit-panel .form-grid > .route-control:nth-child(4) { grid-column: 2; grid-row: 2; }
  .submit-panel .proxy-pool-field textarea {
    min-height: 88px;
    height: 100%;
    max-height: 132px;
  }
  .submit-panel .form-submit-dock { flex: 0 0 auto; }
  .submit-panel .form-actions {
    display: flex;
    height: 44px;
    min-height: 0;
    max-height: 44px;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 3px 2px 3px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .submit-panel .submit-task-button {
    width: min(220px, 100%);
    height: 38px;
    min-height: 38px;
    padding-block: 4px;
    border-radius: 10px;
  }
}

@media (max-width: 1279px) {
  .app-sidebar { position: relative; top: auto; flex-wrap: wrap; }
  .app-sidebar .topbar-actions-dock { width: 100%; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  .app-main { padding-top: 10px; }
  .overview-deck { grid-template-columns: minmax(285px, .38fr) minmax(0, .62fr); }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px auto auto; overflow: visible; }
  .workspace-command-header { grid-column: 1; }
  .submit-panel { border-right: 0; border-bottom: 1px solid rgba(99, 177, 207, .12); }
  .tasks-panel { min-height: 760px; }
  .task-list { min-height: 480px; }
}

@media (max-width: 700px) {
  .task-failure-grid { grid-template-columns: 1fr; }
  body { background-size: 28px 28px, 28px 28px, auto, auto, auto; }
  .app-sidebar,
  .app-main { width: calc(100% - 14px); }
  .app-sidebar { margin-top: 7px; padding: 9px; border-radius: 15px; }
  .sidebar-brand-mark { width: 38px; height: 38px; }
  .app-sidebar .topbar-actions-dock { padding-bottom: 2px; }
  .overview-deck { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 7px; }
  .topbar { min-height: 96px; grid-column: 1; grid-row: 1; padding: 15px 16px; border-radius: 15px; }
  .topbar-copy h1 { font-size: 24px; }
  .task-success-status { min-height: 210px; grid-column: 1; grid-row: 2; padding: 12px 10px; border-radius: 15px; }
  .task-success-head { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .task-success-title-wrap p,
  .task-success-legend { display: none; }
  .task-success-grid { grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; }
  .task-success-lane { grid-template-columns: 82px minmax(0, 1fr); min-height: 36px; }
  .workflow-strip { grid-column: 1; grid-row: 3; min-height: 58px; padding: 5px; border-radius: 14px; }
  .workflow-strip > div { grid-template-columns: 1fr; grid-template-rows: 22px auto; justify-items: center; gap: 1px; padding: 2px; text-align: center; }
  .workflow-strip span { width: 21px; height: 21px; grid-row: 1; }
  .workflow-strip b { align-self: center; font-size: 8px; }
  .workflow-strip small { display: none; }
  .workspace-grid { border-radius: 17px; }
  .workspace-command-header { grid-template-columns: 1fr auto; padding: 8px 12px; }
  .workspace-command-flow { display: none; }
  .panel,
  .tasks-panel { padding: 12px 10px; }
  .panel-heading h2,
  .section-heading h2 { font-size: 23px; }
  .tasks-panel .section-heading { display: block; }
  .task-stats { margin-top: 10px; }
  .task-overview { padding: 7px; }
  .task-toolbar,
  .task-filters,
  .view-toggle {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .task-toolbar::-webkit-scrollbar,
  .task-filters::-webkit-scrollbar,
  .view-toggle::-webkit-scrollbar { display: none; }
  .task-toolbar > *,
  .task-filters > *,
  .view-toggle > *,
  .export-toolbar > * { flex: 0 0 auto; }
  .export-toolbar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .export-toolbar .select-all-field { white-space: nowrap; }
  .task-list.list-view .task-row {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
    grid-template-rows: repeat(6, auto);
    gap: 5px 8px;
    padding: 11px 10px 10px 13px;
  }
  .task-list.list-view .task-row > .task-row-account { grid-column: 1 / -1; grid-row: 1; }
  .task-list.list-view .task-row > .task-row-status { grid-column: 1 / -1; grid-row: 2; }
  .task-list.list-view .task-row > .task-row-field:nth-child(2) { grid-column: 1; grid-row: 3; }
  .task-list.list-view .task-row > .task-row-field:nth-child(3) { grid-column: 2; grid-row: 3; }
  .task-list.list-view .task-row > .task-row-field:nth-child(5) { grid-column: 1 / -1; grid-row: 4; }
  .task-list.list-view .task-row > .task-row-field:nth-child(6) { grid-column: 1; grid-row: 5; }
  .task-list.list-view .task-row > .task-row-field:nth-child(7) { grid-column: 2; grid-row: 5; }
  .task-list.list-view .task-row > .task-row-actions { grid-column: 1 / -1; grid-row: 6; }
  .task-list.list-view .task-row-failed .task-row-actions > .task-actions,
  .task-list.list-view .task-row-cancelled .task-row-actions > .task-actions { flex-basis: 100%; }
  .task-list.list-view .task-row-failed .task-actions > [data-retry],
  .task-list.list-view .task-row-cancelled .task-actions > [data-retry] { margin-left: 0; }
  .task-list.list-view .task-row-actions .retry-option { white-space: normal; }
}

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

/* Final specificity pass over legacy V9 component selectors. */
.submit-panel .credential-field {
  border-color: rgba(99, 177, 207, .18);
  background: linear-gradient(150deg, #091622, #07111c);
}
.submit-panel .form-grid {
  border-color: rgba(99, 177, 207, .16);
  background: rgba(7, 17, 28, .86);
}
.submit-panel .credential-field .credential-tools,
.submit-panel .form-actions { border-color: transparent; background: transparent; }
.submit-panel .form-divider span small { color: #02141b; background: var(--v11-cyan); }
.submit-panel .submit-task-button,
.submit-panel .submit-task-button:disabled {
  color: #03141b;
  border-color: #60dff4;
  background: linear-gradient(135deg, #73edff, #42c6df);
}
.tasks-panel .filter-button.active,
.tasks-panel .view-button.active {
  color: #02141b;
  border-color: var(--v11-cyan);
  background: var(--v11-cyan);
}
.task-list.list-view .task-row-field > span { font-size: 9px; }
.task-list.list-view .task-row-field > strong { font-size: 12px; }
.task-list.list-view .task-row-account > strong { font-size: 13px; }
.task-list.list-view .task-row-error { font-size: 11px; }
.task-list.list-view .task-row-actions .primary,
.task-list.list-view .task-row-actions .secondary,
.task-list.list-view .task-row-actions .retry-option { font-size: 10px; }
