@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2") format("woff2-variations");
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0b0e0c;
  --bg-elev-1: #11140f;
  --panel: #151a16;
  --panel-2: #1d241f;
  --panel-3: #232b25;
  --overlay: rgba(5, 6, 5, 0.62);
  --line: #303a32;
  --line-soft: rgba(243, 239, 231, 0.08);
  --line-strong: #4a5a4d;
  --text: #f3efe7;
  --text-2: #c8c5bc;
  --muted: #a9b0a8;
  --muted-deep: #6f766e;
  --teal: #39e8b8;
  --teal-soft: rgba(57, 232, 184, 0.12);
  --amber: #f5a623;
  --amber-soft: rgba(245, 166, 35, 0.14);
  --accent: var(--amber);
  --accent-strong: #b45309;
  --accent-soft: var(--amber-soft);
  --accent-line: rgba(245, 166, 35, 0.4);
  --accent-contrast: #1a1206;
  --hero-gradient: linear-gradient(135deg, rgba(245, 166, 35, 0.16), rgba(57, 232, 184, 0.08));
  --danger: #f28b82;
  --danger-soft: rgba(242, 139, 130, 0.15);
  --blue: #2f7dff;
  --blue-soft: rgba(47, 125, 255, 0.16);
  --pillar-suppstantial: #4ea3ff;
  --pillar-ai: #f5a623;
  --pillar-health: #39e8b8;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;
  --sp-10: 64px;
  --r-pill: 999px;
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 16px;
  --r-4: 22px;
  --r-5: 28px;
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.36);
  --shadow-3: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow-amber: 0 0 0 1px rgba(245, 166, 35, 0.35), 0 6px 18px rgba(245, 166, 35, 0.18);
  --fs-eyebrow: 11px;
  --fs-caption: 12px;
  --fs-body-sm: 13px;
  --fs-body: 15px;
  --fs-h3: 17px;
  --fs-h2: 21px;
  --fs-h1: 26px;
  --fs-display: 34px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ios: var(--ease-out-expo);
  --dur-micro: 90ms;
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-med: 260ms;
  --dur-sheet: 320ms;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-ws-theme="mojomakes"] {
  --bg: #100e0b;
  --bg-elev-1: #16110b;
  --panel: #1a1611;
  --panel-2: #221c15;
  --panel-3: #2a2219;
  --line: #2c2620;
  --line-soft: rgba(245, 241, 232, 0.07);
  --line-strong: #3a3228;
  --text: #f5f1e8;
  --text-2: #d6cfbe;
  --muted: #8e8676;
  --muted-deep: #625a4b;
  --accent: #d97706;
  --accent-strong: #b45309;
  --accent-soft: rgba(217, 119, 6, 0.14);
  --accent-line: rgba(217, 119, 6, 0.4);
  --accent-contrast: #1a1206;
  --hero-gradient: linear-gradient(135deg, rgba(217, 119, 6, 0.26), rgba(217, 119, 6, 0.04));
}

[data-ws-theme="suppstantial"] {
  --bg: #080f12;
  --bg-elev-1: #0c161a;
  --panel: #101d23;
  --panel-2: #15272e;
  --panel-3: #1b323a;
  --line: #1e3138;
  --line-soft: rgba(234, 246, 242, 0.07);
  --line-strong: #2c4a52;
  --text: #eaf6f2;
  --text-2: #c2d8d2;
  --muted: #7e938d;
  --muted-deep: #536965;
  --accent: #39e8b8;
  --accent-strong: #0075ab;
  --accent-soft: rgba(57, 232, 184, 0.14);
  --accent-line: rgba(57, 232, 184, 0.4);
  --accent-contrast: #061411;
  --accent-3: #f5a623;
  --hero-gradient: linear-gradient(135deg, rgba(0, 117, 171, 0.38), rgba(57, 232, 184, 0.12));
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-micro: 0ms;
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-med: 0ms;
    --dur-sheet: 1ms;
  }

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

  .skeleton-line,
  .skeleton-pill,
  .skeleton-button,
  .skeleton-icon {
    animation: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: contain;
}

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

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.shell,
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.hero-panel,
.metric-card,
.detail-panel,
.idea-card,
.sidebar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.hero-panel {
  width: min(720px, 100%);
  padding: 32px;
}

.hero-panel h1,
.topbar h1,
.detail-panel h2 {
  margin: 6px 0 10px;
  line-height: 1.05;
}

.hero-panel p,
.topbar p,
.metric-card p,
.detail-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.login-panel {
  max-width: 520px;
}

.boot-skeleton {
  --skeleton-base: color-mix(in srgb, var(--text) 7%, transparent);
  --skeleton-glow: color-mix(in srgb, var(--accent) 16%, transparent);
}

.boot-main-panel {
  min-height: 100vh;
}

.boot-heading {
  width: min(520px, 100%);
}

.skeleton-line,
.skeleton-pill,
.skeleton-button,
.skeleton-icon {
  display: block;
  border-radius: var(--r-pill);
  background:
    linear-gradient(90deg, transparent, var(--skeleton-glow), transparent),
    var(--skeleton-base);
  background-size: 260% 100%, 100% 100%;
  animation: skeletonPulse 1400ms var(--ease-ios) infinite;
}

.skeleton-line {
  width: 100%;
  height: 12px;
}

.skeleton-line--eyebrow {
  width: 92px;
  height: 10px;
}

.skeleton-line--name {
  width: 116px;
  height: 18px;
}

.skeleton-line--title {
  width: min(420px, 82%);
  height: 34px;
  margin-top: 12px;
}

.skeleton-line--copy {
  width: min(560px, 92%);
  margin-top: 14px;
}

.skeleton-line--short {
  width: 88px;
}

.skeleton-line--muted {
  opacity: 0.58;
}

.skeleton-pill {
  width: 124px;
  height: 38px;
}

.skeleton-button {
  width: 132px;
  height: 42px;
  border-radius: var(--r-1);
}

.skeleton-icon {
  width: 44px;
  height: 44px;
}

.skeleton-chip {
  pointer-events: none;
}

.skeleton-panel,
.skeleton-card,
.boot-error-card {
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--r-2);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 94%, transparent), color-mix(in srgb, var(--panel-2) 88%, transparent));
}

.skeleton-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.skeleton-panel--compact {
  min-height: 64px;
}

.boot-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.skeleton-card {
  min-height: 136px;
  padding: 18px;
}

.skeleton-card--tall {
  min-height: 220px;
}

.skeleton-card--wide {
  grid-column: span 2;
}

.boot-error-card {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 16px;
  max-width: 640px;
  border-color: color-mix(in srgb, var(--danger) 26%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--danger-soft) 60%, transparent), transparent),
    var(--panel);
}

.boot-error-card strong {
  font-size: var(--fs-h3);
}

.boot-error-card p {
  margin: 0;
  color: var(--text-2);
}

.skeleton-section-head {
  display: grid;
  gap: 10px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.login-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev-1);
  color: var(--text);
  padding: 0 12px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hint-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.hint-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.hint-grid span,
.hint-grid small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  border-radius: 0;
  border-width: 0 1px 0 0;
  padding: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.brand-token {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 22%, transparent);
}

.brand-token--logo {
  overflow: hidden;
  background: color-mix(in srgb, var(--teal) 12%, #07110f);
  color: transparent;
  border: 1px solid color-mix(in srgb, var(--teal) 26%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--teal) 22%, transparent);
}

.brand-token--logo img,
.ws-chip__token--logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-box,
.dev-switch {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
  background: var(--bg);
}

.user-box span,
.user-box small,
.dev-switch span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.logout-button {
  width: 100%;
  margin-top: 12px;
}

.workspace-nav,
.section-nav {
  display: grid;
  gap: 8px;
}

.workspace-nav button,
.dev-switch button {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
}

.workspace-nav button.active,
.dev-switch button.active,
.idea-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.workspace-nav small {
  float: right;
  color: var(--muted);
}

.dev-switch {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.section-nav {
  margin-top: 18px;
  gap: 2px;
}

.nav-group-label {
  display: block;
  margin: 16px 0 6px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-group-label.first {
  margin-top: 6px;
}

.section-nav button {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--text-2);
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  transition: background var(--dur-fast) var(--ease-ios), color var(--dur-fast) var(--ease-ios);
}

.section-nav button:hover {
  background: color-mix(in srgb, var(--panel-2) 70%, transparent);
  color: var(--text);
}

.section-nav button.active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 750;
}

.main-panel {
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.update-button {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

.status-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

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

.metric-card {
  padding: 18px;
}

.metric-card span,
.tiny-id,
.meta-list span,
.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-card strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.work-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.focus-panel,
.compass-panel,
.day-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  padding: 18px;
}

.focus-panel h2,
.compass-panel h2 {
  margin: 6px 0 10px;
  line-height: 1.1;
}

.focus-panel p,
.compass-panel p,
.mini-item small,
.rules-list p,
.pillar-card p {
  color: var(--muted);
  line-height: 1.45;
}

.mini-list {
  display: grid;
  gap: 9px;
}

.mini-item {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  padding: 12px;
  text-align: left;
  transition:
    border-color var(--dur-fast) var(--ease-out-expo),
    background var(--dur-fast) var(--ease-out-expo),
    opacity var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.mini-item.is-posted {
  border-color: color-mix(in srgb, var(--teal) 28%, var(--line));
  background:
    linear-gradient(135deg, rgba(57, 232, 184, 0.08), rgba(57, 232, 184, 0.02)),
    var(--panel-2);
}

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

.mini-item small {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.mini-platform-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mini-platform-icons .platform-chip {
  min-width: 22px;
  min-height: 22px;
  padding: 0 6px;
}

.calendar-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}

.day-column {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 10px;
}

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

.pillar-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 16px;
}

.pillar-card span {
  color: var(--accent);
  font-weight: 900;
}

.pillar-card h3 {
  margin: 8px 0;
}

.pillar-card small {
  display: block;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
}

.pillar-balance-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 54px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.026);
  padding: 10px 12px;
}

.pillar-balance-strip__label {
  display: grid;
  gap: 3px;
  min-width: 142px;
}

.pillar-balance-strip__label span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pillar-balance-strip__label strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.pillar-balance-strip__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  min-width: 0;
}

.pillar-balance-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 2px 4px;
  text-align: left;
}

.pillar-balance-mini.is-suggestion {
  background: color-mix(in srgb, var(--pillar-color) 10%, transparent);
}

.pillar-balance-mini__name {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pillar-balance-mini__share {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.pillar-balance-mini__count {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.pillar-balance-mini__track {
  position: relative;
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.pillar-balance-mini__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
  left: 0;
  width: var(--actual);
  border-radius: inherit;
  background: color-mix(in srgb, var(--pillar-color) 78%, black 4%);
}

.pillar-balance {
  --balance-track: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    color-mix(in srgb, var(--panel-2) 86%, transparent);
  padding: 14px;
}

.pillar-balance--compact {
  border-radius: 12px;
  padding: 12px 14px;
}

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

.pillar-balance__head h3 {
  margin: 3px 0 0;
  font-size: 16px;
}

.pillar-balance__head strong {
  max-width: 46%;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  text-align: right;
}

.pillar-balance__body {
  display: grid;
  gap: 12px;
}

.pillar-balance--vertical .pillar-balance__body {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  align-items: end;
}

.pillar-balance__item {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  padding: 0;
  text-align: left;
}

.pillar-balance__item.is-suggestion {
  border-color: color-mix(in srgb, var(--pillar-color) 42%, transparent);
  background: color-mix(in srgb, var(--pillar-color) 9%, transparent);
}

.pillar-balance__track {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--balance-track);
}

.pillar-balance--vertical .pillar-balance__track {
  width: 100%;
  height: 112px;
}

.pillar-balance--compact.pillar-balance--vertical .pillar-balance__track {
  height: 82px;
}

.pillar-balance__fill,
.pillar-balance__target {
  position: absolute;
  right: 0;
  left: 0;
  display: block;
}

.pillar-balance__fill {
  bottom: 0;
  background: color-mix(in srgb, var(--pillar-color) 82%, black 8%);
  transition: height var(--dur-sheet) var(--ease-ios), width var(--dur-sheet) var(--ease-ios);
}

.pillar-balance__fill--posted {
  height: var(--posted);
}

.pillar-balance__fill--planned {
  bottom: var(--posted);
  height: var(--planned);
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--pillar-color) 48%, transparent) 0 6px,
      color-mix(in srgb, var(--pillar-color) 22%, transparent) 6px 12px
    );
}

