:root {
  --canvas: #f3f7fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --surface-strong: #eef4ff;
  --surface-ink: #0a0b0d;
  --ink: #0a0b0d;
  --ink-muted: #334155;
  --muted: #64748b;
  --subtle: #94a3b8;
  --line: #dbe5f2;
  --line-strong: #b9c9df;
  --primary: #0052ff;
  --primary-hover: #003ecc;
  --primary-soft: #e8f0ff;
  --success: #07884f;
  --success-soft: #e6f7ef;
  --info: #2563eb;
  --info-soft: #e7efff;
  --warning: #b7791f;
  --warning-soft: #fff5db;
  --danger: #c2414b;
  --danger-soft: #ffe8ea;
  --brand-yellow: #f4c95d;
  --brand-red: #e45c63;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-lift: 0 18px 42px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, var(--canvas) 360px),
    var(--canvas);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(0, 82, 255, 0.42);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(0, 82, 255, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #ffffff 0, var(--canvas) 360px),
    var(--canvas);
  background-size:
    64px 64px,
    auto,
    auto;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: 20px 16px;
  overflow-x: hidden;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.8);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 4px 2px;
}

.brand-lockup strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.brand-lockup small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.brand-mark {
  display: grid;
  width: 78px;
  height: 52px;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.brand-mark img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

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

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.nav-item svg,
.search-box svg,
.action-link svg,
.copy-btn svg,
.primary-action svg,
.secondary-action svg,
.quick-icon svg,
.scenario-icon svg,
.promotion-icon svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.nav-item:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.nav-item:hover svg {
  transform: translateX(1px);
}

.nav-item.is-active {
  border-color: #c9daf5;
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-item.is-active::before {
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

.nav-item.is-active span,
.nav-item.is-active svg {
  transform: translateX(5px);
}

.sidebar-note {
  margin-top: auto;
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-soft);
}

.sidebar-note span:last-child {
  min-width: 0;
}

.note-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--success);
}

.workspace {
  width: min(100%, 1380px);
  min-width: 0;
  margin: 0 auto;
  padding: 30px 32px 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: -30px -32px 24px;
  padding: 30px 32px 18px;
  background: rgba(248, 251, 255, 0.86);
  border-bottom: 1px solid rgba(219, 229, 242, 0.72);
  backdrop-filter: blur(16px);
}

.topbar h1 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(440px, 100%);
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.1);
  transform: translateY(-1px);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder {
  color: var(--subtle);
}

.search-area {
  position: relative;
  width: min(520px, 100%);
}

.search-area .search-box {
  width: 100%;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 32;
  display: grid;
  width: min(560px, calc(100vw - 48px));
  max-height: min(520px, calc(100vh - 120px));
  overflow-y: auto;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.search-results[hidden] {
  display: none;
}

.search-result-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  border-color: var(--line);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.search-result-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
}

.search-result-copy {
  min-width: 0;
}

.search-result-copy strong,
.search-result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy strong {
  font-size: 14px;
  line-height: 1.35;
}

.search-result-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.search-result-arrow {
  color: var(--subtle);
}

.search-result-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.overview-grid {
  display: grid;
  gap: 16px;
}

.summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 24px;
  align-items: stretch;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #c8dcff;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 251, 255, 0.98) 52%, #edf4ff 100%),
    var(--surface);
  box-shadow: var(--shadow);
}

.summary-copy,
.visual-strip {
  min-width: 0;
}

.summary-copy {
  display: grid;
  align-content: center;
  padding: 2px 0;
}

.summary-copy h2 {
  max-width: 760px;
  margin: 10px 0 12px;
  color: var(--ink);
  font-size: 42px;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.summary-copy h2 span {
  display: block;
}

.summary-copy > p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.72;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.hero-proof strong {
  color: var(--primary);
  font-size: 16px;
  line-height: 1;
}

.visitor-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  max-width: 620px;
}

