/* ================================================================
   KROMA STUDIO · CONTENT OS
   Bento content CRM · dark rail + porcelain workspace
   ================================================================ */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0f0f12;
  --ink-2: #1c1c21;
  --ink-3: #26262d;
  --ink-4: #33333b;
  --canvas: #f4f5f7;
  --paper: #ffffff;
  --yellow: #FFD600;
  --yellow-deep: #E6BF00;
  --lavender: #c5b4e3;
  --lavender-soft: #eee8f8;
  --coral: #ff6b6b;
  --coral-soft: #ffe4e2;
  --amber: #FFB020;
  --amber-soft: #FFF0CD;
  --muted: #77777f;
  --muted-2: #a1a1aa;
  --line: #e8e9ed;
  --line-dark: rgba(255, 255, 255, 0.075);
  --shadow-sm: 0 1px 2px rgba(15, 15, 18, 0.04), 0 8px 20px rgba(15, 15, 18, 0.035);
  --shadow-md: 0 18px 44px -22px rgba(15, 15, 18, 0.22);
  --shadow-lg: 0 30px 80px -36px rgba(15, 15, 18, 0.38);
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;
  --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(197, 180, 227, 0.22), transparent 30%),
    radial-gradient(circle at 94% 100%, rgba(255, 214, 0, 0.09), transparent 27%),
    var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

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

button {
  color: inherit;
}

button,
[role='button'] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[role='button']:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable='true']:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

svg {
  display: block;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ----------------------------------------------------------------
   Boot screen
   ---------------------------------------------------------------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  background: var(--ink);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.boot.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 20px;
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 0 0 8px rgba(255, 214, 0, 0.06), 0 24px 60px rgba(255, 214, 0, 0.24);
  animation: bootFloat 1.8s var(--ease) infinite alternate;
}

.boot-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.boot-copy strong {
  font-size: 13px;
  font-weight: 800;
}

.boot-copy span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.18em;
}

.boot-bar {
  width: 112px;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.boot-bar span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  animation: bootLoad 1s var(--ease) infinite;
}

@keyframes bootFloat {
  to { transform: translateY(-6px) rotate(-3deg); }
}

@keyframes bootLoad {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

/* ----------------------------------------------------------------
   Layout shell
   ---------------------------------------------------------------- */
.app-shell {
  display: grid;
  grid-template-columns: 76px 348px minmax(0, 1fr) 356px;
  gap: 10px;
  width: 100%;
  height: 100dvh;
  padding: 12px;
  margin: 0 auto;
  max-width: 1980px;
  transition: filter 0.35s var(--ease);
}

.app-shell.is-loading {
  pointer-events: none;
}

.main,
.queue,
.insights {
  min-width: 0;
  min-height: 0;
}

/* ----------------------------------------------------------------
   01 · Rail
   ---------------------------------------------------------------- */
.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 12px 8px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 0, 0.08), transparent 27%),
    var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px -32px rgba(15, 15, 18, 0.65);
}

.rail-logo {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 15px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 8px 24px -10px rgba(255, 214, 0, 0.65);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.rail-logo:hover {
  transform: rotate(-6deg) scale(1.04);
  box-shadow: 0 12px 32px -10px rgba(255, 214, 0, 0.7);
}

.rail-logo strong {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.1em;
  transform: translateX(-1px);
}

.rail-logo::after {
  content: '';
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.rail-rule {
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.11);
}

.rail-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.rail-link {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #85858f;
  background: transparent;
  cursor: pointer;
  transition:
    color 0.22s var(--ease),
    background 0.22s var(--ease),
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.rail-link svg {
  width: 20px;
  height: 20px;
}

.rail-link:hover {
  color: #fff;
  background: var(--ink-2);
  transform: translateY(-1px);
}

.rail-link.is-active {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 10px 24px -10px rgba(255, 214, 0, 0.6);
}

.rail-link.is-active::before {
  content: '';
  position: absolute;
  left: -9px;
  width: 3px;
  height: 16px;
  border-radius: 99px;
  background: var(--yellow);
}

.rail-tip {
  position: absolute;
  left: calc(100% + 13px);
  z-index: 60;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  pointer-events: none;
}

.rail-tip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}

.rail-link:hover .rail-tip,
.rail-link:focus-visible .rail-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.rail-ring {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.rail-ring::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: var(--ink);
}

.rail-ring span {
  position: relative;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.rail-avatar {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: var(--ink);
  background:
    radial-gradient(circle at 32% 24%, #fff 0 8%, transparent 9%),
    linear-gradient(145deg, var(--yellow), #D9B800 58%, #6B5800);
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}

.rail-avatar:hover {
  transform: scale(1.06);
}

.rail-avatar strong {
  font-size: 15px;
  font-weight: 800;
}

.rail-avatar::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--amber);
}

/* ----------------------------------------------------------------
   02 · Queue
   ---------------------------------------------------------------- */
.queue {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(197, 180, 227, 0.08), transparent 25%),
    var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px -38px rgba(15, 15, 18, 0.7);
}

.queue-head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  padding: 21px 18px 14px;
}

.queue-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.queue-close {
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.58);
  background: var(--ink-2);
  cursor: pointer;
}

.queue-close svg {
  width: 14px;
  height: 14px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.45);
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.12);
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(255, 176, 32, 0.45);
  animation: pulseDot 2.4s ease-out infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.7); opacity: 0.9; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

.queue-title {
  margin: 7px 0 0;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
  color: #fff;
}

.queue-title span {
  color: var(--yellow);
}

.round-btn {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease);
}

.round-btn svg {
  width: 19px;
  height: 19px;
}

.round-btn-yellow {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 8px 22px -10px rgba(255, 214, 0, 0.65);
}

.round-btn-yellow:hover {
  transform: rotate(90deg) scale(1.05);
}

.queue-scroll {
  flex: 1;
  min-height: 0;
  padding: 0 14px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.queue-scroll::-webkit-scrollbar {
  display: none;
}

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

.kpi-card {
  position: relative;
  min-height: 87px;
  padding: 11px 12px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 17px;
  background: var(--ink-2);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.11);
  background: #202026;
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: -24px;
  right: -20px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--kpi-glow, rgba(255, 214, 0, 0.06));
  filter: blur(4px);
}

.kpi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}

.kpi-label {
  overflow: hidden;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.46);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-icon {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: var(--kpi-color, var(--yellow));
  background: var(--kpi-bg, rgba(255, 214, 0, 0.1));
}

.kpi-icon svg {
  width: 11px;
  height: 11px;
}

.kpi-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.065em;
  color: #fff;
}

.kpi-value small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.33);
}

.kpi-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 8.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.32);
  white-space: nowrap;
}

.kpi-foot b {
  font-weight: 700;
  color: var(--amber);
}

.queue-tools {
  margin-top: 14px;
}

.queue-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 99px;
}

.segmented-dark {
  background: var(--ink-2);
}

.segmented button {
  min-width: 51px;
  padding: 7px 11px;
  border: 0;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.44);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.segmented button:hover {
  color: #fff;
}

.segmented button.is-active {
  color: var(--ink);
  background: var(--yellow);
}

.month-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.month-select {
  max-width: 122px;
  padding: 7px 25px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 99px;
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: var(--ink-2);
  outline: none;
  appearance: none;
  cursor: pointer;
}

.month-select option {
  color: var(--ink);
  background: #fff;
}

.month-select-wrap svg {
  position: absolute;
  right: 8px;
  width: 10px;
  height: 10px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.channel-scroll {
  display: flex;
  gap: 5px;
  padding: 9px 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.channel-scroll::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip span {
  display: inline-grid;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  place-items: center;
  border-radius: 99px;
  font-size: 7.5px;
  background: rgba(255, 255, 255, 0.1);
}

.chip-dark {
  color: rgba(255, 255, 255, 0.56);
  background: var(--ink-2);
}

.chip-dark:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.chip-dark.is-active {
  color: var(--ink);
  background: #fff;
}

.chip-dark.is-active span {
  background: rgba(15, 15, 18, 0.1);
}

.worklist-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 2px 9px;
}

.section-kicker {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.section-kicker-dark {
  color: #8a8a93;
}

.section-count {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.28);
}

.mini-icon-btn {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mini-icon-btn:hover {
  color: #fff;
  background: var(--ink-2);
}

.mini-icon-btn svg {
  width: 12px;
  height: 12px;
}

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

.queue-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: var(--ink-2);
}

.queue-search svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.35);
}

.queue-search input {
  width: 100%;
  height: 34px;
  padding: 0;
  border: 0;
  font-size: 10.5px;
  color: #fff;
  background: transparent;
  outline: none;
}

.queue-search input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.queue-search input::-webkit-search-cancel-button {
  display: none;
}

.queue-search button {
  padding: 0 2px;
  border: 0;
  font-size: 17px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
}

.worklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.worklist-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 3px 2px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.27);
}

.worklist-group-label:first-child {
  margin-top: 2px;
}

.worklist-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.055);
}

.content-card {
  position: relative;
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px 10px 10px 9px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 16px;
  text-align: left;
  color: #fff;
  background: var(--ink-2);
  cursor: pointer;
  transition:
    background 0.22s var(--ease),
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.content-card:hover {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.12);
  background: #232329;
  transform: translateX(2px);
}

.content-card.is-selected {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 12px 30px -18px rgba(255, 214, 0, 0.85);
}

.content-card.is-selected:hover {
  background: #FFE54A;
}

