﻿:root {
  --bg: #060a12;
  --bg-soft: #0b111d;
  --card: #0d1422;
  --line: #1f2a3d;
  --line-soft: #27324a;
  --text: #e7edf7;
  --muted: #95a2b8;
  --brand: #2579ff;
  --brand-2: #3558ff;
  --brand-soft: rgba(37, 121, 255, 0.2);
  --ok: #2ac187;
  --warn: #ff9a62;
  --chip: #2a1a2b;
  --chip-top: #6d2c52;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at 8% -12%, rgba(45, 125, 255, 0.28), transparent 44%),
    radial-gradient(circle at 100% -8%, rgba(111, 67, 255, 0.22), transparent 36%),
    radial-gradient(circle at 50% 0%, rgba(77, 207, 194, 0.08), transparent 38%),
    linear-gradient(180deg, #050911 0%, #060a12 100%);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% -12%, rgba(45, 125, 255, 0.28), transparent 44%),
    radial-gradient(circle at 100% -8%, rgba(111, 67, 255, 0.22), transparent 36%),
    radial-gradient(circle at 50% 0%, rgba(77, 207, 194, 0.08), transparent 38%),
    linear-gradient(180deg, #050911 0%, #060a12 100%);
  min-height: 100vh;
  animation: pageFadeIn 0.38s ease;
  overscroll-behavior-y: none;
}

.app {
  width: min(1720px, 98vw);
  margin: 10px auto 22px;
  display: grid;
  gap: 12px;
}

.workbench-app {
  padding: 0 8px;
}

.wb-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: stretch;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(8, 14, 24, 0.98), rgba(7, 12, 21, 0.96));
  border-radius: 18px;
  padding: 14px 16px;
  gap: 14px;
}

.wb-top-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.wb-brand {
  display: grid;
  gap: 8px;
}

.wb-brand h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.wb-brand p {
  margin: 0;
  max-width: 760px;
  color: #b8c8db;
  line-height: 1.6;
}

.wb-brand-kicker,
.wb-stage-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(92, 180, 255, 0.28);
  background: rgba(18, 35, 58, 0.82);
  color: #9fd0ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wb-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wb-tab {
  border: 1px solid var(--line-soft);
  background: rgba(10, 19, 34, 0.92);
  color: #c8d5e9;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 650;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.wb-tab:hover {
  transform: translateY(-1px);
  border-color: #3e5d92;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.wb-tab.active {
  border-color: #4ca2ff;
  background: linear-gradient(90deg, #1e7ef7, #345cff);
  color: #fff;
  box-shadow: 0 12px 24px rgba(30, 126, 247, 0.22);
}

.wb-top-status .hint {
  margin: 0;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(11, 20, 34, 0.62);
  border: 1px solid rgba(45, 61, 88, 0.42);
}

.wb-top-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
  padding: 8px 0;
  border-left: 1px solid rgba(49, 68, 99, 0.42);
  padding-left: 16px;
}

.auth-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(11, 20, 34, 0.72);
  border: 1px solid rgba(45, 61, 88, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.auth-login,
.auth-user,
.auth-password-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.auth-login input,
.auth-password-panel input {
  width: 100px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(59, 81, 117, 0.72);
  border-radius: 10px;
  background: rgba(13, 22, 38, 0.92);
  color: var(--text);
}

.auth-login button,
.auth-user button,
.auth-password-panel button {
  min-height: 36px;
  border-radius: 10px;
}

.auth-password-panel {
  width: 100%;
  padding-top: 4px;
}

.auth-password-panel input {
  width: 132px;
}

.auth-user .pill {
  padding: 7px 12px;
  border: 1px solid rgba(74, 139, 255, 0.24);
  background: linear-gradient(180deg, rgba(28, 46, 74, 0.92), rgba(20, 34, 56, 0.92));
  color: #d9e8ff;
  font-size: 13px;
  font-weight: 700;
}

.role-user .admin-only,
.role-guest .admin-only,
.role-admin .user-only,
.role-guest .user-only {
  display: none !important;
}

.admin-tip {
  border: 1px solid rgba(74, 139, 255, 0.28);
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 10px;
  color: #cbd8ea;
  background: rgba(23, 52, 88, 0.34);
  font-size: 13px;
  line-height: 1.45;
}

.card {
  background: linear-gradient(180deg, #0a121f 0%, #0a101b 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.wb-main-card {
  padding: 14px;
  overflow: hidden;
}

.wb-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 400px;
  gap: 16px;
}

.wb-left,
.wb-right {
  min-width: 0;
}

.wb-stage-intro {
  margin-bottom: 12px;
  border: 1px solid rgba(69, 120, 201, 0.24);
  border-radius: 16px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 210, 196, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(13, 23, 40, 0.98), rgba(10, 18, 31, 0.96));
  display: grid;
  gap: 12px;
  animation: floatInUp 0.42s ease;
}

.wb-stage-copy {
  display: grid;
  gap: 8px;
}

.wb-stage-copy h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 32px);
}

.wb-stage-copy p {
  margin: 0;
  color: #b9cade;
  line-height: 1.65;
}

.wb-stage-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wb-prompt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wb-prompt-head h2 {
  margin: 0;
  font-size: 24px;
}

.wb-mini-actions {
  display: flex;
  gap: 6px;
}

.wb-prompt-label {
  margin: 0 0 8px;
}