.pillar-balance__target {
  bottom: var(--target);
  border-top: 1px dashed rgba(255, 255, 255, 0.72);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.pillar-balance__copy {
  display: grid;
  gap: 3px;
  margin-top: 8px;
}

.pillar-balance__copy b {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pillar-balance__copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.pillar-balance--horizontal .pillar-balance__body {
  gap: 9px;
}

.pillar-balance--horizontal .pillar-balance__item {
  display: grid;
  grid-template-columns: minmax(150px, 0.95fr) minmax(170px, 1.4fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
}

.pillar-balance--horizontal .pillar-balance__track {
  grid-column: 2;
  grid-row: 1;
  height: 24px;
}

.pillar-balance--horizontal .pillar-balance__copy {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
}

.pillar-balance--horizontal .pillar-balance__fill {
  top: 0;
  bottom: 0;
  right: auto;
  left: 0;
}

.pillar-balance--horizontal .pillar-balance__fill--posted {
  width: var(--posted);
  height: auto;
}

.pillar-balance--horizontal .pillar-balance__fill--planned {
  bottom: 0;
  left: var(--posted);
  width: var(--planned);
  height: auto;
}

.pillar-balance--horizontal .pillar-balance__target {
  top: 0;
  bottom: 0;
  left: var(--target);
  width: 0;
  border-top: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.72);
}

.compass-callout {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 8px;
  background: var(--accent-soft);
}

.compass-callout p {
  margin: 6px 0 0;
  color: var(--text-2);
  line-height: 1.45;
}

.truth-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.truth-strip span {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel-2);
  color: var(--text-2);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.rules-list p {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev-1);
}

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

.section-head h2 {
  margin: 4px 0 0;
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.ideas-desktop-view .idea-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.idea-card {
  height: 88px;
  display: grid;
  grid-template-rows: 18px minmax(0, 1fr) 16px;
  gap: 4px;
  padding: 12px 14px 12px 18px;
  color: var(--text);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: background var(--dur-fast) var(--ease-ios), border-color var(--dur-fast) var(--ease-ios), transform var(--dur-fast) var(--ease-ios);
}

.calendar-idea-card {
  height: 88px;
  display: grid;
  grid-template-rows: 18px minmax(0, 1fr) 16px;
  gap: 4px;
  position: relative;
  overflow: hidden;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  color: var(--text);
  text-align: left;
  transition:
    border-color var(--dur-fast) var(--ease-out-expo),
    background var(--dur-fast) var(--ease-out-expo),
    opacity var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.status-tone--draft {
  --status-line: var(--line);
  --status-bg: transparent;
}

.status-tone--ready {
  --status-line: color-mix(in srgb, var(--blue) 52%, var(--line));
  --status-bg: rgba(47, 125, 255, 0.055);
}

.status-tone--filmed {
  --status-line: rgba(143, 183, 255, 0.48);
  --status-bg: rgba(47, 125, 255, 0.075);
}

.status-tone--edited {
  --status-line: color-mix(in srgb, var(--accent) 48%, var(--line));
  --status-bg: color-mix(in srgb, var(--accent) 10%, transparent);
}

.status-tone--posted {
  --status-line: color-mix(in srgb, var(--teal) 48%, var(--line));
  --status-bg: rgba(57, 232, 184, 0.09);
}

.status-tone--paused {
  --status-line: color-mix(in srgb, var(--muted-deep) 70%, var(--line));
  --status-bg: rgba(255, 255, 255, 0.018);
}

.status-tone--error {
  --status-line: color-mix(in srgb, var(--danger) 48%, var(--line));
  --status-bg: rgba(255, 80, 96, 0.08);
}

.idea-card.status-tone--ready,
.idea-card.status-tone--filmed,
.idea-card.status-tone--edited,
.idea-card.status-tone--posted,
.idea-card.status-tone--paused,
.idea-card.status-tone--error,
.calendar-idea-card.status-tone--ready,
.calendar-idea-card.status-tone--filmed,
.calendar-idea-card.status-tone--edited,
.calendar-idea-card.status-tone--posted,
.calendar-idea-card.status-tone--paused,
.calendar-idea-card.status-tone--error,
.calendar-item-button.status-tone--ready,
.calendar-item-button.status-tone--filmed,
.calendar-item-button.status-tone--edited,
.calendar-item-button.status-tone--posted,
.calendar-item-button.status-tone--paused,
.calendar-item-button.status-tone--error,
.today-plan-card.status-tone--ready,
.today-plan-card.status-tone--filmed,
.today-plan-card.status-tone--edited,
.today-plan-card.status-tone--posted,
.today-plan-card.status-tone--paused,
.today-plan-card.status-tone--error,
.mini-item.status-tone--ready,
.mini-item.status-tone--filmed,
.mini-item.status-tone--edited,
.mini-item.status-tone--posted,
.mini-item.status-tone--paused,
.mini-item.status-tone--error {
  border-color: var(--status-line);
  background:
    linear-gradient(135deg, var(--status-bg), transparent 58%),
    color-mix(in srgb, var(--panel) 92%, transparent);
}

.idea-card.status-tone--paused,
.calendar-idea-card.status-tone--paused,
.calendar-item-button.status-tone--paused,
.today-plan-card.status-tone--paused,
.mini-item.status-tone--paused {
  border-style: dashed;
  opacity: 0.82;
}

.idea-card.selected,
.calendar-item-button.selected {
  border-color: var(--accent);
}

.idea-card:hover,
.calendar-idea-card:hover,
.calendar-item-button:hover,
.mini-item:hover,
.sheet-row:hover {
  transform: translateY(-1px);
}

.calendar-idea-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  background: var(--pillar-color, var(--pillar-ai));
}

.calendar-idea-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.idea-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  background: var(--pillar-color, var(--pillar-ai));
}

.idea-card:active {
  transform: scale(0.992);
  background: var(--panel-2);
  border-color: var(--line-strong);
}

.idea-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card__top,
.compact-card__meta,
.compact-platforms {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.compact-card__top {
  justify-content: space-between;
}

.compact-card__top-cluster {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.compact-card__top .idea-id {
  flex: 1 1 auto;
}

.compact-card__meta {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  flex-wrap: wrap;
}

.compact-card__meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card__meta > span + span::before {
  content: "·";
  margin-right: 6px;
  color: var(--muted-deep);
}

.compact-card__meta > .compact-platforms::before,
.compact-card__meta > .status-pill-small::before,
.compact-card__meta > .planned-date-chip::before {
  content: none;
}

.planned-date-chip {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  padding: 0 7px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.idea-id {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.pillar-chip {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

[data-ws-theme="mojomakes"] .pillar-chip--ai {
  border: 1px solid color-mix(in srgb, var(--pillar-ai) 62%, var(--line));
  background: rgba(0, 0, 0, 0.12);
  color: color-mix(in srgb, var(--pillar-ai) 72%, var(--text));
}

.idea-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin: 0 0 14px;
}

.idea-platform-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel-2);
}

.idea-platform-tabs button {
  min-height: 30px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 850;
  transition:
    background var(--dur-fast) var(--ease-out-expo),
    color var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.idea-platform-tabs button.active {
  background: var(--text);
  color: var(--bg);
}

.platform-content-block {
  margin: 14px 0;
}

.platform-content-tabs,
.platform-content-single {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}

.platform-content-tabs {
  flex-wrap: wrap;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel-2);
}

.platform-content-tabs button,
.platform-content-single {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  transition:
    border-color var(--dur-fast) var(--ease-out-expo),
    background var(--dur-fast) var(--ease-out-expo),
    color var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.platform-content-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.platform-content-tabs button.active {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: var(--accent-soft);
  color: var(--text);
}

.platform-content-single {
  width: fit-content;
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--text-2);
}

.platform-document-card {
  margin-top: 10px;
}

.platform-document-actions {
  margin-top: 10px;
}

.platform-empty-copy,
.field-hint {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.platform-doc-editor {
  min-height: 190px;
}

.caption-editor {
  min-height: 150px;
}

.idea-filter-bar label {
  display: grid;
  gap: 4px;
  min-width: 112px;
  max-width: 122px;
}

.idea-filter-bar label span,
.idea-filter-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.idea-filter-bar select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  padding: 0 10px;
}

.idea-filter-count {
  align-self: center;
  margin-left: 0;
}

.desktop-empty-card {
  min-height: 140px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--r-2);
  color: var(--muted);
}

@media (min-width: 769px) {
  .idea-card {
    min-height: 116px;
    height: auto;
    grid-template-rows: auto auto auto;
  }

  .idea-card strong {
    font-size: 13.5px;
    -webkit-line-clamp: 3;
  }
}

.chip-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-self: end;
}

.chip,
.round-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #2b332d;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.platform-chip,
.status-pill-small {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.platform-chip {
  position: relative;
  min-width: 24px;
  padding: 0 7px;
}

.platform-chip.is-posted {
  border-color: color-mix(in srgb, var(--teal) 46%, var(--line));
  background: rgba(57, 232, 184, 0.10);
}

.platform-post-check {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--teal) 62%, var(--bg));
  border-radius: 999px;
  background: var(--teal);
  color: #06110d;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.publication-summary {
  flex: 0 0 auto;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.publication-summary.complete {
  border-color: color-mix(in srgb, var(--teal) 46%, var(--line));
  background: rgba(57, 232, 184, 0.10);
  color: #8cf0d4;
}

.platform-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  flex: 0 0 auto;
  color: currentColor;
}

.platform-icon-tiktok {
  color: #f3efe7;
}

.platform-icon-instagram {
  color: #ec4899;
}

.platform-icon-linkedin {
  color: #4ea3ff;
}

.platform-chip .platform-icon,
.round-icon .platform-icon {
  width: 14px;
  height: 14px;
}

.choice-pill .platform-icon {
  margin-right: 5px;
  vertical-align: -2px;
}

.platform-round-icon {
  min-width: 30px;
  padding: 0 8px;
}

.detail-platform-icons {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
}

.status-pill-small {
  padding: 0 9px;
  background: var(--panel-2);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-pill--draft {
  border-color: var(--line-soft);
  background: var(--panel-2);
  color: var(--muted);
}

.status-pill--ready {
  border-color: color-mix(in srgb, var(--blue) 38%, var(--line));
  background: var(--blue-soft);
  color: color-mix(in srgb, var(--blue) 72%, var(--text));
}

.status-pill--must {
  border-color: color-mix(in srgb, var(--amber) 42%, var(--line));
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill--filmed {
  border-color: color-mix(in srgb, var(--blue) 44%, var(--line));
  background: rgba(47, 125, 255, 0.16);
  color: #8fb7ff;
}

.status-pill--edited {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.status-pill--live {
  border-color: color-mix(in srgb, var(--teal) 42%, var(--line));
  background: var(--teal-soft);
  color: var(--teal);
}

.status-pill--paused {
  border-style: dashed;
  border-color: var(--muted-deep);
  background: transparent;
  color: var(--muted);
}

.status-pill--error {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
  background: var(--danger-soft);
  color: var(--danger);
}

.round-icon {
  width: 28px;
  padding: 0;
  background: #263a64;
}

.detail-panel {
  padding: 20px;
  position: sticky;
  top: 20px;
}

.desktop-detail-drawer {
  position: fixed;
  z-index: 35;
  top: 92px;
  right: 28px;
  bottom: 28px;
  width: min(460px, calc(100vw - 360px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-4);
  background: color-mix(in srgb, var(--panel) 96%, #000);
  box-shadow: var(--shadow-3);
}

.desktop-detail-drawer__top {
  position: sticky;
  z-index: 2;
  top: -18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: -18px -18px 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 96%, #000);
}

.desktop-detail-drawer__top h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.12;
}

.desktop-detail-drawer .read-block:first-of-type {
  margin-top: 0;
}

.desktop-idea-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 52px 88px;
  background: color-mix(in srgb, #000 58%, transparent);
  backdrop-filter: blur(10px);
  animation: fadeIn var(--dur-med) var(--ease-ios);
}

.desktop-idea-modal {
  width: min(1040px, calc(100vw - 176px));
  max-height: min(84vh, 860px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 97%, #000);
  box-shadow: var(--shadow-3);
}

.desktop-idea-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 98%, #000);
}

.desktop-idea-modal__top h2 {
  max-width: 760px;
  margin: 5px 0 0;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.04;
}

.desktop-idea-modal__body {
  max-height: calc(min(84vh, 860px) - 106px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.25fr);
  gap: 14px;
  padding: 18px 24px 24px;
}

.desktop-idea-modal__body > .detail-chips,
.desktop-idea-modal__body > .save-status {
  grid-column: 1 / -1;
}

.desktop-idea-modal__body > .platform-content-block {
  grid-column: 2;
  grid-row: 2 / span 4;
}

.desktop-idea-modal__body > .button-row {
  align-self: end;
}

.desktop-idea-modal__body > .quick-plan,
.desktop-idea-modal__body > .button-row {
  grid-column: 1;
}

.desktop-idea-modal__body .platform-document-card p,
.desktop-idea-modal__body .read-block p {
  font-size: 16px;
}

.desktop-idea-modal__body .platform-document-card p {
  max-height: 44vh;
  overflow: auto;
}

.idea-overlay-close {
  opacity: 0.78;
}

.idea-overlay-nav {
  position: fixed;
  top: 50%;
  z-index: 61;
  width: 54px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--text);
  font-size: 44px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  opacity: 0.82;
  transition: opacity var(--dur-fast) var(--ease-ios), transform var(--dur-fast) var(--ease-ios), border-color var(--dur-fast) var(--ease-ios);
}

.idea-overlay-nav:hover,
.idea-overlay-nav:focus-visible {
  opacity: 1;
  border-color: var(--accent-line);
  transform: translateY(-50%) scale(1.03);
}

.idea-overlay-nav--prev {
  left: 26px;
}

.idea-overlay-nav--next {
  right: 26px;
}

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

.edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0;
}

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

.edit-grid input,
.edit-grid select,
.create-idea-form input,
.create-idea-form select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev-1);
  color: var(--text);
  padding: 0 10px;
}

.edit-save-bar {
  position: sticky;
  z-index: 3;
  top: 72px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 10px -2px 14px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 93%, #000);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.edit-save-bar span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.edit-save-bar button {
  white-space: nowrap;
}

.edit-save-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.edit-plan-button {
  min-height: 38px;
  align-self: end;
}

.edit-fieldset,
.create-idea-form fieldset {
  margin: 12px 0;
  padding: 0;
  border: 0;
}

.edit-fieldset legend,
.create-idea-form legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  position: relative;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 750;
}

.choice-pill input:checked + span {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: var(--accent-soft);
  color: var(--text);
}

.mobile-choice-field {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mobile-choice-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-select-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  padding: 0 12px;
  font-size: 15px;
  font-weight: 850;
  text-align: left;
  touch-action: manipulation;
}

.mobile-select-button[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: var(--accent-soft);
}

.mobile-select-button:active,
.mobile-select-option:active {
  transform: scale(0.98);
}

.mobile-select-options {
  display: none;
  max-height: 220px;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 12px;
  background: var(--panel);
  padding: 6px;
  box-shadow: var(--shadow-2);
}

.mobile-choice-field.open .mobile-select-options {
  display: grid;
  gap: 4px;
}

.mobile-select-option {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  padding: 0 10px;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  touch-action: manipulation;
}

.mobile-select-option.active {
  background: var(--accent-soft);
  color: var(--text);
}