.visitor-stats span {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-muted);
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.visitor-stats strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.slogan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  width: min(100%, 430px);
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid #c8dcff;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.slogan-card span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.slogan-card strong {
  grid-column: 1;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.slogan-card .copy-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.primary-action {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.primary-action:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  box-shadow: 0 12px 26px rgba(0, 82, 255, 0.2);
  transform: translateY(-1px);
}

.secondary-action {
  border: 1px solid #c8dcff;
  background: #ffffff;
  color: var(--primary);
}

.secondary-action:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.primary-action:active,
.secondary-action:active,
.action-link:active,
.copy-btn:active {
  transform: translateY(1px);
}

.visual-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 254px;
  overflow: hidden;
}

.brand-preview-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 254px;
  min-height: 0;
  margin: 0;
  padding: 24px 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 82, 255, 0.04);
}

.brand-preview-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 82, 255, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(0, 82, 255, 0.08) 0 1px, transparent 1px 100%);
  background-size: 28px 28px;
  content: "";
  pointer-events: none;
}

.brand-preview-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 78%;
  min-width: 0;
  height: 120px;
  margin: auto;
  object-fit: contain;
  object-position: center;
}

.brand-preview-card figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.brand-preview-card figcaption span,
.brand-preview-card figcaption strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-preview-card figcaption span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.brand-preview-card figcaption strong {
  color: var(--ink);
  font-size: 13px;
}

.brand-preview-card.is-chacktok {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 247, 0.96)),
    #ffffff;
}

.brand-preview-card.is-chacktok::before {
  background:
    linear-gradient(90deg, rgba(228, 92, 99, 0.1) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(228, 92, 99, 0.1) 0 1px, transparent 1px 100%);
  background-size: 28px 28px;
}

.chacktok-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  background: #1f2533;
  color: #ffffff;
}

.chacktok-visual strong {
  font-size: 28px;
  line-height: 1;
}

.chacktok-visual span,
.chacktok-visual em {
  color: #d7e1f0;
  font-style: normal;
  line-height: 1.4;
}

.metric-row,
.scenario-grid,
.quick-start-grid,
.sync-source-grid,
.notion-lead-grid,
.module-grid,
.brand-grid,
.guideline-grid,
.channel-grid,
.office-template-grid,
.copy-grid,
.signature-grid,
.todo-columns,
.source-list,
.promotion-action-grid,
.promotion-signal-grid,
.promotion-skill-grid,
.promotion-resource-grid {
  display: grid;
  gap: 14px;
}

.metric-row {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.metric-row article,
.scenario-card,
.quick-card,
.sync-panel,
.sync-source-card,
.notion-lead-card,
.module-card,
.brand-card,
.guideline-card,
.channel-card,
.copy-card,
.signature-card,
.todo-card,
.source-card,
.asset-image-card,
.asset-path-card,
.office-template-hero,
.office-template-card,
.promotion-action-card,
.promotion-signal-card,
.promotion-skill-card,
.promotion-resource-card,
.signature-form,
.signature-preview-card,
.inventory-note,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-row article,
.scenario-card,
.quick-card,
.sync-source-card,
.module-card,
.notion-lead-card,
.guideline-card,
.channel-card,
.copy-card,
.signature-card,
.todo-card,
.source-card,
.office-template-hero,
.office-template-card,
.promotion-action-card,
.promotion-signal-card,
.promotion-skill-card,
.promotion-resource-card,
.signature-form,
.signature-preview-card {
  padding: 16px;
}

.metric-row article {
  min-height: 116px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.scenario-section {
  display: grid;
  gap: 14px;
}

.scenario-section .section-heading {
  margin-bottom: 0;
}

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

.scenario-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px 14px;
  align-content: start;
  min-height: 198px;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 68%, #f7fbff 100%),
    var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.scenario-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #c8dcff;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.scenario-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.scenario-copy span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.scenario-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.scenario-copy p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.62;
}

.scenario-card .action-link {
  grid-column: 2;
  justify-self: start;
  margin-top: auto;
}

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

.quick-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 72%, #f8fbff 100%),
    var(--surface);
}