.wb-prompt-label textarea {
  background: linear-gradient(180deg, rgba(22, 31, 47, 0.98), rgba(17, 25, 39, 0.98));
  color: var(--text);
  border: 1px solid #32425e;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 22px;
  line-height: 1.55;
  min-height: 220px;
  resize: vertical;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wb-prompt-label textarea:focus {
  transform: translateY(-1px);
}

.mode-ecommerce .wb-main-layout {
  display: block;
}

.mode-ecommerce .wb-prompt-head,
.mode-ecommerce .wb-prompt-label,
.mode-ecommerce .wb-prompt-advanced,
.mode-ecommerce .wb-right {
  display: none !important;
}

.ecommerce-panel {
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid #1f3f39;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 210, 196, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(13, 23, 40, 0.98), rgba(10, 18, 31, 0.96));
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  animation: floatInUp 0.45s ease;
}

.ecommerce-shell {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  min-height: 760px;
}

.ecommerce-config {
  border-right: 1px solid rgba(76, 110, 152, 0.18);
  background: linear-gradient(180deg, rgba(12, 20, 34, 0.96), rgba(8, 15, 26, 0.98));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.ecommerce-config-scroll {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.ecommerce-block {
  border: 1px solid rgba(62, 95, 138, 0.24);
  border-radius: 12px;
  background: rgba(13, 24, 39, 0.86);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.ecommerce-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ecommerce-block-head strong {
  color: #edf7ff;
  font-size: 15px;
}

.ecommerce-ref-slot .wb-ref-wrap {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.ecommerce-head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
}

.ecommerce-head h3 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #eafff7;
}

.ecommerce-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.ecommerce-grid input,
.ecommerce-grid textarea,
.ecommerce-grid select {
  background: #101c2b;
  border-color: #2d5d54;
}

.ecommerce-wide {
  grid-column: span 2;
}

.ecommerce-structure {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(76, 110, 152, 0.18);
  display: grid;
  gap: 10px;
}

.ecommerce-structure-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ecommerce-structure-head strong {
  color: #eaf5ff;
  font-size: 14px;
}

.ecommerce-structure-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ecommerce-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(55, 99, 141, 0.3);
  border-radius: 10px;
  background: rgba(15, 28, 43, 0.72);
  color: #dceaf8;
  font-size: 13px;
}

.ecommerce-check-sort {
  cursor: grab;
}

.ecommerce-check-sort.dragging {
  opacity: 0.55;
}

.ecommerce-check-sort.over {
  border-color: #67a9ff;
  box-shadow: 0 0 0 1px rgba(103, 169, 255, 0.32) inset;
}

.ecommerce-drag {
  color: #7fc2ff;
  font-size: 11px;
  letter-spacing: 1px;
  user-select: none;
}

.ecommerce-check input {
  margin: 0;
}

.ecommerce-actions {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid rgba(76, 110, 152, 0.22);
  background: rgba(8, 15, 24, 0.94);
}

.ecommerce-stage {
  min-width: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(118, 142, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #0d1524, #0a111d);
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.ecommerce-stage-copy h2 {
  margin: 0 0 8px;
  font-size: 40px;
  color: #f1f6ff;
  line-height: 1.08;
}

.ecommerce-stage-copy p {
  margin: 0;
  max-width: 760px;
  color: #a8b9cf;
  font-size: 17px;
  line-height: 1.6;
}

.ecommerce-stage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ecommerce-stage-meta span {
  border: 1px solid rgba(76, 110, 152, 0.24);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(14, 27, 44, 0.72);
  color: #dce8f6;
  font-size: 13px;
  font-weight: 700;
}

.ecommerce-stage-frame {
  border: 1px solid rgba(76, 110, 152, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(320px, 1fr);
  gap: 16px;
  min-height: 0;
}

.ecommerce-hero {
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.ecommerce-hero img {
  width: min(100%, 560px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.ecommerce-hero-empty {
  color: #96a8c1;
  font-size: 16px;
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
}

.ecommerce-pack-preview {
  margin-top: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  overflow: auto;
}

.ecommerce-stage-side {
  min-height: 0;
  display: grid;
  display: block;
}

.ecommerce-pack-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(93, 150, 133, 0.22);
}

.ecommerce-pack-title strong {
  color: #eafff7;
  font-size: 14px;
}

.ecommerce-pack-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ecommerce-pack-card {
  border: 1px solid #2d5d54;
  border-radius: 10px;
  padding: 9px;
  background: rgba(13, 28, 43, 0.82);
}

.ecommerce-pack-card h4 {
  margin: 0 0 6px;
  color: #f2fff9;
  font-size: 13px;
}

.ecommerce-pack-card p {
  margin: 0;
  color: #aebfd4;
  font-size: 12px;
  line-height: 1.45;
}

.ecommerce-pack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.ecommerce-pack-tags span {
  border: 1px solid #386f64;
  border-radius: 999px;
  padding: 2px 7px;
  color: #9fe8cf;
  background: rgba(27, 89, 72, 0.2);
  font-size: 11px;
  font-weight: 700;
}

.ecommerce-pack-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 7px;
}

.ecommerce-pack-controls label {
  gap: 4px;
  font-size: 11px;
  color: #a6ddcf;
}

.ecommerce-pack-controls select {
  padding: 6px 8px;
  font-size: 12px;
}

.ecommerce-pack-actions {
  margin-bottom: 7px;
}

.ecommerce-pack-actions button {
  width: auto;
  padding: 6px 10px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #ced8e8;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  border: 1px solid #2f3b53;
  border-radius: 9px;
  padding: 8px 10px;
  outline: none;
  background: #121a28;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  border-color: #4d96ff;
  box-shadow: 0 0 0 3px rgba(65, 130, 255, 0.2);
}

button {
  border: 0;
  border-radius: 9px;
  padding: 7px 12px;
  background: #178876;
  color: #fff;
  cursor: pointer;
  font-weight: 650;
}

button:hover {
  filter: brightness(1.08);
}

button.secondary {
  background: #1a2434;
  color: #d6dfec;
  border: 1px solid #2d3a52;
}

button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.grid.one {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.wb-ref-wrap {
  border: 1px solid #243047;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
  background: #0f1726;
}

.ref-board {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.ref-card {
  position: relative;
  height: 92px;
  border: 1px solid #2a3a55;
  border-radius: 10px;
  background: #111a2a;
  overflow: hidden;
  cursor: grab;
}

.ref-card.dragging {
  opacity: 0.55;
  border-color: #4c84ff;
}

.ref-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ref-card-add {
  display: grid;
  place-items: center;
  border: 1px dashed #35507d;
  color: #8fb3e5;
  font-size: 34px;
  font-weight: 500;
  background: #10192a;
  cursor: pointer;
}

.ref-card-add:hover {
  background: #152239;
}

.ref-card-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #5b3247;
  background: rgba(40, 14, 24, 0.92);
  color: #ffd8e7;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  display: grid;
  place-items: center;
}

.ref-card-remove:hover {
  background: rgba(76, 20, 40, 0.96);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.wb-chip-body {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #1f3352;
  border-radius: 16px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(40, 74, 124, 0.15), transparent 45%),
    radial-gradient(120% 120% at 100% 100%, rgba(102, 52, 116, 0.14), transparent 46%),
    #0a1426;
  display: grid;
  gap: 12px;
}

.wb-chip-guide {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(53, 87, 140, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 24, 41, 0.92), rgba(11, 20, 34, 0.9));
}

.wb-chip-guide strong {
  color: #edf5ff;
  font-size: 13px;
}

.wb-chip-guide span {
  color: #adc2dc;
  font-size: 12px;
  line-height: 1.55;
}

.wb-chip-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.wb-chip-search-label {
  margin: 0;
  gap: 5px;
}

.wb-chip-search-label input {
  min-height: 38px;
  border-radius: 12px;
  background: rgba(14, 24, 39, 0.94);
}

.wb-chip-search-meta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(53, 87, 140, 0.36);
  background: rgba(15, 24, 39, 0.88);
  color: #b8cdef;
  font-size: 12px;
  white-space: nowrap;
}

.wb-workspace-state {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(45, 66, 101, 0.46);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 19, 33, 0.94), rgba(10, 17, 29, 0.92));
}

.wb-workspace-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(74, 139, 255, 0.24);
  background: rgba(18, 33, 56, 0.88);
  color: #dce8fb;
  font-size: 12px;
}

.wb-workspace-pill strong {
  color: #8fb8ee;
  font-weight: 700;
}

.wb-workspace-pill b {
  color: #eef5ff;
  font-weight: 700;
}

.wb-workspace-pill.is-muted {
  border-color: rgba(151, 163, 180, 0.24);
  background: rgba(24, 29, 39, 0.88);
}

.wb-workspace-pill.is-accent {
  border-color: rgba(73, 210, 209, 0.28);
  background: rgba(14, 42, 52, 0.86);
}

.wb-workspace-empty {
  color: #9eb3cf;
  font-size: 12px;
}

.wb-prompt-advanced details {
  border: 1px solid #2a3f61;
  background: linear-gradient(180deg, #0b1629, #091221);
}

.wb-sheet-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.wb-sheet-tab {
  border: 1px solid #4e6d98;
  background:
    linear-gradient(180deg, rgba(120, 170, 255, 0.18), rgba(120, 170, 255, 0.04)),
    linear-gradient(180deg, #223a59, #1b2e47);
  color: #f1f6ff;
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position: relative;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wb-sheet-tab-icon {
  display: inline-block;
  margin-right: 5px;
  color: #ffe39b;
  font-size: 11px;
  line-height: 1;
  transform: translateY(-0.5px);
  text-shadow: 0 0 10px rgba(255, 217, 120, 0.28);
}

.wb-sheet-tab-label {
  display: inline-block;
  max-width: calc(100% - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.wb-sheet-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 240, 195, 0.38);
  background: rgba(255, 247, 224, 0.14);
  color: #fff4cd;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.wb-sheet-tab-favorite {
  border-color: #8f7843;
  background:
    linear-gradient(180deg, rgba(255, 214, 128, 0.2), rgba(255, 214, 128, 0.06)),
    linear-gradient(180deg, #5a4928, #403523);
  color: #fff4d2;
}

.wb-sheet-tab-favorite::after {
  color: rgba(255, 239, 197, 0.58);
}

.wb-sheet-tab-favorite:hover {
  border-color: #c6a35a;
  box-shadow: 0 8px 18px rgba(69, 53, 24, 0.34);
}

.wb-sheet-tab-favorite.active {
  border-color: #f2d188;
  background:
    linear-gradient(180deg, rgba(255, 225, 159, 0.26), rgba(255, 225, 159, 0.1)),
    linear-gradient(180deg, #72582c, #564320);
  color: #fffaf0;
  box-shadow:
    0 0 0 1px rgba(255, 225, 159, 0.28) inset,
    0 10px 22px rgba(80, 59, 18, 0.38);
}

.wb-sheet-tab-favorite.active .wb-sheet-tab-count {
  background: rgba(255, 247, 224, 0.2);
  border-color: rgba(255, 241, 208, 0.46);
  color: #fff8e2;
}

.wb-sheet-tab::after,
.wb-group-tab::after,
.wb-subgroup-tab::after {
  content: "⋮⋮";
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: -1px;
  color: rgba(228, 239, 255, 0.62);
  pointer-events: none;
}

.wb-sheet-tab:active,
.wb-group-tab:active,
.wb-subgroup-tab:active {
  cursor: grabbing;
}

.wb-sheet-tab.dragging,
.wb-group-tab.dragging,
.wb-subgroup-tab.dragging {
  opacity: 0.72;
  transform: scale(0.985);
}

.wb-sheet-tab.over,
.wb-group-tab.over,
.wb-subgroup-tab.over {
  border-color: #9bc3ff;
  box-shadow: 0 0 0 2px rgba(155, 195, 255, 0.24);
}

.wb-sheet-tab:hover {
  transform: translateY(-1px);
  border-color: #6e95cc;
  box-shadow: 0 6px 16px rgba(18, 41, 71, 0.42);
}

.wb-sheet-tab.active {
  border-color: #a9cbff;
  background:
    linear-gradient(180deg, rgba(134, 187, 255, 0.22), rgba(134, 187, 255, 0.08)),
    linear-gradient(180deg, #2e5484, #23456d);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(169, 203, 255, 0.3) inset,
    0 8px 20px rgba(26, 54, 92, 0.42);
}

.wb-group-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #234d4f;
  border-radius: 14px;
  background: rgba(15, 44, 45, 0.24);
}

.wb-group-tab {
  border: 1px solid #4c8285;
  background:
    linear-gradient(180deg, rgba(106, 205, 200, 0.17), rgba(106, 205, 200, 0.04)),
    linear-gradient(180deg, #184344, #153639);
  color: #dcf7f7;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position: relative;
  cursor: grab;
}

.wb-group-tab:hover {
  transform: translateY(-1px);
  border-color: #63afb1;
  box-shadow: 0 5px 14px rgba(19, 61, 62, 0.42);
}

.wb-group-tab.active {
  border-color: #98ecee;
  background:
    linear-gradient(180deg, rgba(128, 213, 215, 0.24), rgba(128, 213, 215, 0.09)),
    linear-gradient(180deg, #226568, #1b5355);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(152, 236, 238, 0.28) inset;
}

.wb-subgroup-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 7px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #4e3358;
  border-radius: 14px;
  background: rgba(54, 27, 64, 0.22);
}

.wb-subgroup-tab {
  border: 1px solid #7f5f8a;
  background:
    linear-gradient(180deg, rgba(203, 145, 218, 0.17), rgba(203, 145, 218, 0.04)),
    linear-gradient(180deg, #42274c, #331f3a);
  color: #f0ddf5;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position: relative;
  cursor: grab;
}

.wb-subgroup-tab:hover {
  transform: translateY(-1px);
  border-color: #a176b0;
  box-shadow: 0 4px 12px rgba(62, 33, 73, 0.38);
}

.wb-subgroup-tab.active {
  border-color: #dfaceb;
  background:
    linear-gradient(180deg, rgba(223, 172, 235, 0.22), rgba(223, 172, 235, 0.08)),
    linear-gradient(180deg, #5a3466, #472b53);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(223, 172, 235, 0.22) inset;
}

.wb-prompt-io-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.prompt-library-switch {
  display: grid;
  gap: 4px;
  color: #cfe0f7;
  font-size: 12px;
}

.prompt-library-switch select {
  width: 100%;
}

.wb-prompt-io-row button {
  width: 100%;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 15, 0.72);
  display: grid;
  place-items: center;
  z-index: 10000;
  padding: 12px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-card {
  width: min(760px, 96vw);
  background: #0e1626;
  border: 1px solid #2a3853;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.modal-card h3 {
  margin: 0;
  font-size: 16px;
}

.prompt-manual-card {
  width: min(860px, 96vw);
}

.prompt-manual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prompt-manual-grid label:first-child {
  grid-column: 1 / -1;
}

#manualLevel1Select {
  font-weight: 600;
}

.prompt-ai-card {
  width: min(900px, 96vw);
}

.prompt-ai-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

.prompt-ai-grid label:first-child,
.prompt-ai-grid label:nth-child(3) {
  grid-column: span 8;
}

.prompt-ai-grid label:nth-child(2),
.prompt-ai-grid label:nth-child(4),
.prompt-ai-grid label:nth-child(5) {
  grid-column: span 4;
}

.prompt-ai-grid input,
.prompt-ai-grid select {
  min-height: 36px;
}

.prompt-ai-debug {
  border: 1px solid #2a4264;
  border-radius: 10px;
  background: #0b1525;
  padding: 8px;
}

.prompt-ai-debug summary {
  cursor: pointer;
  color: #cfe1ff;
  font-size: 12px;
  font-weight: 700;
}

#aiPromptDebug {
  margin: 8px 0 0;
  color: #9fc0ef;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

body.role-user .admin-only,
body.role-guest .admin-only {
  display: none !important;
}

.prompt-manual-strategy {
  display: grid;
  grid-template-columns: 1fr;
}

.prompt-manual-preview {
  border: 1px solid #2a4264;
  border-radius: 10px;
  background: #0b1525;
  color: #cfe1ff;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 10px;
  white-space: pre-wrap;
}

.prompt-ai-card > label textarea,
.prompt-manual-card > label textarea {
  background: #101a2c;
}

.wb-used-wrap {
  border: 1px solid #35507a;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(66, 116, 196, 0.18), transparent 52%),
    #12233d;
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.wb-used-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wb-used-head strong {
  color: #d8e8ff;
  font-size: 12px;
}

.wb-used-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wb-used-tools select {
  min-width: 96px;
  font-size: 12px;
  padding: 4px 6px;
}

.wb-used-tools button {
  font-size: 11px;
  padding: 5px 8px;
}

.wb-used-row {
  grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
}

.wb-chip-used {
  min-height: 40px;
  border-color: #365a86;
  background:
    linear-gradient(180deg, rgba(122, 174, 255, 0.18), rgba(122, 174, 255, 0.06)),
    linear-gradient(180deg, #2f4f79, #223a5a);
  color: #edf5ff;
}

.wb-chip-used .wb-chip-main {
  color: #f3f8ff;
}

.wb-chip-used .wb-chip-sub {
  color: #cfdbef;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#promptImportSkippedPreview {
  min-height: 120px;
  resize: vertical;
}

.wb-chip-groups {
  display: grid;
  gap: 10px;
}

.wb-chip-group {
  border: 1px solid rgba(42, 64, 98, 0.52);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(11, 20, 35, 0.94), rgba(10, 18, 31, 0.9));
  display: grid;
  gap: 10px;
}

.wb-chip-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wb-chip-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(92, 180, 255, 0.22);
  background: rgba(24, 41, 66, 0.78);
  color: #bcd6f8;
  font-size: 11px;
  font-weight: 700;
}

.wb-chip-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 132px;
  padding: 18px 16px;
  border: 1px dashed #415b82;
  border-radius: 12px;
  background:
    radial-gradient(circle at top, rgba(110, 168, 255, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(15, 24, 39, 0.92), rgba(12, 19, 32, 0.88));
  text-align: center;
}

.wb-chip-empty strong {
  font-size: 14px;
  color: #eef6ff;
  letter-spacing: .02em;
}

.wb-chip-empty span {
  max-width: 460px;
  font-size: 12px;
  line-height: 1.6;
  color: #9fb7d7;
}

.wb-chip-group {
  display: grid;
  gap: 6px;
}

.wb-chip-group h4 {
  margin: 0;
  font-size: 13px;
  color: #d5e7ff;
  font-weight: 700;
  padding: 3px 2px 5px;
  border-bottom: 1px solid #2b466d;
}

.wb-chip-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 6px;
}

.wb-chip {
  border: 1px solid #4b3a4a;
  background:
    linear-gradient(180deg, rgba(255, 168, 207, 0.16), rgba(255, 168, 207, 0.04)),
    linear-gradient(180deg, #6a3250, #3f2a40);
  color: #f7ddea;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.25;
  min-height: 44px;
  text-align: center;
  display: grid;
  align-content: center;
  gap: 2px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position: relative;
}

.wb-chip:hover {
  transform: translateY(-1px);
  border-color: #bf78a2;
  background:
    linear-gradient(180deg, rgba(255, 182, 218, 0.18), rgba(255, 182, 218, 0.07)),
    linear-gradient(180deg, #7a3a5c, #4a3048);
  box-shadow: 0 6px 16px rgba(54, 26, 42, 0.36);
}

.wb-chip-main {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #ffeaf5;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-chip-sub {
  display: block;
  font-size: 9px;
  color: #d7c6d0;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-chip.has-samples {
  border-color: #7a96c4;
}

.wb-chip.favorited {
  border-color: #e7b84e;
  background:
    linear-gradient(180deg, rgba(255, 214, 123, 0.2), rgba(255, 214, 123, 0.06)),
    linear-gradient(180deg, #6d5130, #4a3a28);
  color: #fff1ca;
  box-shadow: 0 0 0 1px rgba(231, 184, 78, 0.32) inset;
}

.wb-chip.favorited .wb-chip-main {
  color: #fff5d4;
}

.wb-chip.favorited .wb-chip-sub {
  color: #f0d8a8;
}

.wb-chip-highlight {
  padding: 0 3px;
  border-radius: 6px;
  background: rgba(255, 214, 128, 0.22);
  color: #fff4cd;
  box-shadow: 0 0 0 1px rgba(255, 214, 128, 0.16) inset;
}

.wb-chip-sample-badge {
  position: absolute;
  right: 5px;
  top: 5px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #87b5ff;
  background: linear-gradient(180deg, #31588c, #223f63);
  color: #eaf3ff;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  font-weight: 700;
  padding: 0 4px;
  pointer-events: auto;
  cursor: pointer;
}

@media (max-width: 900px) {
  .wb-chip-row {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

.wb-advanced details {
  border: 1px solid #243047;
  border-radius: 10px;
  background: #0e1625;
  padding: 8px;
}

.wb-advanced summary {
  cursor: pointer;
  color: #d5e2f7;
  font-weight: 700;
  margin-bottom: 8px;
}

.wb-right {
  display: grid;
  align-content: start;
  gap: 10px;
}

.wb-right-advanced .grid.two,
.wb-right-advanced .grid.three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wb-right-advanced .vector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wb-right-advanced label {
  margin-bottom: 0;
}

.wb-right-advanced .hint {
  font-size: 12px;
  margin-top: -4px;
  margin-bottom: 2px;
}

.wb-right-advanced .inline-check {
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
}

.wb-right-advanced .checkline {
  grid-column: 1 / -1;
}

@media (max-width: 1320px) {
  .wb-right-advanced .grid.two,
  .wb-right-advanced .grid.three,
  .wb-right-advanced .vector-grid {
    grid-template-columns: 1fr;
  }
}

.wb-generate-btn {
  width: 100%;
  background: linear-gradient(90deg, #1f7eff, #3558ff);
  border-radius: 14px;
  font-size: 30px;
  padding: 14px 16px;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(37, 121, 255, 0.18);
}

.wb-task-counter {
  border: 1px solid #3f3a2c;
  background: linear-gradient(135deg, rgba(241, 214, 172, 0.9), rgba(212, 177, 121, 0.88));
  color: #5c3f0f;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

.wb-right-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wb-right-row > button:only-child {
  grid-column: 1 / -1;
}

.wb-batch-wrap {
  margin: 0;
  background: #0f1829;
  border: 1px dashed #2c3d5a;
}

.wb-right-config {
  border: 1px solid #23314a;
  background: linear-gradient(180deg, #0c1422, #0b1320);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.wb-right-config h3 {
  margin: 0;
  font-size: 15px;
  color: #cfdaf0;
}

.inline-admin-config {
  display: none !important;
}

.admin-console-entry {
  border: 1px solid #263750;
  border-radius: 10px;
  background: #0f1829;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.admin-console-entry h3 {
  margin: 0 0 4px;
}

.admin-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 36px;
  padding: 8px 12px;
}

.admin-users-panel {
  border: 1px solid #263750;
  border-radius: 10px;
  background: #0f1829;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.admin-users-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.admin-users-head h3 {
  margin: 0;
}

.admin-users-head button {
  min-height: 32px;
  padding: 6px 10px;
}

.admin-users-list {
  display: grid;
  gap: 8px;
}

.admin-create-user {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.admin-create-user input,
.admin-create-user select,
.admin-create-user button {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 13px;
}

.admin-create-user button {
  grid-column: 1 / -1;
}

.admin-user-card.disabled {
  opacity: 0.68;
}

.admin-user-password {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.admin-user-password input {
  min-height: 32px;
  padding: 6px 8px;
}

.admin-user-actions {
  gap: 6px;
  flex-wrap: wrap;
}

.admin-user-actions button.warn {
  border-color: rgba(255, 154, 98, 0.46);
  color: #ffd0b7;
}

.admin-users-list.empty {
  color: var(--muted);
  font-size: 13px;
}

.admin-user-card {
  border: 1px solid #2b3a55;
  border-radius: 9px;
  background: #111c2d;
  padding: 9px;
  display: grid;
  gap: 8px;
}

.admin-user-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.admin-user-main strong {
  color: #ecf3ff;
  font-size: 14px;
}

.admin-user-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  word-break: break-all;
}

.admin-user-quota {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.admin-user-quota label {
  margin: 0;
  gap: 4px;
  font-size: 12px;
}

.admin-user-quota input {
  min-height: 32px;
  padding: 6px 8px;
}

.admin-user-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-user-actions button {
  min-height: 32px;
  padding: 6px 12px;
}

.checkline {
  align-self: stretch;
}

.inline-check {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border: 1px solid #2f3b53;
  border-radius: 9px;
  background: #121a28;
  padding: 0 10px;
  font-weight: 500;
}

.inline-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.notice {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--warn);
}

.notice.ok {
  color: var(--ok);
}

.system-announcement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 172, 107, 0.34);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 172, 107, 0.16), rgba(255, 217, 163, 0.08));
  color: #ffe0bf;
  animation: softReveal 0.35s ease;
}

.system-announcement-label {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 172, 107, 0.18);
  color: #ffd0a3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.system-announcement-text {
  margin: 0;
  color: #ffe9d3;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.permission-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(74, 139, 255, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(13, 24, 42, 0.94), rgba(10, 18, 31, 0.92));
  animation: softReveal 0.35s ease;
}

.permission-summary-label {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 121, 255, 0.18);
  color: #bfd9ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.permission-summary-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.permission-summary-text {
  color: #d7e6fb;
  font-size: 13px;
  line-height: 1.5;
}

.permission-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-summary-pill {
  border: 1px solid rgba(74, 139, 255, 0.26);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(37, 121, 255, 0.12);
  color: #d8e7ff;
  font-size: 12px;
  line-height: 1.2;
}

.permission-summary-pill.off {
  border-color: rgba(255, 154, 98, 0.28);
  background: rgba(255, 154, 98, 0.1);
  color: #ffd5bc;
}

.notice-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 12000;
  min-width: min(72vw, 320px);
  max-width: min(88vw, 760px);
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 154, 98, 0.48);
  background: rgba(17, 24, 38, 0.92);
  color: #ffd5bc;
  font-size: 22px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(5px);
  pointer-events: none;
  opacity: 0;
}

.notice-toast.show {
  animation: noticeToastFade 3s ease forwards;
}

.notice-toast.ok {
  border-color: rgba(42, 193, 135, 0.52);
  color: #bff7df;
}

@keyframes noticeToastFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.98);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  76% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.98);
  }
}

.wb-status-card,
.wb-library-card {
  overflow: hidden;
}

.wb-status-intro,
.wb-library-intro {
  margin: -2px 0 12px;
  color: #adc0d7;
  line-height: 1.55;
}

.status {
  margin: 0;
  border: 1px solid #243047;
  border-radius: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(73, 210, 209, 0.12), transparent 30%),
    linear-gradient(180deg, #0f1726, #0d1522);
  white-space: normal;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #1b2a44;
  color: #d4dff2;
  font-size: 12px;
}

.pill.ok {
  background: #10382e;
  color: #76e3b8;
}

.pill.warn {
  background: #41291d;
  color: #ffbc8d;
}

.result-toolbar {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(45, 64, 95, 0.62);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 22, 36, 0.94), rgba(11, 19, 31, 0.92));
}

.work-view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.result-toolbar label {
  margin-bottom: 0;
  gap: 4px;
  font-size: 13px;
}

.result-toolbar .inline-check {
  min-height: 34px;
  font-size: 13px;
}

.result-pager {
  justify-content: flex-end;
  align-items: center;
}

#resultPagerInfo {
  margin: 0;
  font-size: 13px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.gallery.empty,
.history.empty {
  color: var(--muted);
}

.gallery-item {
  border: 1px solid #293754;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(180deg, #111a2a, #0f1726);
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  border-color: #39527a;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.gallery-item.dragging {
  opacity: 0.72;
  transform: scale(0.985);
}

.gallery-item.over {
  border-color: #72a6ff;
  box-shadow: 0 0 0 2px rgba(114, 166, 255, 0.28);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  cursor: zoom-in;
  background: #0f1726;
}

.gallery-item strong {
  font-size: 14px;
  line-height: 1.45;
  color: #edf4ff;
}

.gallery-item a {
  word-break: break-all;
  font-size: 11px;
  color: #8eb8f4;
  text-decoration: none;
}

.gallery-meta-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gallery-meta-pills .pill {
  font-size: 11px;
  padding: 1px 7px;
  background: #16233a;
}

.gallery-meta-pills .pill.warn {
  background: #4a2d20;
  color: #ffd2b7;
}

.gallery-item .download {
  width: 100%;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.result-actions button {
  width: 100%;
  padding: 7px 9px;
  font-size: 13px;
  border-radius: 9px;
  font-weight: 620;
  line-height: 1.22;
}

.result-actions .favorite.on {
  background: #473121;
  color: #ffd6a5;
  border: 1px solid #6d4f3a;
}

.history {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.history-item {
  border: 1px solid #293754;
  border-radius: 12px;
  padding: 9px;
  display: grid;
  background: linear-gradient(180deg, #111a2a, #0f1726);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.history-item:hover {
  transform: translateY(-2px);
  border-color: #39527a;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.history-body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.history-meta {
  display: grid;
  gap: 6px;
  font-size: 12px;
  min-width: 0;
}

.history-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  border: 1px solid #2a3956;
  object-fit: cover;
  cursor: zoom-in;
  background: #0f1726;
}

.history-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  background: #121d31;
}

.history-prompt {
  line-height: 1.4;
  word-break: break-word;
  max-height: 2.8em;
  overflow: hidden;
  color: #dce7f5;
}

.history-line,
.history-pills,
.history-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.history-line {
  justify-content: space-between;
}

.history-line.muted {
  color: var(--muted);
}

.history-actions button {
  padding: 5px 9px;
  font-size: 12px;
}

.task-progress-wrap {
  display: grid;
  gap: 10px;
}

.job-card {
  display: grid;
  gap: 12px;
}

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.job-percent {
  min-width: 58px;
  border-radius: 999px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #1677ff, #3eb8d5);
  color: #fff;
  text-align: center;
  font-weight: 750;
  box-shadow: 0 10px 20px rgba(22, 119, 255, 0.22);
}

.task-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.task-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #1b2a43;
  overflow: hidden;
}

.task-progress-bar.large {
  height: 14px;
  box-shadow: inset 0 0 0 1px rgba(88, 128, 201, 0.24);
}

.task-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #187cff, #49d2d1);
  transition: width 0.35s ease;
}

.mode-img2img .wb-stage-intro,
.mode-ecommerce .wb-stage-intro,
.mode-text2img .wb-stage-intro {
  animation: modeShift 0.3s ease;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softReveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modeShift {
  0% {
    transform: translateY(4px);
    opacity: 0.92;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.task-progress-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.task-progress-wrap .pill.warn {
  margin-top: 8px;
}

.job-summary,
.subtask-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.job-summary {
  color: #b7c4da;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 28, 45, 0.82);
  border: 1px solid rgba(47, 66, 96, 0.48);
}

.subtask-list {
  display: grid;
  gap: 6px;
}

.subtask-row {
  border: 1px solid #2a3956;
  border-radius: 8px;
  padding: 7px;
  background: #111a2a;
  display: grid;
  gap: 6px;
}

.subtask-row.completed {
  border-color: #2f7a60;
  background: #12221b;
}

.subtask-row.failed {
  border-color: #8b5a39;
  background: #241911;
}

.subtask-index {
  border-radius: 999px;
  padding: 2px 7px;
  background: #17324a;
  color: #8fd4ff;
  font-weight: 700;
}

.mini-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #1e2f4b;
  overflow: hidden;
}

.mini-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #187cff, #49d2d1);
  transition: width 0.3s ease;
}

.subtask-error {
  color: #ffab7c;
  font-size: 12px;
}

.subtask-main .pill.warn {
  margin-left: 2px;
}

.subtask-prompt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-preview-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 133, 255, 0.12), transparent 28%),
    rgba(5, 8, 13, 0.88);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: softReveal 0.22s ease;
}