.content-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 48px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.content-date b {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.content-date span {
  margin-top: 3px;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.content-card.is-selected .content-date {
  background: rgba(15, 15, 18, 0.09);
}

.content-card.is-selected .content-date b {
  color: var(--ink);
}

.content-card.is-selected .content-date span {
  color: rgba(15, 15, 18, 0.55);
}

.content-main {
  min-width: 0;
}

.content-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.content-platform {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.content-platform svg {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
}

.content-card.is-selected .content-platform {
  color: rgba(15, 15, 18, 0.58);
}

.content-time {
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}

.content-card.is-selected .content-time {
  color: rgba(15, 15, 18, 0.48);
}

.content-hook {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: #f1f1f3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.content-card.is-selected .content-hook {
  color: var(--ink);
}

.content-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
}

.content-pillar {
  overflow: hidden;
  font-size: 7.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-card.is-selected .content-pillar {
  color: rgba(15, 15, 18, 0.5);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 99px;
  font-size: 6.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.07);
}

.status-chip.status-published {
  color: var(--yellow);
  background: rgba(255, 214, 0, 0.12);
}

.status-chip.status-scheduled {
  color: var(--lavender);
  background: rgba(197, 180, 227, 0.13);
}

.status-chip.status-ready {
  color: var(--amber);
  background: rgba(255, 176, 32, 0.13);
}

.status-chip.status-writing {
  color: #e1d5f3;
  background: rgba(197, 180, 227, 0.16);
}

.status-chip.status-idea {
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.07);
}

.content-card.is-selected .status-chip {
  color: var(--ink);
  background: rgba(15, 15, 18, 0.12);
}

.queue-empty {
  padding: 34px 22px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.queue-empty-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  background: var(--ink-2);
}

.queue-empty strong {
  display: block;
  font-size: 12px;
}

.queue-empty p {
  margin: 6px 0 14px;
  font-size: 9.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.35);
}

.queue-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.queue-foot-api {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  border: 0;
  font-size: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
}

.queue-foot-api:hover {
  color: rgba(255, 255, 255, 0.8);
}

.queue-foot-api svg {
  width: 9px;
  height: 9px;
  color: rgba(255, 255, 255, 0.22);
}

.api-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(255, 176, 32, 0.12);
}

.api-dot.is-offline {
  background: var(--coral);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.13);
}

.queue-foot-version {
  font-size: 7px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.18);
}

/* ----------------------------------------------------------------
   03 · Main / topbar
   ---------------------------------------------------------------- */
.main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 4px 10px 6px;
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 500;
  color: #92929b;
}

.breadcrumb .crumb-home {
  font-weight: 600;
  color: #6d6d76;
}

.breadcrumb .crumb-sep {
  color: #c4c4ca;
}

.breadcrumb strong {
  overflow: hidden;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb .crumb-badge svg {
  width: 8px;
  height: 8px;
}

.breadcrumb .crumb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 99px;
  font-size: 7.5px;
  font-weight: 700;
  color: #666670;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.api-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 600;
  color: #6f6f78;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(15, 15, 18, 0.055);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.api-pill:hover {
  border-color: rgba(15, 15, 18, 0.12);
  background: #fff;
}

.api-pill .api-dot {
  width: 5px;
  height: 5px;
}

.icon-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #585862;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  color: var(--ink);
  background: #fff;
  border-color: rgba(15, 15, 18, 0.06);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.notification-btn {
  position: relative;
}

.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--canvas);
  border-radius: 50%;
  background: var(--coral);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.pill:hover {
  transform: translateY(-1px);
}

.pill-dark {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 20px -12px rgba(15, 15, 18, 0.5);
}

.pill-dark:hover {
  background: #24242a;
}

.pill-yellow {
  color: var(--ink);
  background: var(--yellow);
}

.pill-yellow:hover {
  background: #FFE85A;
}

.pill-light {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.pill-light:hover {
  border-color: #d1d2d8;
}

.pill-ghost {
  color: #6d6d76;
  background: transparent;
  border-color: var(--line);
}

.pill-ghost:hover {
  color: var(--ink);
  background: #fff;
}

.pill-coral {
  color: #7e1d18;
  background: var(--coral-soft);
}

.pill-sm {
  min-height: 29px;
  padding: 0 11px;
  font-size: 8.5px;
}

.pill svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}

.pill-plus {
  display: grid;
  width: 18px;
  height: 18px;
  margin-right: -5px;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--yellow);
}

.topbar-cta {
  height: 36px;
  padding-left: 15px;
  padding-right: 8px;
  font-size: 9.5px;
}

.mobile-menu {
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.mobile-menu svg {
  width: 18px;
  height: 18px;
}

.main-scroll {
  flex: 1;
  min-height: 0;
  padding: 2px 5px 18px 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cfd0d6 transparent;
}

.main-scroll::-webkit-scrollbar {
  width: 5px;
}

.main-scroll::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #cfd0d6;
}

.main-view {
  animation: viewIn 0.45s var(--ease) both;
}

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

/* ----------------------------------------------------------------
   Shared cards, type, pills
   ---------------------------------------------------------------- */
.card {
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.card-pad {
  padding: 18px;
}

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

.section-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 3px 0 0;
  font-size: 9.5px;
  color: #8a8a93;
}

.section-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  font-size: 9px;
  font-weight: 700;
  color: #6b6b75;
  background: transparent;
  cursor: pointer;
}

.text-link:hover {
  color: var(--ink);
}

.text-link svg {
  width: 11px;
  height: 11px;
}

.micro-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9aa3;
}

.positive {
  color: #A07500;
}

.negative {
  color: #d64545;
}

.divider {
  height: 1px;
  background: var(--line);
}

/* ----------------------------------------------------------------
   Post hero
   ---------------------------------------------------------------- */
.post-hero {
  position: relative;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.post-hero::after {
  content: 'K';
  position: absolute;
  top: -52px;
  right: -14px;
  font-size: 190px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.12em;
  color: rgba(15, 15, 18, 0.02);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.kroma-thumb {
  position: relative;
  width: 96px;
  aspect-ratio: 9 / 11.5;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 19px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 214, 0, 0.4), transparent 22%),
    radial-gradient(circle at 20% 80%, rgba(197, 180, 227, 0.25), transparent 34%),
    linear-gradient(160deg, #24242c 0%, #0f0f12 58%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 14px 24px -18px rgba(15, 15, 18, 0.65);
  isolation: isolate;
}

.kroma-thumb::before {
  content: '';
  position: absolute;
  inset: 7px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  pointer-events: none;
}

.kroma-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.35)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.thumb-orb {
  position: absolute;
  top: 23%;
  left: 50%;
  z-index: 3;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 24%, #fff 0 5%, rgba(255, 255, 255, 0.55) 8%, transparent 24%),
    radial-gradient(circle at 36% 30%, #FFF1A6 0 18%, var(--yellow) 40%, #D4B000 68%, #4A3B00 100%);
  box-shadow:
    inset -8px -10px 14px rgba(49, 37, 0, 0.46),
    inset 4px 5px 10px rgba(255, 255, 255, 0.55),
    0 10px 22px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
}

.thumb-orb::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 214, 0, 0.35);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(-18deg);
  box-shadow: 0 0 12px rgba(255, 214, 0, 0.15);
}

.thumb-k {
  position: absolute;
  top: 23%;
  left: 50%;
  z-index: 4;
  font-size: 25px;
  font-weight: 800;
  line-height: 55px;
  letter-spacing: -0.12em;
  color: rgba(15, 15, 18, 0.82);
  transform: translateX(-50%);
  mix-blend-mode: multiply;
}

