:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --ink: #111111;
  --muted: #6e6e73;
  --line: #e5e5e7;
  --blue: #0071e3;
  --blue-dark: #0058b8;
  --blue-soft: #eef6ff;
  --black: #050505;
  --green-soft: #edfdf4;
  --orange-soft: #fff7ed;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
  min-height: 54px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.top-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1d1d1f;
  padding: 8px 14px;
}

.tab:hover,
.tab.active {
  background: #111;
  color: #fff;
}

.shop-link {
  justify-self: end;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.hero-strip {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 30px 24px 16px;
}

.hero-strip h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
}

.hero-strip p:last-child {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.app {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  max-width: 1280px;
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 14px 24px 24px;
}

.view {
  display: none;
}

.view.active {
  display: grid;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.controls {
  position: sticky;
  top: 74px;
  height: calc(100vh - 92px);
  overflow: auto;
  padding: 18px;
}

.brand,
.toolbar,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 20px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 16px;
}

.status {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.status.dark {
  background: #111;
  color: #fff;
}

.block {
  padding: 10px 0 14px;
}

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

.section-title h2 {
  font-size: 15px;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.section-title span.ok {
  color: #0a7a38;
}

.section-title span.loading {
  color: var(--blue);
}

.section-title span.error {
  color: #b42318;
}

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

.field-grid .wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 0;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid #cfd6e2;
  border-radius: 10px;
  background: #fbfbfd;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 9px 10px;
  outline: none;
}

textarea {
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 99, 235, 0.12);
}

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

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
  font-weight: 700;
}

.check input {
  width: 16px;
  height: 16px;
}

.wide-btn {
  width: 100%;
  margin-top: 10px;
}

.wide-btn.secondary {
  border-color: var(--line);
  background: #fff;
  color: #111;
}

.wide-btn.secondary:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

.safe-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workspace {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.toolbar {
  min-height: 72px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.dark-toolbar {
  background: #111;
  color: #fff;
  border-color: #111;
}

.dark-toolbar .eyebrow {
  color: #7ab7ff;
}

.actions,
.card-head {
  display: flex;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

button {
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 9px 12px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.action-link:hover {
  background: #2b2b2b;
}

button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

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

button.ghost,
.card-head button {
  background: #fff;
  color: var(--blue);
}

button.ghost:hover,
.card-head button:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

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

.compact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
}

.workspace .panel {
  padding: 18px;
}

.ai-status {
  margin: -4px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ai-status.ok {
  color: #0a7a38;
  font-weight: 700;
}

.ai-status.loading {
  color: var(--blue);
  font-weight: 700;
}

.ai-status.error {
  color: #b42318;
  font-weight: 700;
}

.card-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.output-list,
.script,
.check-output,
.timeline,
.copy-box,
.big-output,
.mini-plan {
  padding-top: 12px;
}

.pill-list {
  display: grid;
  gap: 10px;
}

.pill {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcff;
  line-height: 1.55;
}

.copy-box {
  line-height: 1.7;
}

.point-title {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--blue);
}

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

.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.step h4 {
  margin: 0;
  padding: 10px 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
}

.step .inner {
  display: grid;
  gap: 9px;
  padding: 12px;
  line-height: 1.55;
}

.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.script-lines {
  counter-reset: script-line;
  display: grid;
  gap: 8px;
}

.script-polish-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.script-polish-box textarea {
  min-height: 82px;
  resize: vertical;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.script-editor {
  min-height: 420px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: #fbfbfd;
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.75;
  white-space: pre-wrap;
}

.script-editor:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.line {
  counter-increment: script-line;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfd;
  line-height: 1.55;
}

.line::before {
  content: counter(script-line);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.local-text {
  display: block;
  color: #1d1d1f;
  font-weight: 750;
}

.cn-text {
  display: block;
  grid-column: 2;
  margin-top: -4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.big-output {
  min-height: 74px;
  padding: 14px;
  border-radius: 14px;
  background: #f5f5f7;
  border: 1px solid var(--line);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-line;
}

.editable,
[contenteditable="true"] {
  outline: none;
}

.editable:focus,
[contenteditable="true"]:focus {
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.hashtag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.hashtag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}

.cn-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mini-plan {
  display: grid;
  gap: 8px;
}

.plan-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfd;
  line-height: 1.5;
}

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

.analysis-output {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111;
  color: #fff;
}

.stat-card span {
  color: #a1a1a6;
  font-size: 12px;
  font-weight: 800;
}

.stat-card strong {
  align-self: end;
  font-size: 20px;
  line-height: 1.2;
}

.analysis-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfd;
}

.analysis-section h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.analysis-section p {
  margin: 0;
  color: #2f2f32;
  line-height: 1.7;
}

.analysis-section .tip {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0f7ff;
  color: #17446f;
  font-weight: 700;
}

.account-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.account-mini {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
  color: var(--ink);
  text-decoration: none;
}

.account-mini strong {
  font-size: 13px;
}

.account-mini span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.category-bars {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}

.bar-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.empty-state {
  padding: 18px;
  border: 1px dashed #cfd6e2;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.rule-list {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.rule-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfd;
  line-height: 1.45;
}

.rule-list strong {
  color: var(--blue);
}

.rule-list span {
  color: #344054;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
}

.matrix-account-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfd;
}

.matrix-account-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.matrix-account-card header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.matrix-account-card a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.matrix-account-card header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.matrix-account-card p,
.matrix-account-card small {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.matrix-account-card small {
  color: var(--muted);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
}

.template-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfd;
}

.template-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.template-card header strong {
  font-size: 16px;
}

.template-card header span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.template-card p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.6;
}

.template-bars {
  display: grid;
  gap: 8px;
}

.category-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 14px;
}

.category-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfd;
}