.meta-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.meta-list b {
  display: block;
  margin-top: 5px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
}

textarea {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev-1);
  color: var(--text);
  padding: 14px;
  line-height: 1.45;
  resize: vertical;
}

.summary-editor {
  min-height: 96px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.edit-action-row {
  align-items: center;
}

.edit-action-row.is-dirty {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(16px);
}

.primary-button,
.small-button,
.icon-text-button,
.icon-button,
.danger-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  background: var(--panel-2);
  color: var(--text);
}

.primary-button {
  background: var(--text);
  color: #111;
  border-color: var(--text);
  font-weight: 850;
}

.danger-button {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
}

.icon-button {
  width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}

.icon-text-button span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--text);
  color: #111;
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-actions {
  display: flex;
  gap: 8px;
}

.detail-chips {
  margin: 12px 0 16px;
}

.read-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev-1);
  padding: 14px;
  margin: 12px 0;
}

.read-block summary,
.quick-plan label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.read-block summary {
  cursor: pointer;
  list-style: none;
}

.read-block summary::-webkit-details-marker {
  display: none;
}

.read-block summary::after {
  content: "›";
  float: right;
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  transition: transform var(--dur-fast) var(--ease-ios);
}

.read-block[open] summary::after {
  transform: rotate(90deg);
}

.read-block p {
  margin: 7px 0 0;
  white-space: pre-wrap;
}

.prep-copy {
  color: var(--text-2);
  line-height: 1.45;
}

.prep-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.prep-chip {
  min-height: 30px;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel-2);
  color: var(--text-2);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.prep-chip-button {
  cursor: pointer;
}

.prep-chip-button:hover {
  border-color: var(--accent-line);
  color: var(--text);
}

.quick-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.idea-detail-sheet .quick-plan {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 16px 0 10px;
}

.mobile-quick-plan {
  grid-template-columns: 1fr auto;
}

.mobile-quick-plan > .field-label {
  grid-column: 1 / -1;
}

.mobile-date-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.mobile-date-control {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.quick-plan input {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f130f;
  color: var(--text);
  padding: 0 10px;
}

.idea-detail-sheet .quick-plan input {
  min-height: 44px;
  border-radius: 10px;
  background: var(--bg-elev-1);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  touch-action: manipulation;
}

.idea-detail-sheet .quick-plan input[type="hidden"] {
  display: none;
}

.mobile-date-display {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev-1);
  color: var(--text);
  padding: 0 10px;
  font-size: 16px;
  font-weight: 850;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.mobile-date-display:active {
  transform: scale(0.99);
}

.mobile-date-picker {
  display: none;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 14px;
  background: var(--panel-2);
  padding: 10px;
  box-shadow: var(--shadow-2);
}

.mobile-date-control.date-picker-open .mobile-date-picker {
  display: grid;
  gap: 8px;
}

.mobile-date-picker__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 6px;
}

.mobile-date-picker__head strong {
  text-align: center;
  font-size: 14px;
}

.mobile-date-picker__weekdays,
.mobile-date-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.mobile-date-picker__weekdays span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.mobile-date-day {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  touch-action: manipulation;
}

.mobile-date-day.outside {
  color: var(--muted-deep);
}

.mobile-date-day.today {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}

.mobile-date-day.selected {
  background: var(--accent);
  color: #15100a;
}

.mobile-date-today {
  width: 100%;
  justify-content: center;
  min-height: 36px;
}

.mobile-date-clear {
  width: 100%;
  justify-content: center;
  min-height: 38px;
  color: var(--text-2);
}

.mobile-date-row .icon-button {
  width: 40px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 22px;
}

.idea-detail-sheet .quick-plan .small-button {
  min-width: 88px;
  min-height: 44px;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
  touch-action: manipulation;
}

.save-status {
  min-height: 24px;
  color: var(--muted);
}

.teleprompter-body,
.teleprompter-body #app {
  overflow: hidden;
  min-height: 100dvh;
  background: #000;
}

.teleprompter-layout {
  position: fixed;
  inset: 0;
  background: #050605;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

#camera-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  opacity: 1;
  background: #111;
}

.teleprompter-layout[data-facing="environment"] #camera-preview {
  transform: none;
}

.teleprompter-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.44), transparent 24%, transparent 66%, rgba(0, 0, 0, 0.5)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.18));
}

.teleprompter-topbar {
  position: absolute;
  z-index: 4;
  top: max(10px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--text);
}

.teleprompter-topbar div {
  min-width: 0;
}

.teleprompter-topbar b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

#capability-status {
  max-width: 34vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 9px 11px;
  background: rgba(7, 9, 8, 0.68);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.recording-live-indicator {
  position: absolute;
  z-index: 7;
  top: max(64px, calc(env(safe-area-inset-top) + 54px));
  left: 50%;
  display: none;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid rgba(255, 75, 75, 0.8);
  border-radius: 999px;
  background: rgba(80, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 44px rgba(255, 0, 0, 0.22);
}

.recording-live-indicator span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff4f4f;
  box-shadow: 0 0 0 7px rgba(255, 79, 79, 0.2);
  animation: recordBlink 1s ease-in-out infinite;
}

.teleprompter-layout[data-mode="recording"] .recording-live-indicator {
  display: inline-flex;
}

.teleprompter-layout[data-mode="recording"]::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 7px;
  pointer-events: none;
  border: 3px solid rgba(255, 69, 69, 0.72);
  border-radius: 26px;
  box-shadow: inset 0 0 44px rgba(255, 0, 0, 0.12);
}

@keyframes recordBlink {
  50% {
    opacity: 0.45;
  }
}

.framing-exit {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 18px));
  display: none;
  transform: translateX(-50%);
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(8, 10, 9, 0.74);
  color: var(--text);
  font-weight: 900;
  backdrop-filter: blur(18px);
}

.teleprompter-layout[data-framing="true"] .teleprompter-shade,
.teleprompter-layout[data-framing="true"] .teleprompter-topbar,
.teleprompter-layout[data-framing="true"] .teleprompter-text,
.teleprompter-layout[data-framing="true"] .teleprompter-dock {
  display: none;
}

.teleprompter-layout[data-framing="true"] .framing-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.prompter-icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 10, 9, 0.64);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.prompter-icon-button.active {
  background: rgba(47, 125, 255, 0.9);
  border-color: rgba(47, 125, 255, 1);
  color: #fff;
}

.teleprompter-text {
  position: absolute;
  z-index: 2;
  top: max(82px, calc(env(safe-area-inset-top) + 68px));
  left: 0;
  right: 0;
  bottom: max(132px, calc(env(safe-area-inset-bottom) + 118px));
  overflow: auto;
  padding: 18px 22px 34px;
  color: #fff;
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: 0;
  text-align: left;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.88), 0 1px 1px rgba(0, 0, 0, 0.9);
}

.teleprompter-text p {
  max-width: 920px;
  margin: 0 auto;
  white-space: pre-line;
}

.teleprompter-dock {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: rgba(8, 9, 8, 0.76);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.46);
  transition: opacity var(--dur-base) var(--ease-ios), transform var(--dur-base) var(--ease-ios);
}

.teleprompter-dock.is-dimmed {
  opacity: 0.3;
}

.prompter-grip {
  width: 100%;
  height: 16px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  margin: -2px 0 -4px;
}

.prompter-grip span {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.prompter-speed-row,
.prompter-main-actions,
.review-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompter-speed-row span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.prompter-speed-row input,
.prompter-settings input {
  width: 100%;
  accent-color: var(--accent);
}

.prompter-speed-row input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  height: 28px;
  background: transparent;
  outline: none;
}

.prompter-speed-row input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) 0 var(--speed-progress, 0%),
    rgba(255, 255, 255, 0.22) var(--speed-progress, 0%) 100%
  );
}

.prompter-speed-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

.prompter-speed-row input[type="range"]::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.prompter-speed-row input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.prompter-speed-row input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

.prompter-speed-value {
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.prompter-main-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.prompter-main-actions .small-button,
.prompter-main-actions .primary-button {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
}

.prompter-main-actions .primary-button {
  min-width: 112px;
  background: #2f7dff;
  border-color: #2f7dff;
  color: #fff;
}

.record-circle {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #d72d2d;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 10px 32px rgba(215, 45, 45, 0.3);
}

.record-circle:disabled {
  opacity: 0.36;
  box-shadow: none;
}

.record-circle.recording {
  background: #ff4f4f;
  animation: recordPulse 1.3s ease-in-out infinite;
  box-shadow: 0 0 0 8px rgba(255, 79, 79, 0.18), 0 14px 42px rgba(255, 79, 79, 0.42);
}

@keyframes recordPulse {
  50% {
    transform: scale(0.92);
  }
}

.prompter-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.prompter-settings[hidden] {
  display: none;
}

.prompter-settings label {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.prompter-settings select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 0 12px;
}

.prompter-settings .small-button {
  min-height: 40px;
}

.recording-draft-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(57, 232, 184, 0.34);
  border-radius: 16px;
  background: rgba(7, 35, 30, 0.72);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.recording-draft-banner[hidden] {
  display: none;
}

.recording-draft-banner div {
  display: flex;
  gap: 8px;
}

.recording-draft-banner .small-button {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.teleprompter-layout[data-mode="recording"] .teleprompter-dock {
  width: min(520px, calc(100vw - 24px));
}

.teleprompter-layout[data-mode="recording"] .prompter-settings,
.teleprompter-layout[data-mode="review"] .teleprompter-dock,
.teleprompter-layout[data-mode="review"] .teleprompter-text,
.teleprompter-layout[data-mode="review"] .teleprompter-topbar {
  display: none;
}

.recording-review {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.recording-review[hidden] {
  display: none;
}

.review-card {
  width: min(620px, 100%);
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.86);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.62);
}

.review-card video {
  width: 100%;
  max-height: min(56vh, 640px);
  border-radius: 18px;
  background: #111;
}

.review-note {
  margin: -2px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.danger-button {
  justify-self: start;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(242, 139, 130, 0.38);
  border-radius: 999px;
  background: rgba(242, 139, 130, 0.14);
  color: var(--danger);
  font-weight: 900;
}

.download-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel-2);
  text-decoration: none;
  font-weight: 850;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.review-actions .primary-button,
.review-actions .download-link,
.review-actions .small-button {
  min-height: 48px;
  width: 100%;
}

.mark-filmed-button.is-done {
  border-color: color-mix(in srgb, var(--teal) 42%, var(--line));
  background: var(--teal-soft);
  color: var(--teal);
}

.review-card small {
  color: var(--accent);
  font-weight: 800;
}

.mobile-shell-v2 {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--bg);
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 31;
  height: calc(56px + env(safe-area-inset-top));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-2);
  padding: max(8px, env(safe-area-inset-top)) 12px 8px;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg-elev-1) 90%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}

.ws-chip {
  min-width: 0;
  max-width: 168px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.ws-chip__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-chip__token {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 900;
}

.ws-chip__token--amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.ws-chip__token--teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.ws-chip__token--logo {
  overflow: hidden;
  background: color-mix(in srgb, var(--teal) 12%, #07110f);
  color: transparent;
  border: 1px solid color-mix(in srgb, var(--teal) 26%, transparent);
}

.ws-chip__caret {
  color: var(--muted);
  font-size: 10px;
}

.mobile-topbar__context {
  justify-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.mobile-topbar__settings {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  font-size: 18px;
}

.mobile-screen {
  min-width: 0;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-4) calc(88px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.mobile-bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg-elev-1) 92%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}

.mobile-bottom-nav a {
  display: grid;
  grid-template-rows: 4px 24px 14px;
  align-items: center;
  justify-items: center;
  gap: 4px;
  padding-top: 8px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  font-size: 11px;
  font-weight: 650;
  transition:
    color var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo),
    opacity var(--dur-fast) var(--ease-out-expo);
}

.mobile-bottom-nav a[aria-current="page"] {
  color: var(--text);
}

.mobile-bottom-nav a[aria-current="page"]::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 2px;
}

.mobile-bottom-nav__icon {
  font-size: 21px;
  line-height: 1;
}

.mobile-section-head,
.mobile-ideas-head,
.mobile-list-section {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.mobile-section-head h1,
.mobile-list-section h2 {
  margin: 0;
  line-height: 1.1;
}

.mobile-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.today-hero-card {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  overflow: hidden;
}

.today-hero-card.is-must {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}

.today-hero-card.is-normal {
  border-color: var(--line);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.today-hero-card.is-posted {
  border-color: color-mix(in srgb, var(--teal) 34%, var(--line));
  background:
    linear-gradient(135deg, rgba(57, 232, 184, 0.1), rgba(57, 232, 184, 0.025)),
    color-mix(in srgb, var(--panel) 90%, transparent);
}

.today-hero-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 4px;
  background: var(--pillar-color, var(--pillar-ai));
}

.today-hero-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
}

.today-hero-card p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.45;
}

.today-plan-list {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.today-focus-group,
.today-options-group {
  display: grid;
  gap: var(--sp-2);
}

.today-focus-group > .eyebrow,
.today-options-group__head .eyebrow {
  color: var(--accent);
}

.today-options-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0 2px;
}

.today-options-group__head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.today-plan-card {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  overflow: hidden;
  transition:
    border-color var(--dur-fast) var(--ease-out-expo),
    background var(--dur-fast) var(--ease-out-expo),
    padding var(--dur-base) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.today-plan-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 4px;
  background: var(--pillar-color, var(--pillar-ai));
}

.today-plan-card.is-expanded {
  padding: var(--sp-5);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
}

.today-options-group .today-plan-card.is-compact {
  gap: 9px;
  padding: 13px 15px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--status-bg, transparent), transparent 58%),
    color-mix(in srgb, var(--panel) 78%, transparent);
}

.today-options-group .today-plan-card.is-compact h2 {
  font-size: 16px;
  line-height: 1.22;
}

.today-options-group .today-plan-card.is-compact .today-plan-card__top {
  align-items: center;
}

.today-options-group .today-plan-card.is-compact .today-plan-card__actions {
  justify-content: flex-start;
}

