/* ==========================================================================
   KAIJING / DESK — soft 3D product shell
   Porcelain surfaces, floating panels, pastel gradients, tactile controls.
   ========================================================================== */

[hidden] { display: none !important; }

.app-body {
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

/* ------------------------------- shell ---------------------------------- */
.sidebar {
  width: 252px;
  padding: 20px 16px 16px;
  background: rgba(255, 255, 255, 0.66);
  border-right: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 18px 0 50px -42px rgba(58, 45, 104, 0.32);
  backdrop-filter: blur(22px) saturate(1.1);
}
.sidebar-top .brand { margin-bottom: 20px; }
.brand-mark,
.brand img,
.boot-mark img {
  border-radius: 14px !important;
  box-shadow: 0 8px 18px -8px rgba(33, 29, 51, 0.4) !important;
}
.workspace {
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #fbf9ff);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}
.workspace:hover { border-color: #fff; box-shadow: var(--shadow-md), var(--shadow-inset); }
.workspace-avatar {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ffe2d8, #ffd3e1);
  color: var(--accent-deep);
  font-size: 11px;
  box-shadow: inset 0 1px 0 #fff;
}
.side-nav { margin-top: 16px; }
.nav-group-label {
  margin: 16px 0 7px;
  padding-left: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
}
.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 2px 0;
  padding: 7px 10px;
  border-radius: 13px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 520;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.35s var(--spring);
}
.side-nav a:hover {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  transform: translateX(2px);
  box-shadow: var(--shadow-xs);
}
.side-nav a.is-active {
  background: linear-gradient(135deg, #fff4f0, #ffe8ef) !important;
  color: var(--accent-deep) !important;
  box-shadow: 0 8px 18px -12px rgba(255, 107, 87, 0.45), inset 0 1px 0 #fff;
  border-radius: 13px !important;
}
.side-nav a.is-active svg { color: var(--accent); }
.nav-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
}
.nav-icon,
.nav-icon-active {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.nav-icon-active { display: none; }
.side-nav a.is-active .nav-icon { display: none; }
.side-nav a.is-active .nav-icon-active { display: block; }
.side-nav a.is-active { color: var(--accent-deep) !important; }
.side-nav a em.nav-badge {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid rgba(72, 60, 112, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  color: var(--ink-3) !important;
  box-shadow: var(--shadow-xs);
}
.side-nav a em.nav-count {
  margin-left: auto;
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 8px;
}
.sidebar-foot { border-top: 0; padding-top: 10px; }
.engine-card {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f8f6ff);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}
.engine-card:hover { border-color: #fff; box-shadow: var(--shadow-md), var(--shadow-inset); }
.engine-card p { font-size: 9px; }
.engine-dot { background: var(--sage); box-shadow: 0 0 0 4px rgba(93, 199, 171, 0.14); }
.engine-dot.is-ai { background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.14); }
.user-card {
  padding: 12px 8px 0;
  border-radius: 16px;
  background: transparent;
  border: 0;
}
.user-card .avatar { border-radius: 11px; }

.app-content { margin-left: 252px; }
.topbar {
  height: 72px;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 40px -38px rgba(58, 45, 104, 0.4);
  backdrop-filter: blur(22px) saturate(1.1);
}
.crumb { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em; color: var(--ink-4); }
.crumb b { color: var(--ink); font-weight: 600; }
.search-trigger {
  height: 38px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-xs), var(--shadow-inset);
  font-size: 11px;
}
.search-trigger:hover { border-color: #fff; background: #fff; box-shadow: var(--shadow-sm); }
.search-trigger kbd {
  border-radius: 7px;
  border: 1px solid rgba(72, 60, 112, 0.08);
  background: var(--surface-3);
}
.engine-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-xs), var(--shadow-inset);
  font-size: 9px;
}
.avatar-btn {
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  border: 2px solid #fff;
}

.app-view { padding: 32px clamp(22px, 3vw, 46px) 64px; max-width: 1540px; }

/* ------------------------------- typography ------------------------------ */
.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: 0;
}
.view-head h1,
.page-head h1,
.plan-hero h1,
.plan-section-head h2,
.call-sheet h3,
.aside-block h3,
.p-h3 {
  font-family: var(--font-display);
  font-weight: 780;
  letter-spacing: -0.05em;
}
.page-head h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  margin: 8px 0 0;
}
.title-rule {
  display: inline-block;
  width: 34px;
  height: 5px;
  margin-left: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffad8c, #ff6b57);
  vertical-align: 14px;
}
.page-head .page-desc {
  max-width: 620px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
}
.page-kicker { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; color: var(--ink-4); }
.view-head h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.02; margin: 5px 0 0; }
.view-head p { max-width: 580px; margin-top: 8px; font-size: 12px; line-height: 1.75; color: var(--ink-3); }
.view-head .mono-label { font-size: 8px; letter-spacing: 0.14em; color: var(--ink-4); }
.head-count {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  vertical-align: 8px;
}
.kpi-card b,
.kpi-value,
.metric-value,
.ledger-number { font-family: var(--font-display); font-weight: 780; }

/* ------------------------------- controls -------------------------------- */
.btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}
.btn:hover {
  border-color: #fff;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-inset);
}
.btn-primary {
  background: linear-gradient(135deg, #ff9678 0%, #ff6b57 48%, #f65b72 100%);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.btn-primary:hover { background: linear-gradient(135deg, #ffa489, #ff735e 48%, #fa6479); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.6); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 10px; }
.btn-arrow { display: inline-flex; align-items: center; margin-left: 8px; }
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-xs);
}
.icon-btn:hover { border-color: #fff; background: #fff; box-shadow: var(--shadow-sm); }
.select-brand {
  position: relative;
}
.select-brand > .select {
  padding-left: 44px;
}
.select-brand > .brand-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  transform: translateY(-50%);
  pointer-events: none;
}
.input,
.select,
.textarea,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
  border: 1px solid rgba(72, 60, 112, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 2px rgba(58, 45, 104, 0.04);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.input:focus,
.select:focus,
.textarea:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 107, 87, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.1), inset 0 1px 2px rgba(58, 45, 104, 0.03);
}
.segmented {
  padding: 4px;
  border-color: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-xs), var(--shadow-inset);
}
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-weight: 550;
}
.segmented button .brand-icon-sm { width: 14px; height: 14px; border-radius: 4px; }
.segmented button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.hotspot-platform {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px 4px 5px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-xs);
}
.hotspot-platform .brand-icon-sm { width: 14px; height: 14px; border-radius: 4px; box-shadow: none; }
.meta-brand { display: inline-flex; align-items: center; gap: 4px; }
.meta-brand .brand-icon-sm { width: 13px; height: 13px; border-radius: 4px; box-shadow: none; }
.tag {

  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 620;
  letter-spacing: 0;
  box-shadow: var(--shadow-xs) !important;
}
.tag.is-accent { border-color: rgba(255, 107, 87, 0.18); color: var(--accent-deep); background: var(--accent-soft) !important; }
.tag.is-sage { border-color: rgba(47, 156, 130, 0.16); color: var(--sage-deep); background: var(--sage-soft) !important; }
.stamp,
.status-pill { border-radius: 999px; }