.thumb-caption {
  position: absolute;
  right: 11px;
  bottom: 11px;
  left: 11px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.thumb-caption span {
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.thumb-caption b {
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.kroma-thumb[data-theme='2'] .thumb-orb {
  background:
    radial-gradient(circle at 31% 24%, #fff 0 5%, rgba(255, 255, 255, 0.55) 8%, transparent 24%),
    radial-gradient(circle at 36% 30%, #f5ecff 0 16%, var(--lavender) 43%, #8b76ad 72%, #3a3150 100%);
  box-shadow:
    inset -8px -10px 14px rgba(30, 22, 46, 0.45),
    inset 4px 5px 10px rgba(255, 255, 255, 0.55),
    0 10px 22px rgba(0, 0, 0, 0.4);
}

.kroma-thumb[data-theme='2'] .thumb-orb::after {
  border-color: rgba(197, 180, 227, 0.5);
}

.kroma-thumb[data-theme='3'] .thumb-orb {
  background:
    radial-gradient(circle at 31% 24%, #fff 0 5%, rgba(255, 255, 255, 0.5) 8%, transparent 24%),
    radial-gradient(circle at 36% 30%, #ffdcd6 0 16%, var(--coral) 44%, #b43f3f 74%, #431616 100%);
  box-shadow:
    inset -8px -10px 14px rgba(55, 16, 16, 0.45),
    inset 4px 5px 10px rgba(255, 255, 255, 0.5),
    0 10px 22px rgba(0, 0, 0, 0.4);
}

.kroma-thumb[data-theme='3'] .thumb-orb::after {
  border-color: rgba(255, 107, 107, 0.45);
}

.kroma-thumb[data-theme='4'] .thumb-orb {
  background:
    radial-gradient(circle at 31% 24%, #fff 0 5%, rgba(255, 255, 255, 0.5) 8%, transparent 24%),
    radial-gradient(circle at 36% 30%, #FFF0CD 0 16%, var(--amber) 44%, #FFB020 74%, #4A2B00 100%);
  box-shadow:
    inset -8px -10px 14px rgba(58, 35, 0, 0.45),
    inset 4px 5px 10px rgba(255, 255, 255, 0.5),
    0 10px 22px rgba(0, 0, 0, 0.4);
}

.kroma-thumb[data-theme='4'] .thumb-orb::after {
  border-color: rgba(255, 176, 32, 0.45);
}

.hero-copy {
  min-width: 0;
  padding-top: 2px;
}

.hero-overline {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #96969f;
}

.hero-overline .format-icon {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 5px;
  color: var(--ink);
  background: var(--yellow);
}

.hero-overline .format-icon svg {
  width: 10px;
  height: 10px;
}

.hero-title {
  max-width: 580px;
  margin: 0;
  font-size: clamp(20px, 1.75vw, 27px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.048em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-deck {
  max-width: 500px;
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: #8b8b95;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  margin-top: 11px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 500;
  color: #80808a;
  white-space: nowrap;
}

.hero-meta-item svg {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  color: #afafb7;
}

.hero-meta-item b {
  font-weight: 700;
  color: #4d4d56;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  min-width: 98px;
}

.hero-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 99px;
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.state-pill svg {
  width: 8px;
  height: 8px;
}

.state-top {
  color: var(--ink);
  background: var(--yellow);
}

.state-average {
  color: #55555e;
  background: #f0f0f3;
}

.state-low {
  color: #b73d36;
  background: var(--coral-soft);
}

.temp-hot {
  color: #a52f28;
  background: #ffe1dd;
}

.temp-warm {
  color: #755d15;
  background: #fff2bd;
}

.temp-cold {
  color: #56617a;
  background: #e9edf5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.hero-icon-btn {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #62626c;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-icon-btn:hover {
  border-color: #d4d4da;
  background: #f7f7f9;
  transform: translateY(-1px);
}

.hero-icon-btn svg {
  width: 12px;
  height: 12px;
}

.hero-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 10px;
  border: 0;
  border-radius: 99px;
  font-size: 7.5px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-edit:hover {
  background: #292930;
  transform: translateY(-1px);
}

.hero-edit svg {
  width: 10px;
  height: 10px;
}

/* Tabs */
.tab-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-height: 33px;
  padding: 0 9px;
  border: 0;
  border-radius: 13px;
  font-size: 8.5px;
  font-weight: 600;
  color: #8d8d96;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}

.tab svg {
  width: 12px;
  height: 12px;
}

.tab:hover {
  color: var(--ink);
  background: #f5f5f7;
}

.tab.is-active {
  color: #fff;
  background: var(--ink);
}

.tab-count {
  display: grid;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  place-items: center;
  border-radius: 99px;
  font-size: 6.5px;
  color: #777780;
  background: #f0f0f3;
}

.tab.is-active .tab-count {
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.1);
}

.tab-panel {
  margin-top: 10px;
  animation: panelIn 0.35s var(--ease) both;
}

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

/* ----------------------------------------------------------------
   Script tab
   ---------------------------------------------------------------- */
.timeline-scroll {
  margin: 0 -2px;
  padding: 2px 2px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d6d7dc transparent;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 7px;
  min-width: 500px;
}

.beat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 119px;
  padding: 13px 12px 11px;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.beat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.beat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 12px;
  left: 12px;
  height: 2px;
  border-radius: 0 0 99px 99px;
  background: var(--tone, var(--yellow));
}

.beat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.beat-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c7c85;
}

.beat-index {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 5px;
  font-size: 6.5px;
  font-weight: 800;
  color: var(--ink);
  background: var(--tone-soft, #FFF0A8);
}

.beat-time {
  font-size: 6.5px;
  font-weight: 600;
  color: #b0b0b8;
  white-space: nowrap;
}

.beat-card h4 {
  margin: 0 0 5px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.beat-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 7.5px;
  line-height: 1.45;
  color: #9696a0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.beat-on-screen {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #787881;
}

.beat-on-screen::before {
  content: 'Aa';
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 4px;
  font-size: 5.5px;
  font-weight: 800;
  color: var(--ink);
  background: var(--tone-soft, #FFF0A8);
}

.script-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 196px;
  gap: 8px;
  margin-top: 8px;
  align-items: start;
}

.script-card {
  padding: 16px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.script-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
}

.script-card-head h3 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.script-card-head p {
  margin: 3px 0 0;
  font-size: 8.5px;
  color: #9a9aa3;
}

.script-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.script-tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 7.5px;
  font-weight: 600;
  color: #6e6e78;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.script-tool:hover {
  border-color: #d0d1d7;
  background: #f7f7f9;
}

.script-tool.is-active {
  color: var(--ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

.script-tool svg {
  width: 10px;
  height: 10px;
}

.script-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f2;
}

.script-time {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.script-time span {
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #a2a2aa;
  white-space: nowrap;
}

.script-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 3px 6px;
  border-radius: 99px;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--tone-soft, #FFF0A8);
}

.script-step i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tone, var(--yellow));
}

.script-body {
  min-width: 0;
}

.script-text {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: -0.01em;
  color: #29292f;
  outline: none;
  border-radius: 5px;
  transition: background 0.2s;
}

.script-text[contenteditable='true'] {
  padding: 5px 6px;
  margin: -5px -6px;
  background: #f7f7f4;
  box-shadow: inset 0 0 0 1px var(--yellow);
}

.script-direction {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 7px;
  font-size: 7.5px;
  line-height: 1.45;
  color: #9999a2;
}

.script-direction svg {
  width: 9px;
  height: 9px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.script-onscreen {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.035em;
  color: #5c5c66;
  background: #f4f4f6;
}

.script-onscreen b {
  font-weight: 800;
  color: #a2a2aa;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.production-card {
  padding: 14px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.production-card h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 9px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.production-card h4 span {
  font-size: 6.5px;
  font-weight: 600;
  color: #a0a0a8;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 6px 0;
  border: 0;
  font-size: 7.5px;
  line-height: 1.4;
  text-align: left;
  color: #686872;
  background: transparent;
  cursor: pointer;
}

.check-item:hover {
  color: var(--ink);
}

.check-box {
  display: grid;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 0;
  border: 1px solid #d7d8dd;
  border-radius: 4px;
  color: transparent;
  background: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.check-box svg {
  width: 8px;
  height: 8px;
}

.check-item.is-done .check-box {
  color: var(--ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

.check-item.is-done span:last-child {
  color: #a9a9b1;
  text-decoration: line-through;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-list li {
  position: relative;
  padding-left: 10px;
  font-size: 7.5px;
  line-height: 1.5;
  color: #7e7e88;
}

.notes-list li::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lavender);
}

.mini-score {
  padding: 13px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}

.mini-score .score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.mini-score .score-top b {
  color: var(--yellow);
}

.score-value {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 7px 0 8px;
  font-size: 29px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.07em;
  color: var(--yellow);
}

.score-value span {
  margin-bottom: 2px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.4);
}

.score-bar {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.mini-score p {
  margin: 8px 0 0;
  font-size: 7px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.38);
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
  padding: 16px 18px;
  overflow: hidden;
  border-radius: var(--r-lg);
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 214, 0, 0.15), transparent 35%),
    var(--ink);
}

.cta-card::after {
  content: '↗';
  position: absolute;
  right: 80px;
  bottom: -36px;
  font-size: 120px;
  font-weight: 200;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
}

.cta-card-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.cta-eyebrow svg {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

.cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--yellow);
}

.cta-card h4 {
  margin: 6px 0 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cta-card p {
  margin: 0;
  font-size: 8px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.43);
}

.cta-keyword {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.cta-keyword b {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--yellow);
}

.cta-keyword span {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.35);
}

.cta-keyword span b {
  padding: 0;
  font-size: inherit;
  color: var(--amber);
  background: transparent;
}

/* ----------------------------------------------------------------
   Calendar
   ---------------------------------------------------------------- */
.calendar-shell {
  padding: 18px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.calendar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.calendar-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.calendar-title-row h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.cal-square {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #777780;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.cal-square:hover {
  background: #f5f5f7;
  border-color: #d8d8dd;
}

.cal-square svg {
  width: 11px;
  height: 11px;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  font-size: 7px;
  font-weight: 500;
  color: #95959e;
}

.legend-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--c);
}

.calendar-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d6d7dc transparent;
}

.calendar-swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 8px 0 0;
  font-size: 6.5px;
  font-weight: 600;
  color: #9c9ca5;
}

.calendar-swipe-hint svg {
  width: 9px;
  height: 9px;
}

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

.calendar-weekdays span {
  padding: 4px 5px;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b1b1b8;
}

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

.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 84px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #f0f0f2;
  border-radius: 9px;
  background: #fbfbfc;
  transition: background 0.2s, border-color 0.2s;
}

.calendar-day:hover {
  border-color: #e2e3e7;
  background: #f7f7f9;
}

.calendar-day.is-outside {
  opacity: 0.4;
}

.calendar-day.is-today {
  border-color: var(--yellow);
  background: #FFF9DB;
}

.calendar-day.is-selected {
  border-color: var(--ink);
}

.calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
}

.calendar-day-num {
  font-size: 8px;
  font-weight: 700;
  color: #686871;
}

.calendar-day.is-today .calendar-day-num {
  display: grid;
  width: 16px;
  height: 16px;
  margin: -2px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
}

.calendar-day-add {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1;
  color: #b3b3bb;
  background: transparent;
  opacity: 0;
  cursor: pointer;
}

.calendar-day:hover .calendar-day-add {
  opacity: 1;
}

.calendar-day-add:hover {
  color: var(--ink);
  background: var(--yellow);
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.calendar-event {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  min-height: 27px;
  padding: 4px 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 0, 0.2);
  border-radius: 5px;
  font-size: 6.5px;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  color: #5A4A00;
  background: #FFF9DB;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.calendar-event .cal-event-top i {
  background: #FFD600;
}

.calendar-event:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 15, 18, 0.09);
}