.today-options-group .today-plan-card.is-compact .small-button,
.today-options-group .today-plan-card.is-compact .primary-button {
  min-height: 36px;
  padding: 0 12px;
}

.today-plan-card.is-posted {
  border-color: color-mix(in srgb, var(--teal) 34%, var(--line));
  background:
    linear-gradient(135deg, rgba(57, 232, 184, 0.1), rgba(57, 232, 184, 0.025)),
    color-mix(in srgb, var(--panel) 90%, transparent);
}

.today-plan-card__top,
.today-plan-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.today-plan-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
}

.today-plan-card.is-expanded h2 {
  font-size: 21px;
}

.today-plan-card p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.45;
}

.today-plan-card .compact-card__meta {
  flex-wrap: wrap;
}

.mobile-card-list {
  display: grid;
  gap: var(--sp-3);
}

.mobile-list-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.mobile-list-section__head h2 {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.2;
}

.mobile-filter-row {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-row-secondary {
  margin-top: -4px;
}

.mobile-filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  height: 32px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 750;
  transition:
    border-color var(--dur-fast) var(--ease-out-expo),
    background var(--dur-fast) var(--ease-out-expo),
    color var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.filter-chip.active {
  border-color: var(--line-strong);
  background: var(--panel-3);
  color: var(--text);
}

.count-strip {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mobile-calendar-list {
  display: grid;
  gap: var(--sp-3);
}

.calendar-mobile-head {
  position: sticky;
  top: 0;
  z-index: 4;
  padding-bottom: var(--sp-2);
  background: var(--bg);
}

.calendar-day-row {
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  overflow: hidden;
}

.calendar-past-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0 var(--sp-4);
  border: 1px dashed var(--line);
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  color: var(--muted);
  text-align: left;
}

.calendar-past-toggle span {
  font-size: 13px;
  font-weight: 800;
}

.calendar-past-toggle b {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.calendar-day-toggle {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0 var(--sp-4);
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.calendar-day-toggle b,
.calendar-day-toggle small {
  display: block;
}

.calendar-day-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.day-count {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--panel-3);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.calendar-day-row.open {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}

.calendar-day-row.today {
  border-left: 2px solid var(--accent);
}

.calendar-day-row .mobile-card-list {
  padding: 0 var(--sp-3) var(--sp-3);
}

.today-pill {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

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

.daily-compass-card {
  width: 100%;
  display: grid;
  gap: 7px;
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  color: var(--text);
  line-height: 1.45;
  text-align: left;
}

.daily-compass-card b {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.38;
}

.daily-compass-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.3;
}

.daily-compass-card__cta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.compass-sheet {
  height: min(82dvh, 760px);
}

.mobile-compass-sheet__body {
  display: grid;
  gap: var(--sp-3);
}

.mobile-compass-hero,
.mobile-compass-rule,
.mobile-compass-pillar {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--panel-2) 88%, transparent);
  padding: var(--sp-3);
}

.mobile-compass-hero span,
.mobile-compass-rule span,
.mobile-compass-pillar span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-compass-hero p,
.mobile-compass-rule p,
.mobile-compass-pillar p {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}

.mobile-compass-balance {
  display: grid;
  gap: var(--sp-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--panel-2) 82%, transparent);
  padding: var(--sp-3);
}

.mobile-compass-balance__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
}

.mobile-compass-balance__head span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-compass-balance__head strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
}

.mobile-compass-balance__list {
  display: grid;
  gap: 9px;
}

.mobile-compass-balance__row {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mobile-compass-balance__row div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.mobile-compass-balance__row b {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-compass-balance__row small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 780;
  line-height: 1.2;
  text-align: right;
}

.mobile-compass-balance__track {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-compass-balance__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--actual);
  border-radius: inherit;
  background: color-mix(in srgb, var(--pillar-color) 82%, black 5%);
}

.mobile-compass-balance__target {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: var(--target);
  width: 1px;
  background: rgba(255, 255, 255, 0.72);
}

.mobile-compass-pillars {
  display: grid;
  gap: var(--sp-2);
}

.mobile-compass-pillar {
  border-left: 3px solid var(--pillar-color, var(--accent));
}

.mobile-compass-pillar div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.mobile-compass-pillar h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.15;
}

.mobile-compass-pillar small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mobile-compass-truths {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-compass-truths span {
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--panel-3) 72%, transparent);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 760;
}

.pwa-hint-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-3);
  align-items: center;
  margin: var(--sp-5) 0 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid color-mix(in srgb, var(--blue) 32%, var(--line));
  border-radius: var(--r-3);
  background: var(--blue-soft);
}

.pwa-hint-banner p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.35;
}

.pwa-hint-banner b {
  color: var(--text);
}

.fab {
  position: fixed;
  right: 16px;
  bottom: calc(64px + env(safe-area-inset-bottom) + 16px);
  z-index: 32;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 26px;
  font-weight: 850;
  box-shadow: var(--shadow-2);
}

.mobile-toast {
  position: fixed;
  left: 50%;
  bottom: calc(64px + env(safe-area-inset-bottom) + 18px);
  z-index: 60;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--panel-3) 92%, transparent);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  box-shadow: var(--shadow-2);
}

body.sheet-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  border: 0;
  padding: 0;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  animation: backdropIn var(--dur-sheet) var(--ease-ios);
}

.mobile-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  height: 88dvh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--sp-4) max(20px, env(safe-area-inset-bottom));
  border-top-left-radius: var(--r-4);
  border-top-right-radius: var(--r-4);
  background: var(--panel);
  box-shadow: var(--shadow-3);
  overscroll-behavior: contain;
  overflow: hidden;
  will-change: transform, opacity;
  animation: sheetIn var(--dur-sheet) var(--ease-ios);
}

.sheet-handle {
  width: 100%;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  touch-action: none;
}

.sheet-handle span {
  width: 40px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--muted-deep);
}

.sheet-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-2) 0 var(--sp-3);
  border-bottom: 1px solid var(--line-soft);
  touch-action: none;
}

.sheet-header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sheet-header h2 {
  margin: 5px 0 0;
  font-size: 21px;
  line-height: 1.18;
}

.sheet-body {
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: var(--sp-4) 0;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.idea-detail-sheet .sheet-body > h2 {
  display: none;
}

.idea-detail-sheet .sheet-body > .detail-topline {
  margin-bottom: var(--sp-3);
}

.idea-detail-sheet .button-row {
  display: grid;
  grid-template-columns: 1fr;
}

.idea-detail-sheet .button-row .primary-button,
.idea-detail-sheet .button-row .small-button {
  min-height: 52px;
  justify-content: center;
}

.idea-edit-sheet {
  height: 100dvh;
  padding-top: max(8px, env(safe-area-inset-top));
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  overflow-x: hidden;
}

.idea-edit-sheet .sheet-body {
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: max(180px, calc(28px + env(safe-area-inset-bottom)));
}

.idea-edit-sheet .edit-grid,
.idea-edit-sheet .edit-fieldset,
.idea-edit-sheet .platform-content-block,
.idea-edit-sheet .platform-document-card,
.idea-edit-sheet .platform-document-actions,
.idea-edit-sheet input,
.idea-edit-sheet select,
.idea-edit-sheet textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.idea-edit-sheet textarea {
  overflow: hidden;
  resize: none;
  touch-action: auto;
}

.idea-edit-sheet .platform-content-tabs {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.idea-edit-sheet .edit-save-bar {
  top: 0;
  grid-template-columns: 1fr;
  margin-right: 0;
  margin-left: 0;
}

.idea-edit-sheet .edit-save-bar .primary-button,
.idea-edit-sheet .edit-save-bar .small-button {
  min-height: 48px;
}

.idea-edit-sheet .platform-doc-editor {
  min-height: 34dvh;
}

.idea-edit-sheet .caption-editor {
  min-height: 26dvh;
}

.idea-edit-sheet .summary-editor {
  min-height: 116px;
}

.idea-edit-sheet .button-row {
  position: static;
  bottom: auto;
  z-index: auto;
  margin: var(--sp-4) 0 0;
  padding: 0 0 max(16px, env(safe-area-inset-bottom));
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
}

.idea-edit-sheet .edit-action-row.is-dirty {
  position: sticky;
  bottom: max(6px, env(safe-area-inset-bottom));
  z-index: 14;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(18px);
}

.sheet-list {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4) 0;
}

.sheet-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--sp-3);
  align-items: center;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  transition:
    border-color var(--dur-fast) var(--ease-out-expo),
    background var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.sheet-row.active {
  border-color: var(--accent);
}

.option-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sheet-row small,
.sheet-meta,
.sheet-section p {
  color: var(--muted);
}

.sheet-meta {
  margin: 0 0 var(--sp-3);
  font-size: 12px;
}

.sheet-section {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line-soft);
}

.create-idea-form {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  -webkit-overflow-scrolling: touch;
}

.create-idea-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.create-idea-form textarea {
  min-height: 120px;
}

.sheet-action-row {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}

.sheet-section span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sheet-section p {
  margin: 0;
  line-height: 1.45;
}

.sheet-danger {
  width: 100%;
  margin-top: var(--sp-4);
}

.empty-state {
  min-height: 48dvh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--sp-3);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
}

.empty-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--accent);
}

.empty-state h2 {
  margin: 0;
  font-size: 17px;
}

.empty-state p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-platforms {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.sidebar-platforms__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-platform {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 9px 10px;
}

.sidebar-platform-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.sidebar-platform-icon .platform-icon {
  width: 16px;
  height: 16px;
}

.sidebar-platform-icon i {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--panel);
  border-radius: 999px;
  background: var(--accent);
}

.sidebar-platform.connected .sidebar-platform-icon i {
  background: #22c55e;
}

.sidebar-platform.partial .sidebar-platform-icon i {
  background: #60a5fa;
}

.sidebar-platform strong,
.sidebar-platform small,
.sidebar-platform em {
  display: block;
}

.sidebar-platform strong {
  font-size: 13px;
  line-height: 1.15;
}

.sidebar-platform small,
.sidebar-platform em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-style: normal;
}

.sidebar-platform-delta.up {
  color: #63e68f;
}

.sidebar-platform-delta.down {
  color: var(--danger);
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.dashboard-overview-card,
.desktop-calendar-shell,
.performance-shell {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 93%, transparent);
  padding: 18px;
  box-shadow: var(--shadow-1);
}

.dashboard-overview-primary {
  background: var(--hero-gradient), var(--panel);
}

.dashboard-overview-card h2,
.performance-shell h2 {
  margin: 6px 0 10px;
  line-height: 1.08;
}

.dashboard-overview-card p {
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-card-meta {
  margin: 14px 0;
}

.dashboard-mini-metrics {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
}

.dashboard-mini-metrics article,
.dashboard-follower-card,
.selected-post-metrics div,
.meta-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.meta-grid div strong,
.selected-post-metrics div strong {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dashboard-mini-metrics span,
.dashboard-mini-metrics small,
.meta-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-mini-metrics strong {
  display: block;
  font-size: 24px;
  margin: 4px 0 2px;
}

.dashboard-follower-trends {
  display: grid;
  gap: 10px;
}

.dashboard-follower-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(150px, 1fr);
  gap: 12px;
  align-items: center;
}

.dashboard-follower-card strong {
  display: block;
  font-size: 25px;
}

.dashboard-follower-card .sparkline,
.dashboard-follower-card .sparkline-empty {
  width: 100%;
  min-height: 56px;
  color: var(--accent);
}

.dashboard-section-head {
  margin-bottom: 10px;
}

.desktop-calendar-shell {
  display: grid;
  gap: 12px;
}

.calendar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  padding: 4px;
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  padding: 4px;
}

.calendar-nav .small-button {
  min-height: 30px;
  padding: 0 12px;
}

.calendar-month-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  min-height: 30px;
  border-radius: 999px;
  cursor: pointer;
}

.calendar-month-control:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.calendar-month-picker {
  position: absolute;
  inset: 0;
  width: 128px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
}

.calendar-month-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.calendar-month-label::after {
  content: "▾";
  color: var(--muted);
  font-size: 10px;
}

.calendar-month-picker::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.7;
}

.calendar-toggle button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.calendar-toggle button.active,
.performance-tab.active,
.chart-filter-row button.active {
  background: var(--text);
  color: var(--bg);
}

.calendar-range-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(190px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.calendar-grid-month {
  grid-template-columns: repeat(7, minmax(155px, 1fr));
}

.calendar-day {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.calendar-day.is-today {
  border-color: var(--accent);
  background: var(--hero-gradient), var(--panel);
  box-shadow: var(--shadow-glow-amber);
}

.calendar-day.is-drop-target {
  border-color: color-mix(in srgb, var(--accent) 80%, white 8%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 24%, transparent), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 48%, transparent);
}

.calendar-day.is-tomorrow {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.calendar-day.is-past,
.calendar-day.is-outside-month {
  opacity: 0.68;
}

.calendar-day-head,
.calendar-content-meta,
.calendar-platform-row,
.performance-shell-head,
.visual-card-head,
.line-card-head {
  display: flex;
  gap: 10px;
}

.calendar-day-head,
.performance-shell-head,
.visual-card-head,
.line-card-head {
  justify-content: space-between;
  align-items: flex-start;
}

.calendar-day-head {
  margin-bottom: 10px;
}

.calendar-day-head span,
.calendar-day-head em,
.calendar-content-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.calendar-content-meta span {
  font-size: 11px;
}

.calendar-content-meta .pillar-chip {
  display: inline-flex;
  color: var(--c);
}

.calendar-day-head strong {
  display: block;
  margin-top: 2px;
}

.calendar-items {
  display: grid;
  gap: 8px;
}

.calendar-item-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  padding: 10px;
  text-align: left;
  cursor: grab;
  transition:
    border-color var(--dur-fast) var(--ease-out-expo),
    opacity var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo),
    background var(--dur-fast) var(--ease-out-expo);
}

.calendar-item-button.selected {
  border-color: var(--accent);
}

