/* v70 UI motion layer: flat pill controls, elastic ranges, supplier dock and monochrome login. */

/* ---------- Flat pill controls ---------- */
.btn.primary,
.btn.gen,
.top-btn.top-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #111318;
  border-radius: 999px;
  color: #fff;
  background: #111318;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.btn.primary:hover,
.btn.gen:hover,
.top-btn.top-primary:hover {
  color: #fff;
  border-color: #2a3038;
  background: #252a31;
  transform: none;
  box-shadow: 0 4px 12px rgba(15,23,42,.12);
}
.btn.gen::after { display: none; }
.btn.primary > *, .btn.gen > *, .top-btn.top-primary > *,
.btn.ghost > *, .chip > *, .seg-group button > *, .mode-tab > *,
.vl-tabs button > *, .vl-mode-tabs button > *, .asset-library-tabs button > *, .supplier-filter-chips button > * {
  position: relative;
  z-index: 1;
}

body:not(.immersive) .btn.ghost,
body:not(.immersive) .chip,
.seg-group button,
.mode-tab,
.vl-tabs button,
.vl-mode-tabs button,
.asset-library-tabs button,
.supplier-filter-chips button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px;
  border-color: #d8dce3;
  background: rgba(255,255,255,.88);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, background 180ms ease;
}
body:not(.immersive) .btn.ghost:hover,
body:not(.immersive) .chip:hover,
.seg-group button:hover,
.mode-tab:hover,
.vl-tabs button:hover,
.vl-mode-tabs button:hover,
.asset-library-tabs button:hover,
.supplier-filter-chips button:hover {
  color: #111318;
  border-color: #c8cdd5;
  background: #f4f6f8;
  box-shadow: none;
  transform: none;
}
.seg-group button.is-active,
.mode-tab.is-active,
.vl-tabs button.is-active,
.vl-mode-tabs button.is-active,
.asset-library-tabs button.on,
.supplier-filter-chips button.on,
body:not(.immersive) .chip.on {
  color: #fff;
  border-color: #111318;
  background: #111318;
  box-shadow: none;
}
.seg-group button.is-active:hover,
.mode-tab.is-active:hover,
.vl-tabs button.is-active:hover,
.vl-mode-tabs button.is-active:hover,
.asset-library-tabs button.on:hover,
.supplier-filter-chips button.on:hover,
body:not(.immersive) .chip.on:hover { color: #fff; background: #252a31; }

/* ---------- Elastic native ranges ---------- */
.elastic-range {
  --elastic-offset: 0px;
  width: 100%;
  min-width: 120px;
  display: grid;
  grid-template-columns: 22px minmax(70px, 1fr) 22px;
  align-items: center;
  gap: 7px;
  transform: translateX(var(--elastic-offset));
  transition: transform 260ms cubic-bezier(.18,.9,.24,1.28);
}
.elastic-range.is-dragging { transition-duration: 80ms; }
.elastic-range.is-settling { animation: elasticRangeSettle 340ms cubic-bezier(.2,.8,.2,1); }
@keyframes elasticRangeSettle {
  0% { transform: translateX(var(--elastic-offset)) scaleX(1.006); }
  55% { transform: translateX(0) scaleX(.994); }
  100% { transform: translateX(0) scaleX(1); }
}
.elastic-range-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #69717e;
  opacity: .62;
  transform: scale(.94);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1), color 180ms ease;
}
.elastic-range.is-dragging .elastic-range-icon { opacity: 1; color: #111318; transform: scale(1.06); }
.elastic-range-track { min-width: 0; display: flex; align-items: center; }
.elastic-range input[type="range"] {
  --range-percent: 50%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}
.elastic-range input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border: 1px solid #b8bdc6;
  border-radius: 999px;
  background: linear-gradient(90deg, #151922 0 var(--range-percent), #f1f2f4 var(--range-percent) 100%);
}
.elastic-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #111318;
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
  transition: transform 180ms cubic-bezier(.2,.8,.2,1);
}
.elastic-range input[type="range"]:hover::-webkit-slider-thumb,
.elastic-range input[type="range"]:focus-visible::-webkit-slider-thumb { transform: scale(1.08); }
.elastic-range input[type="range"]:focus-visible { outline: 2px solid #111318; outline-offset: 3px; border-radius: 999px; }
.elastic-range input[type="range"]::-moz-range-track { height: 6px; border: 1px solid #b8bdc6; border-radius: 999px; background: #f1f2f4; }
.elastic-range input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: #151922; }
.elastic-range input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 2px solid #fff; border-radius: 50%; background: #111318; box-shadow: 0 1px 5px rgba(0,0,0,.22); }
.vl-sliders label .elastic-range { grid-column: 1 / -1; }
.count-slider .elastic-range,
.cut-audio-row .elastic-range { flex: 1; }
.tse-row.style .elastic-range { width: 126px; min-width: 126px; }
.tse-row.style .elastic-range input[type="range"] { width: 100%; }

/* ---------- Supplier left rail ---------- */
body.role-supplier .app-shell {
  grid-template-columns: 64px minmax(0, 1fr);
  padding-bottom: 0;
}
body.role-supplier .view-root { padding-bottom: 60px; }
body.role-supplier .supplier-shell { max-width: none; margin-inline: 0; }

/* ---------- Route motion ---------- */
.view-root.view-motion-in > * { animation: viewMotionIn 220ms ease-out both; }
@keyframes viewMotionIn {
  from { opacity: .32; }
  to { opacity: 1; }
}

/* ---------- Galaxy login ---------- */
.login-gate {
  color: #fff;
  background: #050506;
}
.login-gate::before {
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.52));
  opacity: 1;
  animation: none;
}
.login-gate::after {
  z-index: 2;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.04) 12%, rgba(0,0,0,.58) 100%);
  opacity: 1;
  animation: none;
}
.lg-beams { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
.login-gate.galaxy-fallback,
.login-gate.beams-fallback { background: #050506 url("../assets/brand/main-login-fallback.png") center / cover no-repeat; }
.lg-wordmark {
  position: absolute;
  left: 28px;
  top: 25px;
  z-index: 5;
  color: rgba(255,255,255,.92);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}
.lg-center { top: 0; z-index: 5; width: min(420px, calc(100vw - 40px)); }
.lg-card {
  width: 100%;
  padding: 0 20px 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.lg-card::before, .lg-card::after { display: none; }
.lg-brand { margin-bottom: 26px; }
.lg-login-logo { width: min(150px, 42vw); margin: 0 auto 18px; filter: grayscale(1) brightness(0) invert(1); opacity: .96; }
.lg-brand h1 { color: #fff; font-size: 25px; font-weight: 720; letter-spacing: 0; }
.lg-brand p { min-height: 18px; margin-top: 9px; color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: 0; }
.lg-form { gap: 18px; }
.lg-field {
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.34);
  border-radius: 0;
  color: rgba(255,255,255,.58);
  background: transparent;
  box-shadow: none;
  transition: border-color 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}
.lg-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1);
}
.lg-field { position: relative; }
.lg-field:focus-within { border-color: rgba(255,255,255,.30); box-shadow: none; transform: translateY(-1px); }
.lg-field:focus-within::after { transform: scaleX(1); }
.lgf-ico { color: rgba(255,255,255,.50); }
.lg-field input, .lg-field select { padding: 14px 0; color: #fff; font-size: 14px; }
.lg-field input::placeholder { color: rgba(255,255,255,.40); }
.lg-field select { color-scheme: dark; }
.lg-field .smart-select-wrap { flex: 1; min-width: 0; }
.lg-field .smart-select-trigger {
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}
.lg-field .smart-select-trigger > span { color: #fff; }
.lg-field .smart-select-trigger > i { border-color: rgba(255,255,255,.64); }
.lg-login {
  position: relative;
  min-height: 48px;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #111318;
  background: #fff;
  box-shadow: none;
  transition: color 200ms ease, transform 180ms ease;
  isolation: isolate;
}
.lg-login::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111318;
  transform: translateX(-50%) scale(0);
  transition: transform 320ms cubic-bezier(.2,.85,.24,1);
  z-index: 0;
}
.lg-login > span { position: relative; z-index: 1; }
.lg-login:hover { color: #fff; box-shadow: none; transform: translateY(-1px); }
.lg-login:hover::before { transform: translateX(-50%) scale(18); }
.lg-secondary {
  position: absolute;
  right: 28px;
  top: 22px;
  z-index: 6;
  min-width: 92px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 999px;
  color: #111318;
  background: #fff;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lg-secondary:hover { color: #fff; border-color: rgba(255,255,255,.72); background: #111318; }
.lg-secondary[aria-pressed="true"] { color: #fff; border-color: rgba(255,255,255,.72); background: #111318; }
.lg-card.is-switching { animation: loginModeSwitch 280ms cubic-bezier(.2,.8,.24,1); }
@keyframes loginModeSwitch {
  0% { opacity: .62; transform: translateY(7px); }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .lg-wordmark { left: 20px; top: 20px; }
  .lg-secondary { right: 16px; top: 14px; }
  .lg-center { width: min(390px, calc(100vw - 24px)); }
  .lg-card { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .view-root.view-motion-in > *,
  .lg-card.is-switching,
  .elastic-range.is-settling { animation: none !important; }
  body.role-supplier .rail-item,
  .elastic-range,
  .btn,
  .mode-tab,
  .chip { transition-duration: 0.01ms !important; }
}

/* ---------- v71 restrained workspace pass ---------- */
.nav-rail {
  background: #050505;
  border-right-color: rgba(255,255,255,.10);
  box-shadow: none;
}
.rail-logo { filter: none; }
.brand-glyph-img {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .98;
}
.rail-item { color: rgba(255,255,255,.58); }
.rail-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.rail-item.is-active {
  color: #fff;
  background: #171717;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.rail-item.accent::after { background: #fff; box-shadow: none; }

/* The top bar already names the route. Keep page-level actions, remove duplicate titles. */
.view-root .page-head > div:first-child:not(.head-actions) { display: none; }
.view-root .page-head {
  min-height: 0;
  margin-bottom: 10px;
  justify-content: flex-end;
}
.view-root .page-head:has(> div:first-child:not(.head-actions):last-child) { display: none; }
.mode-tab > span:not(.pill-label-content) { display: none; }
.mode-tab { justify-content: center; align-items: center; }

/* Operational pages use dividers and open bands instead of stacked floating cards. */
body:not(.immersive) .view-root .card {
  border-radius: 4px;
  border-color: #dfe3e8;
  box-shadow: none;
}
body:not(.immersive) .overview > .card,
body:not(.immersive) .overview .ov-stats .card,
body:not(.immersive) .overview .ov-cols > .card,
body:not(.immersive) .analytics-page > .card,
body:not(.immersive) .analytics-page .da-stats .card,
body:not(.immersive) .assets-page > .card,
body:not(.immersive) .drafts-page > .card,
body:not(.immersive) .delivery-page > .card,
body:not(.immersive) .supplier-shell > .card {
  border-width: 1px 0 0;
  background: rgba(255,255,255,.34);
}
.overview .ovt-row,
.overview .ovr-row { border-radius: 0; }
.overview .ovt-row .dot {
  width: 6px;
  height: 6px;
  margin-inline: 2px;
  box-shadow: none;
}
.overview .ovt-row { gap: 8px; min-height: 45px; }

.da-table-head { align-items: center; }
.da-filter-selects { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.da-filter-selects .select-shell { min-width: 132px; background: transparent; }
.da-table-card { border-width: 1px 0 0 !important; background: transparent !important; }
.da-justone-main em,
.da-qa-head em { display: none; }

/* Batch workspace: retain the three-column tool layout, flatten nested containers. */
.agw-bg,
.agw-sessions,
.agw-board { background: #050505; }
.agw-sessions,
.agw-board { box-shadow: none; }
.agw-new,
.agw-sitem,
.ag-card,
.think-panel,
.agw-sug,
.agw-input-card,
.agw-tpl,
.agc-ref,
.agc-override,
.agc-acc,
.agc-ref-picked,
.agc-cover-ref {
  border-radius: 0;
  border-width: 0 0 1px;
  border-color: rgba(255,255,255,.14);
  background: transparent;
  box-shadow: none;
}
.agc-ref-drop,
.agc-ref-library,
.agc-drop-mini {
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
}
.agc-ref-drop em,
.agc-ref-library em,
.agc-ref-l em,
.agc-sec em,
.agc-custom-hint,
.agw-board-empty p,
.agw-tpl em,
.agw-sugs-head em { display: none; }
.agw-input-card:focus-within {
  border-color: rgba(255,255,255,.55);
  box-shadow: none;
  background: rgba(255,255,255,.025);
}

@media (max-width: 720px) {
  .da-filter-selects { width: 100%; justify-content: stretch; }
  .da-filter-selects .select-shell { flex: 1; }
}

/* ---------- v71 follow-up alignment and monochrome details ---------- */
.delivery-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.delivery-toolbar .mode-tabs { margin: 0; }
.delivery-toolbar .mode-tab { min-height: 34px; }
.delivery-toolbar > .btn { margin-left: auto; }
.delivery-toolbar.is-single { justify-content: flex-end; }
.supplier-filters .supplier-selection-count {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 18;
  margin: 0;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .12);
}

/* Compact dropdowns share the same silhouette as filter pills. */
.select-shell {
  min-width: 124px;
  height: 34px;
  gap: 6px;
  padding-inline: 10px;
  border-radius: 999px;
  color: #31343a;
  background: rgba(255,255,255,.72);
  box-shadow: none;
}
.select-shell:hover { border-color: #aeb3bb; background: #fff; }
.select-shell:focus-within { border-color: #111318; box-shadow: 0 0 0 2px rgba(17,19,24,.08); }
.select-shell select,
.select-shell .smart-select-trigger { font-size: 11.5px; font-weight: 720; color: #202329; }
.select-shell .smart-select-wrap { min-height: 32px; }
.supplier-filters { gap: 6px; }
.supplier-filters .select-shell { min-width: 126px; }
.da-filter-selects { gap: 6px; }
.da-filter-selects .btn { min-height: 34px; padding-inline: 12px; }

body:not(.immersive) .view-root .link-btn,
body:not(.immersive) .view-root a:not(.btn) { color: #111318; }
body:not(.immersive) .view-root .link-btn:hover,
body:not(.immersive) .view-root a:not(.btn):hover { color: #000; }
.overview .ov-stat b,
.analytics-page .ov-stat b { color: #111318 !important; }
.overview .ovt-row .dot { display: none; }
.overview .ovt-row { gap: 7px; }
.ovr-cover.fallback { color: #fff; background: #111318; }

.shp-row { gap: 8px; }
.shp-stage { display: none; }
.supplier-log > i { display: none; }
.supplier-log { gap: 8px; }
.supplier-activity-head { gap: 10px; }
.supplier-activity-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.supplier-activity-filters .select-shell {
  min-width: 116px;
  height: 30px;
  padding-inline: 9px;
}
.supplier-activity-filters .select-shell select { font-size: 10.5px; }
.supplier-activity-empty {
  margin: 0;
  padding: 22px 14px;
  border-top: 1px solid #dfe2e7;
  color: #8a9099;
  text-align: center;
  font-size: 11.5px;
}

/* Supplier account board: denser rows and a consistently aligned assign control. */
.supplier-account-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  view-transition-name: none;
}
.supplier-account-grid.is-switching { animation: supplierGridIn 160ms ease-out both; }
@keyframes supplierGridIn { from { opacity: .76; } to { opacity: 1; } }
.supplier-account {
  position: relative;
  grid-template-columns: auto 34px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 9px 8px;
}
.supplier-account-avatar { width: 34px; height: 34px; border-radius: 50%; }
.supplier-account-avatar.small { width: 28px; height: 28px; }
.supplier-member-fallback {
  display: inline-grid;
  place-items: center;
  color: #111318;
  background: #f1f2f4;
  border: 1px solid #d9dce1;
}
.supplier-avatar-fallback {
  color: #111318;
  background: #f1f2f4;
  border: 1px solid #d9dce1;
}
.account-avatar-fallback {
  color: #111318 !important;
  background: #f1f2f4 !important;
  border: 1px solid #d9dce1;
}
.supplier-account b { font-size: 12px; line-height: 1.3; }
.supplier-account em { margin-top: 2px; font-size: 10px; }
.supplier-account-sequence {
  position: static;
  justify-self: start;
  padding: 2px 5px;
  border-radius: 999px;
  color: #596273;
  background: #f1f3f6;
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .02em;
}
.supplier-account-controls { grid-column: auto; min-width: max-content; display: flex; align-items: center; justify-content: flex-end; gap: 5px; white-space: nowrap; }
.supplier-account-control-row { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: nowrap; }
.supplier-content-account-actions { min-width: 0; justify-content: flex-end; }
.supplier-homepage-actions { min-width: 0; display: grid; gap: 4px; margin: 0; }
.supplier-homepage-actions .btn { width: 100%; justify-content: center; }
.supplier-account-tools { gap: 8px; margin-bottom: 8px; }
.supplier-account-tools > label {
  width: min(300px, 100%);
  height: 34px;
  border-radius: 999px;
  padding-inline: 10px;
}
.supplier-filter-chips { gap: 4px; }
.supplier-filter-chips button {
  min-height: 32px;
  padding-inline: 11px;
  border-radius: 999px;
  font-size: 11.5px;
}
.supplier-inline-assign {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  min-width: 0;
  display: block;
  padding-top: 0;
}
.supplier-inline-assign > span:first-child { display: none; }
.supplier-inline-assign .smart-select-wrap {
  width: 100%;
  height: 28px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #d9dce1;
  border-radius: 999px;
  color: #111318;
  background: #fff;
}
.supplier-inline-assign .smart-select-trigger {
  height: 26px;
  gap: 5px;
  padding: 0;
  font-size: 10.5px;
  color: #111318;
}
.supplier-inline-assign select { height: 28px; border-radius: 999px; font-size: 10.5px; }

@media (max-width: 720px) {
  .delivery-toolbar { align-items: stretch; flex-direction: column; }
  .delivery-toolbar .mode-tabs { width: 100%; }
  .delivery-toolbar > .btn { align-self: flex-end; }
  .supplier-filters .supplier-selection-count { position: static; align-self: flex-end; }
  .supplier-account { grid-template-columns: auto 34px minmax(0, 1fr) auto; }
}
@media (max-width: 1380px) {
  .supplier-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .supplier-account-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- v71 r3: stable local interactions and monochrome refinement ---------- */
.supplier-filters .supplier-batch-download {
  min-height: 34px;
  margin-left: auto;
  white-space: nowrap;
}
.sup-table-wrap { border-radius: 3px; box-shadow: none; }
.sup-table th { padding: 8px 10px; }
.sup-table td { padding: 8px 10px; }
.sup-table .sup-name b { font-size: 11.5px; }
.sup-table .sup-name em { margin-top: 1px; font-size: 10px; }
.sup-table .btn.sm { min-height: 30px; padding: 4px 7px; }
.sup-col-actions { width: 286px; }
.sup-actions-inner { gap: 8px; }

.agent-avatar-mono {
  display: inline-grid;
  place-items: center;
  flex: none;
  border: 1px solid #d9dce1;
  border-radius: 50%;
  color: #111318;
  background: #fff;
  box-shadow: none;
}
.agent-avatar-mono svg { width: 56%; height: 56%; }
.vl-voice-actions .icon-btn.is-active {
  border-color: #111318;
  color: #fff;
  background: #111318;
}
.vl-voice-actions .icon-btn.is-active:hover { color: #fff; background: #000; }
.vl-voice-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 8px 6px 10px;
}
.vl-voice-card.is-mine { min-height: 48px; padding-right: 8px; }
.vl-voice-card:active { transform: none; }
.vl-voice-card:focus-visible {
  outline: 2px solid rgba(17,19,24,.34);
  outline-offset: -2px;
}
.vl-voice-card .vl-voice-core {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.vl-voice-core b { min-width: 0; }
.vl-voice-source {
  flex: none;
  max-width: 58px;
  overflow: hidden;
  padding: 2px 5px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  color: var(--faint);
  background: rgba(255,255,255,.72);
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vl-voice-actions {
  position: static;
  display: inline-flex;
  overflow: hidden;
  justify-self: end;
  align-self: center;
  gap: 0;
  margin: 0;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  transform: none;
  flex-wrap: nowrap;
}
.vl-voice-actions .icon-btn.tiny {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border: 0;
  border-right: 1px solid rgba(15,23,42,.09);
  border-radius: 0;
  color: #5e6673;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.vl-voice-actions .icon-btn.tiny:last-child { border-right: 0; }
.vl-voice-actions .icon-btn.tiny:hover {
  color: #111318;
  background: #fff;
  box-shadow: inset 0 -2px 0 rgba(17,19,24,.16);
  transform: none;
}
.vl-voice-actions .icon-btn.tiny:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid rgba(17,19,24,.36);
  outline-offset: -2px;
}
.vl-voice-actions .icon-btn.tiny.danger:hover {
  color: #b42332;
  background: #fff4f5;
  box-shadow: inset 0 -2px 0 rgba(180,35,50,.22);
}
.vl-voice-actions .icon-btn.tiny.is-active,
.vl-voice-actions .icon-btn.tiny.is-active:hover {
  color: #fff;
  background: #111318;
  box-shadow: none;
}

.review-page { max-width: 1180px; }
.review-publish-bar { justify-content: flex-start; }
.review-publish-bar > div { flex: 1; min-width: 0; }
.review-publish-bar > .btn,
.review-publish-bar > .muted { flex: none; margin-left: auto; }

.media-placeholder {
  display: grid !important;
  place-content: center;
  gap: 3px;
  color: #111318 !important;
  background: #f1f2f4 !important;
  border: 1px solid #d9dce1;
}
.media-placeholder span { font-size: 18px; line-height: 1; }
.media-placeholder em { color: #737985; font-size: 9px; font-style: normal; }

.account-assets-panel { width: min(760px, calc(100vw - 36px)); }
.account-assets-panel .mp-head > div { display: grid; gap: 3px; }
.account-assets-panel .mp-head em { color: var(--muted); font-size: 11px; font-style: normal; }
.account-assets-modal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0 14px;
  max-height: min(520px, 62vh);
  padding: 4px 20px 12px;
  overflow: auto;
}
.account-asset-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  border-bottom: 1px solid #dfe2e7;
}
.account-asset-preview { position: relative; width: 54px; height: 54px; padding: 0; overflow: hidden; border: 1px solid #d9dce1; border-radius: 4px; background: #f4f4f4; }
.account-asset-preview > img,
.account-asset-preview > .ph { width: 100%; height: 100%; object-fit: cover; }
.account-asset-preview > span { position: absolute; left: 3px; top: 3px; padding: 1px 4px; color: #fff; background: rgba(0,0,0,.68); font-size: 8px; }
.account-asset-item > div { display: grid; gap: 3px; min-width: 0; }
.account-asset-item > div b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.account-asset-item > div em { color: var(--muted); font-size: 10px; font-style: normal; }

.if-segment-row {
  display: block;
}
.if-segment-copy { min-width: 0; padding-left: 6px; }
.if-segment-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  align-items: stretch;
  gap: 12px;
}
.if-segment-copy textarea { width: 100%; min-height: 220px; height: 220px; }
.if-segment-media {
  width: 124px;
  min-height: 0;
  height: 220px;
  justify-self: end;
  aspect-ratio: 9 / 16;
}
.if-segment-media .if-video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 9 / 16;
}
.if-segment-media .if-video-frame > button {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.64);
  cursor: zoom-in;
}
.if-segment-media .if-video-frame video { z-index: 1; }

@media (max-width: 720px) {
  .review-publish-bar { align-items: flex-start; flex-wrap: wrap; }
  .review-publish-bar > .btn,
  .review-publish-bar > .muted { width: 100%; margin-left: 0; }
  .if-segment-editor { grid-template-columns: minmax(0, 1fr) 98px; gap: 8px; }
  .if-segment-media { width: 98px; height: 174px; align-self: start; }
  .if-segment-copy textarea { min-height: 174px; height: 174px; }
}

.pd-workshop-preview { margin-top: 12px; }
.pd-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pd-video-grid article { display: grid; justify-items: center; gap: 5px; min-width: 0; }
.pd-video-grid video { width: 90px; aspect-ratio: 9 / 16; object-fit: cover; border: 1px solid #d9dce1; border-radius: 5px; background: #050505; }
.pd-workshop-preview.is-landscape .pd-video-grid video {
  width: min(100%, 360px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.pd-video-grid em { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.pd-empty.compact { min-height: 120px; }
.ovc-ava,
.agw-ava,
.agw-hero-avatar,
.ag-avatar { filter: none !important; }
body.immersive .agent-avatar-mono {
  border-color: rgba(255,255,255,.28);
  color: #fff;
  background: #080808;
}
.ov-chat-mini {
  padding-inline: 0;
  border: 0;
  border-left: 1px solid #dfe2e7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ov-chat-mini > * { margin-inline: 16px; }

.da-justone-main > span {
  border: 1px solid #dfe1e5;
  border-radius: 50%;
  color: #111318;
  background: #f4f4f4;
}
.da-qa-avatar { display: inline-flex; }

.agc-acc.on,
.agc-acc.is-video.on {
  border-color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.1);
}
.agc-acc .ok,
.agc-acc.is-video .agc-idx { color: #fff; }

.mb-row { border-left-color: rgba(255,255,255,.28); }
.mb-row:hover { border-left-color: rgba(255,255,255,.72); }
.mb-dot i,
.mb-dot.done i,
.mb-dot.cur i,
.mb-dot.wait i,
.mb-dot.fail i {
  background: rgba(255,255,255,.48);
  box-shadow: none;
}
.mb-dot.done i { background: rgba(255,255,255,.72); }
.mb-dot.cur i { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.mb-dot.wait i { background: rgba(255,255,255,.58); }
.mb-dot.fail i { background: transparent; border: 1px solid rgba(255,255,255,.72); }
.mb-dot.run i {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
  animation: monoBoardPulse 1.35s ease-in-out infinite;
}
.mb-link { background: rgba(255,255,255,.18); }
.mb-row.is-running { overflow: hidden; }
.mb-row.is-running::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent);
  transform: translateX(-110%);
  animation: monoBoardFlow 1.8s ease-in-out infinite;
}
@keyframes monoBoardPulse { 50% { box-shadow: 0 0 0 5px rgba(255,255,255,.05); transform: scale(1.12); } }
@keyframes monoBoardFlow { to { transform: translateX(110%); } }

.prod-account-marker {
  width: 11px;
  height: 11px;
  flex: none;
  border: 1px solid #111318;
  border-radius: 50%;
  background: #111318;
}
.prod-account-marker.is-running { animation: monoLightPulse 1.4s ease-in-out infinite; }
@keyframes monoLightPulse { 50% { box-shadow: 0 0 0 5px rgba(17,19,24,.08); } }

.status-pill.running,
.dh-status.running {
  position: relative;
  overflow: hidden;
  border-color: #111318;
  color: #fff;
  background: #111318;
}
.status-pill.running::after,
.dh-status.running::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.28) 48%, transparent 72%);
  transform: translateX(-120%);
  animation: monoStatusSweep 1.6s ease-in-out infinite;
}
@keyframes monoStatusSweep { to { transform: translateX(120%); } }

.ws-mode-note.digital,
.ws-mode-note.seedance,
.dh-plan-inline .dh-seg,
.dh-plan-inline .dh-seg.is-generating {
  border-color: #d9dce1;
  background: #fff;
  box-shadow: none;
}
.dh-seg span,
.dh-seg-drop span,
.dh-seg-actions .btn.ghost { color: #111318 !important; }
.dh-seg-actions .btn.primary,
.dh-seg-actions .btn.gen,
.dh-seg-actions .btn.primary svg,
.dh-seg-actions .btn.gen svg,
.dh-seg-actions .btn.primary span,
.dh-seg-actions .btn.gen span,
body:not(.immersive) .view-root .btn.primary,
body:not(.immersive) .view-root .btn.gen {
  color: #fff !important;
}
.dh-seg-actions .btn.primary:hover,
.dh-seg-actions .btn.gen:hover,
body:not(.immersive) .view-root .btn.primary:hover,
body:not(.immersive) .view-root .btn.gen:hover {
  color: #fff !important;
}
.dh-video-placeholder {
  border-color: #cfd2d7;
  background: #f7f7f7;
}
.dh-video-placeholder > i { background: #e1e2e5; }
.dh-video-placeholder > i > b {
  background: #111318;
  animation: monoProgressPulse 1.4s ease-in-out infinite alternate;
}
@keyframes monoProgressPulse { from { opacity: .58; } to { opacity: 1; } }

#wsBriefbar.video-briefbar .ws-topic-row.is-custom {
  grid-template-columns: minmax(0, 1fr) auto;
}
#wsBriefbar.video-briefbar .ws-topic-row.is-custom #wsBriefGenerate {
  min-width: 148px;
  justify-self: end;
}

.topbar-assets-dock {
  position: absolute;
  left: 50%;
  top: 7px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: min(680px, calc(100vw - 520px));
  margin: 0;
  transform: translateX(-50%);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.topbar-assets-dock::-webkit-scrollbar { display: none; }
.topbar-assets-dock .asset-library-tabs {
  flex: none;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
}
.topbar-assets-dock .btn { min-height: 34px; flex: none; }
.topbar-assets-dock {
  width: min(720px, calc(100vw - 520px));
  justify-content: center;
  overflow: visible;
}
.topbar-assets-dock .asset-library-tabs,
.topbar-assets-dock .asset-library-tabs.text-switch {
  width: auto;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.topbar-assets-dock .asset-library-tabs button,
.topbar-assets-dock .asset-library-tabs button.on,
.topbar-assets-dock .asset-library-tabs button:hover,
.topbar-assets-dock .asset-library-tabs button.on:hover {
  overflow: visible;
  min-height: 34px;
  padding: 7px 1px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}
.topbar-assets-dock .asset-library-tabs button.on,
.topbar-assets-dock .asset-library-tabs button:hover { color: var(--text); }
.assets-page { padding-top: 0; }
.assets-page > .page-head { min-height: 0; margin: 0; padding: 0; border: 0; }
.assets-page > .page-head > :first-child { display: none; }
.asset-smart-filters {
  margin-top: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Account editing keeps local hover state from spilling into adjacent controls. */
#adRoot .btn.ghost::before,
#adRoot .seg-group button::before { display: none !important; }
#adRoot .btn.ghost:hover,
#adRoot .seg-group button:hover {
  color: #111318;
  border-color: #cfd3da;
  background: #f5f6f7;
  transform: none;
}
.account-dialog-panel {
  background: #f5f6f8;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.acc-sec { margin: 0; }
.acc-sec-head {
  padding: 9px 2px;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.acc-sec-head:hover { background: rgba(17,19,24,.025); }
.acc-sec-body {
  overflow: hidden;
  padding: 8px 0 14px;
}

.draft-groups.page { gap: 0; }
.draft-timeline { padding-left: 24px; }
.draft-timeline::before {
  left: 7px;
  width: 1px;
  background: #aeb3bb;
}
.draft-acc.card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.draft-acc.card::before {
  left: -17px;
  top: 20px;
  width: 12px;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: #111318;
  box-shadow: none;
}
.draft-acc.card .draft-acc-head {
  min-height: 42px;
  margin: 0;
  padding: 7px 2px;
  border-bottom: 1px solid #dfe2e7;
}
.draft-line-marker { width: 0; height: 0; }
.draft-date-shell {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 220ms cubic-bezier(.2,.8,.2,1), opacity 160ms ease;
}
.draft-date-list { min-height: 0; overflow: hidden; }
.draft-acc.card.collapsed .draft-date-shell { grid-template-rows: 0fr; opacity: 0; }
.draft-acc.card.collapsed .draft-date-list { display: block; }
.draft-row {
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.draft-cover {
  border: 1px solid #d8dbe0;
  border-radius: 3px;
  background: #f4f4f4;
}
.draft-cover .draft-cover-empty {
  color: #111318;
  background: #f4f4f4;
}
.draft-check { accent-color: #111318; }

@media (max-width: 980px) {
  .topbar-assets-dock {
    left: 140px;
    right: 130px;
    max-width: none;
    transform: none;
  }
  .supplier-filters .supplier-batch-download { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .status-pill.running::after,
  .dh-status.running::after,
  .dh-video-placeholder > i > b { animation: none; }
  .draft-date-shell { transition: none; }
  .mb-dot.run i,
  .mb-row.is-running::after,
  .prod-account-marker.is-running { animation: none; }
}

/* Batch plan reference areas are the drop targets; separate upload boxes are unnecessary. */
.agc-ref-body { grid-template-columns: minmax(0, 1fr) 150px; }
.agc-ref-picked.is-dropzone {
  min-height: 86px;
  cursor: copy;
  transition: border-color 160ms ease, background 160ms ease;
}
.agc-ref-picked.is-dropzone:hover,
.agc-ref-picked.is-dropzone.drag-over {
  border-color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.07);
}
.agc-ref-picked-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.agc-ref-picked-head b { font-size: 10.5px; color: var(--d-muted); }
.agc-ref-picked-head span { display: inline-flex; align-items: center; gap: 4px; color: var(--d-faint); font-size: 9.5px; }
.agc-override.is-custom-plan {
  grid-template-columns: minmax(148px, .72fr) minmax(0, 2.45fr) 76px minmax(176px, auto);
  grid-template-areas:
    "name content imgcount actions"
    "refs refs refs refs";
}
.agc-override.is-custom-plan.is-video {
  grid-template-columns: minmax(148px, .72fr) minmax(0, 1fr) minmax(176px, auto);
  grid-template-areas:
    "name content actions"
    "refs refs refs";
}
@media (max-width: 1400px) {
  .agc-override.is-custom-plan.is-video {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name actions"
      "content content"
      "refs refs";
  }
}

.agc-override[data-plan-custom-refdrop] { transition: border-color 160ms ease, background 160ms ease; }
.agc-override[data-plan-custom-refdrop].drag-over {
  border-color: rgba(255,255,255,.52);
  background: rgba(255,255,255,.08);
}
.agc-mini-ref {
  grid-area: refs;
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 2.3fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid rgba(132,152,255,.10);
}
.agc-mini-ref .agc-mini-head,
.agc-mini-ref .agc-ref-chips.mini {
  grid-area: auto;
  min-width: 0;
  padding-top: 0;
}
.agc-mini-ref .agc-mini-head { display: grid; gap: 2px; align-self: center; }
.agc-mini-ref .agc-mini-head::before { display: none; }
.agc-mini-ref .agc-mini-head em { min-width: 0; line-height: 1.35; white-space: normal; }
.agc-mini-pick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  margin-left: auto;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  font-size: 9.5px;
}
.agc-mini-pick:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.agc-override-name {
  grid-area: name;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 6px;
  align-items: center;
  min-width: 0;
}
.agc-override-name > b { grid-column: 1 / -1; }
.agc-override-name > span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255,255,255,.46);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agc-override.is-custom-plan {
  grid-template-columns: minmax(148px, .72fr) minmax(0, 2.45fr) 76px minmax(176px, auto);
  grid-template-areas:
    "name content imgcount actions"
    "refs refs refs refs";
}
.agc-override-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  align-self: center;
  min-width: 0;
}
.agc-override-actions > button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.62);
  font-size: 9.5px;
  white-space: nowrap;
}
.agc-override-actions > button:hover { border-color: rgba(255,255,255,.38); color: #fff; }
.agc-foot.is-plan-actions {
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.agc-foot.is-plan-actions .btn.sm {
  min-height: 30px;
  padding: 0 11px;
  font-size: 10.5px;
  white-space: nowrap;
}
.agc-foot.is-plan-actions .btn.primary { color: #fff; }

/* Shared dialogs use a quiet frosted surface while preserving readable contrast. */
.modal-ov,
.drawer-ov {
  background: rgba(5, 7, 11, .5);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  backdrop-filter: blur(12px) saturate(1.08);
}
.modal-panel,
.drawer {
  border: 1px solid rgba(255, 255, 255, .68);
  background: rgba(248, 249, 251, .82);
  -webkit-backdrop-filter: blur(28px) saturate(1.16);
  backdrop-filter: blur(28px) saturate(1.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .66);
}
.modal-panel .field input,
.modal-panel .field select,
.modal-panel .field textarea,
.modal-panel .select,
.modal-panel .input,
.modal-panel .textarea,
.drawer .field input,
.drawer .field select,
.drawer .field textarea {
  background: rgba(255, 255, 255, .54);
}

/* The asset picker favors scanning density over large decorative previews. */
.modal-panel.asset-picker-panel {
  width: min(760px, calc(100vw - 40px));
  max-height: min(82vh, 700px);
  padding: 16px;
}
.asset-picker-panel .mp-head { margin-bottom: 8px; }
.asset-picker-panel .mp-sub { margin-bottom: 8px; }
.asset-picker-panel .mp-foot { margin-top: 12px; }
.asset-picker { gap: 8px; }
.asset-picker-grid {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 7px;
  max-height: min(52vh, 430px);
}
.asset-pick-card {
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .48);
  box-shadow: none;
}
.asset-pick-card:hover,
.asset-pick-card.on {
  border-color: #111318;
  box-shadow: 0 7px 18px rgba(17, 19, 24, .1);
}
.asset-pick-thumb {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(238, 240, 243, .72);
}
.asset-pick-card b { font-size: 10.5px; }
.asset-pick-card em { font-size: 9px; }
.asset-pick-check {
  right: 6px;
  top: 6px;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: #111318;
}
.asset-pick-delete {
  right: 6px;
  top: 29px;
  width: 21px;
  height: 21px;
  border-radius: 5px;
  background: rgba(250, 250, 250, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
  .modal-panel.asset-picker-panel { width: calc(100vw - 20px); padding: 12px; }
  .asset-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .agc-foot.is-plan-actions { justify-content: stretch; flex-wrap: wrap; }
  .agc-foot.is-plan-actions .btn.primary { flex: 1 1 180px; }
}

@media (max-width: 1180px) {
  .agc-override.is-custom-plan {
    grid-template-columns: minmax(130px, .65fr) minmax(0, 1fr) 76px;
    grid-template-areas:
      "name content imgcount"
      "actions actions actions"
      "refs refs refs";
  }
  .agc-override-actions { justify-content: flex-end; }
  .agc-override.is-custom-plan.is-video {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name actions"
      "content content"
      "refs refs";
  }
}

@media (max-width: 640px) {
  .agc-override.is-custom-plan {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "content" "imgcount" "actions" "refs";
  }
  .agc-override-actions { justify-content: flex-start; flex-wrap: wrap; }
  .agc-override.is-custom-plan.is-video {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "content" "actions" "refs";
  }
  .agc-mini-ref { grid-template-columns: 1fr; gap: 6px; }
}

.overview-task-panel { width: min(720px, calc(100vw - 32px)); }
.overview-task-list { display: grid; max-height: min(58vh, 520px); overflow-y: auto; }
.overview-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(17,19,24,.12);
}
.overview-task-row:last-child { border-bottom: 0; }
.overview-task-main { display: grid; gap: 3px; min-width: 0; }
.overview-task-main b { overflow: hidden; color: #111318; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.overview-task-main em { color: #747982; font-size: 10px; font-style: normal; }
.overview-task-row time { color: #8b9099; font-size: 10px; white-space: nowrap; }
.overview-task-row .btn { min-height: 30px; padding: 0 10px; font-size: 10.5px; }
.overview-task-empty { padding: 34px 10px; color: #747982; font-size: 12px; text-align: center; }
.creator-delivery-filters .select-shell {
  min-width: 126px;
  padding-inline: 8px;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
}
.creator-delivery-filters .select-shell:hover,
.creator-delivery-filters .select-shell:focus-within { border-color: transparent; background: rgba(17,19,24,.035); box-shadow: none; }
.creator-delivery-filters .select-shell .smart-select-wrap { min-height: 30px; }
@media (max-width: 640px) {
  .overview-task-row { grid-template-columns: minmax(0, 1fr) auto; }
  .overview-task-row time { display: none; }
}

/* v84-3 · right-attached assistant, unified filters and restrained Codrops motion. */
.login-gate { align-items: center; justify-items: center; }
.login-gate .lg-center { position: relative; inset: auto; top: auto; margin: 0; transform: none; }
#lgApply.lg-secondary.link-elara {
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: rgba(255,255,255,.92);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#lgApply.lg-secondary.link-elara::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transform-origin: 50% 100%;
  clip-path: polygon(0 0,0 100%,100% 100%,100% 0,48% 0,48% 100%,52% 100%,52% 0);
  transition: clip-path .3s, transform .3s cubic-bezier(.2,1,.8,1);
}
#lgApply.lg-secondary.link-elara > span { display: inline-block; transition: transform .3s cubic-bezier(.2,1,.8,1); }
#lgApply.lg-secondary.link-elara:hover,
#lgApply.lg-secondary.link-elara[aria-pressed="true"] { color: #fff; border: 0; border-radius: 0; background: transparent; }
#lgApply.lg-secondary.link-elara:hover::before {
  transform: translate3d(0,2px,0) scale3d(1.08,3,1);
  clip-path: polygon(0 0,0 100%,100% 100%,100% 0,51% 0,51% 100%,49% 100%,49% 0);
}
#lgApply.lg-secondary.link-elara:hover > span { transform: translate3d(0,-2px,0); }

/* Keep the leading icon, label and chevron inside one outer filter control. */
.select-shell.has-smart-select {
  border: 1px solid #d8dce3;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
}
.select-shell.has-smart-select .smart-select-wrap { flex: 1; min-width: 0; }
.select-shell.has-smart-select .smart-select-trigger { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.creator-delivery-filters .select-shell.has-smart-select { border-color: #d8dce3; border-radius: 999px; background: rgba(255,255,255,.88); }

/* ButtonHoverStyles 03 / Mimas, adapted to ordinary large secondary buttons. */
body:not(.immersive) .btn.ghost:not(.sm):not(.block):not(.danger):not(:disabled) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  border-color: #d8dce3;
  background: #e8ebef;
  transition: color .32s cubic-bezier(.3,1,.8,1), border-color .32s ease;
}
body:not(.immersive) .btn.ghost:not(.sm):not(.block):not(.danger):not(:disabled)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 -10%;
  width: 120%;
  background: #111318;
  transform: skew(30deg);
  transition: transform .4s cubic-bezier(.3,1,.8,1);
}
body:not(.immersive) .btn.ghost:not(.sm):not(.block):not(.danger):not(:disabled):hover { color: #111318; border-color: #c8cdd5; background: #e8ebef; }
body:not(.immersive) .btn.ghost:not(.sm):not(.block):not(.danger):not(:disabled):hover::before { transform: translate3d(100%,0,0) skew(30deg); }

/* ButtonHoverStyles 08 / Anthe, kept structurally aligned with the source. */
.btn.primary.button-anthe,
body:not(.immersive) .view-root .btn.primary.button-anthe {
  position: relative;
  isolation: isolate;
  overflow: visible;
  color: #fff;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  clip-path: none;
}
.btn.primary.button-anthe::before,
body:not(.immersive) .view-root .btn.primary.button-anthe::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #111318;
  clip-path: polygon(0 0,100% 0,100% 50%,100% 100%,0 100%);
  transition: clip-path .4s cubic-bezier(.2,1,.8,1);
}
.btn.primary.button-anthe > span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; mix-blend-mode: normal; transition: transform .4s cubic-bezier(.2,1,.8,1); }
.btn.primary.button-anthe:hover,
body:not(.immersive) .view-root .btn.primary.button-anthe:hover { color: #fff; border: 0; border-radius: 0; background: transparent; clip-path: none; }
.btn.primary.button-anthe:hover::before,
body:not(.immersive) .view-root .btn.primary.button-anthe:hover::before { clip-path: polygon(0 0,75% 0,100% 50%,75% 100%,0 100%); }
.btn.primary.button-anthe:hover > span { transform: translate3d(-8px,0,0); }

/* StarMatrix 多状态助手：真实品牌素材 + 轻量产品动效。 */
.star-mascot {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: visible;
  border-radius: 50%;
  background: transparent;
  isolation: isolate;
}
.star-mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 13px rgba(34,121,231,.22));
  transform-origin: 50% 62%;
  animation: starMascotFloat 3.6s ease-in-out infinite;
}
.star-mascot-normal:hover img,
.star-mascot-hover img { animation: starMascotHello 1.8s ease-in-out infinite; }
.star-mascot-idle img { animation: starMascotBreathe 4.8s ease-in-out infinite; }
.star-mascot-working img { animation: starMascotWork 1.15s cubic-bezier(.4,0,.2,1) infinite; }
.star-mascot-success img { animation: starMascotSuccess 1.7s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes starMascotFloat {
  0%,100% { transform: translate3d(0,0,0) rotate(-1.2deg); }
  50% { transform: translate3d(0,-4%,0) rotate(1.2deg); }
}
@keyframes starMascotHello {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  45% { transform: translate3d(0,-5%,0) rotate(-3deg) scale(1.035); }
  70% { transform: translate3d(0,-2%,0) rotate(2deg) scale(1.02); }
}
@keyframes starMascotBreathe {
  0%,100% { transform: translate3d(0,1%,0) scale(.985); opacity: .92; }
  50% { transform: translate3d(0,-1%,0) scale(1.015); opacity: 1; }
}
@keyframes starMascotWork {
  0%,100% { transform: translate3d(-1%,0,0) rotate(-1deg) scale(1); filter: drop-shadow(0 6px 11px rgba(29,117,232,.25)); }
  50% { transform: translate3d(2%,-2%,0) rotate(1.5deg) scale(1.025); filter: drop-shadow(0 9px 18px rgba(39,132,245,.38)); }
}
@keyframes starMascotSuccess {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  35% { transform: translate3d(0,-7%,0) rotate(-2deg) scale(1.06); }
  58% { transform: translate3d(0,-2%,0) rotate(1deg) scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  .star-mascot img { animation: none !important; }
}

.lg-card.is-switching { animation: none; }
.lg-card.is-switching-out { pointer-events: none; }
.lg-card.is-switching-out > * { opacity: 0; filter: blur(11px); transform: scale(.975); transition: opacity 220ms ease, filter 230ms ease, transform 230ms cubic-bezier(.4,0,1,1); }
.lg-card.is-switching-in > * { animation: loginModeGather 420ms cubic-bezier(.16,1,.3,1) both; }
#lgApply.lg-secondary.link-elara > span.is-dissolving { opacity: 0; filter: blur(7px); transform: scale(.92); transition: opacity 210ms ease, filter 220ms ease, transform 220ms ease; }
#lgApply.lg-secondary.link-elara > span.is-gathering { animation: loginLabelGather 400ms cubic-bezier(.16,1,.3,1) both; }
@keyframes loginModeGather {
  0% { opacity: 0; filter: blur(13px); transform: scale(1.025); }
  62% { opacity: 1; filter: blur(1px); transform: scale(.997); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes loginLabelGather {
  0% { opacity: 0; filter: blur(8px); transform: scale(1.08); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #lgApply.lg-secondary.link-elara::before,
  #lgApply.lg-secondary.link-elara > span,
  body:not(.immersive) .btn.ghost:not(.sm):not(.block):not(.danger)::before,
  .btn.primary.button-anthe::before,
  .btn.primary.button-anthe > span,
  .lg-card.is-switching-out > *,
  .lg-card.is-switching-in > *,
  #lgApply.lg-secondary.link-elara > span.is-dissolving,
  #lgApply.lg-secondary.link-elara > span.is-gathering { transition: none !important; animation: none !important; filter: none !important; transform: none !important; }
}

/* v120 · Auth 2 full-screen split gate. Left visual ports the React Bits Silk shader.
   Source: David Haz / react-bits, MIT + Commons Clause License Condition v1.0. */
.login-gate {
  padding: 0;
  background: #09090a;
}
.login-gate::before,
.login-gate::after { display: none; }
.lg-auth-shell {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(460px, .88fr);
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.lg-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: #17130d;
  isolation: isolate;
}
.lg-visual .lg-beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.lg-visual-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(24, 18, 8, .02), rgba(20, 14, 6, .1) 48%, rgba(13, 9, 4, .72)),
    radial-gradient(ellipse at 70% 20%, rgba(255, 222, 153, .08) 0 18%, transparent 42%, rgba(13, 9, 4, .28) 100%);
}
.lg-visual-logo {
  position: absolute;
  z-index: 2;
  left: clamp(34px, 4.2vw, 72px);
  top: clamp(34px, 4.5vw, 70px);
  display: block;
  width: clamp(112px, 10vw, 148px);
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(77, 146, 255, .22));
  animation: lg-mascot-drift 5.8s ease-in-out infinite;
}
@keyframes lg-mascot-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg) scale(1.42); }
  50% { transform: translate3d(0, -7px, 0) rotate(1.4deg) scale(1.47); }
}
@media (prefers-reduced-motion: reduce) {
  .lg-visual-logo { animation: none; transform: scale(1.42); }
}
.lg-visual-copy {
  position: absolute;
  z-index: 2;
  left: clamp(34px, 4.2vw, 72px);
  right: clamp(34px, 4.2vw, 72px);
  bottom: clamp(46px, 6vw, 88px);
  max-width: 540px;
}
.lg-visual-copy > span {
  display: inline-flex;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 480;
  letter-spacing: .18em;
}
.lg-visual-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 3.25vw, 52px);
  font-weight: 620;
  line-height: 1.06;
  letter-spacing: -.045em;
}
.lg-visual-copy p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .60);
  font-size: 12px;
  font-weight: 380;
}
.login-gate .lg-center {
  position: relative;
  inset: auto;
  top: auto;
  width: auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: clamp(34px, 5vw, 84px) clamp(42px, 5.5vw, 92px);
  overflow: auto;
  align-items: stretch;
  justify-content: center;
  color: #111318;
  background: #fff;
  animation: none;
  scrollbar-width: none;
}
.login-gate .lg-center::-webkit-scrollbar { display: none; }
.login-gate .lg-card {
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 0;
  color: #111318;
}
.lg-modal-close {
  display: none;
  position: absolute;
  z-index: 5;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border: 1px solid #e4e7ec;
  border-radius: 50%;
  color: #5b6472;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(20, 31, 48, .12);
  font-size: 23px;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.lg-modal-close:hover {
  color: #111318;
  transform: rotate(5deg) scale(1.04);
  box-shadow: 0 14px 34px rgba(20, 31, 48, .18);
}

/* 游客进入创作动作时只弹出登录卡，不再切回全屏登录页。 */
.login-gate.is-modal {
  padding: 24px;
  background: rgba(17, 24, 39, .28);
  backdrop-filter: blur(14px) saturate(.92);
  -webkit-backdrop-filter: blur(14px) saturate(.92);
}
.login-gate.is-modal .lg-auth-shell {
  grid-template-columns: 1fr;
  width: min(520px, calc(100vw - 32px));
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 48px);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  box-shadow: 0 34px 100px rgba(15, 23, 42, .28);
}
.login-gate.is-modal .lg-visual { display: none; }
.login-gate.is-modal .lg-center {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 48px);
  padding: 42px 42px 34px;
  overflow: auto;
  border-radius: inherit;
}
.login-gate.is-modal .lg-card { max-width: none; }
.login-gate.is-modal .lg-modal-close { display: grid; place-items: center; }
.login-gate .lg-brand {
  margin-bottom: 30px;
  text-align: left;
}
.login-gate .lg-login-logo { display: none; }
.login-gate .lg-brand h1 {
  height: auto;
  min-height: 48px;
  justify-content: flex-start;
  color: #111318;
  font-size: clamp(34px, 2.8vw, 42px);
  font-weight: 610;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.login-gate .lg-brand p {
  min-height: 20px;
  margin-top: 12px;
  color: #898c92;
  font-size: 13px;
  font-weight: 380;
  letter-spacing: 0;
}
.login-gate .lg-card[data-mode="login"] .lg-brand p { display: none; }
.login-gate .lg-form { gap: 14px; }
.login-gate [hidden] { display: none !important; }
.lg-provider-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.lg-provider-btn {
  display: flex;
  min-height: 56px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #d9dadd;
  border-radius: 20px;
  color: #23252a;
  background: #f7f7f6;
  font-size: 14px;
  font-weight: 560;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.lg-provider-icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  object-fit: contain;
}
.lg-provider-btn:hover {
  border-color: #bfc1c5;
  background: #eeeeec;
  transform: translateY(-1px);
}
.lg-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0;
  color: #97999f;
  font-size: 13px;
  line-height: 1;
}
.lg-divider::before,
.lg-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e2df;
}
.login-gate .lg-field {
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid #d9dadd;
  border-radius: 20px;
  color: #7c8088;
  background: #f7f7f6;
  box-shadow: none;
  transform: none;
}
.login-gate .lg-field::after { display: none; }
.login-gate .lg-field:focus-within {
  border-color: #85888e;
  box-shadow: 0 0 0 4px rgba(17, 19, 24, .07);
  transform: none;
}
.login-gate .lgf-ico { color: #7e8289; }
.login-gate .lg-field input,
.login-gate .lg-field select {
  min-width: 0;
  padding: 15px 0;
  color: #111318;
  font-size: 14px;
  font-weight: 420;
}
.login-gate .lg-field input::placeholder { color: #96999f; }
.login-gate .lg-field select { color-scheme: light; }
.login-gate .lg-field .smart-select-trigger {
  min-height: 54px;
  color: #111318;
}
.login-gate .lg-field .smart-select-trigger > span { color: #111318; }
.login-gate .lg-field .smart-select-trigger > i { border-color: #757980; }
.login-gate .lg-real-name-hint {
  color: #777b84;
  animation: none;
}
.lg-form-helper {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
}
.lg-inline-link {
  padding: 2px 0;
  border: 0;
  color: #5368df;
  background: transparent;
  font-size: 13px;
  font-weight: 540;
}
.lg-inline-link:hover { color: #394fcf; text-decoration: underline; }
.login-gate .lg-login {
  min-height: 56px;
  margin-top: 2px;
  border: 1px solid #111318;
  border-radius: 20px;
  color: #fff;
  background: #111318;
  box-shadow: none;
  font-size: 15px;
}
.login-gate .lg-login::before { display: none; }
.login-gate .lg-login:hover {
  color: #fff;
  background: #24262b;
  box-shadow: none;
  transform: translateY(-1px);
}
.login-gate .lg-login:disabled {
  background: #2c2e33;
  box-shadow: none;
}
.lg-apply-prompt {
  margin: 2px 0 0;
  color: #8d9096;
  font-size: 13px;
  text-align: center;
}
.lg-apply-prompt .lg-inline-link { margin-left: 5px; }
.login-gate .lg-gate-error {
  position: static;
  margin: 0;
  border: 0;
  border-radius: 12px;
  color: #a32735;
  background: #fff2f3;
}
.login-gate .lg-card[data-mode="apply"] .lg-provider-actions,
.login-gate .lg-card[data-mode="apply"] .lg-divider,
.login-gate .lg-card[data-mode="forgot"] .lg-provider-actions,
.login-gate .lg-card[data-mode="forgot"] .lg-divider,
.login-gate .lg-card[data-mode="forgot"] #lgUserField,
.login-gate .lg-card[data-mode="forgot"] #lgPinField,
.login-gate .lg-card[data-mode="forgot"] .lg-form-helper { display: none; }
.login-gate .lg-card.is-switching-out > * {
  opacity: 0;
  filter: blur(8px);
  transform: scale(.985);
}
.login-gate .lg-card.is-switching-in > * { animation-duration: 360ms; }

@media (max-height: 760px) and (min-width: 901px) {
  .login-gate .lg-center { padding-block: 28px; }
  .login-gate .lg-brand { margin-bottom: 24px; }
  .login-gate .lg-form { gap: 11px; }
  .lg-provider-btn,
  .login-gate .lg-field,
  .login-gate .lg-login { min-height: 56px; }
  .login-gate .lg-field input,
  .login-gate .lg-field select { padding-block: 14px; }
}

@media (max-width: 900px) {
  .login-gate { background: #fff; }
  .lg-auth-shell {
    grid-template-columns: 1fr;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .lg-visual { display: none; }
  .login-gate .lg-center { padding: 34px 24px; }
  .login-gate .lg-card { max-width: 520px; }
}

@media (max-width: 480px) {
  .login-gate .lg-center { padding-inline: 20px; }
  .login-gate .lg-brand h1 { font-size: 34px; }
  .lg-provider-btn,
  .login-gate .lg-field,
  .login-gate .lg-login { min-height: 58px; border-radius: 19px; }
}

/* Batch workspace is light: keep controls legible after the shared glass overrides. */
body.workspace-shell-v2[data-zone="agent"] .agc-seg-group {
  border-color: #dfe4ec;
  background: #fbfcfe;
  box-shadow: 0 4px 14px rgba(37, 49, 70, .04);
}
body.workspace-shell-v2[data-zone="agent"] .agc-seg {
  color: #566b94;
  background: transparent;
}
body.workspace-shell-v2[data-zone="agent"] .agc-seg:hover {
  color: #254d9b;
  background: #edf3ff;
}
body.workspace-shell-v2[data-zone="agent"] .agc-seg.is-active {
  color: #fff;
  background: linear-gradient(135deg, #6689f4, #72c7ee);
  box-shadow: 0 7px 18px rgba(69, 104, 198, .2);
}
body.workspace-shell-v2[data-zone="agent"] .agc-acc .agc-idx,
body.workspace-shell-v2[data-zone="agent"] .agc-acc.is-video .agc-idx {
  border-color: #c8d8ef;
  color: #426aa9;
  background: #f8fbff;
}
body.workspace-shell-v2[data-zone="agent"] .agc-acc.on .agc-idx,
body.workspace-shell-v2[data-zone="agent"] .agc-acc.is-video.on .agc-idx {
  border-color: #7fa5dc;
  color: #234f91;
  background: #eef5ff;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan {
  grid-template-columns: minmax(160px, .68fr) minmax(420px, 2.8fr) 76px minmax(190px, auto);
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy {
  grid-template-columns: 64px minmax(210px, 1fr) 116px;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-copy-editor-btn {
  width: 116px;
  max-width: 116px;
  border-color: #c6d6f2;
  color: #315ea9;
  background: #f2f6ff;
}
body.workspace-shell-v2[data-zone="agent"] .agc-copy-editor-btn.is-filled {
  border-color: #7fa1dd;
  color: #214c93;
  background: #eaf1ff;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override-actions > button {
  border-color: #cbd7e9;
  color: #425d86;
  background: #f7f9fc;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override-actions > button:hover {
  border-color: #7e9dd0;
  color: #244c8b;
  background: #edf3ff;
}
body.workspace-shell-v2[data-zone="agent"] .agc-foot.is-plan-actions {
  border-top-color: #e3e7ed;
}
body.workspace-shell-v2[data-zone="agent"] .agc-foot.is-plan-actions .btn.ghost {
  border-color: #ced5df;
  color: #4d596a;
  background: #fff;
}
body.workspace-shell-v2[data-zone="agent"] .agc-foot.is-plan-actions .btn.primary {
  border-color: #111318;
  color: #fff;
  background: #111318;
}
body.workspace-shell-v2[data-zone="agent"] .mb-row,
body.workspace-shell-v2[data-zone="agent"] .mb-row:hover,
body.workspace-shell-v2[data-zone="agent"] .static-agent-row {
  border-left: 0 !important;
}
body.workspace-shell-v2[data-zone="agent"] .static-agent-progress {
  display: none !important;
}

@media (max-width: 1400px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan {
    grid-template-columns: minmax(144px, .7fr) minmax(330px, 2.45fr) 70px minmax(176px, auto);
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy {
    grid-template-columns: 58px minmax(180px, 1fr) 112px;
  }
}

@media (max-width: 1080px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name actions"
      "content content"
      "imgcount imgcount"
      "refs refs";
  }
}

/* v125 batch clarity: preserve sequence badges and readable controls on the light workspace. */
body.workspace-shell-v2[data-zone="agent"] .agent-shell,
body.workspace-shell-v2[data-zone="agent"] .agw-main,
body.workspace-shell-v2[data-zone="agent"] .agw-board {
  color: #252a33;
  background: #f8faff;
}
body.workspace-shell-v2[data-zone="agent"] .ag-card,
body.workspace-shell-v2[data-zone="agent"] .mb-row {
  border-color: #dfe5ee !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(44, 62, 91, .045);
}
body.workspace-shell-v2[data-zone="agent"] .agc-seg-group {
  padding: 4px;
  border: 1px solid #ccd8e9;
  background: #f2f6fc;
}
body.workspace-shell-v2[data-zone="agent"] .agc-seg {
  min-height: 36px;
  padding: 0 17px;
  color: #4c6385;
  font-weight: 560;
}
body.workspace-shell-v2[data-zone="agent"] .agc-seg:disabled {
  color: #98a6ba;
  opacity: .72;
}
body.workspace-shell-v2[data-zone="agent"] .agc-seg.is-active {
  color: #fff;
  background: linear-gradient(135deg, #5579ed, #58b8ee);
}
body.workspace-shell-v2[data-zone="agent"] .agc-acc .agc-idx,
body.workspace-shell-v2[data-zone="agent"] .agc-acc.is-video .agc-idx {
  min-width: 48px;
  height: 29px;
  opacity: 1 !important;
  border: 1px solid #a9c7ee;
  color: #2f64a9 !important;
  background: #f3f8ff !important;
  font-weight: 650;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan {
  grid-template-columns: minmax(168px, .7fr) minmax(520px, 3.25fr) 74px minmax(196px, auto);
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy {
  grid-template-columns: 62px minmax(330px, 1fr) 124px;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-copy-editor-btn,
body.workspace-shell-v2[data-zone="agent"] .agc-override-actions > button {
  opacity: 1 !important;
  border-color: #a9c2e7 !important;
  color: #2d5e9e !important;
  background: #f4f8ff !important;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-copy-editor-btn {
  width: 124px;
  max-width: 124px;
}
body.workspace-shell-v2[data-zone="agent"] .mb-row::before,
body.workspace-shell-v2[data-zone="agent"] .mb-row::after,
body.workspace-shell-v2[data-zone="agent"] .static-agent-row::before,
body.workspace-shell-v2[data-zone="agent"] .static-agent-row::after {
  display: none !important;
  content: none !important;
}
body.workspace-shell-v2[data-zone="agent"] .static-agent-board-status {
  border: 1px solid #e1e7ef;
  background: #f8fafd;
}
body.workspace-shell-v2[data-zone="agent"] .static-agent-board-icon {
  width: 28px;
  height: 28px;
  background: transparent;
  box-shadow: none;
}
body.workspace-shell-v2[data-zone="agent"] .agw-new-board {
  border: 1px solid #cbd8ea;
  color: #315f9e;
  background: #fff;
  box-shadow: 0 8px 22px rgba(55, 82, 127, .07);
}

/* v126 batch layout: keep titles wide and keep per-account tools inside their own responsive rows. */
body.workspace-shell-v2[data-zone="agent"] .agc-overrides {
  overflow: visible;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan {
  grid-template-columns: minmax(136px, .48fr) minmax(0, 1fr) 86px;
  grid-template-areas:
    "name content imgcount"
    ". actions actions"
    "refs refs refs";
  align-items: center;
  overflow: visible;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-copy-fields {
  width: 100%;
  min-width: 0;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) max-content !important;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-mode-switch,
body.workspace-shell-v2[data-zone="agent"] .agc-account-copy.single-image-copy {
  width: 100%;
  grid-template-columns: 58px minmax(0, 1fr) max-content !important;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-copy-editor-btn {
  width: auto;
  min-width: 94px;
  max-width: 124px;
  justify-self: end;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .single-image-copy .agc-copy-editor-btn {
  min-width: 124px;
  max-width: 136px;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override-actions {
  grid-area: actions;
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-top: 2px;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override-actions > button {
  flex: 0 1 auto;
  max-width: 168px;
  opacity: 1 !important;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-mini-count.img-count {
  position: relative;
  z-index: 1;
  width: 86px;
  justify-self: stretch;
  pointer-events: auto;
}
body.workspace-shell-v2[data-zone="agent"] .agc-mini-head::before {
  display: none;
  content: none;
}
body.workspace-shell-v2[data-zone="agent"] .agc-mini-head,
body.workspace-shell-v2[data-zone="agent"] .agc-mini-ref .agc-ref-chips.mini {
  padding-top: 5px;
  border-top: 0;
}
@media (max-width: 980px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "content"
      "imgcount"
      "actions"
      "refs";
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy,
  body.workspace-shell-v2[data-zone="agent"] .agc-account-copy.single-image-copy {
    grid-template-columns: minmax(0, 1fr) max-content !important;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-mode-switch,
  body.workspace-shell-v2[data-zone="agent"] .agc-account-copy.single-image-copy.has-mode-switch {
    grid-template-columns: 58px minmax(0, 1fr) max-content !important;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-copy-editor-btn {
    width: auto;
    min-width: 94px;
    max-width: 124px;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override-actions { justify-content: flex-start; }
}

/* v129 batch task rows: clear modes, stable reference tools and compact delivery markers. */
body.workspace-shell-v2[data-zone="agent"] .agc-head,
body.workspace-shell-v2[data-zone="agent"] .agc-head > b,
body.workspace-shell-v2[data-zone="agent"] .agw-board-head > b,
body.workspace-shell-v2[data-zone="agent"] .mb-ghead > b {
  color: #252a33 !important;
}
body.workspace-shell-v2[data-zone="agent"] .agw-board-head > em,
body.workspace-shell-v2[data-zone="agent"] .mb-gstat { color: #7a8493 !important; }

body.workspace-shell-v2[data-zone="agent"] .agc-overrides {
  container-type: inline-size;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan,
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan.is-video {
  grid-template-columns: minmax(138px, .48fr) minmax(0, 1fr) 86px;
  grid-template-areas:
    "name content imgcount"
    "refs refs refs";
  align-items: center;
  overflow: visible;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan.is-video {
  grid-template-columns: minmax(138px, .48fr) minmax(0, 1fr);
  grid-template-areas:
    "name content"
    "refs refs";
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-mode-switch,
body.workspace-shell-v2[data-zone="agent"] .agc-account-copy.single-image-copy,
body.workspace-shell-v2[data-zone="agent"] .agc-account-copy.single-image-copy.has-mode-switch {
  grid-template-columns: 86px minmax(0, 1fr) max-content !important;
}
body.workspace-shell-v2[data-zone="agent"] .agc-image-mode-switch {
  border-color: #c8d5e8;
  background: #f3f7fd;
}
body.workspace-shell-v2[data-zone="agent"] .agc-image-mode-switch::before {
  background: linear-gradient(135deg, #6689e8, #75aee7);
  box-shadow: 0 4px 11px rgba(69, 101, 167, .18);
}
body.workspace-shell-v2[data-zone="agent"] .agc-image-mode-switch button {
  color: #647592;
  font-size: 10px;
  letter-spacing: 0;
}
body.workspace-shell-v2[data-zone="agent"] .agc-image-mode-switch button.is-active { color: #fff; }
body.workspace-shell-v2[data-zone="agent"] .agc-mini-count { color: #596b86; }

body.workspace-shell-v2[data-zone="agent"] .agc-mini-ref {
  grid-area: refs;
  grid-template-columns: minmax(180px, .72fr) minmax(0, 1fr) auto;
  grid-template-areas: "head state actions";
  gap: 10px;
  align-items: center;
}
body.workspace-shell-v2[data-zone="agent"] .agc-mini-ref .agc-mini-head {
  grid-area: head;
  padding-top: 0;
}
body.workspace-shell-v2[data-zone="agent"] .agc-mini-ref .agc-ref-chips.mini {
  grid-area: state;
  padding-top: 0;
}
body.workspace-shell-v2[data-zone="agent"] .agc-mini-ref .agc-override-actions {
  grid-area: actions;
  width: auto;
  padding-top: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
body.workspace-shell-v2[data-zone="agent"] .agc-mini-ref .agc-override-actions > button {
  flex: none;
  max-width: none;
  min-width: 0;
  height: 30px;
  padding-inline: 9px;
  font-size: 10px;
}

body.workspace-shell-v2[data-zone="agent"] .static-agent-board-mark {
  margin-top: 2px;
  color: #637084;
}
body.workspace-shell-v2[data-zone="agent"] .static-agent-board-mark .static-agent-board-icon {
  width: 20px;
  height: 20px;
  color: #4f77c7;
  background: transparent;
  box-shadow: none;
}
body.workspace-shell-v2[data-zone="agent"] .static-agent-board-mark b { color: #637084; }
body.workspace-shell-v2[data-zone="agent"] .static-agent-board-mark.is-delivered,
body.workspace-shell-v2[data-zone="agent"] .static-agent-board-mark.is-delivered b { color: #25815f; }

@container (max-width: 760px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan,
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan.is-video {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "content"
      "imgcount"
      "refs";
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-mini-ref {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head actions"
      "state state";
  }
}

@media (max-width: 980px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan,
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan.is-video {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "content"
      "imgcount"
      "refs";
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-mini-ref {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head actions"
      "state state";
  }
}

@media (max-width: 620px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-mode-switch,
  body.workspace-shell-v2[data-zone="agent"] .agc-account-copy.single-image-copy,
  body.workspace-shell-v2[data-zone="agent"] .agc-account-copy.single-image-copy.has-mode-switch {
    grid-template-columns: 86px minmax(0, 1fr) !important;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-copy-editor-btn {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-mini-ref {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "state"
      "actions";
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-mini-ref .agc-override-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* v130 batch interaction: fixed account selection, inline image counts and clear drop feedback. */
body.workspace-shell-v2[data-zone="agent"] .agc-acc {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(104px, max-content) 24px;
  align-items: center;
  column-gap: 8px;
  min-height: 46px;
  border-color: #dce4ef;
  background: #fff;
  box-shadow: 0 5px 14px rgba(48, 70, 106, .035);
  overflow: hidden;
}
body.workspace-shell-v2[data-zone="agent"] .agc-acc:hover {
  border-color: #b8cbea;
  background: #f8fbff;
  box-shadow: 0 8px 20px rgba(48, 82, 136, .08);
}
body.workspace-shell-v2[data-zone="agent"] .agc-acc.on,
body.workspace-shell-v2[data-zone="agent"] .agc-acc.is-video.on {
  border-color: #7fa5df;
  background: linear-gradient(100deg, #edf5ff 0%, #f8fbff 64%, #eef6ff 100%);
  box-shadow: inset 3px 0 0 #5e8bd3, 0 9px 24px rgba(54, 92, 153, .11);
  animation: agcAccountSelectIn 260ms cubic-bezier(.2, .78, .2, 1) both;
}
body.workspace-shell-v2[data-zone="agent"] .agc-acc > b {
  min-width: 0;
  color: #28303d;
}
body.workspace-shell-v2[data-zone="agent"] .agc-account-meta {
  min-width: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow: visible !important;
  white-space: nowrap;
  color: #778397 !important;
}
body.workspace-shell-v2[data-zone="agent"] .agc-account-type {
  flex: none;
  color: #778397;
}
body.workspace-shell-v2[data-zone="agent"] .agc-created-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid #bfe7d8;
  border-radius: 999px;
  color: #237458;
  background: #eefaf5;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}
body.workspace-shell-v2[data-zone="agent"] .agc-select-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid #d7e1ee;
  border-radius: 50%;
  color: transparent;
  background: #f7f9fc;
  opacity: .68;
  transform: scale(.9);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 220ms cubic-bezier(.2, .78, .2, 1);
}
body.workspace-shell-v2[data-zone="agent"] .agc-select-mark svg { margin: 0; color: inherit !important; }
body.workspace-shell-v2[data-zone="agent"] .agc-select-mark.is-visible {
  border-color: #5f8ed2;
  color: #fff;
  background: linear-gradient(145deg, #5e8fd9, #79a9e2);
  box-shadow: 0 5px 12px rgba(68, 111, 179, .2);
  opacity: 1;
  transform: scale(1);
}
body.workspace-shell-v2[data-zone="agent"] .agc-override-name > em.agc-created-today {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  margin: 0;
}

body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan,
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan.is-video {
  grid-template-columns: minmax(138px, .48fr) minmax(0, 1fr);
  grid-template-areas:
    "name content"
    "refs refs";
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count {
  grid-template-columns: 86px minmax(0, 1fr) max-content 82px !important;
  align-items: end;
}
body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count .agc-mini-count.img-count {
  position: static;
  width: 82px;
  min-width: 82px;
  align-self: end;
  justify-self: stretch;
}

body.workspace-shell-v2[data-zone="agent"] .agc-ref-picked.is-dropzone,
body.workspace-shell-v2[data-zone="agent"] .asset-picker-upload,
body.workspace-shell-v2[data-zone="agent"] .agc-override[data-plan-custom-refdrop] {
  transition: border-color 180ms ease, background 180ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(.2, .78, .2, 1);
}
body.workspace-shell-v2[data-zone="agent"] .agc-ref-picked.is-dropzone:hover,
body.workspace-shell-v2[data-zone="agent"] .asset-picker-upload:hover {
  border-color: #8daedf;
  background: #f4f8ff;
  box-shadow: 0 9px 24px rgba(64, 102, 164, .1);
  transform: translateY(-1px);
}
body.workspace-shell-v2[data-zone="agent"] .agc-ref-picked.is-dropzone.drag-over,
body.workspace-shell-v2[data-zone="agent"] .asset-picker-upload.drag-over,
body.workspace-shell-v2[data-zone="agent"] .asset-picker.drag-over .asset-picker-upload,
body.workspace-shell-v2[data-zone="agent"] .agc-override[data-plan-custom-refdrop].drag-over {
  border-color: #5f8ed6;
  background: #edf5ff;
  box-shadow: 0 0 0 3px rgba(95, 142, 214, .13), 0 13px 30px rgba(61, 96, 153, .12);
  transform: translateY(-2px);
  animation: agcReferenceDropPulse 900ms ease-in-out infinite alternate;
}

@keyframes agcAccountSelectIn {
  from { box-shadow: inset 0 0 0 #5e8bd3, 0 2px 8px rgba(54, 92, 153, 0); }
  to { box-shadow: inset 3px 0 0 #5e8bd3, 0 9px 24px rgba(54, 92, 153, .11); }
}
@keyframes agcReferenceDropPulse {
  from { box-shadow: 0 0 0 2px rgba(95, 142, 214, .1), 0 9px 22px rgba(61, 96, 153, .08); }
  to { box-shadow: 0 0 0 5px rgba(95, 142, 214, .16), 0 15px 32px rgba(61, 96, 153, .14); }
}

@container (max-width: 760px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan,
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan.is-video {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "content"
      "refs";
  }
}

@media (max-width: 980px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan,
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan.is-video {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "content"
      "refs";
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count {
    grid-template-columns: 86px minmax(0, 1fr) max-content 82px !important;
  }
}

@media (max-width: 620px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-acc {
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    row-gap: 3px;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-account-meta {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    justify-content: flex-start;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-select-mark {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count {
    grid-template-columns: 82px minmax(0, 1fr) 78px !important;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count .agc-copy-editor-btn {
    grid-column: 2 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count .agc-mini-count.img-count {
    grid-column: 3;
    grid-row: 1;
    width: 78px;
    min-width: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.workspace-shell-v2[data-zone="agent"] .agc-acc.on,
  body.workspace-shell-v2[data-zone="agent"] .agc-acc.is-video.on,
  body.workspace-shell-v2[data-zone="agent"] .agc-ref-picked.is-dropzone.drag-over,
  body.workspace-shell-v2[data-zone="agent"] .asset-picker-upload.drag-over,
  body.workspace-shell-v2[data-zone="agent"] .asset-picker.drag-over .asset-picker-upload,
  body.workspace-shell-v2[data-zone="agent"] .agc-override[data-plan-custom-refdrop].drag-over {
    animation: none;
  }
}

/* v131: keep the batch image controls in one readable row whenever space allows. */
@media (min-width: 621px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count {
    grid-template-columns: 82px minmax(150px, 1fr) minmax(104px, max-content) 78px !important;
    column-gap: 8px;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count .agc-copy-editor-btn {
    width: auto;
    min-width: 104px;
    max-width: 124px;
    justify-self: stretch;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count .agc-mini-count.img-count {
    width: 78px;
    min-width: 78px;
  }
}

@media (min-width: 521px) and (max-width: 620px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count {
    grid-template-columns: 72px minmax(96px, 1fr) minmax(88px, 108px) 70px !important;
    column-gap: 6px;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count .agc-copy-editor-btn,
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count .agc-mini-count.img-count {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 520px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count {
    grid-template-columns: 72px minmax(0, 1fr) 70px !important;
    row-gap: 7px;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count .agc-copy-editor-btn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-image-count .agc-mini-count.img-count {
    grid-column: 3;
    grid-row: 1;
    width: 70px;
    min-width: 70px;
  }
}

/* v131: the primary voice action stays softly rounded while keeping Anthe's motion cue. */
body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe {
  margin-left: auto;
  margin-right: clamp(-30px, -2vw, -20px);
  min-width: 142px;
  min-height: 42px;
  border-radius: 14px;
  overflow: hidden;
  color: #163c68;
  background: transparent;
  box-shadow: 0 8px 22px rgba(77, 135, 196, .14);
}
body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe::before,
body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe:hover::before,
body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe:focus-visible::before {
  border-radius: 14px;
  clip-path: inset(0 round 14px);
  background: linear-gradient(135deg, #eaf5ff 0%, #cfe8ff 52%, #bcdcff 100%);
  transform: none;
}
body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe > span {
  transform: none;
  transition: transform 220ms cubic-bezier(.2, .78, .2, 1);
}
body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe:hover > span,
body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe:focus-visible > span {
  transform: translateX(1px);
}
body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe:hover svg:last-child,
body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe:focus-visible svg:last-child {
  transform: translateX(3px);
}

@media (max-width: 760px) {
  body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe {
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe,
  body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe > span,
  body.workspace-shell-v2[data-zone="voice"] .vl-console .vl-section-head.compact .vl-generate-action.button-anthe svg {
    transition: none !important;
  }
}

/* v132: named grid areas from the outer batch card must not leak into the
   nested image-copy row. On a desktop, use one non-wrapping flex row so old
   grid-area declarations cannot push the image count onto a second line. */
@media (min-width: 981px) {
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-mode-switch.has-image-count {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: flex-end !important;
    gap: 8px;
    min-width: 0;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-mode-switch.has-image-count .agc-image-mode-switch {
    grid-area: auto !important;
    flex: 0 0 82px;
    width: 82px;
    min-width: 82px;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-mode-switch.has-image-count .agc-copy-title-input {
    grid-area: auto !important;
    flex: 1 1 260px;
    width: auto !important;
    min-width: 0;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-mode-switch.has-image-count .agc-copy-editor-btn {
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    flex: 0 0 112px;
    width: 112px !important;
    min-width: 112px;
    max-width: 112px;
  }
  body.workspace-shell-v2[data-zone="agent"] .agc-override.is-custom-plan .agc-account-copy.has-mode-switch.has-image-count .agc-mini-count.img-count {
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    position: static !important;
    flex: 0 0 78px;
    width: 78px !important;
    min-width: 78px;
    margin: 0;
  }
}

/* v133 · 品牌操作色：以星阵蓝替代旧的纯黑主操作，不改变危险操作。 */
.btn.primary:not(.danger),
.btn.gen:not(.danger),
.top-btn.top-primary,
body:not(.immersive) .view-root .btn.primary:not(.danger),
body:not(.immersive) .view-root .btn.gen:not(.danger) {
  border-color: #1674d9 !important;
  background: linear-gradient(135deg, #2893ff 0%, #1674df 58%, #0759bd 100%) !important;
  color: #fff !important;
  box-shadow: 0 9px 22px rgba(22, 116, 223, .2) !important;
}
.btn.primary:not(.danger):hover,
.btn.gen:not(.danger):hover,
.top-btn.top-primary:hover,
body:not(.immersive) .view-root .btn.primary:not(.danger):hover,
body:not(.immersive) .view-root .btn.gen:not(.danger):hover {
  border-color: #0d65c7 !important;
  background: linear-gradient(135deg, #3aa0ff 0%, #1478e8 58%, #064fa9 100%) !important;
  box-shadow: 0 12px 26px rgba(22, 116, 223, .27) !important;
}
.product-home-miaoda .home-submit,
.custom-community-share {
  border-color: #1674d9 !important;
  background: linear-gradient(135deg, #2994ff, #116ed5) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(22, 116, 223, .22) !important;
}
.text-switch button.on,
.text-switch button.is-active,
.seg-group button.on,
.mode-tab.on,
.supplier-filter-chips button.on {
  border-color: #1674d9 !important;
  background: #1e7fe9 !important;
  color: #fff !important;
}