.quick-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
}

.quick-card .action-link {
  justify-self: start;
  margin-top: auto;
}

.quick-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.sync-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 70%, #f8fbff 100%),
    var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.sync-heading {
  margin: 0;
}

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

.sync-meta-grid article {
  min-width: 0;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.sync-meta-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.sync-meta-grid strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.2;
}

.sync-stat-block {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.sync-subheading {
  display: grid;
  gap: 2px;
}

.sync-subheading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.sync-stat-block .visitor-stats {
  max-width: none;
  margin-top: 0;
}

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

.sync-source-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 178px;
}

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

.sync-source-card h3 {
  font-size: 16px;
  line-height: 1.35;
}

.sync-source-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.sync-snippet-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.metric-row span,
.metric-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.metric-row strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--primary);
  font-size: 31px;
  font-weight: 650;
  line-height: 1;
}

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

.notion-lead-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.module-card,
.scenario-card,
.notion-lead-card,
.sync-source-card,
.brand-card,
.guideline-card,
.channel-card,
.copy-card,
.signature-card,
.todo-card,
.source-card,
.asset-image-card,
.asset-path-card,
.office-template-card,
.promotion-action-card,
.promotion-signal-card,
.promotion-skill-card,
.promotion-resource-card {
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    background-color 150ms ease;
}