.calendar-item-button.is-dragging {
  cursor: grabbing;
  opacity: 0.55;
  transform: scale(0.985);
}

.calendar-item-button strong {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.calendar-content-meta,
.calendar-platform-row {
  flex-wrap: wrap;
  align-items: center;
}

.calendar-empty-copy {
  color: var(--muted-deep);
  font-size: 13px;
  margin: 12px 0 0;
}

.performance-shell {
  display: grid;
  gap: 14px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}

.performance-shell p,
.muted-copy {
  color: var(--muted);
  line-height: 1.45;
}

.source-lock,
.visual-card,
.line-card,
.posted-pill,
.performance-notes section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.source-lock {
  min-width: 180px;
}

.source-lock span,
.source-lock strong {
  display: block;
}

.source-lock span,
.selected-post-metrics span,
.meta-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.performance-tabs,
.chart-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px;
  width: fit-content;
}

.performance-tab,
.chart-filter-row button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 850;
}

.analytics-controls {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(130px, 0.8fr) auto;
  gap: 8px;
  align-items: end;
  margin: 12px 0 4px;
}

.analytics-controls label {
  display: grid;
  gap: 5px;
}

.analytics-controls label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-controls select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.chart-type-toggle {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  padding: 4px;
}

.chart-type-toggle button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.chart-type-toggle button.active {
  background: var(--accent);
  color: var(--accent-contrast);
}

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

.analytics-kpi-card > b {
  display: block;
  font-size: clamp(30px, 4vw, 50px);
  margin-top: 8px;
}

.metric-delta {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.metric-delta.up {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.metric-delta.down {
  background: rgba(242, 139, 130, 0.16);
  color: #fca5a5;
}

.creator-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 12px;
  align-items: stretch;
}

.platform-reach-card {
  min-height: 340px;
}

.platform-reach-body {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.platform-donut {
  position: relative;
  width: 160px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3);
}

.platform-donut::after {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: inherit;
  background: color-mix(in srgb, var(--panel) 96%, #000);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.platform-donut__center {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 5px;
  text-align: center;
}

.platform-donut__center strong {
  font-size: 24px;
  line-height: 1;
}

.platform-donut__center span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.platform-reach-list {
  display: grid;
  gap: 9px;
}

.platform-reach-list div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.platform-reach-list i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.platform-reach-list span,
.platform-reach-list strong,
.platform-reach-list small {
  min-width: 0;
}

.platform-reach-list span {
  font-size: 12px;
  font-weight: 850;
}

.platform-reach-list small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 11px;
}

.trend-card {
  min-height: 340px;
}

.trend-svg {
  width: 100%;
  min-height: 280px;
  color: var(--accent);
  margin-top: 4px;
  overflow: visible;
}

.trend-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.trend-grid text,
.trend-axis text {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.trend-y-label {
  paint-order: stroke;
  stroke: var(--panel);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.trend-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--accent) 25%, transparent));
}

.trend-svg circle {
  fill: var(--text);
  stroke: currentColor;
  stroke-width: 3;
}

.trend-point {
  cursor: pointer;
  transition: r var(--dur-fast) var(--ease-ios), fill var(--dur-fast) var(--ease-ios);
}

.trend-point:hover,
.trend-point.selected {
  r: 6;
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 2;
}

.trend-bar {
  fill: currentColor;
  opacity: 0.74;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-ios), filter var(--dur-fast) var(--ease-ios);
}

.trend-bar:hover,
.trend-bar.selected {
  opacity: 1;
  filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--accent) 30%, transparent));
}

.trend-point.clipped {
  stroke-dasharray: 2 2;
}

.trend-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: 260px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-3) 96%, black);
  color: var(--text);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  box-shadow: var(--shadow-2);
  transition: opacity var(--dur-fast) var(--ease-ios), transform var(--dur-fast) var(--ease-ios);
}

.trend-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.trend-tooltip strong,
.trend-tooltip span {
  display: block;
}

.trend-tooltip strong {
  font-size: 12px;
}

.trend-tooltip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.selected-post-date {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hashtag-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.hashtag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
}

.trend-empty,
.sparkline-empty {
  display: grid;
  place-items: center;
  min-height: 70px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}

.trend-footer,
.selected-post-metrics,
.posted-summary,
.line-grid,
.chart-grid,
.performance-notes,
.meta-grid {
  display: grid;
  gap: 10px;
}

.trend-footer,
.selected-post-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.post-history-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
}

.post-history-row:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, 0.12));
}

.post-history-platform {
  display: grid;
  place-items: center;
}

.post-history-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.post-history-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.post-history-main small,
.post-history-open {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.line-card .sparkline {
  width: 100%;
  min-height: 70px;
  color: var(--accent);
}

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

.value-bars {
  display: grid;
  gap: 9px;
}

.value-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.value-bar-row strong,
.value-bar-row small,
.value-bar-row span {
  display: block;
}

.value-bar-row span,
.value-bar-row small {
  color: var(--muted);
  font-size: 11px;
}

.value-bar-row em {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.value-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 62%, var(--text)));
}

.performance-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.performance-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  list-style: none;
}

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

.performance-notes ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