.image-preview-panel {
  width: min(1500px, 98vw);
  height: min(940px, 96vh);
  background:
    radial-gradient(circle at 100% 0%, rgba(73, 210, 209, 0.1), transparent 22%),
    linear-gradient(180deg, #0f1726, #0c1422);
  border: 1px solid #2a3956;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.image-preview-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  min-height: 0;
}

.image-preview-left {
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.image-preview-top {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(43, 63, 95, 0.42);
  margin-bottom: 2px;
}

.image-preview-title {
  color: #d8e6fb;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-all;
  padding: 0;
}

.image-preview-hint {
  color: #8ea6c8;
  font-size: 11px;
  line-height: 1.35;
  padding: 0;
}

.image-preview-canvas {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  background: transparent;
  border-radius: 0;
  border: 0;
  overflow: visible;
  cursor: grab;
  padding: 10px 8px;
}

.image-preview-head {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 14, 24, 0.92), rgba(8, 14, 24, 0.68));
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.image-preview-panel img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  transform-origin: center center;
  transition: transform 0.08s linear;
  box-shadow: none;
  padding: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.image-preview-stage {
  position: relative;
  overflow: visible;
  border-radius: 0;
  max-width: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
}

.image-preview-side {
  border: 1px solid #2b3b5a;
  border-radius: 14px;
  background: linear-gradient(180deg, #0d1728, #0b1422);
  padding: 12px;
  display: grid;
  gap: 10px;
  overflow: auto;
  align-content: start;
}

.image-preview-side h4 {
  margin: 0;
  color: #d6e4fb;
  font-size: 16px;
}

.image-preview-side-copy {
  margin: -2px 0 2px;
  color: #a8bdd8;
  font-size: 12px;
  line-height: 1.5;
}

.image-preview-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.image-preview-summary .summary-chip {
  border: 1px solid rgba(52, 74, 108, 0.62);
  border-radius: 12px;
  background: rgba(15, 24, 40, 0.9);
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.image-preview-summary .summary-chip span {
  color: #8ea6c8;
  font-size: 11px;
}

.image-preview-summary .summary-chip strong {
  color: #edf4ff;
  font-size: 13px;
  line-height: 1.35;
}

.image-preview-side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.image-preview-side-actions button {
  font-size: 12px;
  padding: 7px 9px;
  border-radius: 10px;
}

.image-preview-side-actions button[data-act="reuse-meta"] {
  background: linear-gradient(90deg, #1f7eff, #3558ff);
  box-shadow: 0 10px 24px rgba(37, 121, 255, 0.16);
}

.image-preview-side-actions button[data-act="reuse-meta"] {
  grid-column: 1 / -1;
}

.image-preview-side-actions button[data-act="set-sample"] {
  grid-column: 1 / -1;
}

.image-preview-meta {
  display: grid;
  gap: 8px;
}

.image-preview-meta .meta-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(53, 76, 112, 0.42);
}

.image-preview-meta .meta-row span {
  color: #8ea6c8;
}

.image-preview-meta .meta-row b {
  color: #e6efff;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.image-preview-meta .meta-prompt {
  margin-top: 4px;
  border-top: 1px dashed #2b3f61;
  padding-top: 10px;
  display: grid;
  gap: 6px;
}

.image-preview-meta .meta-prompt span {
  color: #8ea6c8;
  font-size: 12px;
}

.image-preview-meta .meta-prompt p {
  margin: 0;
  color: #e7f0ff;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 28vh;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 21, 34, 0.86);
  border: 1px solid rgba(42, 60, 91, 0.52);
}

.prompt-sample-menu {
  position: fixed;
  z-index: 10030;
  border: 1px solid #2d4162;
  border-radius: 10px;
  background: #0f1828;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  min-width: 190px;
  display: grid;
  gap: 6px;
}

.prompt-sample-menu button {
  width: 100%;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
}

.prompt-sample-hover {
  position: fixed;
  z-index: 10040;
  width: 300px;
  border: 1px solid #2d4469;
  border-radius: 10px;
  background: #0d1728;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  padding: 8px;
  display: grid;
  gap: 8px;
  pointer-events: auto;
}

.ps-hover-head {
  color: #cfe1ff;
  font-size: 12px;
  font-weight: 700;
}

.ps-hover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ps-hover-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #304a72;
  display: block;
}

.ps-hover-img-btn {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}

.prompt-sample-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 18, 0.72);
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 16px;
}