.module-card:hover,
.scenario-card:hover,
.quick-card:hover,
.sync-source-card:hover,
.notion-lead-card:hover,
.brand-card:hover,
.guideline-card:hover,
.channel-card:hover,
.copy-card:hover,
.signature-card:hover,
.source-card:hover,
.asset-image-card:hover,
.asset-path-card:hover,
.office-template-card:hover,
.promotion-action-card:hover,
.promotion-signal-card:hover,
.promotion-skill-card:hover,
.promotion-resource-card:hover {
  border-color: #c9daf5;
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.scenario-card:hover .scenario-icon,
.quick-card:hover .quick-icon,
.promotion-action-card:hover .promotion-icon,
.promotion-signal-card:hover .promotion-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.overview-guidance {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 64%, #f8fbff 100%),
    #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

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

.guidance-grid article {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid transparent;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.guidance-grid article:hover {
  border-color: #c9daf5;
  background: #ffffff;
}

.guidance-grid strong {
  color: var(--ink);
  font-size: 15px;
}

.guidance-grid span {
  color: var(--ink-muted);
  line-height: 1.6;
}

.notion-lead-card {
  display: grid;
  gap: 10px;
}

.notion-lead-card p {
  margin: 0;
}

.notion-lead-card small,
.source-meta {
  display: block;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.5;
}

.module-card header,
.notion-lead-card header,
.brand-card header,
.channel-card header,
.todo-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.module-card h3,
.notion-lead-card h3,
.brand-card h3,
.channel-card h3,
.copy-card h3,
.signature-card h3,
.todo-card h3,
.source-card h3,
.asset-image-card h3,
.asset-path-card h3,
.promotion-action-card h3,
.promotion-signal-card h3,
.promotion-resource-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.module-card p,
.notion-lead-card p,
.brand-card p,
.channel-card p,
.copy-card p,
.signature-card p,
.source-card p,
.promotion-action-card p,
.promotion-signal-card p,
.promotion-resource-card p {
  color: var(--ink-muted);
  line-height: 1.65;
}

.status-pill,
.tag,
.source-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.status-pill {
  padding: 5px 9px;
}

.tag,
.source-pill {
  padding: 4px 9px;
}

.is-ready {
  border-color: #c9ead9;
  background: var(--success-soft);
  color: var(--success);
}

.is-draft {
  border-color: #c9daf5;
  background: var(--primary-soft);
  color: var(--primary);
}

.is-candidate {
  border-color: #c8dcff;
  background: var(--info-soft);
  color: #1d4ed8;
}

.is-missing {
  border-color: #f6ddb1;
  background: var(--warning-soft);
  color: var(--warning);
}

.is-neutral {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink-muted);
}

.is-later {
  border-color: #f5c4ca;
  background: var(--danger-soft);
  color: var(--danger);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.section-heading h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ink-muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.section-heading select {
  width: 190px;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.brand-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.brand-card {
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.brand-card .brand-media {
  display: grid;
  aspect-ratio: 1 / 1;
  height: auto;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.brand-card .brand-media img {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  padding: 30px;
  object-fit: contain;
  background: #ffffff;
}

.brand-text-media {
  display: grid;
  height: 100%;
  align-content: center;
  gap: 8px;
  padding: 20px;
  background:
    linear-gradient(135deg, #101820 0%, #1f2533 100%);
  color: var(--ink);
}

.brand-text-media strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.1;
}

.brand-text-media span {
  max-width: 250px;
  color: #d7e1f0;
  font-size: 12px;
  line-height: 1.45;
}

.brand-card .brand-media .chacktok-visual {
  min-height: 145px;
  border: 0;
  border-radius: 0;
}

.brand-card .brand-media .chacktok-visual strong {
  font-size: 24px;
}

.brand-card .brand-body {
  padding: 16px;
}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

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

.guideline-card ul,
.todo-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.promotion-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 22px;
  align-items: stretch;
  min-width: 0;
  margin-bottom: 20px;
  padding: 26px;
  border: 1px solid #c8dcff;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #eef6ff 100%),
    var(--surface);
  box-shadow: var(--shadow);
}

.promotion-hero-copy {
  display: grid;
  align-content: center;
  min-width: 0;
}

.promotion-hero h3 {
  max-width: 760px;
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.promotion-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

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

.promotion-flow article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(201, 218, 245, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 251, 255, 0.94) 100%),
    var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.promotion-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border: 1px solid #c8dcff;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.promotion-flow strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.promotion-flow p {
  margin: 0;
  font-size: 13px;
}

.promotion-section {
  margin-top: 20px;
}

.promotion-action-card small {
  color: var(--muted);
  line-height: 1.55;
}

.promotion-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
}

.promotion-signal-card,
.promotion-resource-card {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
}

.promotion-signal-card p,
.promotion-resource-card p,
.promotion-action-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.promotion-action-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.promotion-action-card {
  display: grid;
  gap: 13px;
  align-content: start;
  min-width: 0;
  min-height: 196px;
  background: var(--surface);
}

.action-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  border: 1px solid #c8dcff;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.promotion-action-card small {
  display: block;
  margin: 5px 0 9px;
  font-size: 12px;
}

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

.promotion-skill-heading {
  align-items: flex-end;
}

.promotion-skill-heading .action-link {
  flex: 0 0 auto;
}

.promotion-skill-disclaimer {
  margin: -6px 0 14px;
  padding: 11px 13px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--primary-soft);
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.promotion-skill-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border-left: 3px solid var(--primary);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.promotion-skill-card.is-recommended {
  border-left-color: #d79b22;
}

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

.promotion-skill-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.promotion-skill-title > div {
  min-width: 0;
}

.promotion-skill-icon {
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
}

.promotion-skill-card.is-recommended .promotion-skill-icon {
  background: #fff5dc;
  color: #9a6700;
}

.source-pill.is-company-skill {
  border-color: #c8dcff;
  background: var(--primary-soft);
  color: var(--primary);
}

.source-pill.is-recommended-skill {
  border-color: #f0d59a;
  background: #fff5dc;
  color: #8a5b00;
}

.promotion-skill-title small,
.promotion-skill-note,
.promotion-skill-coordinate > span,
.promotion-skill-coordinate small {
  color: var(--muted);
  line-height: 1.5;
}

.promotion-skill-title h3,
.promotion-skill-card p {
  margin: 0;
}

.promotion-skill-title h3 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.promotion-skill-card p {
  color: var(--ink-muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.promotion-skill-coordinate {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.promotion-skill-coordinate > span {
  font-size: 12px;
  font-weight: 700;
}

.promotion-skill-coordinate code {
  display: block;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.promotion-skill-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.skillhub-internal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.skillhub-internal-status svg {
  width: 15px;
  height: 15px;
}

.promotion-skill-note {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.promotion-resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.promotion-resource-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.promotion-resource-card code {
  display: block;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.promotion-resource-card .copy-btn {
  justify-self: start;
}

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

.channel-card {
  --channel-accent: var(--primary);
  --channel-accent-soft: var(--primary-soft);
  --channel-accent-ink: var(--primary);
  display: grid;
  gap: 14px;
  box-shadow: inset 3px 0 0 var(--channel-accent);
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 74%, #f8fbff 100%),
    var(--surface);
}

.channel-card.is-brand-mwe {
  --channel-accent: #0052ff;
  --channel-accent-soft: #e8f0ff;
  --channel-accent-ink: #0052ff;
}

.channel-card.is-brand-marvel {
  --channel-accent: #f4b000;
  --channel-accent-soft: #fff6d8;
  --channel-accent-ink: #7a5400;
}

.channel-card.is-brand-chacktok {
  --channel-accent: #e45c63;
  --channel-accent-soft: #fff0f1;
  --channel-accent-ink: #b63a42;
}

.channel-card header {
  align-items: center;
  justify-content: flex-start;
}

.channel-card header div {
  min-width: 0;
  flex: 1;
}

.channel-card header small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.channel-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--channel-accent-soft);
  color: var(--channel-accent-ink);
}

.channel-card .status-pill {
  border-color: transparent;
  background: var(--channel-accent-soft);
  color: var(--channel-accent-ink);
}

.channel-card .action-link:hover {
  border-color: var(--channel-accent);
  color: var(--channel-accent-ink);
}

.channel-icon svg {
  width: 18px;
  height: 18px;
}

.channel-card p {
  margin: 0;
}

.channel-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.touchpoint-sync-section,
.source-conflict-section {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.touchpoint-sync-section .section-heading,
.source-conflict-section .section-heading {
  margin-bottom: 0;
}

.touchpoint-card,
.source-conflict-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

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

.touchpoint-card header div {
  min-width: 0;
}

.touchpoint-card header small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.touchpoint-card h3,
.source-conflict-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.touchpoint-card p,
.source-conflict-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
}

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

.source-conflict-card {
  border-color: #f6ddb1;
  background: linear-gradient(180deg, #fffdfa 0%, #fff9ed 100%);
}

.conflict-decision {
  padding: 11px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.conflict-decision strong {
  color: var(--ink);
}

.action-link,
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.action-link:hover,
.copy-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 10px 22px rgba(0, 82, 255, 0.08);
  transform: translateY(-1px);
}

.copy-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.action-link.is-disabled {
  cursor: default;
  color: var(--subtle);
  background: var(--surface-soft);
}

.table-wrap {
  overflow: auto;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

td {
  color: var(--ink-muted);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--surface-soft);
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

td code {
  display: block;
  max-width: 360px;
  margin-bottom: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

td .copy-btn {
  min-height: 34px;
  padding: 7px 10px;
}

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

.signature-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.inventory-note {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  color: var(--ink-muted);
  line-height: 1.65;
}

.asset-panel-note {
  margin: -6px 0 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.office-template-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border-left: 3px solid var(--primary);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.office-template-hero h3,
.office-template-hero p,
.office-template-card h3,
.office-template-card p {
  margin: 0;
}

.office-template-hero h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.office-template-hero p,
.office-template-card p {
  color: var(--ink-muted);
  line-height: 1.6;
}

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

.office-template-card {
  --office-accent: var(--primary);
  --office-soft: var(--primary-soft);
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  min-width: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.office-template-card.is-brand-mwe {
  --office-accent: #0052ff;
  --office-soft: #e8f0ff;
}

.office-template-card.is-brand-chacktok {
  --office-accent: #e45c63;
  --office-soft: #fff0f1;
}

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

.office-template-title {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.office-template-title div {
  min-width: 0;
}

.office-template-title small,
.office-template-tip {
  color: var(--muted);
  line-height: 1.45;
}

.office-template-icon {
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--office-soft);
  color: var(--office-accent);
}

.office-template-card:hover .office-template-icon {
  background: var(--office-accent);
  color: #ffffff;
}

.office-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.asset-image-section,
.asset-path-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.asset-image-section {
  margin-bottom: 20px;
}

.asset-image-grid,
.asset-path-grid {
  display: grid;
  gap: 14px;
}

.asset-image-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.asset-image-card,
.asset-path-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.asset-image-card {
  padding: 0;
  overflow: hidden;
}

.asset-image-preview {
  display: grid;
  aspect-ratio: 1 / 1;
  min-height: 0;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(45deg, #eef2f7 25%, transparent 25%),
    linear-gradient(-45deg, #eef2f7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef2f7 75%),
    linear-gradient(-45deg, transparent 75%, #eef2f7 75%),
    #ffffff;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
  transition: background-position 220ms ease;
}

.asset-image-preview.is-dark {
  background: #101820;
}

.asset-image-card:hover .asset-image-preview {
  background-position:
    4px 4px,
    4px 12px,
    12px -4px,
    -4px 4px;
}

.asset-image-preview img {
  width: auto;
  height: auto;
  min-width: 0;
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}

.asset-image-preview.is-compact img {
  max-width: 68%;
  max-height: 68%;
}

.asset-image-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.asset-image-body header,
.asset-path-card header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
}

.asset-image-card h3,
.asset-image-card p,
.asset-path-card h3,
.asset-path-card p {
  margin: 0;
}

.asset-image-card small,
.asset-path-card p {
  color: var(--muted);
}

.asset-image-card p,
.asset-path-card p {
  line-height: 1.55;
}

.asset-path-card code,
.office-template-card code {
  display: block;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.asset-path-card .copy-btn,
.office-template-card .copy-btn {
  justify-self: start;
}

.form-grid,
.social-fields {
  display: grid;
  gap: 10px;
}

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

.social-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.signature-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.signature-form input,
.signature-form select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.signature-form input:focus,
.signature-form select:focus {
  border-color: var(--primary);
  outline: 0;
}

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

.signature-preview-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

#signaturePreview {
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

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

.copy-card pre,
.signature-card pre {
  overflow: auto;
  white-space: pre-wrap;
  margin: 12px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink-muted);
  line-height: 1.6;
}

.copy-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.copy-usage {
  margin: 10px 0 0;
  font-size: 13px;
}

.copy-card.is-internal-copy pre {
  background: #fffaf1;
  color: #755820;
}

.gsap-reveal {
  will-change: transform, opacity;
}

.todo-card label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.todo-card input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.source-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.source-card {
  display: grid;
  gap: 10px;
}

.empty-state {
  display: none;
  margin: 22px 0;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: #0a0b0d;
  color: #ffffff;
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.is-hidden-by-search {
  display: none !important;
}

.is-search-focus {
  outline: 2px solid rgba(0, 82, 255, 0.45);
  outline-offset: 4px;
}

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

  .sidebar {
    position: static;
    height: auto;
    padding: 16px 18px;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sidebar-note {
    margin-top: 0;
  }

  .workspace {
    padding: 26px 20px 42px;
  }

  .topbar {
    margin: -26px -20px 22px;
    padding: 24px 20px 16px;
  }

  .summary-band,
  .scenario-grid,
  .quick-start-grid,
  .sync-source-grid,
  .notion-lead-grid,
  .brand-grid,
  .channel-grid,
  .office-template-hero,
  .office-template-grid,
  .copy-grid,
  .signature-builder,
  .signature-grid,
  .todo-columns,
  .asset-image-grid,
  .asset-path-grid,
  .source-list,
  .promotion-hero,
  .promotion-action-grid,
  .promotion-signal-grid,
  .promotion-skill-grid,
  .promotion-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-grid,
  .metric-row,
  .sync-meta-grid,
  .guidance-grid,
  .guideline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell,
  .sidebar,
  .workspace {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar {
    gap: 14px;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 116px;
  }

  .sidebar-note {
    display: none;
  }

  .workspace {
    padding: 18px 18px 34px;
  }

  .topbar {
    margin: -18px -18px 22px;
    padding: 18px;
  }

  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar h1 {
    font-size: 28px;
  }

  .summary-copy h2 {
    font-size: 28px;
    word-break: keep-all;
  }

  .summary-copy > p {
    font-size: 15px;
    word-break: break-word;
  }

  .hero-proof span {
    flex: 1 1 130px;
  }

  .visitor-stats {
    grid-template-columns: 1fr;
  }

  .slogan-card {
    grid-template-columns: 1fr;
  }

  .slogan-card .copy-btn {
    grid-column: 1;
    grid-row: auto;
    width: fit-content;
  }

  .summary-band,
  .scenario-grid,
  .quick-start-grid,
  .sync-meta-grid,
  .sync-source-grid,
  .metric-row,
  .notion-lead-grid,
  .module-grid,
  .brand-grid,
  .guideline-grid,
  .channel-grid,
  .office-template-hero,
  .office-template-grid,
  .copy-grid,
  .signature-builder,
  .signature-grid,
  .todo-columns,
  .asset-image-grid,
  .asset-path-grid,
  .source-list,
  .promotion-hero,
  .promotion-action-grid,
  .promotion-signal-grid,
  .promotion-skill-grid,
  .promotion-resource-grid {
    grid-template-columns: 1fr;
  }

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

  .summary-band {
    padding: 18px;
  }

  .office-template-hero,
  .office-template-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .view,
  .section-heading,
  .section-heading > div,
  .office-template-hero > div,
  .office-template-grid,
  .office-template-title,
  .office-template-title div {
    min-width: 0;
    max-width: 100%;
  }

  .office-template-card header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .office-template-card .source-pill {
    justify-self: start;
  }

  .office-template-card h3,
  .office-template-card p,
  .office-template-card code,
  .office-template-hero p,
  .section-heading p:not(.eyebrow),
  .office-template-tip {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .office-template-actions .action-link,
  .office-template-actions .copy-btn {
    flex: 1 1 132px;
    justify-content: center;
    min-width: 0;
  }

  .office-template-card .office-template-actions .copy-btn {
    flex-basis: 100%;
  }

  .promotion-hero {
    padding: 18px;
  }

  .promotion-hero h3 {
    max-width: 100%;
    font-size: 23px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .promotion-flow {
    grid-template-columns: 1fr;
  }

  .promotion-flow article {
    min-height: 0;
  }

  .form-grid,
  .social-fields {
    grid-template-columns: 1fr;
  }

  .visual-strip {
    grid-template-columns: 1fr;
  }

  .brand-preview-card,
  .chacktok-visual {
    height: 216px;
  }

  .brand-preview-card img {
    height: 104px;
  }

  .asset-image-preview img {
    max-width: 58%;
    max-height: 58%;
  }

  .asset-image-preview.is-compact img {
    max-width: 46%;
    max-height: 46%;
  }

  .section-heading select,
  .filter-row {
    width: 100%;
  }

  .filter-row {
    justify-content: stretch;
  }
}

@media (max-width: 460px) {
  .brand-lockup small {
    max-width: 240px;
  }

  .topbar h1 {
    font-size: 25px;
  }

  .summary-copy h2 {
    font-size: 25px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .scenario-card {
    grid-template-columns: 1fr;
  }

  .scenario-card .action-link {
    grid-column: 1;
  }

  .metric-row article,
  .scenario-card,
  .module-card,
  .notion-lead-card,
  .guideline-card,
  .channel-card,
  .copy-card,
  .signature-card,
  .todo-card,
  .source-card,
  .signature-form,
  .signature-preview-card,
  .asset-path-card,
  .office-template-card,
  .promotion-action-card,
  .promotion-signal-card,
  .promotion-skill-card,
  .promotion-resource-card {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