@keyframes sheetIn {
  from {
    opacity: 0.82;
    transform: translate3d(0, 100%, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 4px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes skeletonPulse {
  from {
    background-position: 120% 0, 0 0;
  }
  to {
    background-position: -120% 0, 0 0;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
    border-width: 0 0 1px;
  }

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

  .main-panel {
    padding: 18px;
  }

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

  .overview-grid,
  .work-grid,
  .idea-grid,
  .hint-grid,
  .dashboard-grid,
  .pillar-grid,
  .edit-grid {
    grid-template-columns: 1fr;
  }

  .pillar-balance-strip {
    grid-template-columns: 1fr;
    gap: 9px;
    min-height: 0;
    margin: 0 0 12px;
    padding: 10px;
  }

  .pillar-balance-strip__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  .pillar-balance-strip__label strong {
    max-width: 50%;
    font-size: 12px;
    text-align: right;
    white-space: normal;
  }

  .idea-detail-sheet .quick-plan {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 8px;
  }

  .idea-detail-sheet .quick-plan label {
    min-width: 0;
  }

  .pillar-balance-strip__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .pillar-balance-strip__items::-webkit-scrollbar {
    display: none;
  }

  .pillar-balance-mini {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-height: 48px;
    padding: 8px;
  }

  .pillar-balance-mini__count {
    display: block;
    white-space: normal;
  }

  .pillar-balance-mini__name,
  .pillar-balance-mini__share {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .pillar-balance {
    margin: 0 0 12px;
    border-radius: 16px;
  }

  .pillar-balance__head {
    align-items: flex-start;
  }

  .pillar-balance__head strong {
    max-width: 52%;
    font-size: 12px;
  }

  .pillar-balance--vertical .pillar-balance__body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .pillar-balance--vertical .pillar-balance__track,
  .pillar-balance--compact.pillar-balance--vertical .pillar-balance__track {
    height: 72px;
  }

  .pillar-balance__copy b {
    font-size: 11px;
  }

  .pillar-balance__copy small {
    font-size: 10px;
  }

  .pillar-balance--horizontal .pillar-balance__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pillar-balance--horizontal .pillar-balance__track,
  .pillar-balance--horizontal .pillar-balance__copy {
    grid-column: auto;
    grid-row: auto;
  }

  .calendar-board {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .detail-panel {
    position: static;
  }

  .teleprompter-text {
    top: max(76px, calc(env(safe-area-inset-top) + 58px));
    bottom: max(128px, calc(env(safe-area-inset-bottom) + 112px));
    padding: 14px 20px 30px;
  }

  .prompter-settings {
    grid-template-columns: 1fr;
  }

  .analytics-controls,
  .creator-analytics-grid,
  .metric-grid.performance-metrics,
  .line-grid,
  .chart-grid,
  .performance-notes {
    grid-template-columns: 1fr;
  }

  .platform-reach-card,
  .trend-card {
    min-height: auto;
  }

  .platform-reach-body {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: stretch;
  }

  .platform-donut {
    justify-self: center;
    width: min(152px, 48vw);
  }

  .platform-donut::after {
    inset: 36px;
  }

  .platform-reach-list div {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .platform-reach-list strong {
    grid-column: 2;
    justify-self: start;
  }

  .platform-reach-list small {
    grid-column: 2;
  }

  .trend-svg {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 220px;
  }

  .trend-point,
  .trend-bar {
    touch-action: manipulation;
  }

  .trend-footer,
  .selected-post-metrics {
    grid-template-columns: 1fr;
  }

  .chart-type-toggle {
    width: fit-content;
  }
}

@media (max-width: 520px) {
  .teleprompter-topbar {
    left: 10px;
    right: 10px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .teleprompter-topbar #capability-status {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: min(82vw, 360px);
    padding: 7px 10px;
  }

  .teleprompter-text {
    top: max(112px, calc(env(safe-area-inset-top) + 92px));
    bottom: max(126px, calc(env(safe-area-inset-bottom) + 110px));
    padding-inline: 18px;
  }

  .teleprompter-dock {
    width: calc(100vw - 18px);
    gap: 8px;
    padding: 10px;
    border-radius: 24px;
  }

  .prompter-speed-row {
    gap: 8px;
  }

  .prompter-speed-row span {
    font-size: 10px;
  }

  .prompter-speed-value {
    min-width: 26px;
    min-height: 26px;
    font-size: 11px;
  }

  .prompter-main-actions {
    gap: 8px;
  }

  .prompter-icon-button {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .prompter-main-actions .small-button,
  .prompter-main-actions .primary-button {
    min-height: 44px;
    padding-inline: 12px;
  }

  .prompter-main-actions .primary-button {
    min-width: 86px;
  }

  .record-circle {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .review-card {
    border-radius: 24px;
    padding: 14px;
  }

  .review-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Studio Dark V2.1: scoped to React V2 only; V1 root keeps its existing look. */
.mobile-shell-v2,
.app-layout[data-v2-desktop-root] {
  --bg: #0a0b0a;
  --bg-elev-1: #0f110f;
  --panel: #121412;
  --panel-2: #181b18;
  --panel-3: #1e211e;
  --line: rgba(240, 236, 226, 0.08);
  --line-soft: rgba(240, 236, 226, 0.08);
  --line-strong: rgba(240, 236, 226, 0.16);
  --text: #f3efe7;
  --text-2: #b7b9b2;
  --muted: #7d827b;
  --muted-deep: #5f655d;
  --accent: #f5a623;
  --accent-strong: #b45309;
  --accent-soft: rgba(245, 166, 35, 0.13);
  --accent-line: rgba(245, 166, 35, 0.42);
  --accent-contrast: #1a1206;
  --studio-display: "Bricolage Grotesque Variable", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --studio-shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.22);
  --studio-blur-bg: color-mix(in srgb, var(--bg) 86%, transparent);
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

.mobile-shell-v2[data-ws-theme="suppstantial"],
.app-layout[data-v2-desktop-root][data-ws-theme="suppstantial"] {
  --bg: #071011;
  --bg-elev-1: #0b1718;
  --panel: #101817;
  --panel-2: #14211f;
  --panel-3: #192a27;
  --line: rgba(234, 246, 242, 0.09);
  --line-soft: rgba(234, 246, 242, 0.08);
  --line-strong: rgba(57, 232, 184, 0.2);
  --accent: #39e8b8;
  --accent-strong: #0075ab;
  --accent-soft: rgba(57, 232, 184, 0.14);
  --accent-line: rgba(57, 232, 184, 0.42);
  --accent-contrast: #061411;
}

.mobile-shell-v2 .eyebrow,
.app-layout[data-v2-desktop-root] .eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.mobile-shell-v2 .mobile-section-head h1,
.mobile-shell-v2 .today-plan-card h2,
.mobile-shell-v2 .daily-compass-card b,
.mobile-shell-v2 .empty-state h2,
.app-layout[data-v2-desktop-root] h1,
.app-layout[data-v2-desktop-root] h2,
.app-layout[data-v2-desktop-root] .today-plan-card h2,
.app-layout[data-v2-desktop-root] .compact-card__title,
.app-layout[data-v2-desktop-root] .idea-detail-sheet h2 {
  font-family: var(--studio-display);
  letter-spacing: -0.012em;
}

.mobile-shell-v2 .mobile-topbar {
  min-height: calc(58px + env(safe-area-inset-top));
  height: auto;
  padding: max(14px, calc(env(safe-area-inset-top) + 8px)) 18px 10px;
  border-bottom: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 94%, transparent), color-mix(in srgb, var(--bg) 74%, transparent));
}

.mobile-shell-v2 .ws-chip {
  height: 40px;
  max-width: min(230px, 58vw);
  gap: 9px;
  padding: 6px 13px 6px 7px;
  border-color: var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}

.mobile-shell-v2 .ws-chip__token {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--accent-contrast);
  font-size: 13px;
}

.mobile-shell-v2 .ws-chip__token--teal {
  color: var(--accent-contrast);
}

.mobile-shell-v2[data-ws-theme="mojomakes"] .ws-chip__token--logo,
.app-layout[data-v2-desktop-root][data-ws-theme="mojomakes"] .brand-token.ws-chip__token--logo {
  background: #11100d;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 18%, transparent);
}

.mobile-shell-v2[data-ws-theme="suppstantial"] .ws-chip__token--logo,
.app-layout[data-v2-desktop-root][data-ws-theme="suppstantial"] .brand-token.ws-chip__token--logo {
  background: color-mix(in srgb, var(--teal) 12%, #07110f);
  border: 1px solid color-mix(in srgb, var(--teal) 26%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--teal) 22%, transparent);
}

.mobile-shell-v2 .ws-chip__name {
  font-size: 14px;
  font-weight: 700;
}

.mobile-shell-v2 .mobile-topbar__context {
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.mobile-shell-v2 .mobile-topbar__settings {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-2);
  font-size: 15px;
}

.mobile-shell-v2 .mobile-screen {
  padding: 6px 18px calc(66px + env(safe-area-inset-bottom));
}

.mobile-shell-v2 .mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  max-width: 520px;
  margin: 0 auto;
  height: calc(56px + env(safe-area-inset-bottom));
  padding: 5px 8px max(7px, calc(env(safe-area-inset-bottom) + 3px));
  border-top: 1px solid var(--line);
  background: var(--studio-blur-bg);
  backdrop-filter: blur(18px) saturate(145%);
}

.mobile-shell-v2 .mobile-bottom-nav a {
  grid-template-rows: 3px 19px 12px;
  gap: 2px;
  padding-top: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.mobile-shell-v2 .mobile-bottom-nav a[aria-current="page"] {
  color: var(--accent);
}

.mobile-shell-v2 .mobile-bottom-nav a[aria-current="page"]::before {
  width: 28px;
  height: 3px;
  background: var(--accent);
}

.mobile-shell-v2 .mobile-bottom-nav__icon {
  font-size: 18px;
}

.mobile-shell-v2[data-view="today"] .mobile-section-head {
  gap: 4px;
  margin: 14px 0 26px;
}

.mobile-shell-v2[data-view="today"] .mobile-section-head h1 {
  margin: 0;
  font-size: clamp(34px, 9.7vw, 42px);
  line-height: 1.02;
  font-weight: 800;
}

.mobile-shell-v2[data-view="today"] .mobile-section-head p {
  color: var(--text-2);
  font-size: 15px;
}

.mobile-shell-v2[data-view="today"] .today-plan-list {
  gap: 26px;
}

.mobile-shell-v2[data-view="today"] .today-focus-group,
.mobile-shell-v2[data-view="today"] .today-options-group {
  gap: 12px;
}

.mobile-shell-v2[data-view="today"] .today-focus-group > .eyebrow,
.mobile-shell-v2[data-view="today"] .today-options-group__head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
}

.mobile-shell-v2[data-view="today"] .today-plan-card {
  gap: 14px;
  border-color: var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--studio-shadow-soft);
}

.mobile-shell-v2[data-view="today"] .today-plan-card::before {
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  border-radius: 0;
  background: var(--pillar-color, var(--accent));
}

.mobile-shell-v2[data-view="today"] .today-plan-card.is-expanded {
  padding: 20px;
  border-color: var(--line);
}

.mobile-shell-v2[data-view="today"] .today-plan-card__top {
  margin-bottom: 1px;
}

.mobile-shell-v2[data-view="today"] .today-plan-card__top .eyebrow {
  color: var(--muted);
  font-family: var(--studio-display);
  font-size: 13px;
  font-weight: 740;
  letter-spacing: 0.04em;
}

.mobile-shell-v2[data-view="today"] .today-plan-card h2 {
  font-size: 23px;
  line-height: 1.12;
  font-weight: 760;
}

.mobile-shell-v2[data-view="today"] .today-plan-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.52;
}

.mobile-shell-v2[data-view="today"] .today-plan-card .compact-card__meta {
  gap: 8px;
  align-items: center;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 650;
}

.mobile-shell-v2[data-view="today"] .today-plan-card .compact-card__meta > span + span::before {
  margin-right: 8px;
}

.mobile-shell-v2[data-view="today"] .today-plan-card .platform-chip {
  min-width: 24px;
  min-height: 24px;
  border-radius: 7px;
  background: var(--panel-2);
}

.mobile-shell-v2[data-view="today"] .today-plan-card__actions {
  gap: 10px;
}

.mobile-shell-v2[data-view="today"] .today-plan-card__actions .small-button,
.mobile-shell-v2[data-view="today"] .today-plan-card__actions .primary-button {
  min-height: 44px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
}

.mobile-shell-v2[data-view="today"] .today-plan-card__actions .primary-button {
  margin-left: auto;
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-contrast);
}

.mobile-shell-v2[data-view="today"] .today-options-group__head {
  padding: 0 4px;
}

.mobile-shell-v2[data-view="today"] .today-options-group__head small {
  color: var(--muted);
  font-family: var(--studio-display);
}

.mobile-shell-v2[data-view="today"] .today-options-group .today-plan-card.is-compact {
  grid-template-columns: 16px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "dot title status"
    "dot meta meta";
  gap: 5px 9px;
  min-height: 66px;
  padding: 15px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mobile-shell-v2[data-view="today"] .today-options-group .today-plan-card.is-compact::before {
  top: 23px;
  bottom: auto;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.mobile-shell-v2[data-view="today"] .today-options-group .today-plan-card.is-compact .today-plan-card__top {
  display: contents;
}

.mobile-shell-v2[data-view="today"] .today-options-group .today-plan-card.is-compact .today-plan-card__top .eyebrow {
  display: none;
}

.mobile-shell-v2[data-view="today"] .today-options-group .today-plan-card.is-compact .status-pill-small {
  grid-area: status;
  align-self: center;
  min-height: 24px;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  padding-inline: 8px;
}

.mobile-shell-v2[data-view="today"] .today-options-group .today-plan-card.is-compact h2 {
  grid-area: title;
  align-self: center;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-shell-v2[data-view="today"] .today-options-group .today-plan-card.is-compact .compact-card__meta {
  grid-area: meta;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
}

.mobile-shell-v2[data-view="today"] .today-options-group .today-plan-card.is-compact .today-plan-card__actions {
  display: none;
}

.mobile-shell-v2[data-view="today"] .today-options-group .today-plan-card.is-compact:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.mobile-shell-v2[data-view="today"] .today-plan-card.is-posted {
  border-color: color-mix(in srgb, #7bd88f 30%, var(--line));
  background:
    linear-gradient(135deg, rgba(123, 216, 143, 0.11), transparent 58%),
    var(--panel);
}

.mobile-shell-v2 .status-pill-small,
.mobile-shell-v2 .status-pill {
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
}

.mobile-shell-v2 .daily-compass-card {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  color: var(--text);
}

.mobile-shell-v2 .daily-compass-card b {
  font-size: 17px;
  line-height: 1.22;
}

.mobile-shell-v2 .daily-compass-card small,
.mobile-shell-v2 .daily-compass-card__cta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mobile-shell-v2 .pwa-hint-banner {
  margin-top: 24px;
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 56%),
    var(--panel);
}

.mobile-shell-v2 .pwa-hint-banner .small-button {
  min-height: 42px;
  border-radius: 13px;
  background: var(--panel-2);
}

.app-layout[data-v2-desktop-root] {
  background:
    radial-gradient(circle at 80% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 32%),
    var(--bg);
}

.app-layout[data-v2-desktop-root] .sidebar {
  border-color: var(--line);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
}

.app-layout[data-v2-desktop-root] .main-panel {
  background: transparent;
}

.app-layout[data-v2-desktop-root] .today-plan-card,
.app-layout[data-v2-desktop-root] .metric-card,
.app-layout[data-v2-desktop-root] .desktop-calendar-shell,
.app-layout[data-v2-desktop-root] .analytics-panel,
.app-layout[data-v2-desktop-root] .idea-detail-sheet {
  border-color: var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
}

/* Studio Dark Schritt 3: progressive detail sheet and inline edit polish. */
.mobile-sheet {
  transform: translateY(var(--sheet-drag-y, 0));
  transition:
    transform var(--dur-sheet) var(--ease-out-expo),
    opacity var(--dur-fast) var(--ease-out-expo);
}

.mobile-sheet.is-dragging {
  animation: none;
  transition: none;
}

.mobile-shell-v2 .sheet-backdrop {
  z-index: 190;
}

.mobile-shell-v2 .mobile-sheet {
  z-index: 191;
}

.mobile-shell-v2 .idea-progressive-sheet {
  inset: 0;
  z-index: 192;
  width: 100%;
  height: 100dvh;
  max-height: none;
  margin-inline: 0;
  max-width: none;
  padding: max(10px, env(safe-area-inset-top)) 18px max(8px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 98%, var(--accent) 2%), var(--panel) 34%),
    var(--panel);
  box-shadow: none;
}

.mobile-shell-v2 .idea-progressive-sheet .sheet-handle {
  height: 18px;
}

.mobile-shell-v2 .idea-progressive-sheet .sheet-handle span {
  width: 42px;
  height: 5px;
  background: color-mix(in srgb, var(--text) 26%, transparent);
}

.mobile-shell-v2 .idea-progressive-sheet .sheet-header {
  gap: 8px;
  padding: 0 0 9px;
  border-bottom-color: var(--line);
  touch-action: pan-y;
}

.mobile-shell-v2 .idea-progressive-sheet .sheet-header > div:first-child {
  min-width: 0;
}

.mobile-shell-v2 .idea-progressive-sheet .eyebrow {
  color: var(--accent);
  font-family: var(--studio-display);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.11em;
}

.mobile-shell-v2 .idea-progressive-sheet .sheet-title-node {
  margin-top: 3px;
}

.mobile-shell-v2 .idea-progressive-sheet .sheet-header__actions {
  position: relative;
  z-index: 4;
}

.mobile-shell-v2 .idea-progressive-sheet .sheet-header__actions .icon-button {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--panel-2);
}

.mobile-shell-v2 .idea-progressive-sheet .sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 12px;
  padding: 10px 0 max(74px, calc(14px + env(safe-area-inset-bottom)));
  overflow-y: auto;
  overflow-anchor: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.mobile-shell-v2 .detail-title-stack {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mobile-shell-v2 .idea-title-editor,
.app-layout[data-v2-desktop-root] .idea-title-editor {
  width: 100%;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  font-family: var(--studio-display);
  font-size: clamp(20px, 5.35vw, 25px);
  font-weight: 780;
  line-height: 1.03;
  letter-spacing: -0.01em;
  resize: none;
  overflow: hidden;
  box-shadow: none;
}

.app-layout[data-v2-desktop-root] .idea-title-editor {
  font-size: clamp(22px, 2.4vw, 30px);
}

.mobile-shell-v2 .idea-title-editor:focus,
.app-layout[data-v2-desktop-root] .idea-title-editor:focus {
  outline: 0;
}

.mobile-shell-v2 .idea-progressive-sheet .idea-title-editor {
  min-height: 0;
  max-height: 78px;
  font-size: clamp(18px, 4.9vw, 23px);
  line-height: 1.06;
  overflow-y: auto;
}

.mobile-shell-v2 .detail-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 1px 0 0;
}

.mobile-shell-v2 .detail-header-meta .status-pill-small,
.mobile-shell-v2 .detail-header-meta .pillar-chip,
.mobile-shell-v2 .detail-header-chip,
.mobile-shell-v2 .detail-header-meta .planned-date-chip {
  min-height: 26px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.mobile-shell-v2 .detail-header-chip {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
  color: var(--text-2);
}

.mobile-shell-v2 .detail-header-platforms {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.mobile-shell-v2 .detail-header-platforms .platform-chip {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  border-radius: 9px;
}

.mobile-shell-v2 .idea-mobile-detail-flow {
  display: grid;
  gap: 12px;
  min-height: 0;
  touch-action: pan-y;
}

.mobile-shell-v2 .idea-card-switcher {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  margin-top: -2px;
  touch-action: pan-y;
}

.mobile-shell-v2 .idea-card-switcher button {
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-2) 74%, transparent);
  color: var(--text);
  font-size: 22px;
  font-weight: 780;
}

.mobile-shell-v2 .idea-card-switcher span {
  pointer-events: none;
  color: var(--muted);
  font-family: var(--studio-display);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.mobile-shell-v2 .detail-section-tabs {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(150%);
}

.mobile-shell-v2 .detail-section-tabs button {
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-family: var(--studio-display);
  font-size: 13px;
  font-weight: 760;
  transition:
    background var(--dur-fast) var(--ease-out-expo),
    color var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.mobile-shell-v2 .detail-section-tabs button.active {
  background: var(--text);
  color: var(--bg);
}

.mobile-shell-v2 .detail-tab-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mobile-shell-v2 .detail-quick-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.mobile-shell-v2 .detail-quick-actions .detail-teleprompter-button {
  min-height: 42px;
  border-radius: 15px;
  background: var(--accent);
  color: var(--accent-contrast);
}

.mobile-shell-v2 .detail-quick-actions span {
  min-width: 0;
  color: var(--muted);
  font-family: var(--studio-display);
  font-size: 12px;
  font-weight: 760;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-shell-v2 .edit-section,
.app-layout[data-v2-desktop-root] .edit-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
}

.mobile-shell-v2 .edit-section-platform {
  gap: 10px;
  padding: 12px;
}

.mobile-shell-v2 .publication-section,
.app-layout[data-v2-desktop-root] .publication-section {
  gap: 10px;
}

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

.publication-row {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 34%, transparent);
}

.publication-row__main {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  gap: 9px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.publication-row__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-2) 68%, transparent);
}

.publication-row__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.publication-row__copy b {
  font-size: 14px;
  font-weight: 820;
}

.publication-row__copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.publication-row__state {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted-deep);
}

.publication-row--planned .publication-row__state {
  background: var(--accent);
}

.publication-row--posted {
  border-color: color-mix(in srgb, var(--teal) 30%, var(--line));
  background: rgba(57, 232, 184, 0.055);
}

.publication-row--posted .publication-row__state {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(57, 232, 184, 0.12);
}

.publication-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.publication-link-button {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-2) 70%, transparent);
  color: var(--text);
  text-decoration: none;
}

.publication-link-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.publication-link-editor input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 48%, var(--panel));
  color: var(--text);
  padding: 0 11px;
  font: inherit;
  font-size: 14px;
}

.mobile-shell-v2 .edit-section__head,
.app-layout[data-v2-desktop-root] .edit-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-shell-v2 .edit-section__head small,
.app-layout[data-v2-desktop-root] .edit-section__head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.mobile-shell-v2 .idea-progressive-sheet .field-label,
.app-layout[data-v2-desktop-root] .idea-detail-sheet .field-label {
  color: var(--muted);
  font-family: var(--studio-display);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-shell-v2 .idea-progressive-sheet .summary-editor,
.mobile-shell-v2 .idea-progressive-sheet .platform-doc-editor,
.app-layout[data-v2-desktop-root] .idea-detail-sheet .summary-editor,
.app-layout[data-v2-desktop-root] .idea-detail-sheet .platform-doc-editor {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 48%, var(--panel));
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  line-height: 1.46;
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
}