.prompt-sample-card {
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid #2b3c5a;
  border-radius: 12px;
  background: #0c1422;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.prompt-sample-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.prompt-sample-head h3 {
  margin: 0;
  font-size: 16px;
  color: #dce9ff;
}

.token-pick-row {
  max-height: 52vh;
  overflow: auto;
  padding: 2px;
}

.prompt-token-manual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
  margin-bottom: 10px;
}

.prompt-token-search {
  margin-top: -2px;
}

.token-selected-wrap {
  display: grid;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #22344f;
  border-radius: 10px;
  background: rgba(13, 21, 35, 0.86);
}

.token-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.token-selected-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.token-selected-head strong {
  color: #e7f0ff;
  font-size: 13px;
}

.token-selected-row {
  min-height: 52px;
}

.token-selected-chip {
  min-height: 44px;
  border-color: #82b0ff;
  background:
    linear-gradient(180deg, rgba(121, 178, 255, 0.18), rgba(121, 178, 255, 0.06)),
    linear-gradient(180deg, #24405f, #1a3049);
}

.token-selected-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 44px;
  color: #7f9abf;
  font-size: 12px;
}

.prompt-token-search input {
  width: 100%;
}

.prompt-token-manual input {
  min-width: 0;
}

.prompt-token-manual button {
  white-space: nowrap;
}