.cal-event-top {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.calendar-event i {
  width: 3px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--event-dot, #777);
}

.calendar-event .cal-event-top b {
  font-size: 6.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.calendar-event .cal-event-title {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 6px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.72;
}

.calendar-event.is-selected {
  color: var(--ink);
  background: var(--yellow);
  border-color: rgba(15, 15, 18, 0.16);
  box-shadow: 0 2px 5px rgba(15, 15, 18, 0.08);
}

.calendar-event.is-selected .cal-event-title {
  opacity: 0.75;
}

.calendar-event.is-published {
  color: #6B5500;
  background: #FFF9DB;
  border-color: rgba(255, 214, 0, 0.35);
}

.calendar-event.is-published .cal-event-top i {
  background: var(--yellow);
}

.calendar-event.is-scheduled .cal-event-top i {
  background: #8b76ad;
}

.calendar-event.is-ready .cal-event-top i {
  background: var(--amber);
}

.calendar-event.is-writing .cal-event-top i {
  background: #a28bc7;
}

.calendar-event.is-idea .cal-event-top i {
  background: #a0a0a8;
}

.calendar-event.is-selected .cal-event-top i {
  background: #0f0f12;
}

.calendar-event.is-scheduled {
  color: #5d4b79;
  background: #f0eaf9;
  border-color: rgba(197, 180, 227, 0.28);
}

.calendar-event.is-ready {
  color: #7A4F00;
  background: #FFF2D9;
  border-color: rgba(255, 176, 32, 0.25);
}

.calendar-event.is-writing {
  color: #5d4b79;
  background: #f6f0fc;
  border-color: rgba(197, 180, 227, 0.2);
}

.calendar-event.is-idea {
  color: #5b5b64;
  background: #f5f5f7;
  border-color: rgba(15, 15, 18, 0.07);
}

.calendar-extra {
  font-size: 5.5px;
  font-weight: 600;
  color: #a8a8b0;
  padding-left: 3px;
}

.calendar-bottom {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 8px;
  margin-top: 10px;
}

.time-windows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.time-window {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #f1f1f3;
}

.time-window:first-child {
  border-top: 0;
}

.time-window-day {
  width: 50px;
  font-size: 8px;
  font-weight: 600;
  color: #6d6d76;
}

.time-window-time {
  flex: 1;
  font-size: 8px;
  font-weight: 700;
  color: var(--ink);
}

.window-score {
  width: 42px;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #f0f0f2;
}

.window-score span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.time-window small {
  width: 24px;
  font-size: 7px;
  font-weight: 700;
  color: #9a9aa3;
  text-align: right;
}

.calendar-insight {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  border-radius: 15px;
  background: var(--lavender-soft);
}

.calendar-insight .micro-label {
  color: #806f9b;
}

.calendar-insight strong {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.calendar-insight p {
  margin: 5px 0 10px;
  font-size: 7.5px;
  line-height: 1.45;
  color: #80768f;
}

/* ----------------------------------------------------------------
   Metrics
   ---------------------------------------------------------------- */
.metric-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.metric-kpi {
  padding: 12px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.metric-kpi .micro-label {
  font-size: 6.5px;
}

.metric-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-kpi-meta {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  font-size: 6.5px;
  font-weight: 600;
  color: #a0a0a8;
}

.metric-kpi-meta b {
  color: #A07500;
}

.metric-kpi-meta b.is-down {
  color: #d64545;
}

.chart-card {
  padding: 16px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

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

.chart-title h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chart-title p {
  margin: 3px 0 0;
  font-size: 7.5px;
  color: #9b9ba4;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 6.5px;
  font-weight: 600;
  color: #8e8e97;
}

.chart-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c);
}

.chart-wrap {
  position: relative;
  margin-top: 8px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-svg text {
  font-family: var(--font);
  font-size: 5.5px;
  fill: #a8a8b0;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 7px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  transform: translate(-50%, -120%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.chart-wrap:hover .chart-tooltip {
  opacity: 0;
}

.chart-tooltip.is-visible {
  opacity: 1;
}

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

.retention-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 84px;
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid #f1f1f3;
}

.retention-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  height: 100%;
}

.retention-col span {
  font-size: 6px;
  font-weight: 700;
  color: #8f8f98;
}

.retention-col i {
  width: 100%;
  max-width: 18px;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: var(--c, var(--yellow));
  transition: height 0.4s var(--ease);
}

.retention-col small {
  font-size: 5.5px;
  color: #b0b0b8;
}

.source-donut-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.source-donut {
  position: relative;
  display: grid;
  width: 67px;
  height: 67px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--s1) 0 var(--p1), var(--s2) var(--p1) var(--p2), var(--s3) var(--p2) var(--p3), var(--s4) var(--p3) 100%);
}

.source-donut::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #fff;
}

.source-donut b {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.source-donut b small {
  display: block;
  margin-top: 1px;
  font-size: 4.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: #9b9ba4;
  text-align: center;
}

.source-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.source-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 6.5px;
  color: #7e7e88;
}

.source-list i {
  width: 4px;
  height: 4px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--c);
}

.source-list b {
  margin-left: auto;
  font-size: 6.5px;
  color: var(--ink);
}

.benchmark-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid rgba(15, 15, 18, 0.045);
}

.benchmark-strip .bench-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--yellow);
}

.benchmark-strip .bench-icon svg {
  width: 13px;
  height: 13px;
}

.benchmark-strip p {
  margin: 0;
  font-size: 8px;
  line-height: 1.4;
  color: #777780;
}

.benchmark-strip b {
  color: var(--ink);
}

.benchmark-strip .bench-badge {
  margin-left: auto;
  flex: 0 0 auto;
}

/* ----------------------------------------------------------------
   Comments
   ---------------------------------------------------------------- */
.comments-layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.comments-summary {
  padding: 15px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sentiment-ring {
  position: relative;
  display: grid;
  width: 89px;
  height: 89px;
  margin: 4px auto 12px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--yellow) 0 68%, var(--lavender) 68% 91%, var(--coral) 91% 100%);
}

.sentiment-ring::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: #fff;
}

.sentiment-ring div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.sentiment-ring b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.sentiment-ring span {
  display: block;
  margin-top: 3px;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9999a2;
}

.sentiment-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sentiment-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 7px;
  color: #76767f;
}

.sentiment-list span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sentiment-list i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c);
}

.sentiment-list b {
  color: var(--ink);
}

.comment-list-card {
  padding: 4px 15px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.comment-row {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid #f1f1f3;
}

.comment-row:first-child {
  border-top: 0;
}

.avatar {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-size: 7.5px;
  font-weight: 800;
  color: var(--ink);
  background: var(--avatar, var(--lavender));
}

.comment-body {
  min-width: 0;
}

.comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.comment-head b {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.comment-head span {
  font-size: 6.5px;
  color: #a2a2aa;
}

.comment-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 5.5px;
  font-weight: 700;
  color: #6e5b8b;
  background: var(--lavender-soft);
}

.comment-tag.is-hot {
  color: #a33b33;
  background: var(--coral-soft);
}

.comment-tag.is-idea {
  color: #7A5A00;
  background: var(--amber-soft);
}

.comment-text {
  margin: 4px 0 0;
  font-size: 8px;
  line-height: 1.5;
  color: #595963;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.comment-action {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  font-size: 6.5px;
  font-weight: 600;
  color: #a0a0a8;
  background: transparent;
  cursor: pointer;
}

.comment-action:hover {
  color: var(--ink);
}

.comment-action svg {
  width: 8px;
  height: 8px;
}

.comment-like {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 2px;
  font-size: 6px;
  font-weight: 600;
  color: #a1a1a9;
}

.comment-like svg {
  width: 11px;
  height: 11px;
}

.comment-like.is-liked {
  color: var(--coral);
}

.comment-like.is-liked svg {
  fill: var(--coral);
}

.reply-bubble {
  display: flex;
  gap: 6px;
  margin-top: 7px;
  padding: 7px 8px;
  border-radius: 9px;
  background: #f6f6f2;
  border-left: 2px solid var(--yellow);
}

.reply-bubble b {
  font-size: 6.5px;
  white-space: nowrap;
}

.reply-bubble p {
  margin: 0;
  font-size: 7px;
  line-height: 1.45;
  color: #6a6a74;
}

.comment-compose {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0 4px;
  border-top: 1px solid #f1f1f3;
}

.comment-compose input {
  flex: 1;
  height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 8px;
  background: #fafafa;
  outline: none;
}

.comment-compose input:focus {
  border-color: var(--ink);
  background: #fff;
}

.send-btn {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  cursor: pointer;
}

.send-btn svg {
  width: 12px;
  height: 12px;
}

/* ----------------------------------------------------------------
   Dashboard
   ---------------------------------------------------------------- */
.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 146px;
  gap: 18px;
  min-height: 201px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 214, 0, 0.16), transparent 32%),
    radial-gradient(circle at 10% 100%, rgba(197, 180, 227, 0.1), transparent 36%),
    var(--ink);
  box-shadow: 0 24px 50px -34px rgba(15, 15, 18, 0.7);
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
}

.dashboard-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-hero .eyebrow {
  color: var(--yellow);
}

.dashboard-hero h2 {
  max-width: 430px;
  margin: 10px 0 0;
  font-size: clamp(24px, 2.5vw, 35px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.dashboard-hero h2 em {
  font-style: normal;
  color: var(--yellow);
}

.dashboard-hero p {
  max-width: 380px;
  margin: 10px 0 0;
  font-size: 9px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.43);
}

.dashboard-hero-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
}

.dashboard-hero-actions .pill-yellow {
  min-height: 32px;
  padding: 0 13px;
  font-size: 8.5px;
}

.dashboard-hero-actions .pill-ghost {
  min-height: 32px;
  padding: 0 12px;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.13);
}

.dashboard-hero-actions .pill-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.hero-art .big-orb {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 24%, #fff 0 5%, rgba(255, 255, 255, 0.6) 8%, transparent 24%),
    radial-gradient(circle at 36% 30%, #FFF4A8 0 17%, var(--yellow) 42%, #D4B000 70%, #4A3B00 100%);
  box-shadow:
    inset -18px -20px 30px rgba(49, 37, 0, 0.45),
    inset 8px 10px 18px rgba(255, 255, 255, 0.55),
    0 26px 45px rgba(0, 0, 0, 0.35);
}

.hero-art .big-orb::before {
  content: 'K';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 55px;
  font-weight: 800;
  letter-spacing: -0.12em;
  color: rgba(15, 15, 18, 0.78);
  mix-blend-mode: multiply;
}

.hero-art .big-orb::after {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(255, 214, 0, 0.2);
  border-radius: 50%;
  transform: rotateX(64deg) rotateZ(-23deg);
  box-shadow: 0 0 30px rgba(255, 214, 0, 0.1);
}

.hero-art .orbit-dot {
  position: absolute;
  top: 19px;
  right: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.hero-art .orbit-label {
  position: absolute;
  right: -2px;
  bottom: 18px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  font-size: 6px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.dash-kpi {
  position: relative;
  min-height: 92px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.dash-kpi::after {
  content: '';
  position: absolute;
  right: -16px;
  bottom: -20px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent-soft, rgba(255, 214, 0, 0.2));
  filter: blur(2px);
}

.dash-kpi .micro-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 6.5px;
}

.dash-kpi .micro-label svg {
  width: 9px;
  height: 9px;
  color: var(--accent, #a8a8b0);
}

.dash-kpi strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 9px;
  font-size: 23px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.dash-kpi-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  font-size: 6.5px;
  font-weight: 500;
  color: #9999a2;
}

.dash-kpi-foot b {
  font-weight: 700;
  color: #A07500;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 8px;
  margin-top: 8px;
}

.dash-pulse {
  padding: 15px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pulse-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 82px;
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid #f1f1f3;
}

.pulse-bar {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  height: 100%;
}

.pulse-bar i {
  width: 100%;
  max-width: 23px;
  height: var(--h);
  border-radius: 5px 5px 3px 3px;
  background: #f0f0f2;
  transition: background 0.2s, height 0.4s;
}

.pulse-bar.is-best i {
  background: var(--yellow);
}

.pulse-bar span {
  font-size: 5.5px;
  font-weight: 600;
  color: #a1a1a9;
}

.pipeline-card {
  padding: 15px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.pipeline-card .section-head h3 {
  color: #fff;
}

.pipeline-card .section-head > div {
  min-width: 0;
}

.pipeline-card .section-head p {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.33);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 13px;
}

.pipeline-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 7px;
}

.pipeline-row > span {
  width: 62px;
  color: rgba(255, 255, 255, 0.46);
}

.pipeline-row > b {
  width: 18px;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

.pipeline-track {
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}

.pipeline-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.dashboard-lower {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8px;
  margin-top: 8px;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 5px;
}

.upcoming-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid #f2f2f4;
}

.upcoming-row:first-child {
  border-top: 0;
}

.upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 29px;
  border-radius: 7px;
  background: #f5f5f7;
}