/* ------------------------------- surfaces -------------------------------- */
.panel,
.kpi-card,
.shoot-card,
.engine-panel,
.hotspot-panel,
.activity-panel,
.recent-panel,
.form-card,
.plan-section,
.call-sheet,
.aside-block,
.work-card,
.analysis-card,
.phone-preview,
.empty,
.plan-hero,
.concept-box,
.direction-cell,
.hook-card,
.shot-card,
.phase-card,
.publish-field,
.compliance-item {
  border: 1px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 24px !important;
  background: linear-gradient(165deg, #ffffff 0%, #fbfaff 100%);
  box-shadow: var(--shadow-sm), var(--shadow-inset) !important;
}
.panel,
.kpi-card,
.engine-panel,
.hotspot-panel,
.activity-panel,
.recent-panel,
.form-card,
.plan-section,
.call-sheet,
.aside-block,
.work-card,
.analysis-card,
.phone-preview,
.empty,
.plan-hero,
.concept-box,
.direction-cell,
.hook-card,
.shot-card,
.phase-card,
.publish-field,
.compliance-item {
  box-shadow: var(--shadow-sm), var(--shadow-inset) !important;
}
.shoot-card {
  background:
    radial-gradient(440px 320px at 82% 42%, rgba(255, 212, 198, 0.9), rgba(255, 212, 198, 0) 68%),
    radial-gradient(380px 300px at 100% 100%, rgba(215, 207, 255, 0.7), rgba(215, 207, 255, 0) 68%),
    linear-gradient(150deg, #fffdfc, #fff3ef 55%, #f8f3ff) !important;
}
.shoot-card .shoot-art { border-radius: 22px; }
.engine-panel { background: linear-gradient(160deg, #fff, #f7f5ff) !important; }
.hotspot-panel,
.activity-panel,
.recent-panel { background: linear-gradient(160deg, #fff, #fbfaff) !important; }
.panel-head,
.section-head,
.plan-section-head { border-bottom-color: rgba(72, 60, 112, 0.07); }
.concept-box { background: linear-gradient(160deg, #fff, #f7f4ff) !important; }
.hook-card:hover,
.work-card:hover,
.shot-card:hover {
  border-color: #fff !important;
  box-shadow: var(--shadow-md), var(--shadow-inset) !important;
  transform: translateY(-3px) !important;
}
.plan-hero { overflow: hidden; border-radius: 30px !important; }
.plan-hero::after { background: linear-gradient(180deg, rgba(33, 29, 51, 0.02), rgba(33, 29, 51, 0.72)) !important; }
.plan-hero h1 { font-size: clamp(36px, 4.5vw, 62px); line-height: 1; }
.plan-hero .tag,
.plan-hero .tag.is-accent,
.plan-hero .tag.is-sage {
  border-color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow-xs) !important;
}
.plan-hero-inner { padding: 28px; }
.plan-hero-meta { border-top: 1px solid rgba(255, 255, 255, 0.28); }
.plan-nav {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-xs), var(--shadow-inset);
  padding: 4px;
}
.plan-nav a {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
}
.plan-nav a.is-active {
  background: linear-gradient(135deg, #2f2942, #4d416d);
  color: #fff;
  box-shadow: var(--shadow-sm);
  border: 0;
}
.call-sheet-date b { font-family: var(--font-display); font-weight: 780; }
.call-sheet-row { border-bottom-color: rgba(72, 60, 112, 0.07); }
.progress,
.progress-bar { border-radius: 999px; background: rgba(72, 60, 112, 0.08); }
.progress > i,
.progress-bar > i { border-radius: 999px; background: linear-gradient(90deg, #ff9d7e, #ff6b57); }

/* ------------------------------- overview -------------------------------- */
.kpi-grid { gap: 14px; border: 0; margin-bottom: 20px; }
.kpi,
.kpi-card {
  border: 1px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 22px !important;
  background: linear-gradient(160deg, #ffffff, #fbf9ff) !important;
  box-shadow: var(--shadow-sm), var(--shadow-inset) !important;
  padding: 16px 18px !important;
  transition: transform 0.45s var(--spring), box-shadow 0.45s var(--ease);
}
.kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), var(--shadow-inset) !important; }
.kpi:first-child { border-left: 1px solid rgba(255, 255, 255, 0.94) !important; }
.kpi-value { font-family: var(--font-display); font-weight: 780; letter-spacing: -0.05em; }
.kpi-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 11px !important;
  background: linear-gradient(135deg, #fff0ea, #ffe3ee) !important;
  color: var(--accent-deep);
  box-shadow: var(--shadow-xs), inset 0 1px 0 #fff;
}
.kpi-icon svg { width: 15px; height: 15px; }
.kpi-label { font-family: var(--font-sans); font-size: 9px; letter-spacing: 0; color: var(--ink-3); }
.kpi-delta { font-size: 8.5px; color: var(--ink-4); }

/* ------------------------------- channel board --------------------------- */
.channel-board {
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  background: linear-gradient(165deg, #fff, #fbfaff);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  overflow: hidden;
}
.channel-tabs {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid rgba(72, 60, 112, 0.06);
  background: rgba(246, 243, 255, 0.7);
}
.channel-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.channel-tab .brand-icon { width: 22px; height: 22px; border-radius: 7px; }
.channel-tab b { font-family: var(--font-display); font-size: 15px; font-weight: 720; }
.channel-tab em { font-style: normal; font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); }
.channel-tab .mono { font-size: 7px; }
.channel-tab:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.channel-tab.is-active {
  background: #fff;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
}
.channel-tab.is-active .mono,
.channel-tab.is-active em { color: var(--accent-deep); }
.channel-panel { display: none; padding: 22px; }
.channel-panel.is-active { display: block; }
.channel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.channel-head h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -0.04em;
}
.channel-head h3.channel-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-stack {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 10px 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-xs);
}
.brand-stack .brand-icon { margin-right: -3px; box-shadow: 0 0 0 1.5px #fff; }
.brand-stack .brand-icon:last-of-type { margin-right: 3px; }
.brand-stack em { font-style: normal; font-size: 9px; font-weight: 600; color: var(--ink-3); }
.channel-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr); gap: 24px; }
.channel-form { display: flex; flex-direction: column; gap: 12px; }
.channel-field > span {
  display: block;
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-4);
}
.channel-field input,
.channel-field textarea,
.channel-field select {
  width: 100%;
  border: 1px solid rgba(72, 60, 112, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.65;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(58, 45, 104, 0.03);
}
.channel-field input:focus,
.channel-field textarea:focus,
.channel-field select:focus {
  border-color: rgba(255, 107, 87, 0.4);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.09);
}
.channel-field textarea { resize: vertical; min-height: 92px; }
.channel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.channel-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding-top: 4px; }
.channel-saved { font-family: var(--font-mono); font-size: 8px; color: var(--ink-4); }
.channel-metrics { border-top: 1px solid rgba(72, 60, 112, 0.07); padding-top: 12px; margin-top: 2px; }
.channel-metrics summary { font-size: 10px; font-weight: 550; color: var(--ink-3); cursor: pointer; display: flex; align-items: center; gap: 5px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.metric-grid label span { display: block; font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); margin-bottom: 3px; }
.metric-grid input {
  width: 100%;
  border: 1px solid rgba(72, 60, 112, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
}
.channel-metrics > .btn { margin-top: 10px; }
.channel-preview { min-width: 0; }
.platform-frame {
  position: relative;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 26px;
  background: var(--paper-2);
  box-shadow: var(--shadow-md);
}
.platform-frame.ratio-3-4 { aspect-ratio: 3 / 4; max-width: 300px; }
.platform-frame.ratio-9-16 { aspect-ratio: 9 / 16; max-width: 220px; }
.platform-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02); }
.platform-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,29,51,0.02) 30%, rgba(33,29,51,0.72)); }
.platform-cover-text {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 16px;
  max-width: 82%;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 760;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.035em;
}
.platform-ui { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; color: #fff; }
.platform-ui .mono { color: rgba(255, 255, 255, 0.62); font-size: 7px; }
.platform-ui b { display: block; margin-top: 4px; font-size: 11px; line-height: 1.45; font-weight: 600; }
.platform-ui p { margin: 4px 0 0; font-size: 9px; line-height: 1.55; color: rgba(255, 255, 255, 0.74); }
.platform-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.platform-tags span { font-size: 8px; color: rgba(255, 255, 255, 0.76); }
.channel-rule { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(72, 60, 112, 0.07); }
.channel-rule b { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.08em; color: var(--ink-4); font-weight: 400; }
.channel-rule p { margin: 5px 0 0; font-size: 10px; line-height: 1.65; color: var(--ink-3); }
.channel-rule p.mono { font-size: 7.5px; color: var(--ink-4); }

/* ------------------------------- calendar -------------------------------- */
.calendar-toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.calendar-month { display: flex; align-items: center; gap: 9px; }
.calendar-month b { font-family: var(--font-display); font-size: 26px; font-weight: 760; letter-spacing: -0.04em; min-width: 130px; text-align: center; }
.calendar-filter { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 999px; background: rgba(255, 255, 255, 0.58); box-shadow: var(--shadow-xs); }
.calendar-filter a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 7px; border-radius: 999px; font-size: 10px; color: var(--ink-3); }
.calendar-filter a .brand-icon { width: 15px; height: 15px; border-radius: 4px; }
.calendar-filter a em { font-style: normal; font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); }
.calendar-filter a.is-active { color: var(--ink); background: #fff; box-shadow: var(--shadow-xs); }
.calendar-toolbar > .btn { margin-left: auto; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.calendar-board {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-md), var(--shadow-inset);
}
.calendar-week { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid rgba(72, 60, 112, 0.07); background: rgba(249, 247, 255, 0.7); }
.calendar-week span { padding: 10px 12px; font-size: 9px; font-weight: 600; color: var(--ink-4); border-left: 1px solid rgba(72, 60, 112, 0.05); }
.calendar-week span:first-child { border-left: 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-cell { min-height: 112px; padding: 8px; border-left: 1px solid rgba(72, 60, 112, 0.05); border-top: 1px solid rgba(72, 60, 112, 0.05); background: rgba(255, 255, 255, 0.35); transition: background 0.25s var(--ease); }
.calendar-cell:hover { background: rgba(255, 255, 255, 0.86); }
.calendar-cell:nth-child(7n+1) { border-left: 0; }
.calendar-cell:nth-child(-n+7) { border-top: 0; }
.calendar-cell.is-empty { background: rgba(247, 244, 255, 0.55); }
.calendar-cell.is-today { background: linear-gradient(160deg, #fff8f5, #ffeee9); }
.calendar-day { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin-bottom: 5px; }
.calendar-day span { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1; }
.calendar-day em { font-style: normal; font-family: var(--font-mono); font-size: 6.5px; color: var(--ink-4); }
.calendar-item {
  display: block;
  margin-top: 5px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-xs);
}
.calendar-item b { display: inline-flex; align-items: center; gap: 3px; margin-right: 4px; font-family: var(--font-mono); font-size: 6.5px; font-weight: 500; letter-spacing: 0.03em; }
.calendar-item b .brand-icon { width: 12px; height: 12px; border-radius: 3px; }
.calendar-item span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 8.5px; color: var(--ink-3); }
.calendar-item em { display: block; margin-top: 1px; font-style: normal; font-family: var(--font-mono); font-size: 6.5px; color: var(--ink-4); }
.calendar-item:hover span { color: var(--accent-deep); }
.calendar-item.ch-xiaohongshu { border-left-color: #ff6b57; }
.calendar-item.ch-douyin { border-left-color: #2d2940; }
.calendar-item.ch-kuaishou { border-left-color: #f2a24d; }
.calendar-more { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); }
.calendar-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  background: linear-gradient(165deg, #fff, #fbfaff);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}
.calendar-note { padding: 16px; border-bottom: 1px solid rgba(72, 60, 112, 0.06); }
.calendar-note:last-child { border-bottom: 0; }
.calendar-count { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-bottom: 1px solid rgba(72, 60, 112, 0.05); font-size: 10px; }
.calendar-count .brand-icon { width: 16px; height: 16px; border-radius: 5px; }
.calendar-count:last-child { border-bottom: 0; }
.calendar-count b { font-weight: 600; }
.calendar-count em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 8px; color: var(--ink-4); }
.ch-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ch-dot.ch-xiaohongshu { background: #ff6b57; }
.ch-dot.ch-douyin { background: #2d2940; }
.ch-dot.ch-kuaishou { background: #f2a24d; }
.calendar-next { display: block; padding: 9px 0; border-bottom: 1px solid rgba(72, 60, 112, 0.05); }
.calendar-next:last-child { border-bottom: 0; }
.calendar-next span { display: block; font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); }
.calendar-next b { display: block; margin-top: 2px; font-size: 9.5px; font-weight: 600; line-height: 1.5; }
.calendar-next:hover b { color: var(--accent-deep); }
.calendar-empty,
.calendar-small { margin: 7px 0 0; font-size: 10px; line-height: 1.7; color: var(--ink-3); }

.panel-head h3 { font-family: var(--font-display); font-weight: 740; }
.work-card,
.analysis-card { border-radius: 22px; }

/* ------------------------------- creator toolbox -------------------------- */
/* ------------------------------ studio asset picker ------------------------ */
.studio-asset-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 7px; }
.studio-asset-item { position: relative; display: block; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; cursor: pointer; }
.studio-asset-item input { position: absolute; opacity: 0; pointer-events: none; }
.studio-asset-item img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.studio-asset-item span { display: block; overflow: hidden; padding: 6px 7px 0; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.studio-asset-item em { display: block; padding: 2px 7px 6px; font-family: var(--font-mono); font-size: 6.5px; font-style: normal; color: var(--ink-4); }
.studio-asset-item:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,107,87,.12); }
.studio-asset-item:has(input:checked)::after { content: "✓"; position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 8px; }
@media (max-width: 700px) { .studio-asset-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------ asset library ------------------------------ */
.asset-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 14px 0; padding: 12px 16px; border: 1px solid rgba(255,255,255,.94); border-radius: 16px; background: rgba(255,255,255,.62); font-size: 9px; color: var(--ink-4); }
.asset-summary b { color: var(--ink-2); font-size: 11px; }
.asset-upload-card { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1.5px dashed rgba(255,107,87,.28); border-radius: 22px; background: linear-gradient(120deg, rgba(255,241,235,.7), rgba(247,244,255,.6)); transition: background .2s, border-color .2s; }
.asset-upload-card.is-dragging { border-color: var(--accent); background: var(--accent-wash); }
.asset-upload-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 16px; background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }
.asset-upload-icon .icon { width: 22px; height: 22px; }
.asset-upload-copy { flex: 1; min-width: 0; }
.asset-upload-copy h2 { margin: 0; font-family: var(--font-display); font-size: 19px; letter-spacing: -.03em; }
.asset-upload-copy p { margin: 5px 0 0; font-size: 9px; line-height: 1.6; color: var(--ink-4); }
.asset-upload-status { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 9px; color: var(--ink-3); }
.asset-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.asset-toolbar .segmented { flex-wrap: wrap; }
.asset-count { flex: none; font-family: var(--font-mono); font-size: 8px; color: var(--ink-4); }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.asset-card { overflow: hidden; border: 1px solid rgba(255,255,255,.94); border-radius: 20px; background: linear-gradient(165deg,#fff,#fbfaff); box-shadow: var(--shadow-sm); }
.asset-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.asset-card:hover .asset-thumb img { transform: scale(1.04); }
.asset-thumb.is-video img { filter: saturate(.9); }
.asset-type { position: absolute; left: 9px; top: 9px; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 7px; color: var(--ink-2); backdrop-filter: blur(10px); }
.asset-duration { position: absolute; right: 9px; bottom: 9px; padding: 3px 6px; border-radius: 7px; background: rgba(29,30,26,.7); font-family: var(--font-mono); font-size: 7px; color: #fff; }
.asset-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.asset-play .icon { width: 28px; height: 28px; padding: 9px; border-radius: 999px; background: rgba(29,30,26,.35); backdrop-filter: blur(10px); }
.asset-body { padding: 12px; }
.asset-body h3 { margin: 0; overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.asset-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 27px; margin: 5px 0 0; overflow: hidden; font-size: 8.5px; line-height: 1.55; color: var(--ink-4); }
.asset-vision-line { display: flex; align-items: flex-start; gap: 4px; margin-top: 6px; font-size: 8px; line-height: 1.45; color: var(--accent-deep); }
.asset-vision-line .icon, .asset-vision-line .spinner { width: 11px; height: 11px; flex: none; margin-top: 1px; }
.asset-vision-line.is-busy { color: var(--ink-4); }
.asset-vision-line.is-error { color: var(--danger); }
.asset-meta { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); }
.asset-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.asset-actions .btn { flex: 0 1 auto; min-height: 28px; padding: 0 7px; font-size: 7.5px; }
.asset-actions .icon-btn { width: 28px; height: 28px; flex: none; }
@media (max-width: 1180px) { .asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .asset-upload-card { flex-wrap: wrap; align-items: flex-start; padding: 15px; }
  .asset-upload-copy { flex-basis: calc(100% - 70px); }
  .asset-upload-card > .btn { margin-left: 64px; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-toolbar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 460px) {
  .asset-grid { grid-template-columns: 1fr; }
  .asset-upload-card > .btn { margin-left: 0; width: 100%; }
}

/* ------------------------------ analyze upload ------------------------------ */
.analyze-upload { display: flex; align-items: center; gap: 12px; margin-top: 15px; padding: 13px 14px; border: 1.5px dashed rgba(255,107,87,.28); border-radius: 16px; background: linear-gradient(120deg, rgba(255,241,235,.65), rgba(247,244,255,.55)); }
.analyze-upload-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: #fff; color: var(--accent); box-shadow: var(--shadow-xs); }
.analyze-upload-icon .icon { width: 18px; height: 18px; }
.analyze-upload-copy { flex: 1; min-width: 0; }
.analyze-upload-copy b { display: block; font-size: 10px; color: var(--ink-2); }
.analyze-upload-copy p { margin: 3px 0 0; font-size: 8.5px; line-height: 1.55; color: var(--ink-4); }
.analyze-upload-state { flex: none; max-width: 190px; font-family: var(--font-mono); font-size: 7.5px; text-align: right; color: var(--ink-4); }
.analyze-upload-state.is-busy { color: var(--accent-deep); }
.analyze-upload-state.is-done { color: var(--sage-deep); }
.analyze-upload-state.is-error { color: var(--danger); }
@media (max-width: 700px) {
  .analyze-upload { flex-wrap: wrap; align-items: flex-start; }
  .analyze-upload-copy { flex-basis: calc(100% - 52px); }
  .analyze-upload > .btn { margin-left: 50px; }
  .analyze-upload-state { flex-basis: 100%; max-width: none; margin-left: 50px; text-align: left; }
}

/* ------------------------------ remix banner ------------------------------- */
.remix-banner { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid rgba(255,107,87,.18); border-radius: 16px; background: linear-gradient(120deg, rgba(255,241,235,.8), rgba(247,244,255,.7)); }
.remix-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: #fff; color: var(--accent-deep); }
.remix-banner b { display: block; font-size: 10px; color: var(--ink-2); }
.remix-banner p { margin: 3px 0 0; font-size: 8.5px; color: var(--ink-4); }
.remix-banner .btn { margin-left: auto; flex: none; }
.remix-banner.is-template { border-color: rgba(122,104,216,.2); background: linear-gradient(120deg, rgba(243,239,255,.85), rgba(255,249,245,.7)); }

/* ------------------------------ insights dashboard ------------------------- */
.insight-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.insight-kpi { padding: 15px; border: 1px solid rgba(255,255,255,.94); border-radius: 18px; background: linear-gradient(160deg,#fff,#fbfaff); box-shadow: var(--shadow-sm); }
.insight-kpi span { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .08em; color: var(--ink-4); }
.insight-kpi b { display: block; margin-top: 9px; font-family: var(--font-display); font-size: 38px; line-height: 1; letter-spacing: -.06em; color: var(--ink); }
.insight-kpi b em { margin-left: 3px; font-family: var(--font-mono); font-size: 9px; font-style: normal; color: var(--ink-4); }
.insight-kpi p { margin: 8px 0 0; font-size: 8px; line-height: 1.55; color: var(--ink-4); }
.insight-kpi.accent b { color: var(--accent-deep); }
.insight-kpi.sage b { color: var(--sage-deep); }
.insight-kpi.butter b { color: var(--warning); }
.insight-kpi.violet b { color: #7a68d8; }
.insight-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; margin-top: 12px; }
.insight-panel { margin-top: 12px; padding: 18px; border: 1px solid rgba(255,255,255,.94); border-radius: 20px; background: linear-gradient(150deg,#fffdfb,#fbfaff); box-shadow: var(--shadow-sm); }
.insight-layout .insight-panel { margin-top: 0; }
.insight-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.insight-panel-head h2 { margin: 0; font-family: var(--font-display); font-size: 21px; letter-spacing: -.04em; }
.insight-panel-head p { margin: 4px 0 0; font-size: 8.5px; color: var(--ink-4); }
.funnel { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.funnel-row { display: flex; align-items: center; gap: 9px; font-size: 8px; color: var(--ink-4); }
.funnel-row > span { width: 30px; flex: none; }
.funnel-row > div { flex: 1; height: 14px; overflow: hidden; border-radius: 999px; background: rgba(72,60,112,.06); }
.funnel-row i { display: block; height: 100%; min-width: 2%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #b38cf5); }
.funnel-row:nth-child(2) i { background: linear-gradient(90deg, var(--sage), #8fd8c9); }
.funnel-row:nth-child(3) i { background: linear-gradient(90deg, var(--butter), var(--accent)); }
.funnel-row b { width: 54px; flex: none; text-align: right; font-family: var(--font-mono); font-size: 8.5px; color: var(--ink-2); }
.funnel-note, .muted-line { margin: 12px 0 0; font-size: 8.5px; line-height: 1.6; color: var(--ink-4); }
.platform-compare { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; }
.platform-compare-row { display: grid; grid-template-columns: 1.1fr 1fr .8fr 34px; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 8px; color: var(--ink-4); }
.platform-compare-row:last-child { border-bottom: 0; }
.platform-name { display: flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; }
.platform-compare-row b { color: var(--ink-2); font-size: 9px; }
.platform-compare-row .score { display: grid; place-items: center; width: 28px; height: 20px; border-radius: 7px; background: var(--accent-wash); font-family: var(--font-mono); font-size: 7px; color: var(--accent-deep); }
.insight-table { margin-top: 12px; }
.insight-table-head, .insight-table-row { display: grid; grid-template-columns: 2fr .8fr .55fr .55fr .5fr .8fr; align-items: center; gap: 8px; padding: 9px 8px; }
.insight-table-head { border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); }
.insight-table-row { border-bottom: 1px solid var(--line); font-size: 8.5px; color: var(--ink-3); }
.insight-table-row:hover { background: rgba(255,248,244,.7); }
.insight-table-row > span:first-child { min-width: 0; }
.insight-table-row b { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.insight-table-row em { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 6.5px; font-style: normal; color: var(--ink-4); }
.insight-table-row > span:nth-child(2) { display: flex; align-items: center; gap: 4px; }
.verdict { padding: 4px 6px; border-radius: 6px; background: var(--sage-soft); font-size: 7px; color: var(--sage-deep); text-align: center; }
.reminder-list { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; }
.reminder-row { display: grid; grid-template-columns: 8px 1.5fr 1.1fr 32px 72px; align-items: center; gap: 7px; padding: 8px; border-radius: 9px; font-size: 8px; color: var(--ink-3); }
.reminder-row:hover { background: rgba(255,248,244,.8); }
.reminder-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.reminder-main { min-width: 0; }
.reminder-main b { display: block; overflow: hidden; font-size: 8.5px; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.reminder-main em { display: block; margin-top: 2px; overflow: hidden; font-style: normal; font-size: 7px; color: var(--ink-4); text-overflow: ellipsis; white-space: nowrap; }
.reminder-stage { color: var(--accent-deep); }
.reminder-age { font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); }
.reminder-phone { font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); }
.qr-panel-body { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.qr-panel-stat b { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1; letter-spacing: -.05em; color: var(--accent-deep); }
.qr-panel-stat span { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); }
.qr-panel-stages { display: flex; flex-wrap: wrap; gap: 5px; }
.qr-panel-stages span { padding: 5px 7px; border-radius: 7px; background: #fff; font-size: 7px; color: var(--ink-4); }
.qr-panel-stages b { margin-right: 3px; font-family: var(--font-mono); color: var(--ink-2); }
.qr-panel-stages .new b { color: var(--accent-deep); }
.qr-panel-stages .converted b { color: var(--sage-deep); }
@media (max-width: 600px) { .qr-panel-body { flex-direction: column; align-items: flex-start; } }
.remix-cta { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(120deg,#2f2942,#40365c); color: #fff; }
.remix-cta > div { flex: 1; min-width: 0; }
.remix-cta span { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 7px; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.remix-cta b { display: block; margin-top: 5px; font-family: var(--font-display); font-size: 18px; letter-spacing: -.03em; }
.remix-cta p { margin: 4px 0 0; font-size: 8.5px; color: rgba(255,255,255,.62); }
.remix-cta .btn { flex: none; }
.insight-recommendations { margin-top: 12px; }
.recommendation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.recommendation { display: flex; align-items: flex-start; gap: 9px; padding: 13px; border: 1px solid rgba(255,255,255,.94); border-radius: 15px; background: rgba(255,255,255,.7); }
.recommendation > span { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border-radius: 8px; background: var(--accent-wash); color: var(--accent-deep); }
.recommendation h3 { margin: 0; font-size: 10px; font-weight: 650; color: var(--ink-2); }
.recommendation p { margin: 4px 0 0; font-size: 8.5px; line-height: 1.6; color: var(--ink-4); }
.recommendation.sage > span { background: var(--sage-soft); color: var(--sage-deep); }
.recommendation.warning > span { background: var(--warning-soft); color: var(--warning); }
.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.template-card { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; }
.template-cover { display: block; width: 58px; height: 74px; flex: none; overflow: hidden; border-radius: 8px; background: var(--paper-2); }
.template-cover img { width: 100%; height: 100%; object-fit: cover; }
.template-copy { flex: 1; min-width: 0; }
.template-copy span { font-family: var(--font-mono); font-size: 6.5px; color: var(--ink-4); }
.template-copy h3 { margin: 3px 0 0; overflow: hidden; font-size: 9px; line-height: 1.4; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.template-copy p { margin: 3px 0 0; font-size: 7px; color: var(--ink-4); }
.template-card .btn { flex: none; padding: 0 8px; font-size: 7px; }
@media (max-width: 700px) { .template-grid { grid-template-columns: 1fr; } }
.insight-foot { margin-top: 15px; padding: 11px 14px; border-radius: 13px; background: rgba(255,255,255,.5); font-size: 8px; color: var(--ink-4); }
.insight-empty { margin-top: 18px; }
@media (max-width: 1000px) { .insight-kpis { grid-template-columns: 1fr 1fr; } .insight-layout { grid-template-columns: 1fr; } .recommendation-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .insight-table-head, .insight-table-row { grid-template-columns: 1.6fr .75fr .55fr .5fr .5fr; } .insight-table-head span:nth-child(4), .insight-table-row > span:nth-child(4) { display: none; } .insight-kpi b { font-size: 30px; } }

/* ------------------------------ A/B cover test ----------------------------- */
.ab-test { margin-top: 12px; }
.ab-test .plan-section-head { margin-bottom: 10px; }
.ab-head-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.ab-empty { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border: 1px dashed rgba(255,107,87,.3); border-radius: 16px; background: rgba(255,249,245,.65); }
.ab-empty p { margin: 0; font-size: 9px; line-height: 1.6; color: var(--ink-4); }
.ab-decision { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 13px; border-radius: 12px; font-size: 8.5px; }
.ab-decision span { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.ab-decision p { margin: 0; color: var(--ink-4); }
.ab-decision em { margin-left: auto; font-style: normal; color: var(--sage-deep); }
.ab-decision.is-win { background: var(--sage-soft); color: var(--sage-deep); }
.ab-decision.is-tie { background: var(--warning-soft); color: var(--warning); }
.ab-decision.is-wait { background: rgba(255,255,255,.65); color: var(--ink-4); }
.ab-ranking { display: flex; gap: 5px; flex-basis: 100%; }
.ab-ranking span { padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.6); font-family: var(--font-mono); font-size: 6.5px; color: var(--ink-3); }
.ab-ranking b { color: var(--ink-2); }
.ab-more { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.ab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ab-card { overflow: hidden; border: 1px solid rgba(255,255,255,.95); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.ab-card.is-winner { border-color: rgba(54,160,130,.35); box-shadow: 0 8px 30px rgba(54,160,130,.1); }
.ab-cover { position: relative; height: 230px; overflow: hidden; background: var(--paper-2); }
.ab-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.ab-cover::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 45%, rgba(18,15,28,.45)); }
.ab-label { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 4px 8px; border-radius: 7px; background: rgba(255,255,255,.9); font-family: var(--font-mono); font-size: 7px; color: var(--ink-2); }
.ab-winner-badge { position: absolute; z-index: 1; top: 10px; right: 10px; display: flex; align-items: center; gap: 3px; padding: 4px 7px; border-radius: 7px; background: var(--sage); font-size: 7px; color: #fff; }
.ab-selected { position: absolute; z-index: 1; bottom: 10px; left: 10px; font-family: var(--font-mono); font-size: 6.5px; color: rgba(255,255,255,.8); }
.ab-body { padding: 12px; }
.ab-body h3 { margin: 0 0 8px; font-size: 11px; line-height: 1.45; color: var(--ink-2); }
.ab-links { display: flex; flex-wrap: wrap; gap: 5px; }
.ab-links .btn { min-height: 27px; padding: 0 8px; font-size: 7.5px; }
.ab-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.ab-fields label:first-child { grid-column: span 3; }
.ab-fields label { display: flex; flex-direction: column; gap: 3px; }
.ab-fields span { font-family: var(--font-mono); font-size: 6.5px; color: var(--ink-4); }
.ab-fields input { width: 100%; height: 27px; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 8px; color: var(--ink-2); }
.ab-result { display: flex; gap: 12px; margin-top: 9px; font-size: 7.5px; color: var(--ink-4); }
.ab-result b { font-family: var(--font-mono); color: var(--ink-2); }
.ab-save { width: 100%; margin-top: 8px; }
@media (max-width: 800px) { .ab-grid { grid-template-columns: 1fr; } .ab-cover { height: 190px; } .ab-empty { flex-direction: column; align-items: flex-start; } }

/* ------------------------------ timeline editor ----------------------------- */
.timeline-section { margin-top: 12px; }
.timeline-preview { display: block; width: min(100%, 540px); max-height: 520px; margin-top: 4px; border-radius: 16px; background: #171322; box-shadow: var(--shadow-md); }
.timeline-empty { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 13px; background: rgba(255,255,255,.65); font-size: 8.5px; color: var(--ink-4); }
.timeline-empty b { color: var(--accent-deep); }
.timeline-empty b.is-error { color: var(--danger); }
.tl-editor { display: flex; flex-direction: column; gap: 10px; }
.tl-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 8px; color: var(--ink-4); }
.tl-fade { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.tl-fade input { accent-color: var(--accent); }
.tl-rows { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; padding-right: 3px; }
.tl-row { display: flex; align-items: center; gap: 7px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.tl-index { width: 20px; flex: none; font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); }
.tl-thumb { width: 48px; height: 48px; flex: none; border-radius: 7px; object-fit: cover; background: var(--paper-2); }
.tl-main { width: 120px; flex: none; min-width: 0; }
.tl-main b { display: block; overflow: hidden; font-size: 8px; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.tl-main span { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 6.5px; color: var(--ink-4); }
.tl-duration { display: flex; flex-direction: column; gap: 2px; width: 48px; flex: none; }
.tl-duration span { font-family: var(--font-mono); font-size: 6px; color: var(--ink-4); }
.tl-duration input, .tl-caption { height: 27px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 8px; color: var(--ink-2); }
.tl-caption { flex: 1; min-width: 0; padding: 0 7px; }
.tl-buttons { display: flex; gap: 2px; flex: none; }
.tl-buttons button { width: 20px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 10px; color: var(--ink-3); cursor: pointer; }
.tl-buttons button:disabled { opacity: .3; cursor: default; }
.tl-add { display: flex; gap: 6px; }
.tl-add select { flex: 1; }
.tl-audio { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tl-audio label { display: flex; flex-direction: column; gap: 3px; }
.tl-audio span { font-family: var(--font-mono); font-size: 6.5px; color: var(--ink-4); }
.tl-style-grid { display: grid; grid-template-columns: 1.2fr 1fr 0.7fr 0.7fr 1.2fr; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper-2); }
.tl-style-grid label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-family: var(--font-mono); font-size: 6.5px; color: var(--ink-4); }
.tl-style-grid label > span { white-space: nowrap; }
.tl-style-grid input[type="range"] { width: 100%; accent-color: var(--accent); }
.tl-style-grid input[type="color"] { width: 100%; height: 28px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.tl-style-grid em { font-style: normal; font-size: 6.5px; color: var(--ink-2); }
.tl-style-grid .tl-check { flex-direction: row; align-items: center; gap: 5px; padding-top: 16px; }
.tl-record { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; background: var(--sage-soft); }
.tl-record #tlRecord { flex: none; }
.tl-record #tlRecordStatus { font-family: var(--font-mono); font-size: 7px; color: var(--sage-deep); }
@media (max-width: 800px) {
  .tl-style-grid { grid-template-columns: 1fr 1fr; }
  .tl-style-grid .tl-check { padding-top: 0; }
}
.tl-result video { display: block; width: min(100%, 280px); max-height: 380px; margin: 0 auto; border-radius: 12px; background: #171322; }
.tl-rendering, .tl-error { padding: 14px; border-radius: 10px; background: var(--accent-wash); font-size: 8.5px; color: var(--accent-deep); text-align: center; }
.tl-error { background: var(--danger-soft); color: var(--danger); }
.tl-empty { padding: 20px; border: 1px dashed var(--line); border-radius: 10px; font-size: 8px; color: var(--ink-4); text-align: center; }
@media (max-width: 650px) { .tl-main { width: 80px; } .tl-row { flex-wrap: wrap; } .tl-caption { flex-basis: 100%; } .tl-audio { grid-template-columns: 1fr; } }

/* ------------------------------ campaign QR -------------------------------- */
.campaign-card { margin-bottom: 14px; padding: 16px; border: 1px solid rgba(255,255,255,.94); border-radius: 18px; background: linear-gradient(145deg,#fffdfb,#f5f1ff); }
.campaign-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.campaign-head h3 { display: flex; align-items: center; gap: 5px; margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: -.03em; }
.campaign-head p { margin: 4px 0 0; font-size: 8px; color: var(--ink-4); }
.campaign-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.campaign-body { display: flex; align-items: center; gap: 14px; margin-top: 13px; }
.campaign-qr { width: 112px; height: 112px; flex: none; padding: 5px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.campaign-copy { min-width: 0; }
.campaign-copy b { display: block; overflow: hidden; font-size: 10px; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.campaign-copy p { margin: 5px 0 0; overflow: hidden; font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); text-overflow: ellipsis; white-space: nowrap; }
.campaign-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.campaign-stages { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.campaign-stages span { padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.75); font-size: 7px; color: var(--ink-4); }
.campaign-stages b { margin-right: 2px; font-family: var(--font-mono); color: var(--ink-2); }
.campaign-stages .new b { color: var(--accent-deep); }
.campaign-stages .converted b { color: var(--sage-deep); }
.lead-list { display: flex; flex-direction: column; gap: 9px; }
.lead-row { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lead-main { display: flex; align-items: baseline; gap: 8px; }
.lead-main b { font-size: 10px; color: var(--ink-2); }
.lead-main span { font-family: var(--font-mono); font-size: 8px; color: var(--ink-4); }
.lead-main em { margin-left: auto; font-size: 7px; font-style: normal; color: var(--ink-4); }
.lead-fields { display: grid; grid-template-columns: 100px 1fr auto; align-items: end; gap: 7px; margin-top: 8px; }
.lead-fields label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lead-fields span { font-family: var(--font-mono); font-size: 6.5px; color: var(--ink-4); }
.lead-fields select, .lead-fields input { width: 100%; height: 29px; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 8px; color: var(--ink-2); }
.lead-fields .btn { min-height: 29px; font-size: 7.5px; }
.lead-empty { padding: 22px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }
.lead-empty b { font-size: 11px; color: var(--ink-2); }
.lead-empty p { margin: 5px 0 0; font-size: 8.5px; color: var(--ink-4); }
@media (max-width: 600px) { .lead-fields { grid-template-columns: 1fr 1fr; } .lead-fields .btn { grid-column: span 2; } }
.campaign-empty { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.campaign-empty p { margin: 0; font-size: 8.5px; line-height: 1.6; color: var(--ink-4); }
.campaign-empty .btn { flex: none; }
@media (max-width: 700px) { .campaign-empty { flex-direction: column; align-items: flex-start; } .campaign-qr { width: 92px; height: 92px; } }

/* ------------------------------ publish checklist -------------------------- */
.publish-checklist { margin-bottom: 14px; padding: 16px; border: 1px solid rgba(255,255,255,.94); border-radius: 18px; background: linear-gradient(150deg,#fffdfb,#f8f5ff); }
.publish-checklist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.publish-checklist h3 { margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: -.03em; }
.publish-checklist p { margin: 4px 0 0; font-size: 8.5px; color: var(--ink-4); }
.publish-checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.publish-check { display: flex; align-items: flex-start; gap: 7px; padding: 8px 9px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fff; font-size: 8.5px; line-height: 1.4; color: var(--ink-3); cursor: pointer; }
.publish-check input { width: 12px; height: 12px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.publish-check.is-done { background: var(--sage-soft); color: var(--sage-deep); border-color: transparent; }
.publish-job { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 8px; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.7); font-size: 7.5px; color: var(--ink-4); }
.publish-job span { font-family: var(--font-mono); font-size: 6.5px; }
.publish-job b { color: var(--ink-2); }
.publish-job a { color: var(--accent-deep); text-decoration: underline; }
.publish-job em { flex-basis: 100%; font-style: normal; color: var(--danger); }
.publish-job.failed { background: var(--danger-soft); }
.publish-job.published { background: var(--sage-soft); }
.channel-analytics { display: flex; align-items: baseline; gap: 7px; margin-top: 9px; padding: 8px 10px; border-radius: 10px; background: var(--accent-wash); }
.channel-analytics b { font-family: var(--font-display); font-size: 22px; color: var(--accent-deep); }
.channel-analytics span { font-size: 8px; color: var(--accent-deep); }
.channel-analytics p { margin: 0 0 0 auto; font-size: 7.5px; color: var(--ink-4); }
@media (max-width: 700px) { .publish-checklist-grid { grid-template-columns: 1fr; } .channel-analytics { flex-wrap: wrap; } .channel-analytics p { flex-basis: 100%; margin-left: 0; } }

/* ------------------------------ render preview ----------------------------- */
.render-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.render-preview video { width: min(100%, 340px); max-height: 68vh; border-radius: 18px; background: #171322; box-shadow: var(--shadow-lg); }
.render-preview-actions { display: flex; gap: 8px; }
.render-preview p { margin: 0; font-family: var(--font-mono); font-size: 8px; color: var(--ink-4); }

/* ------------------------------ cover maker -------------------------------- */
.cover-maker-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cover-maker-preview { display: grid; place-items: center; min-height: 180px; margin-top: 14px; overflow: hidden; border-radius: 16px; background: linear-gradient(150deg,#fff8f3,#f3efff); color: var(--ink-4); }
.cover-maker-preview img { display: block; width: min(100%, 280px); border-radius: 10px; box-shadow: var(--shadow-md); }
.cover-maker-preview span { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 7.5px; color: var(--ink-4); }
.cover-maker-preview p { margin: 0; padding: 20px; font-size: 10px; }
.cover-maker-preview p.is-error { color: var(--danger); }
.cover-maker-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cover-variants { margin-top: 12px; }
.variant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.variant-card { overflow: hidden; padding: 7px; border: 2px solid transparent; border-radius: 13px; background: #fff; box-shadow: var(--shadow-xs); }
.variant-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,107,87,.1); }
.variant-card img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; }
.variant-card > div { padding: 6px 2px 3px; }
.variant-card b { display: block; font-size: 9px; color: var(--ink-2); }
.variant-card span { display: block; margin-top: 2px; overflow: hidden; font-size: 8px; color: var(--ink-4); text-overflow: ellipsis; white-space: nowrap; }
.variant-card .btn { width: 100%; margin-top: 4px; min-height: 26px; font-size: 7.5px; }
@media (max-width: 560px) { .variant-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cover-maker-row { grid-template-columns: 1fr; } }

/* ------------------------------ frame picker ------------------------------- */
.frame-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.frame-option { position: relative; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 12px; background: var(--paper-2); cursor: pointer; }
.frame-option img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.frame-option span { position: absolute; right: 5px; bottom: 5px; padding: 2px 5px; border-radius: 5px; background: rgba(29,30,26,.7); font-family: var(--font-mono); font-size: 7px; color: #fff; }
.frame-option.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,107,87,.12); }
.frame-picker-hint { margin: 12px 0 0; font-size: 9px; color: var(--ink-4); }

/* ------------------------------ plan assets -------------------------------- */
.plan-assets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.plan-asset { overflow: hidden; border: 1px solid rgba(255,255,255,.94); border-radius: 14px; background: #fff; box-shadow: var(--shadow-xs); }
.plan-asset img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.plan-asset span { display: block; padding: 7px 8px; }
.plan-asset b { display: block; overflow: hidden; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.plan-asset em { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 6.5px; font-style: normal; color: var(--ink-4); }
@media (max-width: 700px) { .plan-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------ plan execution ----------------------------- */
.execution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.execution-card { padding: 16px; border: 1px solid rgba(255,255,255,.94); border-radius: 18px; background: linear-gradient(150deg,#fffdfb,#fbfaff); box-shadow: var(--shadow-sm); }
.execution-card h4 { margin: 5px 0 10px; font-family: var(--font-display); font-size: 20px; letter-spacing: -.03em; }
.execution-card dl { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.execution-card dl div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.execution-card dt { flex: none; font-size: 8px; color: var(--ink-4); }
.execution-card dd { margin: 0; text-align: right; font-size: 9px; line-height: 1.5; color: var(--ink-2); }
.execution-card ol, .execution-card ul { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 0; padding-left: 14px; font-size: 9px; line-height: 1.55; color: var(--ink-3); }
.execution-card ul { padding: 0; list-style: none; }
.execution-card li b { display: block; font-size: 9.5px; color: var(--ink-2); }
.execution-card li span { display: block; color: var(--ink-4); }
.execution-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--warning-soft); font-size: 8.5px; line-height: 1.55; color: var(--warning); }
@media (max-width: 980px) { .execution-grid { grid-template-columns: 1fr; } }

/* ------------------------------ plan readiness ----------------------------- */
.readiness-pill { padding: 7px 12px; border-radius: 999px; background: var(--accent-wash); font-family: var(--font-mono); font-size: 8px; color: var(--accent-deep); }
.readiness-card { padding: 18px; border: 1px solid rgba(255,255,255,.94); border-radius: 20px; background: linear-gradient(150deg,#fffdfb,#f7f4ff); box-shadow: var(--shadow-sm); }
.readiness-top { display: flex; align-items: center; gap: 18px; }
.readiness-score { display: flex; align-items: baseline; gap: 2px; color: var(--accent-deep); }
.readiness-score b { font-family: var(--font-display); font-size: 44px; line-height: 1; letter-spacing: -.06em; }
.readiness-score span { font-family: var(--font-mono); font-size: 8px; color: var(--ink-4); }
.readiness-track { flex: 1; height: 7px; overflow: hidden; border-radius: 999px; background: rgba(72,60,112,.08); }
.readiness-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ff9678,#ff6b57 55%,#8d7bf6); }
.readiness-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.readiness-item { display: flex; align-items: flex-start; gap: 7px; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.68); color: var(--ink-4); font-size: 8.5px; line-height: 1.45; }
.readiness-item .icon { width: 13px; height: 13px; flex: none; margin-top: 1px; color: var(--accent); }
.readiness-item.is-ok { background: var(--sage-soft); color: var(--sage-deep); }
.readiness-item.is-ok .icon { color: var(--sage-deep); }
.readiness-item b { display: block; color: var(--ink-2); font-size: 9.5px; font-weight: 600; }
.readiness-item.is-ok b { color: var(--sage-deep); }
.readiness-missing, .readiness-ok { margin: 12px 0 0; font-size: 9px; line-height: 1.6; color: var(--warning); }
.readiness-ok { color: var(--sage-deep); }
@media (max-width: 700px) { .readiness-grid { grid-template-columns: 1fr; } }

/* ------------------------------ studio stepper ---------------------------- */
.studio-stepper {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-xs), var(--shadow-inset);
  position: sticky;
  top: 82px;
  z-index: 12;
  backdrop-filter: blur(18px);
}
.studio-step {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-height: 38px;
  padding: 4px 9px 4px 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-4);
  text-align: left;
}
.studio-step img { width: 28px; height: 28px; border-radius: 9px; flex: none; filter: drop-shadow(0 4px 7px rgba(58,45,104,.12)); }
.studio-step span { display: inline-flex; align-items: baseline; gap: 5px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.studio-step b { font-family: var(--font-mono); font-size: 7px; font-weight: 500; color: var(--ink-4); }
.studio-step.is-active { background: #fff; color: var(--accent-deep); box-shadow: var(--shadow-sm); }
.studio-step.is-active b { color: var(--accent); }
.studio-step.is-done { color: var(--ink-2); }
.studio-step.is-done b { color: var(--sage-deep); }
.studio-step-line { flex: 0 0 12px; height: 1px; background: rgba(72,60,112,.12); }
.studio-step-panel[hidden] { display: none !important; }
.studio-review {
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  background:
    radial-gradient(320px 120px at 88% 5%, rgba(255, 208, 191, 0.52), rgba(255, 208, 191, 0) 70%),
    linear-gradient(135deg, #fffdfb, #f7f4ff);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}
.studio-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio-review-head .mono-label { font-size: 7px; color: var(--ink-4); }
.studio-review-head > span:last-child { font-size: 8px; color: var(--ink-4); }
.studio-review h3 { margin: 8px 0 9px; font-size: 16px; line-height: 1.35; letter-spacing: -.02em; color: var(--ink); }
.studio-review-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.studio-step-bar {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}
.studio-step-bar .btn { flex: 1; min-height: 42px; justify-content: center; }
.studio-step-bar #studioPrev { flex: 0 0 120px; }
.toolbox-head h1 { font-size: clamp(34px, 4.3vw, 58px); }
.toolbox-head h1 .accent { color: var(--accent-deep); }
.toolbox-head p { max-width: 720px; }
.toolbox-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.toolbox-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 107, 87, 0.16);
  border-radius: 999px;
  background: var(--accent-wash);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  white-space: nowrap;
}
.toolbox-preview-badge .pulse-dot { background: var(--accent); }
.toolbox-pains { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.toolbox-pains span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-xs);
  font-size: 10px;
  color: var(--ink-3);
}
.toolbox-pains span::before { content: "×"; color: var(--accent); font-weight: 700; }
.toolbox-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-xs), var(--shadow-inset);
  scrollbar-width: none;
}
.toolbox-tabs::-webkit-scrollbar { display: none; }
.toolbox-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 0 auto;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.toolbox-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.toolbox-tab.is-active {
  border-color: rgba(255, 255, 255, 0.98);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
}
.toolbox-tab .icon { width: 15px; height: 15px; color: var(--accent); }
.toolbox-tab-img { width: 24px; height: 24px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(58,45,104,.1)); }
.toolbox-panel {
  margin-top: 16px;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  background: linear-gradient(165deg, #fff 0%, #fbfaff 100%);
  box-shadow: var(--shadow-md), var(--shadow-inset);
}
.toolbox-panel[hidden] { display: none; }
.toolbox-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.toolbox-card-head .mono { font-size: 8px; letter-spacing: 0.12em; color: var(--ink-4); }
.toolbox-card-head h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -0.045em; }
.toolbox-mini-note { font-size: 9px; color: var(--ink-4); white-space: nowrap; }
.toolbox-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 30px; align-items: start; }
.toolbox-form { display: flex; flex-direction: column; gap: 14px; }
.toolbox-form .field { display: flex; flex-direction: column; gap: 6px; }
.toolbox-form .field-label { margin: 0; font-size: 10px; font-weight: 600; color: var(--ink-3); }
.toolbox-form .input, .toolbox-form .textarea { width: 100%; font-size: 12px; }
.toolbox-brand-choice { display: flex; flex-wrap: wrap; gap: 7px; }
.toolbox-brand-choice button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-xs);
  font-size: 10px;
  color: var(--ink-3);
}
.toolbox-brand-choice button.is-active { background: #fff; border-color: rgba(255, 107, 87, 0.28); color: var(--ink); box-shadow: 0 6px 16px -10px rgba(255, 107, 87, 0.35); }
.toolbox-form .toolbox-radio-set, .toolbox-radio-set { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 7px; border: 0; padding: 0; margin: 0; }
.toolbox-radio-set legend { width: 100%; margin-bottom: 2px; }
.toolbox-radio-set label { position: relative; display: inline-flex; }
.toolbox-radio-set input { position: absolute; opacity: 0; pointer-events: none; }
.toolbox-radio-set span { display: inline-flex; min-height: 34px; align-items: center; padding: 0 12px; border: 1px solid rgba(255,255,255,.94); border-radius: 999px; background: rgba(255,255,255,.7); font-size: 10px; color: var(--ink-3); cursor: pointer; }
.toolbox-radio-set input:checked + span { background: var(--accent-wash); border-color: rgba(255,107,87,.2); color: var(--accent-deep); }
.toolbox-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.toolbox-pills button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-xs);
  font-size: 10px;
  color: var(--ink-3);
}
.toolbox-pills button.is-active { background: #fff; border-color: rgba(255, 107, 87, 0.26); color: var(--accent-deep); font-weight: 600; }
.toolbox-result { min-width: 0; padding: 16px; border: 1px solid rgba(72, 60, 112, 0.07); border-radius: 20px; background: rgba(255, 255, 255, 0.62); box-shadow: var(--shadow-xs), inset 0 1px 0 #fff; }
.title-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.title-result-head .mono { font-size: 8px; color: var(--ink-4); }
.title-list { display: flex; flex-direction: column; }
.title-item { display: flex; align-items: flex-start; gap: 9px; padding: 11px 0; border-top: 1px solid rgba(72, 60, 112, 0.07); }
.title-index { flex: none; color: var(--accent); font-family: var(--font-mono); font-size: 8px; padding-top: 4px; }
.title-item > div { flex: 1; min-width: 0; }
.title-item p { font-size: 12px; line-height: 1.6; font-weight: 550; }
.title-score { display: inline-block; margin-top: 4px; font-family: var(--font-mono); font-size: 7px; color: var(--ink-4); }
.title-actions { display: inline-flex; gap: 2px; flex: none; margin-top: 2px; }
.title-item .copy-btn { margin-top: 0; }
.rewrite-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.rewrite-actions .btn { flex: 0 1 auto; }
.hook-result { margin-top: 8px; padding-top: 13px; border-top: 1px solid rgba(72, 60, 112, 0.08); }
.hook-result > .mono { font-size: 8px; color: var(--ink-4); }
.hook-line { display: flex; align-items: flex-start; gap: 4px; margin-top: 7px; font-size: 11px; line-height: 1.6; color: var(--ink-2); }
.hook-line > span { color: var(--accent); }
.hook-line .copy-btn { margin-left: auto; }
.copy-btn { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-4); flex: none; }
.copy-btn:hover { background: var(--surface-3); color: var(--accent-deep); }
.rewrite-meta { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 8px; color: var(--ink-4); }
.rewrite-meta .toolbox-mini-note { margin-left: auto; }
.rewrite-output { min-height: 190px; margin: 12px 0; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid rgba(72,60,112,.06); white-space: pre-wrap; font-size: 12.5px; line-height: 1.95; color: var(--ink-2); }
.cover-layout { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr); gap: 34px; align-items: start; }
.cover-stage { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 20px; border-radius: 24px; background: rgba(247, 244, 255, 0.68); }
.cover-preview { position: relative; overflow: hidden; width: min(100%, 330px); aspect-ratio: 3 / 4; border: 7px solid #fff; border-radius: 26px; background: var(--paper-2); box-shadow: var(--shadow-lg); transition: width .4s var(--spring), aspect-ratio .4s var(--spring); }
.cover-preview.ratio-9-16 { width: min(100%, 230px); aspect-ratio: 9 / 16; }
.cover-preview.ratio-1-1 { width: min(100%, 290px); aspect-ratio: 1 / 1; }
.cover-preview > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,29,51,.02) 25%, rgba(33,29,51,.62)); }
.cover-preview.style-paper::after { background: linear-gradient(180deg, rgba(255,255,255,.18) 25%, rgba(255,247,243,.9)); }
.cover-preview.style-coral::after { background: linear-gradient(180deg, rgba(255,107,87,.18) 15%, rgba(199,55,52,.88)); }
.cover-preview.style-ink::after { background: linear-gradient(180deg, rgba(20,17,31,.18) 15%, rgba(20,17,31,.9)); }
.cover-safe { position: absolute; z-index: 3; inset: 8%; border: 1px dashed rgba(255,255,255,.4); border-radius: 12px; pointer-events: none; }
.cover-grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.45) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  transition: opacity .25s var(--ease);
}
.cover-preview.show-grid .cover-grid { opacity: 1; }
.cover-actions { display: flex; gap: 8px; }
.cover-actions .btn { flex: 1; min-height: 40px; padding: 0 10px; font-size: 9.5px; }
.cover-label { position: absolute; z-index: 4; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 5px; border-radius: 999px; background: rgba(255,255,255,.82); font-size: 7px; font-weight: 600; color: var(--ink-2); }
.cover-copy { position: absolute; z-index: 4; left: 22px; right: 22px; bottom: 24px; color: #fff; }
.cover-preview.style-paper .cover-copy { color: var(--ink); }
.cover-copy > span { font-family: var(--font-mono); font-size: 7px; letter-spacing: .12em; opacity: .7; }
.cover-copy h3 { margin: 7px 0 0; font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -.06em; font-weight: 800; }
.cover-copy em { display: block; margin-top: 9px; font-style: normal; font-size: 8px; letter-spacing: .08em; opacity: .72; }
.cover-hint { max-width: 320px; margin: 14px 0 0; font-size: 9px; line-height: 1.7; color: var(--ink-3); text-align: center; }
.cover-art-choice { display: flex; gap: 8px; }
.cover-art-choice button { width: 62px; height: 62px; padding: 3px; overflow: hidden; border: 1px solid rgba(255,255,255,.94); border-radius: 14px; background: #fff; box-shadow: var(--shadow-xs); }
.cover-art-choice button.is-active { border-color: rgba(255,107,87,.45); box-shadow: 0 0 0 3px rgba(255,107,87,.1); }
.cover-art-choice img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.check-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.check-top b { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 42px; line-height: 1; letter-spacing: -.06em; }
.check-ring { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(var(--accent) var(--score, 0deg), rgba(72,60,112,.08) 0); position: relative; }
.check-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.check-ring span { position: relative; z-index: 1; font-family: var(--font-display); font-size: 18px; font-weight: 760; color: var(--accent-deep); }
.check-marked { min-height: 120px; padding: 15px; border: 1px solid rgba(72,60,112,.07); border-radius: 15px; background: #fff; font-size: 11.5px; line-height: 2; color: var(--ink-2); }
.check-marked mark { padding: 1px 3px; border-radius: 4px; background: #ffe1d8; color: #b73f2c; font-weight: 650; }
.check-advice { margin-top: 10px; }
.check-advice p { margin: 7px 0 0; font-size: 10px; line-height: 1.7; color: var(--ink-3); }
.check-hits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.check-hits span { display: inline-flex; gap: 5px; padding: 4px 8px; border-radius: 999px; background: var(--accent-wash); font-size: 8px; color: var(--ink-3); }
.check-hits b { color: var(--accent-deep); font-weight: 650; }
.check-clear { margin: 0; font-size: 10px; line-height: 1.7; color: var(--sage-deep); }
.idea-quick { display: flex; gap: 8px; margin-bottom: 14px; }
.idea-quick .input { flex: 1; }
.idea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.idea-card { padding: 14px; border: 1px solid rgba(72,60,112,.07); border-radius: 17px; background: #fff; box-shadow: var(--shadow-xs); }
.idea-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; gap: 6px; border: 1px dashed rgba(72,60,112,.12); border-radius: 17px; background: rgba(255,255,255,.42); text-align: center; }
.idea-empty b { font-size: 13px; color: var(--ink-2); }
.idea-empty span { max-width: 300px; font-size: 10px; line-height: 1.7; color: var(--ink-4); }
.idea-card .btn:disabled { opacity: .5; pointer-events: none; }
.idea-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.idea-index { font-family: var(--font-mono); font-size: 8px; color: var(--accent); }
.idea-card h3 { margin: 12px 0 0; font-size: 14px; line-height: 1.45; font-weight: 650; letter-spacing: -.02em; }
.idea-meta { display: flex; gap: 8px; margin-top: 7px; font-size: 9px; color: var(--ink-4); }
.idea-meta em { font-style: normal; }
.idea-actions { display: flex; gap: 6px; margin-top: 13px; }
.idea-actions .btn { flex: 1; min-height: 32px; padding: 0 8px; font-size: 9px; }
.toolbox-fineprint { margin: 0; font-size: 9px; line-height: 1.7; color: var(--ink-4); }
.tele-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 26px; align-items: start; }
.tele-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.tele-range { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--ink-3); }
.tele-range input { width: 100px; accent-color: var(--accent); }
.tele-range b { font-family: var(--font-mono); font-size: 8px; color: var(--ink-4); min-width: 16px; }
.tele-stage { position: relative; height: 480px; overflow: hidden; border: 6px solid #fff; border-radius: 26px; background: linear-gradient(160deg, #2d2740, #201b31); box-shadow: var(--shadow-lg); }
.tele-stage.is-mirrored #tbTeleDisplay { transform: scaleX(-1); }
.tele-stage > p { padding: 60px 34px; color: #f8f4ff; font-size: 36px; line-height: 1.55; font-weight: 680; letter-spacing: -.035em; transition: transform .3s var(--ease); }
.tele-fade { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(32,27,49,.9), transparent 22%, transparent 76%, rgba(32,27,49,.94)); }
.toolbox-footer-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.94); border-radius: 20px; background: rgba(255,255,255,.55); }
.toolbox-footer-note p { margin: 0; font-size: 10px; line-height: 1.7; color: var(--ink-3); }

@media (max-width: 1180px) {
  .toolbox-split, .cover-layout, .tele-layout { grid-template-columns: 1fr; }
  .cover-stage { padding: 16px; }
  .tele-stage { height: 380px; }
}

@media (max-width: 1180px) {
  .sidebar { width: 224px; }
  .app-content { margin-left: 224px; }
  .channel-layout { grid-template-columns: 1fr; }
  .platform-frame.ratio-3-4 { max-width: 260px; }
  .platform-frame.ratio-9-16 { max-width: 190px; }
  .calendar-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app-content { margin-left: 0; }
  .topbar { height: 66px; padding: 0 16px; background: rgba(255, 255, 255, 0.74); }
  .mobile-menu-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-xs);
  }
  .search-trigger { width: 38px; border-radius: 13px; background: rgba(255, 255, 255, 0.74); }
  .mobile-tabs {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    height: 66px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 20px 50px -24px rgba(58, 45, 104, 0.35);
    backdrop-filter: blur(22px);
  }
  .mobile-tabs a { border-radius: 18px; font-size: 8.5px; font-weight: 550; }
  .mobile-tabs a.is-active {
    background: linear-gradient(135deg, #fff3ee, #ffe7ef);
    color: var(--accent-deep);
    box-shadow: 0 8px 18px -12px rgba(255, 107, 87, 0.42), inset 0 1px 0 #fff;
  }
  .mobile-tabs { height: 74px; padding: 4px 6px; overflow: visible; align-items: stretch; border-radius: 26px; }
  .mobile-tabs .mt-item { position: relative; gap: 2px; border-radius: 18px; padding-top: 5px; }
  .mt-icon, .mt-icon-active { width: 24px; height: 24px; object-fit: contain; }
  .mt-icon-active { display: none; }
  .mt-item.is-active .mt-icon { display: none; }
  .mt-item.is-active .mt-icon-active { display: block; }
  .mt-item span { font-size: 8.5px; }
  .mobile-tabs .mt-create {
    flex: 0 0 20%;
    background: transparent !important;
    color: var(--accent-deep) !important;
    box-shadow: none !important;
    gap: 0;
    padding-top: 0;
    top: -22px;
  }
  .mt-raise {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 19px;
    filter: drop-shadow(0 12px 20px rgba(255, 107, 87, 0.36));
  }
  .mt-raise img { width: 58px; height: 58px; }
  .mt-create-label {
    margin-top: -1px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    font-size: 8px !important;
    font-weight: 650;
  }
  .app-view { padding: 20px 16px 116px; }
  .studio-stepper { top: 72px; gap: 4px; padding: 5px; }
  .studio-step { gap: 5px; min-height: 34px; padding: 3px 5px; }
  .studio-step img { width: 24px; height: 24px; border-radius: 7px; }
  .studio-step span { font-size: 9px; }
  .studio-step b { display: none; }
  .studio-step-line { flex-basis: 6px; }
  .studio-step-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(146px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    margin: 0;
    padding: 7px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px -22px rgba(58, 45, 104, 0.4);
    backdrop-filter: blur(18px);
  }
  .studio-step-bar .btn { min-height: 42px; font-size: 10px; }
  .studio-step-bar #studioPrev { flex: 0 0 104px; }
  .studio-page { padding-bottom: 380px; }
  .studio-aside #generateBtn, .studio-aside .studio-estimate { display: none; }
  .view-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .view-head h1 { font-size: 34px; }
  .calendar-month b { font-size: 21px; min-width: 100px; }
  .calendar-toolbar { flex-wrap: wrap; gap: 10px; }
  .calendar-filter { padding-left: 4px; border-left: 1px solid rgba(255,255,255,0.9); }
  .calendar-toolbar > .btn { margin-left: 0; }
  .calendar-cell { min-height: 82px; padding: 5px; }
  .calendar-item span { display: none; }
  .calendar-item b { font-size: 6px; }
  .channel-tabs { overflow-x: auto; }
  .channel-tab { padding: 8px 12px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .channel-row { grid-template-columns: 1fr; }
  .kpi-grid { gap: 10px; }
  .toolbox-head-actions { justify-content: flex-start; }
  .toolbox-card-head { flex-direction: column; align-items: flex-start; gap: 7px; }
  .toolbox-pains { margin-bottom: 12px; }
  .toolbox-tabs { padding: 5px; }
  .toolbox-tab { flex: 0 0 auto; min-height: 36px; padding: 0 11px; font-size: 9.5px; }
  .toolbox-panel { padding: 16px; border-radius: 22px; }
  .toolbox-result { padding: 12px; }
  .idea-grid { grid-template-columns: 1fr; }
  .idea-quick { flex-direction: column; }
  .cover-preview { width: min(100%, 280px); }
  .tele-stage { height: 360px; }
  .tele-stage > p { padding: 40px 22px; font-size: 30px; }
  .toolbox-footer-note { padding: 13px; }
}

@media (max-width: 560px) {
  .calendar-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .calendar-week span { font-size: 6px; padding: 6px 4px; }
  .calendar-day span { font-size: 14px; }
  .calendar-day em { display: none; }
  .calendar-cell { min-height: 64px; }
  .calendar-item { padding: 3px; border-left-width: 2px; }
  .platform-frame.ratio-3-4 { max-width: 100%; }
  .platform-frame.ratio-9-16 { max-width: 75%; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
