
:root {
  --bg: #f4f8ff;
  --bg-2: #eff5ff;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --line: #d8e6fb;
  --line-strong: #c1d5f4;
  --text: #163152;
  --text-2: #48627f;
  --muted: #7287a4;
  --brand: #1f70ff;
  --brand-dark: #103a76;
  --accent: #21c98d;
  --danger: #ef5a75;
  --warn: #ffb120;
  --ok: #17b26a;
  --shadow: 0 18px 46px rgba(15,57,114,.08);
  --shadow-lg: 0 26px 72px rgba(15,57,114,.14);
  --radius: 24px;
  --radius-sm: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31,112,255,.10), transparent 24%),
    radial-gradient(circle at top right, rgba(33,201,141,.08), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 52%, #f8fbff 100%);
}
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
.app-boot-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.app-boot-card {
  width: min(560px, 100%);
  padding: 26px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.98));
  box-shadow: 0 18px 38px rgba(15,57,114,.10);
}
.app-boot-card strong { display: block; font-size: 1.12rem; margin-bottom: 8px; }
.app-boot-card p { margin: 0; color: var(--text-2); line-height: 1.72; }
.app-boot-error { border-color: rgba(239,90,117,.22); }
.header-locale-wrap { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.header-locale-label { display: none; }
.workspace-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 40px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.workspace-sidebar,
.workspace-topbar,
.workspace-banner,
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(15,57,114,.06);
}
.workspace-sidebar {
  position: sticky;
  top: 16px;
  padding: 16px;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(216,230,251,.92);
}
.sidebar-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f70ff 0%, #5fb0ff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 16px 34px rgba(31,112,255,.20);
  position: relative;
  flex: 0 0 auto;
}
.sidebar-brand-mark::before,
.sidebar-brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.92);
}
.sidebar-brand-mark::before { inset: 8px 14px 8px 8px; }
.sidebar-brand-mark::after { inset: 8px 8px 8px 14px; }
.sidebar-brand-copy strong { display: block; font-size: 1.04rem; letter-spacing: -.02em; }
.sidebar-brand-copy small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.35; font-size: .8rem; }
.sidebar-section-label {
  margin: 14px 0 10px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
.sidebar-nav { display: grid; gap: 8px; }
.sidebar-nav button,
.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.sidebar-nav button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 14px;
  font-weight: 600;
  color: var(--text-2);
}
.sidebar-nav button:hover,
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(31,112,255,.12); border-color: rgba(31,112,255,.22); }
.sidebar-nav button.is-active {
  color: var(--brand-dark);
  border-color: rgba(31,112,255,.28);
  background: linear-gradient(180deg, rgba(31,112,255,.12), rgba(31,112,255,.03));
  box-shadow: inset 3px 0 0 #1f70ff;
}
.sidebar-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(216,230,251,.92);
  display: grid;
  gap: 14px;
}
.sidebar-promo {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
}
.sidebar-promo strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31,112,255,.08);
  border: 1px solid rgba(31,112,255,.12);
  color: var(--brand-dark);
  font-size: .82rem;
}
.sidebar-promo p { margin: 10px 0 0; color: var(--text-2); line-height: 1.64; font-size: .92rem; }
.sidebar-actions { display: grid; gap: 10px; }
.sidebar-locale { width: 100%; }
.sidebar-locale .mini-select-wide { width: 100%; max-width: none; }
.btn {
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
}
.btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #1f70ff 0%, #165edc 100%);
  box-shadow: 0 14px 28px rgba(31,112,255,.18);
}
.btn.soft {
  color: var(--brand-dark);
  border-color: rgba(31,112,255,.18);
  background: linear-gradient(180deg, rgba(31,112,255,.08), rgba(31,112,255,.03));
}
.btn.ghost { background: linear-gradient(180deg, #ffffff, #f4f9ff); }
.btn.danger {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #ef5a75, #df4762);
}
.workspace-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.workspace-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(16,58,118,.96), rgba(22,94,220,.94) 62%, rgba(33,201,141,.92) 100%);
  color: #f8fbff;
  box-shadow: 0 18px 38px rgba(15,57,114,.10);
}
.workspace-banner-copy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.workspace-banner-copy strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .88rem;
}
.workspace-banner-copy span { color: rgba(248,251,255,.86); line-height: 1.65; }
.workspace-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}
.workspace-title { min-width: 0; }
.workspace-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31,112,255,.08);
  border: 1px solid rgba(31,112,255,.14);
  color: var(--brand-dark);
  font-size: .84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.workspace-title h1 { margin: 8px 0 6px; font-size: clamp(1.6rem, 2vw, 2.1rem); line-height: 1.08; letter-spacing: -.03em; }