.upcoming-date b {
  font-size: 8px;
  line-height: 1;
}

.upcoming-date span {
  margin-top: 2px;
  font-size: 4.5px;
  font-weight: 700;
  color: #a3a3ab;
  text-transform: uppercase;
}

.upcoming-copy {
  min-width: 0;
}

.upcoming-copy b {
  display: block;
  overflow: hidden;
  font-size: 7.5px;
  font-weight: 600;
  color: #4b4b54;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-copy span {
  font-size: 5.5px;
  color: #a3a3ab;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.activity-dot {
  width: 6px;
  height: 6px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--c, var(--yellow));
}

.activity-item p {
  margin: 0;
  font-size: 7.5px;
  line-height: 1.4;
  color: #777780;
}

.activity-item b {
  color: var(--ink);
}

.activity-item span {
  display: block;
  margin-top: 2px;
  font-size: 5.5px;
  color: #b1b1b8;
}

/* ----------------------------------------------------------------
   Stories
   ---------------------------------------------------------------- */
.stories-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 214, 0, 0.9), transparent 25%),
    linear-gradient(120deg, var(--lavender-soft), #f8f4ff 62%);
  border: 1px solid rgba(123, 99, 163, 0.08);
}

.stories-hero h2 {
  margin: 5px 0 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}

.stories-hero p {
  max-width: 360px;
  margin: 7px 0 0;
  font-size: 8.5px;
  line-height: 1.5;
  color: #81758f;
}

.storyboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.storyboard.is-single {
  grid-template-columns: minmax(180px, 230px);
}

.story-card {
  min-width: 0;
}

.story-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 9 / 14;
  padding: 13px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  font: inherit;
  text-align: left;
  color: #fff;
  background: transparent;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.story-frame:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.story-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--frame-bg);
}

.story-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.story-frame.theme-yellow {
  --frame-bg: linear-gradient(165deg, #FFD600 0%, #E6BF00 53%, #6B5800 100%);
  color: var(--ink);
}

.story-frame.theme-noir {
  --frame-bg:
    radial-gradient(circle at 72% 28%, rgba(197, 180, 227, 0.28), transparent 35%),
    linear-gradient(165deg, #2c2c35 0%, #0f0f12 65%);
}

.story-frame.theme-lavender {
  --frame-bg:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.5), transparent 26%),
    linear-gradient(155deg, #d9ccee 0%, #bfaadd 48%, #796690 100%);
  color: var(--ink);
}

.story-frame.theme-peach {
  --frame-bg:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.55), transparent 25%),
    linear-gradient(155deg, #ffc8bf 0%, #ff8e82 54%, #a9443d 100%);
  color: var(--ink);
}

.story-ui {
  display: flex;
  gap: 3px;
  width: 100%;
  margin-bottom: 4px;
}

.story-ui i {
  height: 2px;
  flex: 1;
  border-radius: 99px;
  background: rgba(15, 15, 18, 0.2);
}

.story-frame.theme-noir .story-ui i {
  background: rgba(255, 255, 255, 0.25);
}

.story-ui i:first-child {
  background: currentColor;
}

.story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.story-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.story-brand span {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  font-size: 7px;
  color: var(--ink);
  background: currentColor;
}

.story-brand span b {
  color: var(--ink);
  mix-blend-mode: normal;
}

.story-top > svg {
  width: 10px;
  height: 10px;
  opacity: 0.55;
}

.story-content {
  margin: auto 0;
  padding: 10px 0;
}

.story-label {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 5.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: currentColor;
  background: rgba(255, 255, 255, 0.22);
}

.story-frame.theme-yellow .story-label,
.story-frame.theme-lavender .story-label,
.story-frame.theme-peach .story-label {
  background: rgba(15, 15, 18, 0.1);
}

.story-content h3 {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.story-content p {
  margin: 7px 0 0;
  font-size: 7px;
  line-height: 1.4;
  opacity: 0.68;
}

.story-sticker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 6px 8px;
  border-radius: 99px;
  font-size: 6px;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}

.story-sticker svg {
  width: 8px;
  height: 8px;
}

.story-options {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
}

.story-options span {
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 5.5px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.story-frame.theme-yellow .story-options span,
.story-frame.theme-lavender .story-options span,
.story-frame.theme-peach .story-options span {
  background: rgba(255, 255, 255, 0.5);
}

.story-reply {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  font-size: 5.5px;
  opacity: 0.65;
}

.story-frame.theme-yellow .story-reply,
.story-frame.theme-lavender .story-reply,
.story-frame.theme-peach .story-reply {
  border-color: rgba(15, 15, 18, 0.25);
}

.story-reply svg {
  width: 7px;
  height: 7px;
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 2px 0;
  font-size: 6.5px;
  font-weight: 500;
  color: #96969f;
}

.story-meta b {
  font-weight: 700;
  color: #55555e;
}

.story-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-stat-row span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.story-stat-row svg {
  width: 8px;
  height: 8px;
}

.sequence-card {
  margin-top: 8px;
  padding: 15px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sequence-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #f2f2f4;
}

.sequence-row:first-of-type {
  border-top: 0;
}

.sequence-num {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  font-size: 7px;
  font-weight: 800;
  background: #f4f4f6;
}

.sequence-row.is-live .sequence-num {
  background: var(--yellow);
}

.sequence-copy b {
  display: block;
  font-size: 8px;
  font-weight: 600;
  color: #4b4b54;
}

.sequence-copy span {
  font-size: 6px;
  color: #a5a5ad;
}

.sequence-metric {
  min-width: 44px;
  text-align: right;
}

.sequence-metric b {
  display: block;
  font-size: 8px;
}

.sequence-metric span {
  font-size: 5.5px;
  color: #a7a7af;
}

/* ----------------------------------------------------------------
   Hooks
   ---------------------------------------------------------------- */
.hooks-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(197, 180, 227, 0.22), transparent 32%),
    var(--ink);
}

.hooks-hero::after {
  content: 'K';
  position: absolute;
  top: -38px;
  right: 74px;
  font-size: 210px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.12em;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.hooks-hero-copy {
  position: relative;
  z-index: 1;
}

.hooks-hero .eyebrow {
  color: var(--yellow);
}

.hooks-hero h2 {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}

.hooks-hero p {
  max-width: 330px;
  margin: 8px 0 0;
  font-size: 8px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
}

.hooks-score {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
}

.hooks-score b {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--yellow);
}

.hooks-score span {
  font-size: 6px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.4);
}

.hooks-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.hook-filter {
  flex: 1;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  font-size: 7.5px;
  font-weight: 600;
  color: #93939c;
  background: transparent;
  cursor: pointer;
}

.hook-filter:hover {
  color: var(--ink);
  background: #f5f5f7;
}

.hook-filter.is-active {
  color: #fff;
  background: var(--ink);
}

.hook-table {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.hook-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 52px 50px 42px 22px;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid #f2f2f4;
  transition: background 0.2s;
}

.hook-row:first-child {
  border-top: 0;
}

.hook-row:hover {
  background: #fbfbfc;
}

.hook-rank {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 800;
  color: #74747d;
  background: #f4f4f6;
}

.hook-row:nth-child(1) .hook-rank {
  color: var(--ink);
  background: var(--yellow);
}

.hook-row:nth-child(2) .hook-rank {
  background: var(--lavender-soft);
}

.hook-row:nth-child(3) .hook-rank {
  background: var(--coral-soft);
}

.hook-copy {
  min-width: 0;
}

.hook-copy b {
  display: block;
  overflow: hidden;
  font-size: 7.8px;
  font-weight: 600;
  line-height: 1.3;
  color: #3f3f47;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hook-copy span {
  display: block;
  margin-top: 2px;
  font-size: 5.5px;
  color: #a2a2aa;
}

.hook-meter {
  min-width: 0;
}

.hook-meter b {
  display: block;
  font-size: 8px;
  font-weight: 700;
  color: var(--ink);
}

.hook-meter .meter {
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #f0f0f2;
}

.hook-meter .meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.hook-retention,
.hook-uses {
  font-size: 7px;
  font-weight: 600;
  color: #6f6f79;
}

.hook-retention span,
.hook-uses span {
  display: block;
  margin-top: 2px;
  font-size: 5.5px;
  font-weight: 500;
  color: #a6a6ae;
}

.hook-open {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #7e7e88;
  background: #f5f5f7;
  cursor: pointer;
}

.hook-open:hover {
  color: var(--ink);
  background: var(--yellow);
}

.hook-open svg {
  width: 9px;
  height: 9px;
}

.patterns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.pattern-card {
  padding: 13px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pattern-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent, var(--yellow));
}