.token-search-row {
  max-height: 24vh;
  border: 1px solid #21324d;
  border-radius: 10px;
  padding: 6px;
  background: rgba(11, 18, 31, 0.82);
}

.token-search-chip {
  min-height: 46px;
}

.token-search-empty {
  grid-column: 1 / -1;
  padding: 16px 10px;
  text-align: center;
  color: #8da7cb;
  font-size: 12px;
}

.token-pick-chip {
  min-height: 40px;
}

.prompt-token-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.prompt-sample-sub {
  color: #89a3c9;
  font-size: 12px;
}

.prompt-sample-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ps-option-line {
  margin: 0;
}

.ps-option-grid {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 8px;
  align-items: center;
  color: #cbdcf6;
  font-size: 12px;
}

.prompt-sample-generated {
  border: 1px dashed #2e4569;
  border-radius: 10px;
  padding: 8px;
  background: #0a1322;
  display: grid;
  gap: 8px;
}

.ps-generated-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ps-generated-head strong {
  color: #cfe1ff;
  font-size: 13px;
}

.ps-generated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
}

.ps-generated-filters {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 8px;
}

.ps-generated-item {
  border: 1px solid #2f466b;
  border-radius: 8px;
  background: #0f1a2d;
  padding: 6px;
  display: grid;
  gap: 5px;
  text-align: left;
}