.mobile-shell-v2 .idea-progressive-sheet .summary-editor {
  min-height: 78px;
}

.mobile-shell-v2 .idea-progressive-sheet .platform-doc-editor {
  min-height: 116px;
}

.mobile-shell-v2 .idea-progressive-sheet .caption-editor {
  min-height: 94px;
}

.mobile-shell-v2 .idea-progressive-sheet .platform-content-block {
  margin: 0;
}

.mobile-shell-v2 .idea-progressive-sheet .platform-content-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  margin: 0;
  padding: 4px;
  overflow: hidden;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 38%, var(--panel-2));
}

.mobile-shell-v2 .idea-progressive-sheet .platform-content-tabs button {
  min-width: 0;
  min-height: 42px;
  justify-content: center;
  border-radius: 14px;
  padding: 0 8px;
  font-size: 13px;
  transition:
    background var(--dur-fast) var(--ease-out-expo),
    border-color var(--dur-fast) var(--ease-out-expo),
    color var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.mobile-shell-v2 .idea-progressive-sheet .platform-content-tabs button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-shell-v2 .idea-progressive-sheet .platform-content-tabs button.active {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-contrast);
}

.mobile-shell-v2 .idea-progressive-sheet .document-type-tabs,
.app-layout[data-v2-desktop-root] .idea-detail-sheet .document-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 42%, var(--panel-2));
}

.mobile-shell-v2 .idea-progressive-sheet .document-type-tabs button,
.app-layout[data-v2-desktop-root] .idea-detail-sheet .document-type-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-family: var(--studio-display);
  font-size: 13px;
  font-weight: 780;
}

.mobile-shell-v2 .idea-progressive-sheet .document-type-tabs button.active,
.app-layout[data-v2-desktop-root] .idea-detail-sheet .document-type-tabs button.active {
  background: var(--text);
  color: var(--bg);
}

.mobile-shell-v2 .platform-swipe-area,
.app-layout[data-v2-desktop-root] .platform-swipe-area {
  display: grid;
  gap: 12px;
  touch-action: pan-y;
  overscroll-behavior: contain;
  overflow-anchor: none;
}

.mobile-shell-v2 .platform-doc-card,
.app-layout[data-v2-desktop-root] .platform-doc-card {
  display: grid;
  gap: 8px;
}

.mobile-shell-v2 .platform-doc-card__head,
.app-layout[data-v2-desktop-root] .platform-doc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-shell-v2 .platform-doc-card__actions,
.app-layout[data-v2-desktop-root] .platform-doc-card__actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mobile-shell-v2 .platform-doc-card__actions .small-button,
.mobile-shell-v2 .platform-doc-card__head > .small-button {
  min-height: 34px;
  border-radius: 999px;
  padding-inline: 11px;
  font-size: 12px;
}

.mobile-shell-v2 .platform-doc-hint,
.app-layout[data-v2-desktop-root] .platform-doc-hint {
  margin: -4px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.mobile-shell-v2 .edit-properties-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.mobile-shell-v2 .edit-fieldset {
  margin: 0;
}

.mobile-shell-v2 .choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mobile-shell-v2 .choice-pill {
  min-width: 0;
}

.mobile-shell-v2 .choice-pill span {
  justify-content: center;
  min-height: 40px;
  padding: 0 9px;
  font-size: 12px;
}

.mobile-shell-v2 .mobile-choice-field {
  gap: 6px;
}

.mobile-shell-v2 .mobile-select-button,
.mobile-shell-v2 .mobile-date-display {
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 46%, var(--panel-2));
}

.mobile-shell-v2 .idea-progressive-sheet .prep-block {
  margin: 0;
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-2) 56%, transparent);
}

.mobile-shell-v2 .idea-progressive-sheet .save-status {
  min-height: 18px;
  margin: -2px 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.mobile-shell-v2 .idea-progressive-sheet .edit-save-bar {
  position: sticky;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 16;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(150%);
  transition:
    transform var(--dur-base) var(--ease-out-expo),
    opacity var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-fast) var(--ease-out-expo);
}

.mobile-shell-v2 .idea-progressive-sheet .edit-save-bar[hidden] {
  display: none !important;
}

.mobile-shell-v2 .idea-progressive-sheet .edit-save-bar span {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 730;
  line-height: 1.2;
}

.mobile-shell-v2 .idea-progressive-sheet .edit-save-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
}

.mobile-shell-v2 .idea-progressive-sheet .edit-save-actions .small-button,
.mobile-shell-v2 .idea-progressive-sheet .edit-save-actions .primary-button {
  min-height: 44px;
  border-radius: 14px;
  padding-inline: 14px;
}

.mobile-shell-v2 .idea-progressive-sheet .edit-save-bar .primary-button {
  min-height: 44px;
  border-radius: 14px;
  padding-inline: 18px;
  background: var(--accent);
  color: var(--accent-contrast);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-shell-v2 .mobile-sheet,
  .mobile-shell-v2 .platform-swipe-area,
  .mobile-shell-v2 .detail-section-tabs button,
  .mobile-shell-v2 .idea-card-switcher button,
  .mobile-shell-v2 .idea-progressive-sheet .platform-content-tabs button,
  .mobile-shell-v2 .idea-progressive-sheet .edit-save-bar,
  .mobile-shell-v2 .mobile-bottom-nav {
    transition: none !important;
    animation: none !important;
  }
}

/* Studio Dark Schritt 5: Kalender, Ideen, Stats, Kompass. V2-only scope. */
.mobile-shell-v2 .mobile-section-head {
  display: grid;
  gap: 7px;
  margin: 4px 0 16px;
  padding: 0 2px;
}

.mobile-shell-v2 .mobile-section-head .eyebrow,
.app-layout[data-v2-desktop-root] .section-head .eyebrow {
  color: var(--accent);
  font-family: var(--studio-display);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mobile-shell-v2 .mobile-section-head h1,
.app-layout[data-v2-desktop-root] .section-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--studio-display);
  font-weight: 780;
  letter-spacing: 0;
  text-wrap: balance;
}

.mobile-shell-v2 .mobile-section-head h1 {
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.02;
}

.mobile-shell-v2 .mobile-section-head p {
  max-width: 42ch;
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

.mobile-shell-v2[data-view="calendar"] .pillar-balance-strip,
.mobile-shell-v2[data-view="compass"] .mobile-compass-balance,
.app-layout[data-v2-desktop-root] .pillar-balance-strip {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mobile-shell-v2[data-view="calendar"] .pillar-balance-strip,
.app-layout[data-v2-desktop-root] .pillar-balance-strip {
  gap: 12px;
  padding: 14px;
}

.mobile-shell-v2 .pillar-balance-head,
.app-layout[data-v2-desktop-root] .pillar-balance-head {
  align-items: center;
  gap: 10px;
}

.mobile-shell-v2 .pillar-balance-head span,
.app-layout[data-v2-desktop-root] .pillar-balance-head span {
  color: var(--accent);
  font-family: var(--studio-display);
  font-size: 11px;
  font-weight: 830;
  letter-spacing: 0.13em;
}

.mobile-shell-v2 .pillar-balance-head strong,
.app-layout[data-v2-desktop-root] .pillar-balance-head strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 790;
}

.mobile-shell-v2 .pillar-balance-list,
.app-layout[data-v2-desktop-root] .pillar-balance-list {
  gap: 10px;
}

.mobile-shell-v2 .pillar-balance-item,
.app-layout[data-v2-desktop-root] .pillar-balance-item {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-2) 68%, transparent);
}

.mobile-shell-v2 .pillar-balance-track,
.app-layout[data-v2-desktop-root] .pillar-balance-track,
.mobile-shell-v2 .mobile-compass-balance__track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.mobile-shell-v2 .pillar-balance-fill,
.app-layout[data-v2-desktop-root] .pillar-balance-fill,
.mobile-shell-v2 .mobile-compass-balance__fill {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 62%, white));
}

.mobile-shell-v2[data-view="calendar"] .calendar-mobile-head {
  margin-bottom: 12px;
}

.mobile-shell-v2 .mobile-filter-row,
.mobile-shell-v2 .mobile-filter-row.secondary {
  gap: 8px;
  margin: 0 0 12px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  scrollbar-width: none;
}

.mobile-shell-v2 .mobile-filter-row::-webkit-scrollbar {
  display: none;
}

.mobile-shell-v2 .mobile-filter-row button,
.mobile-shell-v2 .filter-pill {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
  transition:
    background var(--dur-fast) var(--ease-out-expo),
    color var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.mobile-shell-v2 .mobile-filter-row button.active,
.mobile-shell-v2 .filter-pill.active {
  background: var(--text);
  color: var(--bg);
}

.mobile-shell-v2[data-view="ideas"] .mobile-ideas-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.mobile-shell-v2[data-view="ideas"] .count-strip {
  margin: 2px 4px 0;
  color: var(--muted);
  font-family: var(--studio-display);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-shell-v2 .mobile-card-list.idea-card-list,
.mobile-shell-v2[data-view="calendar"] .mobile-card-list {
  display: grid;
  gap: 10px;
}

.mobile-shell-v2[data-view="ideas"] .idea-card,
.mobile-shell-v2[data-view="calendar"] .calendar-idea-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    color-mix(in srgb, var(--panel) 86%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    background var(--dur-fast) var(--ease-out-expo),
    border-color var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.mobile-shell-v2[data-view="ideas"] .idea-card:active,
.mobile-shell-v2[data-view="calendar"] .calendar-idea-card:active {
  transform: scale(0.985);
}

.mobile-shell-v2[data-view="ideas"] .idea-card.selected,
.mobile-shell-v2[data-view="calendar"] .calendar-idea-card.active {
  border-color: color-mix(in srgb, var(--accent) 68%, transparent);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 44%),
    color-mix(in srgb, var(--panel-2) 78%, transparent);
}

.mobile-shell-v2[data-view="ideas"] .idea-card strong,
.mobile-shell-v2[data-view="calendar"] .calendar-idea-card strong {
  color: var(--text);
  font-family: var(--studio-display);
  letter-spacing: 0;
}

.mobile-shell-v2[data-view="ideas"] .idea-card small,
.mobile-shell-v2[data-view="calendar"] .calendar-idea-card .compact-card__meta {
  color: var(--muted);
}

.mobile-shell-v2[data-view="ideas"] .fab {
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(92px + env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--studio-display);
  font-size: 28px;
  box-shadow: 0 20px 54px color-mix(in srgb, var(--accent) 28%, transparent);
}

.mobile-shell-v2[data-view="calendar"] .mobile-calendar-list {
  display: grid;
  gap: 12px;
  padding-bottom: 112px;
}

.mobile-shell-v2[data-view="calendar"] .calendar-past-toggle,
.mobile-shell-v2[data-view="calendar"] .calendar-day-row {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0)),
    var(--panel);
}

.mobile-shell-v2[data-view="calendar"] .calendar-past-toggle {
  min-height: 52px;
  padding: 0 16px;
  color: var(--text-2);
  font-weight: 780;
}

.mobile-shell-v2[data-view="calendar"] .calendar-day-row {
  overflow: hidden;
}

.mobile-shell-v2[data-view="calendar"] .calendar-day-row.today {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 46%),
    var(--panel);
}

.mobile-shell-v2[data-view="calendar"] .calendar-day-toggle {
  min-height: 92px;
  padding: 18px;
  border: 0;
  background: transparent;
}

.mobile-shell-v2[data-view="calendar"] .calendar-day-toggle strong {
  color: var(--text);
  font-family: var(--studio-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.mobile-shell-v2[data-view="calendar"] .calendar-day-toggle small,
.mobile-shell-v2[data-view="calendar"] .calendar-day-toggle em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.mobile-shell-v2[data-view="calendar"] .day-count {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-2) 82%, transparent);
  color: var(--text);
  font-family: var(--studio-display);
  font-size: 18px;
  font-weight: 820;
}