.pattern-icon svg {
  width: 12px;
  height: 12px;
}

.pattern-card h4 {
  margin: 9px 0 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pattern-card p {
  margin: 0;
  font-size: 6.5px;
  line-height: 1.45;
  color: #96969f;
}

/* ----------------------------------------------------------------
   Leads
   ---------------------------------------------------------------- */
.leads-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.leads-hero-copy h2 {
  margin: 4px 0 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.leads-hero-copy p {
  margin: 6px 0 0;
  font-size: 8px;
  color: #96969f;
}

.leads-hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 13px;
}

.leads-stat b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.leads-stat span {
  display: block;
  margin-top: 4px;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a0a0a8;
}

.leads-stat.is-accent b {
  color: #8A6400;
}

.leads-board {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
  min-height: 400px;
}

.leads-list-card {
  display: flex;
  flex-direction: column;
  padding: 7px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.leads-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: #f5f5f7;
}

.leads-tab {
  flex: 1;
  padding: 4px 3px;
  border: 0;
  border-radius: 7px;
  font-size: 6px;
  font-weight: 700;
  color: #93939c;
  background: transparent;
  cursor: pointer;
}

.leads-tab.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 15, 18, 0.08);
}

.leads-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 5px;
  overflow-y: auto;
}

.lead-item {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 7px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lead-item:hover {
  background: #f8f8f9;
}

.lead-item.is-selected {
  border-color: rgba(15, 15, 18, 0.05);
  background: #f5f5f1;
}

.lead-avatar {
  position: relative;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  font-size: 6.5px;
  font-weight: 800;
  color: var(--ink);
  background: var(--avatar);
}

.lead-unread {
  position: absolute;
  top: -2px;
  right: -2px;
  display: grid;
  min-width: 9px;
  height: 9px;
  padding: 0 2px;
  place-items: center;
  border: 1.5px solid #fff;
  border-radius: 99px;
  font-size: 4.5px;
  color: var(--ink);
  background: var(--yellow);
}

.lead-copy {
  min-width: 0;
}

.lead-copy b {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  font-size: 7.5px;
  font-weight: 700;
  color: #3e3e46;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-copy b i {
  width: 3px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--stage-color, var(--yellow));
}

.lead-copy span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 6px;
  color: #9e9ea7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-time {
  font-size: 5px;
  color: #b0b0b7;
  white-space: nowrap;
}

.chat-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid #f2f2f4;
}

.chat-head-copy {
  flex: 1;
  min-width: 0;
}

.chat-head-copy b {
  display: block;
  font-size: 9px;
  font-weight: 700;
}

.chat-head-copy span {
  display: block;
  margin-top: 1px;
  font-size: 6px;
  color: #a2a2aa;
}

.chat-stage {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  border-radius: 99px;
  font-size: 6px;
  font-weight: 700;
  color: #7A5A00;
  background: var(--amber-soft);
}

.chat-stage.is-hot {
  color: #a33b33;
  background: var(--coral-soft);
}

.chat-stage.is-warm {
  color: #755d15;
  background: #fff2bd;
}

.chat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 260px;
  max-height: 380px;
  padding: 12px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(197, 180, 227, 0.08), transparent 32%),
    #fbfbfc;
}

.chat-day {
  align-self: center;
  padding: 3px 7px;
  border-radius: 99px;
  font-size: 5.5px;
  font-weight: 600;
  color: #a1a1a9;
  background: #f1f1f4;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 180px;
  text-align: center;
  color: #a2a2aa;
}

.chat-empty svg {
  width: 22px;
  height: 22px;
  color: var(--amber);
}

.chat-empty strong {
  font-size: 8.5px;
  color: #6f6f78;
}

.chat-empty span {
  font-size: 7px;
}

.chat-bubble {
  max-width: 80%;
  padding: 7px 9px;
  border-radius: 11px 11px 11px 3px;
  font-size: 7.5px;
  line-height: 1.45;
  color: #4e4e57;
  background: #fff;
  border: 1px solid #eeeef1;
  align-self: flex-start;
}

.chat-bubble.is-mine {
  align-self: flex-end;
  border-color: var(--yellow);
  border-radius: 11px 11px 3px 11px;
  color: var(--ink);
  background: var(--yellow);
}

.chat-bubble small {
  display: block;
  margin-top: 3px;
  font-size: 5px;
  color: #aaaab2;
  text-align: right;
}

.chat-bubble.is-mine small {
  color: rgba(15, 15, 18, 0.45);
}

.chat-quick {
  display: flex;
  gap: 4px;
  padding: 7px 10px 0;
  overflow-x: auto;
  border-top: 1px solid #f3f3f5;
  scrollbar-width: none;
}

.chat-quick::-webkit-scrollbar {
  display: none;
}

.quick-reply {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 5.5px;
  font-weight: 600;
  color: #74747d;
  background: #fff;
  cursor: pointer;
}

.quick-reply:hover {
  color: var(--ink);
  border-color: var(--yellow);
  background: #FFF9DB;
}

.chat-compose {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 10px;
}

.chat-compose input {
  flex: 1;
  height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 7.5px;
  background: #fafafa;
  outline: none;
}

.chat-compose input:focus {
  border-color: var(--ink);
  background: #fff;
}

/* ----------------------------------------------------------------
   04 · Insights
   ---------------------------------------------------------------- */
.insights {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 4px 2px 0 0;
}

.insights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px 10px;
}

.insights-head h2 {
  margin: 4px 0 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.insights-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(15, 15, 18, 0.055);
  border-radius: 99px;
  font-size: 6.5px;
  font-weight: 700;
  color: #787881;
  background: rgba(255, 255, 255, 0.6);
}

.insights-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 0 2px 16px;
  overflow-y: auto;
  scrollbar-width: none;
}

.insights-scroll::-webkit-scrollbar {
  display: none;
}

.insight-card {
  position: relative;
  flex: 0 0 auto;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

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

.insight-head h3 {
  margin: 0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.insight-head p {
  margin: 2px 0 0;
  font-size: 6.5px;
  color: #a3a3ab;
}

.insight-badge svg {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
}

.insight-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 99px;
  font-size: 6px;
  font-weight: 700;
  color: #5f5f68;
  background: #f4f4f6;
}

.insight-big {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.insight-big small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #a2a2aa;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  border-radius: 99px;
  font-size: 6.5px;
  font-weight: 700;
  color: #8A6400;
  background: var(--amber-soft);
}

.delta.is-down {
  color: #b33f37;
  background: var(--coral-soft);
}

.delta svg {
  width: 7px;
  height: 7px;
}

.insight-chart {
  margin-top: 6px;
}

.sparkline-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  border-radius: 9px;
  font-size: 6.5px;
  font-weight: 600;
  color: #a2a2aa;
  background: #fafafa;
}

.sparkline-empty svg {
  width: 10px;
  height: 10px;
}

.sparkline {
  display: block;
  width: 100%;
  height: 36px;
  overflow: visible;
}

.insight-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #f2f2f4;
}

.insight-mini {
  flex: 1;
  min-width: 0;
}

.insight-mini span {
  display: block;
  font-size: 5.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a7a7af;
}

.insight-mini b {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.conversion-card {
  flex: 0 0 auto;
  padding: 16px;
  overflow: hidden;
  border-radius: var(--r-lg);
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.55), transparent 26%),
    var(--lavender);
  box-shadow: 0 18px 38px -28px rgba(88, 65, 118, 0.45);
}

.conversion-card .insight-head h3 {
  color: #342a45;
}

.conversion-card .insight-head p {
  color: rgba(52, 42, 69, 0.55);
}

.conversion-card .insight-badge {
  color: #48385f;
  background: rgba(255, 255, 255, 0.32);
}

.conversion-card .insight-big {
  color: #241e30;
}

.conversion-card .insight-big small {
  color: rgba(36, 30, 48, 0.5);
}

.conversion-empty {
  margin: 12px 0 2px;
  padding: 9px 0;
  font-size: 7px;
  font-weight: 600;
  color: rgba(36, 30, 48, 0.55);
  border-top: 1px solid rgba(36, 30, 48, 0.1);
}

.conversion-bars {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  height: 42px;
  margin-top: 11px;
}

.conversion-bars i {
  flex: 1 1 0;
  max-width: 30px;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: rgba(36, 30, 48, 0.16);
}

.conversion-bars i.is-hot {
  background: #241e30;
}

.conversion-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(36, 30, 48, 0.13);
}

.conversion-foot div {
  flex: 1;
}

.conversion-foot span {
  display: block;
  font-size: 5.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(36, 30, 48, 0.48);
}

.conversion-foot b {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 11px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) 28px;
  gap: 7px;
  align-items: center;
}

.rank-num {
  font-size: 7px;
  font-weight: 800;
  color: #b2b2ba;
}

.ranking-row:first-child .rank-num {
  color: var(--ink);
}

.rank-copy {
  min-width: 0;
}

.rank-copy b {
  display: block;
  overflow: hidden;
  font-size: 6.8px;
  font-weight: 600;
  line-height: 1.3;
  color: #52525b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meter {
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #f0f0f2;
}

.rank-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.rank-score {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: right;
}

.heatmap-card {
  padding-bottom: 13px;
}

.heatmap {
  display: grid;
  grid-template-columns: 24px repeat(7, minmax(0, 1fr));
  gap: 3px;
  margin-top: 11px;
}

.heatmap-label {
  display: flex;
  align-items: center;
  font-size: 5px;
  color: #adadb5;
}

.heatmap-day {
  padding-bottom: 2px;
  font-size: 5.5px;
  font-weight: 700;
  color: #a0a0a8;
  text-align: center;
}

.heatmap-cell {
  aspect-ratio: 1.45 / 1;
  border-radius: 3px;
  background: rgba(15, 15, 18, 0.045);
  transition: transform 0.2s;
}

.heatmap-cell:hover {
  transform: scale(1.12);
}