.ps-generated-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.ps-generated-item span {
  font-size: 11px;
  color: #a9bfdc;
  line-height: 1.2;
}

.ps-generated-empty {
  color: #88a3c8;
  font-size: 12px;
}

.prompt-sample-rows {
  display: grid;
  gap: 10px;
}

.prompt-sample-row {
  border: 1px solid #283a58;
  border-radius: 10px;
  padding: 8px;
  background: #101a2b;
  display: grid;
  grid-template-columns: 64px 2fr 1.2fr 148px;
  gap: 8px;
}

.prompt-sample-row.dragging {
  opacity: 0.6;
}

.prompt-sample-row.over {
  border-color: #67a9ff;
  box-shadow: 0 0 0 1px rgba(103, 169, 255, 0.4) inset;
}

.ps-drag-wrap {
  display: grid;
  align-items: center;
}

.ps-drag {
  width: 100%;
  font-size: 12px;
  cursor: grab;
}

.ps-drag:active {
  cursor: grabbing;
}

.ps-row-ops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ps-row-ops button {
  font-size: 11px;
  padding: 6px 4px;
}

.prompt-sample-row .ps-preview {
  grid-column: 1 / -1;
  border: 1px dashed #2e4569;
  border-radius: 8px;
  min-height: 88px;
  display: grid;
  place-items: center;
  color: #7f96ba;
  font-size: 12px;
  overflow: hidden;
  background: #0a1424;
}