.mobile-shell-v2[data-view="calendar"] .calendar-day-row .mobile-card-list {
  padding: 0 12px 14px;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-sheet__body {
  display: grid;
  gap: 14px;
  padding-bottom: 112px;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-hero,
.mobile-shell-v2[data-view="compass"] .mobile-compass-rule,
.mobile-shell-v2[data-view="compass"] .mobile-compass-pillar,
.mobile-shell-v2[data-view="compass"] .mobile-compass-truths {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--panel);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-hero span,
.mobile-shell-v2[data-view="compass"] .mobile-compass-rule span,
.mobile-shell-v2[data-view="compass"] .mobile-compass-truths span {
  color: var(--accent);
  font-family: var(--studio-display);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-hero p,
.mobile-shell-v2[data-view="compass"] .mobile-compass-rule p,
.mobile-shell-v2[data-view="compass"] .mobile-compass-truths p {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.48;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-balance {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-balance__head,
.mobile-shell-v2[data-view="compass"] .mobile-compass-balance__row div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-balance__head span {
  color: var(--accent);
  font-family: var(--studio-display);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-balance__head strong,
.mobile-shell-v2[data-view="compass"] .mobile-compass-balance__row b {
  color: var(--text);
  font-family: var(--studio-display);
  font-weight: 790;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-balance__list {
  display: grid;
  gap: 10px;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-balance__row {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-balance__row small {
  color: var(--muted);
  font-size: 12px;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-balance__target {
  background: rgba(255, 255, 255, 0.72);
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-pillars {
  display: grid;
  gap: 12px;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-pillar::before {
  content: "";
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--pillar-color, var(--accent));
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-pillar div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-pillar span {
  color: var(--accent);
  font-family: var(--studio-display);
  font-size: 18px;
  font-weight: 800;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-pillar h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--studio-display);
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0;
}

.mobile-shell-v2[data-view="compass"] .mobile-compass-pillar p,
.mobile-shell-v2[data-view="compass"] .mobile-compass-pillar small {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.45;
}

.mobile-shell-v2[data-view="analytics"] .performance-shell {
  display: grid;
  gap: 14px;
  padding: 0 0 112px;
  background: transparent;
}

.mobile-shell-v2[data-view="analytics"] .performance-shell-head,
.mobile-shell-v2[data-view="analytics"] .visual-card,
.mobile-shell-v2[data-view="analytics"] .metric-card,
.mobile-shell-v2[data-view="analytics"] .performance-details {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mobile-shell-v2[data-view="analytics"] .performance-shell-head {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.mobile-shell-v2[data-view="analytics"] .performance-shell-head h1,
.mobile-shell-v2[data-view="analytics"] .visual-card h3 {
  color: var(--text);
  font-family: var(--studio-display);
  letter-spacing: 0;
}

.mobile-shell-v2[data-view="analytics"] .performance-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
}

.mobile-shell-v2[data-view="analytics"] .performance-tab {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.mobile-shell-v2[data-view="analytics"] .performance-tab.active {
  background: var(--text);
  color: var(--bg);
}

.mobile-shell-v2[data-view="analytics"] .metric-grid.performance-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mobile-shell-v2[data-view="analytics"] .metric-card {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.mobile-shell-v2[data-view="analytics"] .metric-card span,
.mobile-shell-v2[data-view="analytics"] .meta-label {
  color: var(--muted);
  font-family: var(--studio-display);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-shell-v2[data-view="analytics"] .metric-card strong {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 730;
}

.mobile-shell-v2[data-view="analytics"] .metric-card b {
  color: var(--text);
  font-family: var(--studio-display);
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: 0;
}

.mobile-shell-v2[data-view="analytics"] .visual-card {
  padding: 16px;
}

.mobile-shell-v2[data-view="analytics"] .visual-card-head {
  align-items: flex-start;
  gap: 12px;
}

.mobile-shell-v2[data-view="analytics"] .analytics-controls {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.mobile-shell-v2[data-view="analytics"] .analytics-controls label,
.mobile-shell-v2[data-view="analytics"] .chart-type-toggle {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
}

.mobile-shell-v2[data-view="analytics"] .analytics-controls select {
  color: var(--text);
}

.mobile-shell-v2[data-view="analytics"] .trend-footer,
.mobile-shell-v2[data-view="analytics"] .platform-reach-body,
.mobile-shell-v2[data-view="analytics"] .platform-reach-list {
  gap: 10px;
}

.mobile-shell-v2[data-view="analytics"] .platform-reach-body {
  grid-template-columns: 1fr;
}

.mobile-shell-v2[data-view="analytics"] .platform-donut {
  width: min(180px, 58vw);
  height: min(180px, 58vw);
  margin-inline: auto;
}

.mobile-shell-v2[data-view="analytics"] .platform-donut__center {
  width: 54%;
  height: 54%;
  border-radius: 999px;
  background: var(--panel);
}

.mobile-shell-v2[data-view="analytics"] .platform-donut__center strong {
  font-size: 26px;
  line-height: 1;
}

.mobile-shell-v2[data-view="analytics"] .platform-reach-list div,
.mobile-shell-v2[data-view="analytics"] .selected-trend-grid article,
.mobile-shell-v2[data-view="analytics"] .post-history-row {
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
}

.series-comparison-card {
  display: grid;
  gap: 14px;
}

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

.series-comparison-row {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--pillar-color) 22%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--pillar-color) 7%, var(--panel-2));
}

.series-comparison-row__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.series-comparison-row__head div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.series-comparison-row__head strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.series-comparison-row__head span,
.series-comparison-row__head b,
.series-comparison-row__metrics,
.series-comparison-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.series-comparison-row__head b {
  flex: 0 0 auto;
  font-weight: 760;
}

.series-comparison-row__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.series-comparison-row__track i {
  display: block;
  width: var(--series-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pillar-color), color-mix(in srgb, var(--pillar-color) 58%, white));
}

.series-comparison-row__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.series-comparison-row__metrics span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.series-comparison-row__metrics strong {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 800;
}

.series-comparison-note {
  margin: 0;
}

.mobile-shell-v2[data-view="analytics"] .trend-card svg,
.app-layout[data-v2-desktop-root] .trend-card svg {
  overflow: visible;
}

.app-layout[data-v2-desktop-root] .section-head {
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.app-layout[data-v2-desktop-root] .section-head h2 {
  font-size: clamp(32px, 3vw, 48px);
  line-height: 0.98;
}

.app-layout[data-v2-desktop-root] .section-head .icon-text-button {
  border-color: var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  color: var(--text);
}

.app-layout[data-v2-desktop-root] .desktop-calendar-shell,
.app-layout[data-v2-desktop-root] .ideas-desktop-view,
.app-layout[data-v2-desktop-root] .compass-view,
.app-layout[data-v2-desktop-root] .performance-shell[data-v2-analytics-root] {
  display: grid;
  gap: 18px;
}

.app-layout[data-v2-desktop-root] .calendar-range-label {
  color: var(--muted);
  font-family: var(--studio-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-layout[data-v2-desktop-root] .calendar-day,
.app-layout[data-v2-desktop-root] [data-v2-desktop-view="ideas"] .idea-card,
.app-layout[data-v2-desktop-root] [data-v2-desktop-view="compass"] .dashboard-overview-card,
.app-layout[data-v2-desktop-root] [data-v2-desktop-view="compass"] .pillar-card,
.app-layout[data-v2-desktop-root] .performance-shell[data-v2-analytics-root] .visual-card,
.app-layout[data-v2-desktop-root] .performance-shell[data-v2-analytics-root] .metric-card,
.app-layout[data-v2-desktop-root] .performance-shell[data-v2-analytics-root] .performance-details {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.app-layout[data-v2-desktop-root] .calendar-day.is-today,
.app-layout[data-v2-desktop-root] [data-v2-desktop-view="ideas"] .idea-card.selected {
  border-color: color-mix(in srgb, var(--accent) 68%, transparent);
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 48%),
    var(--panel);
}

.app-layout[data-v2-desktop-root] .calendar-day-head strong,
.app-layout[data-v2-desktop-root] [data-v2-desktop-view="ideas"] .idea-card strong,
.app-layout[data-v2-desktop-root] [data-v2-desktop-view="compass"] .pillar-card h3,
.app-layout[data-v2-desktop-root] .performance-shell[data-v2-analytics-root] .visual-card h3 {
  color: var(--text);
  font-family: var(--studio-display);
  letter-spacing: 0;
}

.app-layout[data-v2-desktop-root] .calendar-day-head span,
.app-layout[data-v2-desktop-root] .calendar-day-head em,
.app-layout[data-v2-desktop-root] .calendar-empty-copy,
.app-layout[data-v2-desktop-root] [data-v2-desktop-view="ideas"] .idea-card small,
.app-layout[data-v2-desktop-root] [data-v2-desktop-view="compass"] .pillar-card small {
  color: var(--muted);
}

.app-layout[data-v2-desktop-root] .calendar-items {
  gap: 10px;
}

.app-layout[data-v2-desktop-root] .idea-filter-bar {
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
}

.app-layout[data-v2-desktop-root] .idea-platform-tabs {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 34%, var(--panel));
}

.app-layout[data-v2-desktop-root] .idea-platform-tabs button {
  border-radius: 999px;
  color: var(--muted);
}

.app-layout[data-v2-desktop-root] .idea-platform-tabs button.active {
  background: var(--text);
  color: var(--bg);
}

.app-layout[data-v2-desktop-root] .idea-filter-bar select {
  border-color: var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-2) 78%, transparent);
  color: var(--text);
}

.app-layout[data-v2-desktop-root] [data-v2-desktop-view="ideas"] .idea-grid {
  gap: 12px;
}

.app-layout[data-v2-desktop-root] [data-v2-desktop-view="compass"] .dashboard-overview-card,
.app-layout[data-v2-desktop-root] [data-v2-desktop-view="compass"] .pillar-card {
  padding: 22px;
}

.app-layout[data-v2-desktop-root] [data-v2-desktop-view="compass"] .pillar-grid {
  gap: 14px;
}

.app-layout[data-v2-desktop-root] [data-v2-desktop-view="compass"] .pillar-card span {
  color: var(--accent);
  font-family: var(--studio-display);
  font-size: 22px;
  font-weight: 820;
}

.app-layout[data-v2-desktop-root] .performance-shell[data-v2-analytics-root] .performance-tabs {
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
}

.app-layout[data-v2-desktop-root] .performance-shell[data-v2-analytics-root] .performance-tab {
  border-radius: 999px;
}

.app-layout[data-v2-desktop-root] .performance-shell[data-v2-analytics-root] .performance-tab.active {
  background: var(--text);
  color: var(--bg);
}

.mobile-shell-v2[data-view="skills"] .skills-view {
  display: grid;
  gap: 16px;
  padding-bottom: 96px;
}

.skills-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.skills-head .eyebrow {
  color: var(--accent);
  font-family: var(--studio-display);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.skills-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--studio-display);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.skills-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.creator-skill-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.creator-skill-card__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.creator-skill-card .meta-label {
  color: var(--muted);
  font-family: var(--studio-display);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.creator-skill-card strong {
  color: var(--text);
  font-family: var(--studio-display);
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: 0;
}

.creator-skill-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.creator-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.creator-skill-chips span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text-2);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 760;
}

.mobile-shell-v2[data-view="skills"] .skills-head {
  padding: 4px 2px 0;
}

.mobile-shell-v2[data-view="skills"] .skills-head h2 {
  font-size: 34px;
  line-height: 0.98;
}

.mobile-shell-v2[data-view="skills"] .skills-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.mobile-shell-v2[data-view="skills"] .creator-skill-card {
  border-radius: 20px;
  padding: 16px;
}

.mobile-shell-v2[data-view="skills"] .creator-skill-card strong {
  font-size: 18px;
}

.app-layout[data-v2-desktop-root] .skills-view {
  display: grid;
  gap: 18px;
}

/* Per-platform/source snapshots, compact on cards and expanded in detail. */
.post-metrics-summary { display: grid; gap: .45rem; width: 100%; margin-top: .6rem; text-align: left; }
.post-metrics-row { display: grid; gap: .2rem; font-size: .75rem; line-height: 1.4; color: var(--text-muted, #a3a8b3); overflow-wrap: anywhere; }
.post-metrics-source { font-weight: 600; }

/* Creator command centre: shared across mobile and desktop. */
.today-empty-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--text-2); }
.today-empty-state .small-button { flex-shrink: 0; padding: 6px 10px; font-size: .8rem; }
.creator-overview { display: grid; gap: 0 28px; margin-block: 12px; min-width: 0; }
.creator-section { min-width: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.creator-section h2 { font-size: 1.05rem; margin: 0 0 10px; }
.creator-section p, .creator-section small { color: var(--text-2); }
.creator-section small { line-height: 1.5; }
.creator-queue { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.creator-queue li { display: grid; gap: 5px; }
.creator-queue a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.creator-queue span { color: var(--text-2); font-size: .85rem; }
.production-toggle { margin-bottom: 10px; }
.creator-queue + .small-button { margin-top: 10px; }
.creator-post-performance { margin-block: 10px; }
.creator-post-performance > a { display: block; color: var(--text); font-size: .9rem; overflow-wrap: anywhere; text-underline-offset: 3px; }
.creator-performance .post-metrics-row { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 4px 8px; padding-block: 6px; }
.creator-performance .post-metrics-row > small { grid-column: 1 / -1; }
.sidebar-platform-delta.neutral { color: var(--text-2); }
.weekly-goals { display: grid; gap: 12px; margin-block: 12px; }
.weekly-goals > small { color: var(--text-2); }
.weekly-goal { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; }
.weekly-goal progress { grid-column: 1 / -1; width: 100%; height: 5px; accent-color: var(--accent); }
.waiting-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.waiting-row input { min-width: 0; flex: 1 1 180px; min-height: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 10px; }
.waiting-row input::placeholder { color: var(--text-2); }
.metric-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.metric-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 8px; background: var(--panel-2); border-radius: 6px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.metric-chip b { color: var(--text); }
.metric-chip small { color: var(--text-2); font-size: .7rem; }
.post-metrics-row { display: grid; gap: 7px; padding-block: 9px; min-width: 0; }
.post-metrics-row > small { color: var(--text-2); font-size: .72rem; overflow-wrap: anywhere; }
.post-metrics-source { color: var(--text-2); font-size: .78rem; }
.calendar-slot-label { display: block; color: var(--text-2); font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; margin-block: 6px; }
.variant-schedule, .archive-action { padding: 20px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.variant-slot { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-block: 16px; }
.variant-slot strong { flex-basis: 100%; }
.variant-slot label { display: grid; gap: 6px; flex: 1 1 130px; color: var(--text-2); font-size: .8rem; min-width: 0; }
.variant-slot input { min-width: 0; max-width: 100%; width: 100%; min-height: 44px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.archive-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.archive-action small, .archive-reasons { color: var(--text-2); font-size: .78rem; line-height: 1.5; }
.archive-reasons { display: block; margin-block: 8px; }
.post-metrics-table-section { min-width: 0; margin-block: 24px; }
.post-metrics-table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.post-metrics-table { border-collapse: collapse; min-width: 1050px; width: 100%; font-size: .8rem; font-variant-numeric: tabular-nums; }
.post-metrics-table th, .post-metrics-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.post-metrics-table td:nth-child(2) { min-width: 150px; max-width: 280px; white-space: normal; overflow-wrap: anywhere; }
.post-metrics-table th button { background: none; border: 0; color: var(--text); min-height: 44px; cursor: pointer; font: inherit; }
.post-metrics-table a { color: var(--text); text-underline-offset: 3px; }
.creator-overview button:disabled, .variant-slot button:disabled { opacity: .55; cursor: default; }
@media (min-width: 900px) { .creator-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .creator-waiting { grid-column: 1 / -1; } }