.heatmap-cell[data-level='1'] { background: #FFF9CC; }
.heatmap-cell[data-level='2'] { background: #FFF3A3; }
.heatmap-cell[data-level='3'] { background: #FFE97A; }
.heatmap-cell[data-level='4'] { background: #FFDF4D; }
.heatmap-cell[data-level='5'] { background: #FFD600; }

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 7px;
  font-size: 5px;
  color: #a3a3ab;
}

.heatmap-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.alert-card {
  position: relative;
  flex: 0 0 auto;
  padding: 15px;
  overflow: hidden;
  border-radius: var(--r-lg);
  color: #2b1210;
  background:
    radial-gradient(circle at 95% 4%, rgba(255, 255, 255, 0.32), transparent 26%),
    var(--coral);
}

.alert-card .micro-label {
  color: rgba(43, 18, 16, 0.52);
}

.alert-card .micro-label svg {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
}

.alert-card h3 {
  margin: 6px 0 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.alert-card p {
  margin: 0;
  font-size: 7px;
  line-height: 1.5;
  color: rgba(43, 18, 16, 0.65);
}

.alert-card .pill {
  margin-top: 10px;
  min-height: 25px;
  background: rgba(15, 15, 18, 0.9);
  color: #fff;
  font-size: 6.5px;
  padding: 0 9px;
}

.insight-note {
  padding: 2px 6px 0;
  font-size: 6px;
  line-height: 1.5;
  color: #a5a5ad;
  text-align: center;
}

/* ----------------------------------------------------------------
   Modal
   ---------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 15, 18, 0.52);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease both;
}

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

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

.modal {
  width: 100%;
  max-width: 540px;
  max-height: min(84vh, 760px);
  overflow-y: auto;
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.4s var(--ease) both;
  scrollbar-width: thin;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.modal-head h2 {
  margin: 5px 0 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.modal-head p {
  margin: 6px 0 0;
  font-size: 9px;
  line-height: 1.5;
  color: #95959e;
}

.modal-close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #72727b;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
  background: #f5f5f7;
  transform: rotate(90deg);
}

.modal-close svg {
  width: 14px;
  height: 14px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #76767f;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid #e6e6ea;
  border-radius: 11px;
  font-size: 10px;
  color: var(--ink);
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.form-field textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.45;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.25);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #b3b3ba;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid #f0f0f2;
}

.form-hint {
  font-size: 7px;
  line-height: 1.5;
  color: #a2a2aa;
}

.modal.form-modal {
  max-width: 580px;
}

/* API modal */
.api-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 16px;
  background: #f7f7f9;
}

.api-hero-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--yellow);
}

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

.api-hero-copy b {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.api-hero-copy span {
  display: block;
  margin-top: 3px;
  font-size: 7.5px;
  color: #9999a2;
}

.api-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 99px;
  font-size: 5.5px;
  font-weight: 700;
  color: #8A6400;
  background: var(--amber-soft);
}

.api-status-pill.is-offline {
  color: #b33f37;
  background: var(--coral-soft);
}

.api-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.api-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #f0f0f2;
  border-radius: 12px;
}

.api-row-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: #6f6f79;
  background: #f4f4f6;
}

.api-row-icon svg {
  width: 12px;
  height: 12px;
}

.api-row-copy {
  flex: 1;
  min-width: 0;
}

.api-row-copy b {
  display: block;
  font-size: 8px;
  font-weight: 700;
}

.api-row-copy span {
  display: block;
  margin-top: 2px;
  font-size: 6.5px;
  color: #a2a2aa;
}

.api-row-status {
  font-size: 6px;
  font-weight: 700;
  color: #8A6400;
}

.api-row-status.is-demo {
  color: #8b6d15;
}

.api-row-status.is-off {
  color: #a4a4ac;
}

.api-code {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 7px;
  line-height: 1.6;
  color: #FFE99A;
  background: var(--ink);
  overflow-wrap: anywhere;
}

.api-code span {
  color: rgba(255, 255, 255, 0.35);
}

.api-help {
  margin-top: 11px;
  font-size: 7px;
  line-height: 1.6;
  color: #8f8f98;
}

.api-help code {
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 6.5px;
  background: #f1f1f4;
}

/* Toast */
.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 330px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 8.5px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 38px rgba(15, 15, 18, 0.35);
  animation: toastIn 0.35s var(--ease) both;
  pointer-events: auto;
}

.toast.is-out {
  animation: toastOut 0.3s var(--ease) both;
}

.toast-icon {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
}

.toast-icon svg {
  width: 9px;
  height: 9px;
}

.toast.is-error .toast-icon {
  background: var(--coral);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(9px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(5px) scale(0.98); }
}

/* Empty / offline states */
.state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 32px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-xl);
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.state-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 17px;
  color: var(--ink);
  background: var(--yellow);
}

.state-icon svg {
  width: 24px;
  height: 24px;
}

.state-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.state-card p {
  max-width: 330px;
  margin: 8px 0 18px;
  font-size: 9px;
  line-height: 1.6;
  color: #8f8f98;
}

.state-card .api-code {
  max-width: 100%;
  text-align: left;
}

/* Insights drawer on compact desktops */
.insights-toggle {
  display: none;
}

.insights-close {
  display: none;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(15, 15, 18, 0.07);
  border-radius: 50%;
  color: #707079;
  background: #fff;
  cursor: pointer;
}

.insights-close svg {
  width: 12px;
  height: 12px;
}

.insights-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(15, 15, 18, 0.38);
  backdrop-filter: blur(3px);
}

.insights-overlay.is-open {
  display: block;
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
}

/* Loading skeleton */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f0f0f3;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}


/* ----------------------------------------------------------------
   Performance log · editable per post
   ---------------------------------------------------------------- */
.performance-log {
  margin-top: 8px;
  padding: 15px 16px 13px;
  border: 1px solid rgba(15, 15, 18, 0.045);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.performance-log-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.performance-log-copy {
  min-width: 0;
}

.performance-log-copy .micro-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8a8a93;
}

.performance-log-copy .micro-label svg {
  width: 10px;
  height: 10px;
}

.performance-log-copy h3 {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.performance-log-copy p {
  margin: 4px 0 0;
  font-size: 8px;
  line-height: 1.5;
  color: #96969f;
}

.performance-log-copy p b {
  color: #5c5c65;
}

.status-select-wrap {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
}

.status-select-wrap > span {
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9aa3;
}

.status-select-wrap select {
  width: 122px;
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid #e6e6ea;
  border-radius: 10px;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--ink);
  background: #fafafa;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.status-select-wrap select:focus {
  border-color: var(--yellow-deep);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.25);
}

.status-select-wrap > svg {
  position: absolute;
  right: 9px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  color: #8d8d96;
  pointer-events: none;
}

.performance-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 11px;
}

.performance-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 8px 10px 7px;
  border: 1px solid #eeeef1;
  border-radius: 12px;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.performance-field:focus-within {
  border-color: var(--yellow-deep);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.18);
}

.performance-field > span {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  font-size: 6.8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #8d8d96;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-field > span svg {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
}

.performance-field input {
  width: 100%;
  padding: 0;
  border: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.05em;
  color: var(--ink);
  background: transparent;
  outline: none;
}

.performance-field input::-webkit-outer-spin-button,
.performance-field input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.performance-field input[type='number'] {
  appearance: textfield;
}

.performance-log-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 6.5px;
  color: #a0a0a8;
}

.performance-save-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #8A6400;
}

.performance-save-state svg {
  width: 8px;
  height: 8px;
}

.performance-share-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 16px;
}

.performance-share-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 32px;
  gap: 7px;
  align-items: center;
}

.performance-share-row > span {
  font-size: 7px;
  font-weight: 600;
  color: #777780;
}

.performance-share-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #f0f0f2;
}

.performance-share-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.3s var(--ease);
}

.performance-share-row > b {
  font-size: 7px;
  font-weight: 700;
  color: #55555e;
  text-align: right;
}

.empty-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 19px 12px;
  border: 1px dashed #e4e4e8;
  border-radius: 13px;
  text-align: center;
}

.empty-inline strong {
  font-size: 9px;
  font-weight: 700;
  color: #5f5f68;
}

.empty-inline span {
  max-width: 280px;
  font-size: 7.5px;
  line-height: 1.5;
  color: #a0a0a8;
}

.empty-inline .pill {
  margin-top: 4px;
}

.empty-inline.compact {
  padding: 13px 10px;
  border-style: solid;
  background: #fafafa;
}

.rank-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.rank-button:hover b {
  color: var(--ink);
}

.activity-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.activity-button:hover p b {
  color: #6B5500;
}

.radar-clear-copy {
  margin: 9px 0 0;
  font-size: 7.5px;
  line-height: 1.55;
  color: #878790;
}

.state-none {
  color: #777780;
  background: #f0f0f3;
}

.temp-none {
  color: #777780;
  background: #f0f0f3;
}

/* ----------------------------------------------------------------
   Readability pass · slightly larger micro type at desktop
   ---------------------------------------------------------------- */