.category-section > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.category-section > header div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-section > header strong {
  font-size: 16px;
}

.category-section > header span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.category-section > header small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.quick-filter-row {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

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

.filter-group button {
  border-color: var(--line);
  background: #fff;
  color: #344054;
  padding: 7px 10px;
}

.filter-group button.active,
.filter-group button:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.voice-split {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.voice-split span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

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

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.video-card .cover {
  position: relative;
  display: block;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  background: #eef1f5;
  color: #667085;
  text-decoration: none;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 10px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.video-card-body {
  display: grid;
  gap: 5px;
  padding: 9px;
}

.video-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #1d1d1f;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card-body span,
.video-card-body small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.rule-list p {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.copy-country-grid,
.copy-library-grid {
  display: grid;
  gap: 12px;
}

.copy-country-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.copy-country-card,
.copy-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfd;
}

.copy-country-card header,
.copy-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.copy-country-card header {
  display: grid;
}

.copy-country-card strong,
.copy-card strong {
  font-size: 16px;
}

.copy-country-card span,
.copy-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.copy-country-card p,
.copy-card p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.copy-card ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.copy-card li {
  color: #101828;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.copy-card li span {
  display: block;
}

.copy-card li small,
.copy-translation-list small,
.copy-tag-list small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.copy-translation-list {
  display: grid;
  gap: 7px;
}

.copy-translation-list b,
.copy-tag-list b {
  color: #101828;
  font-size: 13px;
}

.copy-translation-list p {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.copy-translation-list span {
  display: block;
  color: #101828;
  font-weight: 900;
}

.copy-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.copy-tag-list span {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font-size: 12px;
  font-weight: 900;
}

.copy-tag-list small {
  margin-top: 0;
  white-space: nowrap;
}

.copy-card header button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-color: var(--blue);
  background: #fff;
  color: var(--blue);
}

.copy-card-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.copy-polish-output {
  display: grid;
  gap: 12px;
}

.copy-polish-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--blue);
  border-radius: 14px;
  background: #f7fbff;
}

.copy-polish-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.copy-polish-card h4 {
  margin: 0;
  color: var(--blue);
  font-size: 14px;
}

.copy-polish-card ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.copy-polish-card li {
  color: #101828;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.copy-polish-card p,
.copy-polish-card small {
  margin: 0;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.video-table {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.video-table-head,
.video-row {
  display: grid;
  grid-template-columns: 140px 88px 70px 70px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.video-table-head {
  padding: 0 10px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.video-row {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfd;
  font-size: 13px;
}

.video-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.video-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.video-row b,
.video-row em {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.video-row em {
  background: #f4f4f5;
  color: #344054;
}

.video-row a {
  overflow: hidden;
  color: #1d1d1f;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-row strong {
  color: var(--blue);
}

.check-output {
  display: grid;
  gap: 8px;
}

.check-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  line-height: 1.5;
}

.box {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  border: 1px solid #98a2b3;
  border-radius: 4px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .site-top {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 12px 16px;
  }

  .top-tabs {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .shop-link {
    justify-self: end;
  }

  .hero-strip {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    padding: 22px 14px 8px;
  }

  .app {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 14px 18px;
  }

  .controls {
    position: static;
    height: auto;
    padding: 14px;
  }

  .compact-grid,
  .grid.two,
  .timeline,
  .stats-grid,
  .matrix-grid,
  .template-grid,
  .category-library,
  .video-card-grid,
  .copy-country-grid,
  .copy-library-grid,
  .video-table-head,
  .video-row {
    grid-template-columns: 1fr;
  }

  .video-table-head {
    display: none;
  }
}

@media (max-width: 460px) {
  .app {
    padding: 10px;
  }

  .toolbar,
  .brand,
  .card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    gap: 8px;
  }

  .actions {
    width: 100%;
  }

  .actions button {
    flex: 1;
  }

  .field-grid,
  .toggle-list,
  .tag-grid {
    grid-template-columns: 1fr;
  }

  .card-head button,
  .mini-actions {
    width: 100%;
  }

  .mini-actions button {
    flex: 1;
  }
}