.workspace-title p { margin: 0; color: var(--text-2); line-height: 1.72; max-width: 72ch; }
.workspace-state-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(31,112,255,.14); background: rgba(31,112,255,.06); color: var(--brand-dark); font-size: .82rem; font-weight: 700; letter-spacing: .01em; }
.toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.page-stack { display: flex; flex-direction: column; gap: 20px; }
.mini-select { min-width: 88px; max-width: 120px; min-height: 44px; padding-right: 34px; }
.mini-select-wide { min-width: 188px; max-width: 248px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 22px; }
.hero-main, .hero-preview { padding: 30px; }
.hero-main {
  background: linear-gradient(145deg, #103a76 0%, #165edc 62%, #21c98d 100%);
  color: #f8fbff;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 18px 38px rgba(15,57,114,.10);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  color: #eef6ff;
  font-size: .88rem;
  font-weight: 700;
}
.hero-main h2 { margin: 14px 0 10px; font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1.04; letter-spacing: -.03em; max-width: 16ch; }
.hero-main > p { margin: 0; color: rgba(248,251,255,.86); line-height: 1.82; max-width: 60ch; }
.hero-actions { margin-top: 22px; }
.hero-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.point-card { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12); }
.point-card strong { display: block; margin-bottom: 6px; color: #fff; }
.point-card span { color: rgba(248,251,255,.82); font-size: .95rem; line-height: 1.62; }
.hero-preview { background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(245,250,255,.98)); }
.browser-top { display: flex; align-items: center; gap: 7px; padding-bottom: 16px; }
.browser-top span { width: 10px; height: 10px; border-radius: 50%; background: #ffb020; }
.browser-top span:nth-child(2) { background: #21c98d; }
.browser-top span:nth-child(3) { background: #1f70ff; }
.browser-top em { margin-left: auto; color: var(--muted); font-style: normal; font-size: .92rem; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric-card,
.stats-card,
.feature-card,
.kv-card,
.kv-wide,
.list-item,
.mini-stats > div,
.bridge-source,
.notice-box,
.empty-box,
.toggle,
.section-soft {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}
.metric-card { padding: 18px; }
.metric-card small { display: block; color: var(--muted); margin-bottom: 8px; }
.metric-card strong { font-size: 1.55rem; letter-spacing: -.03em; }
.preview-stack { margin-top: 16px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #ffffff, #f6fbff); }
.preview-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.preview-row:last-child { border-bottom: 0; }
.preview-row span { color: var(--muted); }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats-card { padding: 22px; }
.stats-card small { display: block; color: var(--muted); margin-bottom: 10px; }
.stats-card strong { display: block; font-size: 2rem; letter-spacing: -.03em; }
.stats-card span { color: var(--text-2); }
.section-grid,
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.span-2 { grid-column: span 2; }
.section-card { padding: 24px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head h3 { margin: 0 0 6px; font-size: 1.24rem; letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.72; }
.body-copy { margin: 0; color: var(--text-2); line-height: 1.8; }
.section-gap { margin-top: 18px; }
.section-soft { padding: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-card { padding: 20px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(15,57,114,.12); border-color: rgba(31,112,255,.18); }
.feature-card strong { display: block; margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { margin: 0 0 16px; color: var(--text-2); line-height: 1.72; }
.feature-card-accent { background: linear-gradient(145deg, rgba(31,112,255,.10), rgba(33,201,141,.06)); border-color: rgba(31,112,255,.20); }
.field-label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--text); }
.field {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: none;
  background: linear-gradient(180deg, #fff, #f9fcff);
  color: var(--text);
}
.field:focus { border-color: rgba(31,112,255,.32); box-shadow: 0 0 0 4px rgba(31,112,255,.10); }
.textarea { min-height: 118px; resize: vertical; }
.readonly-text { min-height: 160px; }
.form-grid { display: grid; gap: 16px; margin-top: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option-row,
.action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.option-row { margin: 14px 0 0; }
.action-row { margin-top: 16px; }
.action-row.compact { margin-top: 0; }
.wrap-gap { gap: 10px; flex-wrap: wrap; }
.notice-box { margin-top: 14px; padding: 14px 16px; background: linear-gradient(180deg, rgba(31,112,255,.08), rgba(33,201,141,.05)); color: var(--text-2); line-height: 1.7; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kv-card { padding: 18px; }
.kv-card > div,
.kv-wide > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kv-card > div:last-child,
.kv-wide > div:last-child { border-bottom: 0; }
.kv-card span,
.kv-wide span { color: var(--muted); }
.kv-card strong,
.kv-wide strong { text-align: right; word-break: break-word; }
.kv-wide { margin-top: 16px; padding: 0 18px; }
.compact-wide { margin-top: 14px; }
.list-stack { display: flex; flex-direction: column; gap: 12px; }
.max-list { max-height: 520px; overflow: auto; }
.queue-list { max-height: 780px; overflow: auto; }
.list-item { padding: 16px 18px; }
.list-item small { display: block; color: var(--muted); margin-bottom: 8px; }
.list-item strong { display: block; margin-bottom: 6px; }
.list-item p { margin: 0; color: var(--text-2); line-height: 1.6; word-break: break-all; }
.compact-item p { margin-top: 4px; }
.list-item.error { border-color: rgba(239,90,117,.2); }
.error-text { color: var(--danger); margin-top: 10px; word-break: break-word; }
.mini-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; color: var(--muted); }
.progress-shell { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.progress-bar { position: relative; flex: 1; height: 12px; border-radius: 999px; overflow: hidden; background: #edf4ff; border: 1px solid var(--line); }
.progress-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1f70ff, #21c98d); }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini-stats > div { padding: 14px 16px; }
.mini-stats span { display: block; color: var(--muted); margin-bottom: 8px; }
.mini-stats strong { display: block; word-break: break-word; }
.toggle { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--text-2); }
.toggle input { accent-color: var(--brand); }
.video-shell { margin-top: 16px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #04172c, #102f54); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.video-shell video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #081422; }
.bridge-source { margin-top: 12px; padding: 14px; border-style: dashed; }
.code-block { margin: 0; padding: 16px; border-radius: 16px; background: #091a31; color: #d7ebff; overflow: auto; }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 999px; font-size: .86rem; border: 1px solid transparent; }
.badge.ok { color: #0d7d4a; background: rgba(23,178,106,.10); border-color: rgba(23,178,106,.18); }
.badge.warn { color: #915d00; background: rgba(255,177,32,.13); border-color: rgba(255,177,32,.2); }
.badge.danger { color: #b42339; background: rgba(239,90,117,.10); border-color: rgba(239,90,117,.18); }
.badge.muted { color: var(--muted); background: rgba(124,145,176,.10); border-color: rgba(124,145,176,.16); }
.empty-box { padding: 20px; border-radius: 18px; border: 1px dashed var(--line-strong); background: linear-gradient(180deg, #fbfdff, #f6fbff); color: var(--muted); text-align: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
@media (max-width: 1220px) {
  .workspace-shell { grid-template-columns: 1fr; }
  .workspace-sidebar { position: static; }
  .hero-grid, .stats-row, .section-grid, .content-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}
@media (max-width: 920px) {
  .workspace-shell { width: min(100% - 20px, 100%); }
  .workspace-topbar, .workspace-sidebar, .hero-main, .hero-preview, .section-card { padding: 20px; }
  .workspace-banner { flex-direction: column; align-items: flex-start; }
  .workspace-topbar { flex-direction: column; align-items: flex-start; }
  .toolbar-actions { justify-content: flex-start; }
  .hero-points, .preview-grid, .feature-grid, .form-grid.two, .form-grid.three, .kv-grid, .mini-stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .toolbar-actions, .header-locale-wrap { width: 100%; align-items: flex-start; }
  .mini-select-wide { width: 100%; max-width: none; }
  .hero-main h2 { font-size: 2rem; max-width: none; }
  .btn { width: 100%; }
  .action-row.compact .btn { width: auto; }
}


.sidebar-note {
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}
.sidebar-note strong { display: block; margin-bottom: 8px; font-size: .95rem; }
.sidebar-note p { margin: 0; color: var(--text-2); line-height: 1.62; font-size: .9rem; }
.sidebar-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.workspace-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.summary-card { padding: 18px 20px; }
.summary-card small { display: block; color: var(--muted); margin-bottom: 10px; }
.summary-card strong { display: block; font-size: 1.2rem; letter-spacing: -.02em; }
.summary-card span { display: block; margin-top: 8px; color: var(--text-2); line-height: 1.55; }
.app-hero-grid { align-items: stretch; }
.app-hero-main { background: linear-gradient(135deg, #103a76 0%, #1866ee 60%, #21c98d 100%); }
.app-hero-preview { display: flex; flex-direction: column; }
.compact-points { grid-template-columns: 1fr; }
.workflow-list { display: grid; gap: 14px; }
.workflow-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.workflow-step:last-child { border-bottom: 0; }
.workflow-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  background: rgba(31,112,255,.10);
  color: var(--brand-dark);
  font-weight: 800;
}
.workflow-step strong { display: block; margin-bottom: 6px; }
.workflow-step p { margin: 0; color: var(--text-2); line-height: 1.7; }
.compact-preview-stack { margin-top: 18px; }
.overview-grid-tight { align-items: start; }
.section-note-card { background: linear-gradient(180deg, #ffffff, #f8fbff); }
.workspace-topbar {
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.98));
}
.workspace-title p { max-width: 62ch; }
.workspace-shell { width: min(1440px, calc(100% - 40px)); gap: 24px; }
.workspace-main { gap: 18px; }
.page-stack { gap: 22px; }
.section-card { padding: 26px; }
.sidebar-brand-copy small { font-size: .78rem; }
@media (max-width: 1220px) {
  .workspace-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .workspace-summary-grid, .sidebar-links { grid-template-columns: 1fr; }
}


@media (max-width: 980px) {
  .workspace-shell { width: calc(100% - 16px); padding-top: 12px; gap: 14px; }
  .workspace-sidebar { padding: 14px; }
  .sidebar-section-label { display: none; }
  .sidebar-nav { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
  .sidebar-nav button { flex: 0 0 auto; min-width: 118px; justify-content: center; white-space: nowrap; }
  .workspace-topbar, .section-card, .hero-main, .hero-preview { padding: 18px; }
  .workspace-title h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .workspace-title p { max-width: none; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .btn { flex: 1 1 0; min-width: 140px; }
  .workspace-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .content-grid, .section-grid, .feature-grid, .preview-grid, .stats-row, .form-grid.two, .form-grid.three, .kv-grid, .mini-stats { grid-template-columns: 1fr; }
  .row-between, .preview-row, .kv-card > div, .kv-wide > div, .progress-shell { flex-direction: column; align-items: flex-start; }
  .progress-bar { width: 100%; }
  .action-row .btn, .sidebar-links .btn { flex: 1 1 calc(50% - 10px); min-width: 140px; }
  .workflow-step { grid-template-columns: 42px minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%); }
  .workspace-shell { width: calc(100% - 12px); gap: 12px; padding-bottom: 18px; }
  .workspace-sidebar, .workspace-topbar, .section-card, .hero-main, .hero-preview, .summary-card { border-radius: 20px; }
  .sidebar-brand { gap: 12px; padding-bottom: 12px; }
  .sidebar-brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .sidebar-brand-copy small { display: none; }
  .sidebar-note { padding: 14px; }
  .sidebar-nav button { min-height: 44px; min-width: max-content; padding: 0 14px; }
  .workspace-topbar { gap: 14px; }
  .workspace-kicker { min-height: 26px; padding: 0 10px; font-size: .78rem; }
  .toolbar-actions .btn, .action-row .btn, .sidebar-links .btn, .option-row .toggle, .btn { width: 100%; flex: 1 1 100%; }
  .header-locale-wrap, .header-locale-wrap .field, .mini-select-wide { width: 100%; max-width: none; }
  .workspace-summary-grid { grid-template-columns: 1fr; }
  .summary-card { padding: 16px; }
  .hero-main h2 { font-size: 1.75rem; line-height: 1.06; }
  .hero-main > p, .point-card span, .body-copy, .section-head p, .list-item p, .notice-box { line-height: 1.64; }
  .point-card, .metric-card, .stats-card, .feature-card, .kv-card, .list-item, .mini-stats > div, .bridge-source, .notice-box, .empty-box, .toggle, .section-soft { border-radius: 16px; }
  .section-card, .hero-main, .hero-preview, .workspace-topbar { padding: 16px; }
  .field { min-height: 44px; padding: 11px 13px; }
  .textarea { min-height: 104px; }
  .readonly-text { min-height: 136px; }
  .video-shell { border-radius: 18px; }
  .list-item, .bridge-source, .empty-box { padding: 14px; }
  .action-row.compact .btn { width: 100%; }
  .mini-meta { gap: 8px; }
}

.workspace-main-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.workspace-utility-rail {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.utility-card { padding: 20px; }
.utility-list { gap: 10px; }
.utility-subhead { margin-top: 12px; }
.utility-note-card { background: linear-gradient(180deg, #ffffff, #f7fbff); }
.helper-copy { color: var(--text-2); line-height: 1.68; }
.segmented-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.segmented-actions .btn { min-height: 40px; padding: 8px 12px; }
.segmented-actions .btn.is-selected {
  border-color: rgba(31,112,255,.24);
  box-shadow: inset 0 0 0 1px rgba(31,112,255,.10);
}
.recent-playlist-list .list-item { padding: 12px 14px; }
.player-grid-theater { grid-template-columns: minmax(0, 1fr); }
.player-grid-focus { grid-template-columns: minmax(0, 1fr); }
.player-grid-theater .player-side-card,
.player-grid-focus .player-side-card { display: none; }
.workspace-shell[data-shell-mode="theater"] .workspace-main-shell {
  grid-template-columns: minmax(0, 1fr);
}
.workspace-shell[data-shell-mode="theater"] .workspace-utility-rail,
.workspace-shell[data-shell-mode="theater"] .workspace-summary-grid {
  display: none;
}
.workspace-shell[data-shell-mode="theater"] .workspace-sidebar {
  width: 86px;
  padding: 12px;
}
.workspace-shell[data-shell-mode="theater"] .sidebar-brand-copy,
.workspace-shell[data-shell-mode="theater"] .sidebar-footer,
.workspace-shell[data-shell-mode="theater"] .sidebar-section-label {
  display: none;
}
.workspace-shell[data-shell-mode="theater"] .sidebar-nav {
  display: flex;
  flex-direction: column;
}
.workspace-shell[data-shell-mode="theater"] .sidebar-nav button {
  justify-content: center;
  padding: 0;
  min-height: 44px;
}
.workspace-shell[data-shell-mode="focus"] {
  grid-template-columns: minmax(0, 1fr);
}
.workspace-shell[data-shell-mode="focus"] .workspace-sidebar,
.workspace-shell[data-shell-mode="focus"] .workspace-summary-grid,
.workspace-shell[data-shell-mode="focus"] .workspace-utility-rail {
  display: none;
}
.workspace-shell[data-shell-mode="focus"] .workspace-main-shell {
  grid-template-columns: minmax(0, 1fr);
}
.workspace-shell[data-shell-mode="focus"] .workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
}
@media (max-width: 1220px) {
  .workspace-main-shell { grid-template-columns: 1fr; }
  .workspace-utility-rail { position: static; }
}
@media (max-width: 720px) {
  .segmented-actions { grid-template-columns: 1fr; }
  .utility-card { padding: 16px; }
}


.issue-protocol-panel { gap: 20px; }
.issue-card { border: 1px solid rgba(148,163,184,.22); border-radius: 20px; padding: 18px; background: rgba(15,23,42,.03); display: flex; flex-direction: column; gap: 12px; }
.issue-card-top { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.issue-card h3 { margin: 0; font-size: 1.05rem; }
.issue-card p { margin: 0; color: var(--text-soft); }
.issue-actions { gap: 10px; flex-wrap: wrap; }