.prompt-sample-row .ps-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

@media (max-width: 1180px) {
  .wb-topbar {
    grid-template-columns: 1fr;
  }

  .wb-top-status {
    border-left: 0;
    padding-left: 0;
  }

  .wb-main-layout {
    grid-template-columns: 1fr;
  }

  .ecommerce-shell {
    grid-template-columns: 1fr;
  }

  .ecommerce-config {
    border-right: 0;
    border-bottom: 1px solid rgba(76, 110, 152, 0.24);
  }

  .ecommerce-stage-frame {
    grid-template-columns: 1fr;
  }

  .ecommerce-hero {
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  .grid.three,
  .result-toolbar,
  .wb-right-row {
    grid-template-columns: 1fr;
  }

  .result-pager {
    justify-content: flex-start;
  }

  .image-preview-main {
    grid-template-columns: 1fr;
  }

  .image-preview-side {
    max-height: 38vh;
  }

  .image-preview-panel {
    height: min(960px, 96vh);
  }

  .image-preview-canvas {
    min-height: 48vh;
  }

  .ps-generated-filters {
    grid-template-columns: 1fr;
  }

  .prompt-sample-row {
    grid-template-columns: 1fr;
  }

  .ps-row-ops {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ps-option-grid {
    grid-template-columns: 1fr;
  }

  .wb-prompt-io-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecommerce-stage {
    padding: 16px;
  }

  .ecommerce-stage-copy h2 {
    font-size: 30px;
  }

  .ecommerce-stage-copy p {
    font-size: 15px;
  }
}

@media (max-width: 700px) {
  .grid.two {
    grid-template-columns: 1fr;
  }

  .history {
    grid-template-columns: 1fr;
  }

  .history-body {
    grid-template-columns: 1fr;
  }

  .history-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 150px;
  }

  .wb-prompt-label textarea {
    font-size: 17px;
    min-height: 140px;
  }

  .wb-stage-intro {
    padding: 14px;
  }

  .notice-toast {
    font-size: 17px;
    min-width: min(86vw, 420px);
    padding: 12px 14px;
  }

  .system-announcement {
    flex-direction: column;
    gap: 8px;
  }

  .system-announcement-label {
    min-width: 0;
  }

  .permission-summary {
    flex-direction: column;
    gap: 8px;
  }

  .permission-summary-label {
    min-width: 0;
  }

  .wb-prompt-io-row,
  .ecommerce-grid,
  .prompt-manual-grid,
  .prompt-ai-grid {
    grid-template-columns: 1fr;
  }

  .ecommerce-head {
    flex-direction: column;
  }

  .ecommerce-pack-controls {
    grid-template-columns: 1fr;
  }

  .ecommerce-structure-list {
    grid-template-columns: 1fr;
  }

  .ecommerce-wide {
    grid-column: auto;
  }

  .prompt-ai-grid label,
  .prompt-manual-grid label {
    grid-column: auto !important;
  }

  .wb-used-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