.content-hook { font-size: 11.2px; }
.content-platform { font-size: 7.4px; }
.content-time { font-size: 6.8px; }
.content-pillar { font-size: 8px; }
.status-chip { font-size: 6.9px; padding: 3px 7px; }
.worklist-group-label { font-size: 8px; }
.kpi-label { font-size: 9.4px; }
.kpi-foot { font-size: 8.8px; }
.hero-deck { font-size: 10.5px; }
.hero-meta-item { font-size: 8.4px; }
.hero-overline { font-size: 8.4px; }
.tab { font-size: 8.9px; }
.beat-card h4 { font-size: 11px; }
.beat-card p { font-size: 7.8px; }
.beat-on-screen { font-size: 6.8px; }
.script-text { font-size: 11px; }
.script-direction { font-size: 8px; }
.script-onscreen { font-size: 6.9px; }
.script-tool { font-size: 8px; }
.production-card h4 { font-size: 10px; }
.check-item { font-size: 8px; }
.notes-list li { font-size: 8px; }
.insight-head h3 { font-size: 10.2px; }
.insight-head p { font-size: 7.2px; }
.rank-copy b { font-size: 7.3px; }
.insight-mini span { font-size: 5.9px; }
.insight-mini b { font-size: 9.5px; }
.insight-note { font-size: 6.4px; }
.heatmap-day { font-size: 6px; }
.heatmap-label { font-size: 5.4px; }
.conversion-foot span { font-size: 5.9px; }
.conversion-foot b { font-size: 9.5px; }
.hero-meta .hero-meta-item b { font-weight: 700; }
.form-field label { font-size: 8.2px; }
.form-field input, .form-field select, .form-field textarea { font-size: 10.5px; }
.form-hint { font-size: 7.4px; }
.modal-head p { font-size: 9.5px; }
.table-hook, .hook-copy b { font-size: 8.1px; }
.hook-copy span { font-size: 6.2px; }
.hook-row { padding-top: 10px; padding-bottom: 10px; }
.dash-kpi .micro-label { font-size: 7px; }
.dash-kpi-foot { font-size: 7px; }
.activity-item p { font-size: 8px; }
.upcoming-copy b { font-size: 8px; }
.metric-kpi .micro-label { font-size: 7px; }
.metric-kpi-meta { font-size: 7px; }
.calendar-legend { font-size: 7.2px; }
.calendar-weekdays span { font-size: 7px; }

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1580px) {
  .app-shell {
    grid-template-columns: 74px 338px minmax(0, 1fr) 340px;
  }
  .hero-title {
    font-size: 23px;
  }
  .hero-grid {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 13px;
  }
  .kroma-thumb {
    width: 88px;
  }
  .thumb-orb {
    width: 50px;
    height: 50px;
  }
  .thumb-k {
    line-height: 50px;
    font-size: 23px;
  }
  .script-layout {
    grid-template-columns: minmax(0, 1fr) 184px;
  }
  .hook-row {
    grid-template-columns: 22px minmax(0, 1fr) 46px 44px 36px 20px;
    gap: 6px;
  }
}

@media (max-width: 1360px) {
  .app-shell {
    grid-template-columns: 66px 296px minmax(0, 1fr) 290px;
    gap: 8px;
    padding: 10px;
  }
  .api-pill {
    display: none;
  }
  .queue-head {
    padding: 18px 15px 12px;
  }
  .queue-scroll {
    padding: 0 12px 16px;
  }
  .queue-title {
    font-size: 26px;
  }
  .hero-grid {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 11px;
  }
  .kroma-thumb {
    width: 80px;
    border-radius: 16px;
  }
  .thumb-orb {
    width: 45px;
    height: 45px;
  }
  .thumb-k {
    line-height: 45px;
    font-size: 21px;
  }
  .hero-title {
    font-size: 21px;
  }
  .hero-aside {
    min-width: 84px;
  }
  .state-pill {
    font-size: 6.2px;
    padding: 4px 7px;
  }
  .script-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .metric-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .insight-card {
    padding: 13px;
  }
  .hook-row {
    grid-template-columns: 21px minmax(0, 1fr) 44px 38px 18px;
  }
  .hook-uses {
    display: none;
  }
  .leads-board {
    grid-template-columns: 186px minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }
  .app-shell {
    grid-template-columns: 66px 310px minmax(0, 1fr);
    height: auto;
    min-height: 100dvh;
    padding-bottom: 90px;
  }
  .insights {
    position: fixed;
    top: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 150;
    display: flex;
    width: min(356px, calc(100vw - 16px));
    padding: 12px;
    visibility: hidden;
    background: var(--canvas);
    border: 1px solid rgba(15, 15, 18, 0.06);
    border-radius: 28px;
    box-shadow: -20px 0 60px rgba(15, 15, 18, 0.24);
    transform: translateX(calc(100% + 16px));
    transition: transform 0.35s var(--ease), visibility 0.35s;
  }
  .insights.is-open {
    visibility: visible;
    transform: translateX(0);
  }
  .insights-toggle {
    display: grid;
  }
  .insights-close {
    display: grid;
  }
  .insights-head {
    align-items: center;
    padding: 4px 4px 10px;
  }
  .main {
    min-height: calc(100dvh - 24px);
  }
  .main-scroll {
    overflow: visible;
  }
  .queue {
    max-height: calc(100dvh - 24px);
    position: sticky;
    top: 12px;
  }
}

@media (max-width: 900px) {
  body {
    background: var(--canvas);
  }
  .app-shell {
    display: block;
    padding: 8px 8px 84px;
    height: auto;
    max-width: none;
  }
  .rail {
    position: fixed;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 90;
    display: flex;
    flex-direction: row;
    height: 60px;
    padding: 6px 8px;
    border-radius: 20px;
    gap: 6px;
  }
  .rail-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .rail-logo strong {
    font-size: 20px;
  }
  .rail-rule,
  .rail-ring,
  .rail-tip {
    display: none;
  }
  .rail-nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 2px;
  }
  .rail-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  .rail-link.is-active::before {
    display: none;
  }
  .rail-bottom {
    flex-direction: row;
    margin-top: 0;
  }
  .rail-avatar {
    width: 38px;
    height: 38px;
  }
  .queue {
    position: fixed;
    top: 8px;
    bottom: 76px;
    left: 8px;
    z-index: 120;
    width: min(360px, calc(100vw - 16px));
    max-height: none;
    transform: translateX(calc(-100% - 16px));
    transition: transform 0.35s var(--ease);
    box-shadow: 18px 0 50px rgba(15, 15, 18, 0.35);
  }
  .queue.is-open {
    transform: translateX(0);
  }
  .queue-close {
    display: grid;
  }
  .mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(15, 15, 18, 0.42);
    backdrop-filter: blur(3px);
  }
  .mobile-overlay.is-open {
    display: block;
  }
  .main {
    min-height: calc(100dvh - 92px);
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    min-height: 54px;
    padding: 6px 4px;
    background: rgba(244, 245, 247, 0.9);
    backdrop-filter: blur(14px);
  }
  .mobile-menu {
    display: grid;
  }
  .breadcrumb .crumb-home,
  .breadcrumb .crumb-sep {
    display: none;
  }
  .topbar-cta span:first-child {
    display: none;
  }
  .topbar-cta {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
  }
  .topbar-cta .pill-plus {
    margin: 0;
  }
  .api-pill {
    display: none;
  }
  .main-scroll {
    padding: 4px 0 20px;
  }
  .hero-grid {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .hero-aside {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid #f1f1f3;
  }
  .hero-pills {
    flex-direction: row;
  }
  .hero-actions {
    margin-top: 0;
  }
  .timeline {
    grid-template-columns: repeat(4, 140px);
  }
  .comments-layout {
    grid-template-columns: 1fr;
  }
  .comments-summary {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 10px;
  }
  .sentiment-ring {
    margin: 0;
  }
  .metric-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .storyboard {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .story-frame {
    min-width: 150px;
  }
  .leads-board {
    grid-template-columns: 1fr;
  }
  .leads-list-card {
    max-height: 260px;
  }
  .chat-body {
    min-height: 220px;
    max-height: 340px;
  }
  .dashboard-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-hero {
    grid-template-columns: 1fr;
  }
  .hero-art {
    display: none;
  }
  .dash-grid,
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .calendar-bottom {
    grid-template-columns: 1fr;
  }
  .patterns {
    grid-template-columns: 1fr;
  }
  .hook-row {
    grid-template-columns: 21px minmax(0, 1fr) 42px 18px;
  }
  .hook-retention {
    display: none;
  }
  .stories-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .toast-region {
    right: 12px;
    bottom: 82px;
    left: 12px;
    align-items: stretch;
  }
  .toast {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .calendar-scroll > * {
    min-width: 560px;
  }
  .calendar-swipe-hint {
    display: flex;
  }
  .calendar-event {
    min-height: 32px;
  }
  .hero-grid {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }
  .kroma-thumb {
    width: 64px;
    border-radius: 14px;
  }
  .thumb-orb {
    width: 37px;
    height: 37px;
  }
  .thumb-k {
    line-height: 37px;
    font-size: 17px;
  }
  .thumb-caption {
    display: none;
  }
  .post-hero {
    padding: 14px;
    border-radius: 24px;
  }
  .hero-title {
    font-size: 19px;
  }
  .hero-deck {
    font-size: 8.5px;
  }
  .hero-meta {
    gap: 4px 9px;
    margin-top: 8px;
  }
  .hero-meta-item {
    font-size: 6.5px;
  }
  .hero-aside {
    flex-wrap: wrap;
    gap: 6px;
  }
  .hero-pills {
    gap: 4px;
  }
  .tab-bar {
    border-radius: 14px;
  }
  .tab {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 8px;
    font-size: 7.5px;
  }
  .card,
  .calendar-shell,
  .script-card,
  .chart-card {
    border-radius: 20px;
  }
  .calendar-shell {
    padding: 12px;
  }
  .calendar-day {
    min-height: 78px;
    padding: 4px;
  }
  .calendar-event {
    padding: 3px 4px;
  }
  .calendar-title-row h2 {
    font-size: 18px;
  }
  .calendar-legend {
    gap: 6px;
  }
  .metric-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-hero {
    padding: 18px;
  }
  .dashboard-hero h2 {
    font-size: 26px;
  }
  .dashboard-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .stories-hero h2 {
    font-size: 21px;
  }
  .storyboard {
    grid-template-columns: repeat(3, 160px);
  }
  .leads-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .hooks-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .hooks-score {
    width: 100%;
  }
  .hooks-hero::after {
    display: none;
  }
  .modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }
  .modal {
    max-height: 92vh;
    padding: 18px;
    border-radius: 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .performance-inputs {
    grid-template-columns: 1fr 1fr;
  }
  .performance-log-head {
    flex-direction: column;
  }
  .status-select-wrap {
    width: 100%;
  }
  .status-select-wrap select {
    width: 100%;
  }
  .performance-log-foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .modal-head h2 {
    font-size: 20px;
  }
  .sequence-row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }
  .sequence-metric:last-child {
    display: none;
  }
  .comment-row {
    grid-template-columns: 25px minmax(0, 1fr);
  }
  .comment-like {
    display: none;
  }
  .cta-card {
    grid-template-columns: 1fr;
  }
  .cta-keyword {
    align-items: flex-start;
    flex-direction: row;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
