/* Tool-only UI layer. Every selector is scoped to authenticated app state so the landing page stays independent. */
body.is-authenticated {
  --tool-ink: #050a36;
  --tool-ink-2: #202a5a;
  --tool-muted: #59658f;
  --tool-soft: #7a84a8;
  --tool-line: rgba(91, 105, 158, .16);
  --tool-line-strong: rgba(104, 69, 255, .28);
  --tool-purple: #6845ff;
  --tool-pink: #ec3f9f;
  --tool-orange: #ff6847;
  --tool-green: #10a86b;
  --tool-gradient: linear-gradient(135deg, #6845ff 0%, #d93adf 54%, #ff6747 100%);
  --tool-shadow: 0 18px 48px rgba(20, 32, 86, .08), inset 0 1px 0 rgba(255, 255, 255, .96);
  color: var(--tool-ink);
  background:
    radial-gradient(circle at 6% 12%, rgba(104, 69, 255, .07), transparent 24%),
    radial-gradient(circle at 94% 13%, rgba(255, 104, 71, .055), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 50%, #ffffff 100%);
  overflow-x: hidden;
}

body.is-authenticated .page-shell {
  min-height: 100vh;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

body.is-authenticated main,
body.is-authenticated .hero,
body.is-authenticated .dashboard {
  margin: 0 !important;
}

body.is-authenticated .bg-grid,
body.is-authenticated #hero-grid,
body.is-authenticated #auth-view,
body.is-authenticated #hero-auth-panel,
body.is-authenticated #hero-marketing-copy {
  display: none !important;
}

body.is-authenticated #workspace-section.hero.workspace-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 70px !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tool-line) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 10px 28px rgba(20, 32, 86, .05) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

body.is-authenticated .hero-topbar {
  min-height: 70px;
  display: grid !important;
  grid-template-columns: minmax(230px, 1fr) auto minmax(340px, 1fr);
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: none !important;
  padding: 0 clamp(22px, 2vw, 34px) !important;
}

body.is-authenticated .brand-header,
body.is-authenticated .brand-header-solo,
body.is-authenticated .brand-lockup {
  display: flex !important;
  align-items: center;
  gap: 14px;
}

body.is-authenticated .brand-logo {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 28px rgba(104, 69, 255, .14);
}

body.is-authenticated .brand-mark {
  color: var(--tool-ink) !important;
  font-size: 1.45rem !important;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 900 !important;
}

body.is-authenticated .workspace-nav {
  justify-self: center;
  display: inline-flex !important;
  align-items: stretch;
  gap: 26px;
  height: 70px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.is-authenticated .workspace-nav-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 104px;
  min-height: 70px;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #344067 !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 780;
}

body.is-authenticated .workspace-nav-link.is-active,
body.is-authenticated .workspace-nav-link[aria-current="page"] {
  color: var(--tool-purple) !important;
}

body.is-authenticated .workspace-nav-link.is-active::after,
body.is-authenticated .workspace-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--tool-gradient);
}

body.is-authenticated .workspace-nav-icon {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

body.is-authenticated .workspace-nav-subcopy {
  display: none !important;
}

body.is-authenticated .session-meta {
  justify-self: end;
  display: flex !important;
  align-items: center;
  gap: 12px;
}

body.is-authenticated #auth-chip,
body.is-authenticated .top-link,
body.is-authenticated .btn-secondary,
body.is-authenticated #logout-btn {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--tool-line);
  background: rgba(255, 255, 255, .9);
  color: var(--tool-ink-2);
  box-shadow: 0 12px 28px rgba(20, 32, 86, .045), inset 0 1px 0 #fff;
  font-size: 12.5px;
  font-weight: 780;
}

body.is-authenticated .top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  border: 0;
  color: #fff !important;
  background: var(--tool-gradient);
  box-shadow: 0 18px 36px rgba(104, 69, 255, .18), 0 10px 24px rgba(255, 104, 71, .13);
  text-decoration: none;
}

body.is-authenticated #auth-chip {
  padding: 0 18px;
}

body.is-authenticated #dashboard-view {
  display: grid !important;
  min-height: calc(100vh - 70px);
  background: transparent !important;
}

body.is-authenticated .tool-step-one-body {
  min-height: 0;
}

body.is-authenticated .tool-step-one-grid {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 26px;
  align-items: stretch;
}

body.is-authenticated .tool-step-one-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

body.is-authenticated .tool-idea-preview {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--tool-line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--tool-shadow);
}

body.is-authenticated .tool-idea-preview-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--tool-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--tool-shadow);
}

body.is-authenticated .tool-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.is-authenticated .tool-preview-check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--tool-gradient);
  font-weight: 900;
}

body.is-authenticated .tool-idea-preview-card h3 {
  margin: 0;
  color: var(--tool-ink);
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -.025em;
  font-weight: 920;
}

body.is-authenticated .tool-idea-preview-card p {
  margin: 0;
  color: var(--tool-ink-2);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 620;
}

body.is-authenticated .tool-preview-divider {
  height: 1px;
  background: rgba(91, 105, 158, .14);
}

body.is-authenticated .tool-preview-block {
  display: grid;
  gap: 10px;
}

body.is-authenticated .tool-preview-block h4 {
  margin: 0;
  color: var(--tool-ink);
  font-size: 12px;
  font-weight: 920;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.is-authenticated .tool-rating-list {
  display: grid;
  margin-top: 2px;
}

body.is-authenticated .tool-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  border-top: 1px solid rgba(91, 105, 158, .1);
  color: var(--tool-muted);
  font-size: 12px;
  font-weight: 760;
}

body.is-authenticated .tool-rating-row:first-child {
  border-top: 0;
}

body.is-authenticated .tool-rating-row strong {
  color: var(--tool-green);
}

body.is-authenticated .tool-preview-use-btn {
  width: 100%;
  min-height: 54px;
  font-size: 15px;
}

body.is-authenticated .workspace-page {
  width: 100% !important;
  max-width: none !important;
}

body.is-authenticated #dashboard-page-dashboard {
  min-height: calc(100vh - 188px);
}

body.is-authenticated .workspace-step-panel {
  display: none !important;
  width: 100%;
  min-height: calc(100vh - 196px);
  margin: 0 !important;
  padding: clamp(20px, 2.4vw, 34px) !important;
  border: 1px solid var(--tool-line) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 94% 10%, rgba(104, 69, 255, .045), transparent 22%),
    radial-gradient(circle at 6% 4%, rgba(255, 104, 71, .035), transparent 20%),
    rgba(255, 255, 255, .9) !important;
  box-shadow: var(--tool-shadow) !important;
  color: var(--tool-ink) !important;
  overflow: hidden;
}

body.is-authenticated .workspace-step-panel.is-active {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

body.is-authenticated .workspace-step-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated .workspace-step-chip,
body.is-authenticated .panel-kicker,
body.is-authenticated .mini-label,
body.is-authenticated .section-signal-pill,
body.is-authenticated .pill,
body.is-authenticated .recommendation-badge,
body.is-authenticated .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(104, 69, 255, .12);
  background: rgba(104, 69, 255, .075);
  color: var(--tool-purple) !important;
  font-size: 10px !important;
  line-height: 1;
  font-weight: 900 !important;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.is-authenticated .workspace-step-head h2 {
  max-width: 940px;
  margin: 10px 0 0 !important;
  color: var(--tool-ink) !important;
  font-size: clamp(2rem, 2.55vw, 2.9rem) !important;
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 930 !important;
}

body.is-authenticated .workspace-step-head .muted {
  margin-top: 10px;
  color: var(--tool-muted) !important;
  font-size: 12.5px;
  line-height: 1.42;
  font-weight: 650;
}

body.is-authenticated .workspace-step-body {
  min-height: 0;
}

body.is-authenticated .tool-bottom-workflow {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 18px;
  align-items: center;
  padding: 10px clamp(28px, 5vw, 90px);
  border: 1px solid var(--tool-line);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 -18px 42px rgba(20, 32, 86, .08), inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

body.is-authenticated .tool-bottom-status {
  order: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .78);
  color: var(--tool-muted);
  font-size: 11px;
  font-weight: 700;
}

body.is-authenticated .tool-status-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid var(--tool-green);
  background: rgba(16, 168, 107, .08);
}

body.is-authenticated .workspace-stepper-shell {
  order: 1;
  min-width: 0;
}

body.is-authenticated .workspace-stepper-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.is-authenticated .workspace-stepper-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tool-ink);
  text-align: left;
}

body.is-authenticated .workspace-stepper-index {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--tool-line);
  background: #fff;
  color: var(--tool-ink);
  font-size: 14px;
  font-weight: 900;
}

body.is-authenticated .workspace-stepper-node.is-active .workspace-stepper-index,
body.is-authenticated .workspace-stepper-node.is-complete .workspace-stepper-index {
  color: #fff;
  border-color: transparent;
  background: var(--tool-gradient);
  box-shadow: 0 12px 24px rgba(104, 69, 255, .18);
}

body.is-authenticated .workspace-stepper-node.is-complete .workspace-stepper-index {
  font-size: 0;
}

body.is-authenticated .workspace-stepper-node.is-complete .workspace-stepper-index::before {
  content: "✓";
  font-size: 17px;
}

body.is-authenticated .workspace-stepper-copy strong {
  display: block;
  color: var(--tool-ink);
  font-size: 12.5px;
  font-weight: 900;
}

body.is-authenticated .workspace-stepper-copy span {
  display: block;
  margin-top: 3px;
  color: var(--tool-muted);
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 620;
}

body.is-authenticated .workspace-stepper-track {
  display: none;
}

body.is-authenticated .generate-mode-topbar,
body.is-authenticated .controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 12px;
}

body.is-authenticated .generate-mode-switch,
body.is-authenticated .idea-group-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--tool-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 12px 28px rgba(20, 32, 86, .05);
}

body.is-authenticated .generate-mode-tab,
body.is-authenticated .idea-group-tab {
  min-height: 38px;
  min-width: 148px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  background: transparent;
  color: #303a65;
  font-size: 12.5px;
  font-weight: 850;
}

body.is-authenticated .generate-mode-tab.is-active {
  color: #fff;
  background: var(--tool-gradient);
  box-shadow: 0 14px 30px rgba(104, 69, 255, .18), inset 0 1px 0 rgba(255,255,255,.22);
}

body.is-authenticated .idea-group-tab.is-active {
  color: var(--tool-purple);
  background: linear-gradient(#fff, #fff) padding-box, var(--tool-gradient) border-box;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(104, 69, 255, .08), inset 0 1px 0 #fff;
}

body.is-authenticated .generate-mode-panels {
  min-height: 0;
}

body.is-authenticated .idea-card-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

body.is-authenticated .idea-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  min-height: 104px;
  padding: 14px 16px !important;
  border: 1px solid var(--tool-line) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: var(--tool-shadow) !important;
}

body.is-authenticated .idea-card.is-active {
  border-color: rgba(104, 69, 255, .72) !important;
  box-shadow: 0 18px 46px rgba(104, 69, 255, .1), 0 0 0 1px rgba(236, 63, 159, .34) inset !important;
}

body.is-authenticated .idea-card.is-recommended {
  border-color: rgba(104, 69, 255, .62) !important;
  box-shadow: 0 16px 40px rgba(104, 69, 255, .1), 0 0 0 1px rgba(236, 63, 159, .25) inset !important;
}

body.is-authenticated .idea-card-top {
  display: contents;
}

body.is-authenticated .idea-card-meta-row,
body.is-authenticated .idea-card-title-row,
body.is-authenticated .idea-card-copy {
  grid-column: 1;
}

body.is-authenticated .idea-chip-row,
body.is-authenticated .idea-card-actions {
  grid-column: 2;
  justify-content: flex-end;
}

body.is-authenticated .idea-card-title {
  color: var(--tool-ink) !important;
  font-size: 14.5px !important;
  line-height: 1.3;
  font-weight: 900 !important;
}

body.is-authenticated .idea-card-copy,
body.is-authenticated .angle-card-subcopy,
body.is-authenticated .copy-area,
body.is-authenticated .post-ready-copy {
  color: var(--tool-ink-2) !important;
  font-size: 12.5px !important;
  line-height: 1.46;
  font-weight: 610;
}

body.is-authenticated .idea-card-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

body.is-authenticated .idea-card-actions .btn-secondary {
  min-width: 122px;
  min-height: 36px;
  padding: 0 12px;
}

body.is-authenticated .generate-form textarea,
body.is-authenticated .builder-text-input,
body.is-authenticated .thinking-research-textarea {
  width: 100%;
  border: 1px solid var(--tool-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  color: var(--tool-ink-2);
  box-shadow: inset 0 1px 0 #fff;
}

body.is-authenticated .generate-form textarea {
  min-height: min(34vh, 320px);
}

body.is-authenticated .generate-actions button,
body.is-authenticated .btn-primary,
body.is-authenticated #generate-from-builder-btn {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 20px;
  color: #fff;
  background: var(--tool-gradient);
  box-shadow: 0 18px 36px rgba(104, 69, 255, .18), 0 10px 24px rgba(255, 104, 71, .13);
  font-weight: 850;
}

body.is-authenticated .tool-step-two-body,
body.is-authenticated .tool-step-three-body,
body.is-authenticated .tool-step-four-body {
  min-height: 0;
}

body.is-authenticated .step-two-builder-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: 22px;
  align-items: stretch;
}

body.is-authenticated .step-two-column,
body.is-authenticated .step-two-column-side {
  min-height: 0;
  display: grid;
  gap: 12px;
}

body.is-authenticated .step-two-card,
body.is-authenticated .summary-card,
body.is-authenticated .signal-analysis-panel,
body.is-authenticated .post-ready-side-card {
  border: 1px solid var(--tool-line) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: var(--tool-shadow) !important;
}

body.is-authenticated .step-two-card {
  padding: 16px;
}

body.is-authenticated .angle-card {
  display: grid;
  gap: 10px;
  padding: 16px !important;
  border: 1px solid rgba(104, 69, 255, .22) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(249, 246, 255, .72), rgba(255, 255, 255, .92)) !important;
  box-shadow: inset 0 1px 0 #fff !important;
}

body.is-authenticated .angle-card-copy {
  color: var(--tool-ink) !important;
  font-size: 15px !important;
  font-weight: 920 !important;
}

body.is-authenticated .builder-control-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.is-authenticated .builder-chip {
  min-height: 28px;
  border: 1px solid var(--tool-line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--tool-ink-2);
  font-size: 11px;
  font-weight: 820;
}

body.is-authenticated .builder-chip.is-active {
  color: var(--tool-purple);
  background: rgba(104, 69, 255, .09);
  border-color: rgba(104, 69, 255, .18);
}

body.is-authenticated .builder-control-emphasis,
body.is-authenticated .builder-control-suggestion {
  display: grid;
}

body.is-authenticated .angle-card .builder-control-emphasis,
body.is-authenticated .angle-card .builder-control-suggestion {
  width: 100%;
}

body.is-authenticated .angle-card:has(.builder-control-emphasis) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.is-authenticated .angle-card > :not(.builder-control-emphasis):not(.builder-control-suggestion) {
  grid-column: 1 / -1;
}

body.is-authenticated .builder-control-emphasis {
  grid-column: 1;
}

body.is-authenticated .builder-control-suggestion {
  grid-column: 2;
}

body.is-authenticated .builder-text-input {
  min-height: 58px;
  resize: none;
  padding: 10px 12px;
}

body.is-authenticated .step-two-selection-summary {
  color: var(--tool-ink-2);
  font-size: 12.5px;
}

body.is-authenticated .tool-step-three-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 24px;
  align-items: stretch;
}

body.is-authenticated .workspace-output-column,
body.is-authenticated .workspace-analysis-panel {
  min-width: 0;
}

body.is-authenticated .results,
body.is-authenticated .thinking-layer-results {
  display: block;
  min-height: 0;
  height: 100%;
  overflow: auto;
}

body.is-authenticated .thinking-layer-card {
  height: 100%;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated .thinking-layer-shell {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 24px;
}

body.is-authenticated .thinking-layer-editor-panel,
body.is-authenticated .thinking-layer-insight-panel {
  min-width: 0;
  border: 1px solid var(--tool-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--tool-shadow);
}

body.is-authenticated .thinking-layer-editor-panel {
  display: grid;
  grid-template-rows: auto auto minmax(200px, 1fr) auto auto auto;
  gap: 10px;
  padding: 18px;
}

body.is-authenticated .thinking-layer-locked-draft {
  min-height: 220px;
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid var(--tool-line);
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  white-space: pre-wrap;
}

body.is-authenticated .thinking-layer-actions {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(210px, 1.2fr) minmax(130px, .7fr);
  gap: 10px;
}

body.is-authenticated .thinking-layer-insight-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

body.is-authenticated .thinking-layer-insight-callout {
  padding: 13px 15px;
  border: 1px solid rgba(22, 140, 255, .12);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(238, 249, 255, .98), rgba(243, 251, 255, .88));
  color: var(--tool-ink);
  font-size: 15px;
  line-height: 1.32;
  font-weight: 900;
}

body.is-authenticated .thinking-layer-final-btn {
  width: 100%;
  align-self: end;
}

body.is-authenticated .evaluation-bar-grid {
  display: grid;
  gap: 8px;
}

body.is-authenticated .evaluation-bar-track {
  height: 7px;
  border-radius: 999px;
  background: #e9edf5;
}

body.is-authenticated .evaluation-bar-fill {
  border-radius: inherit;
  background: var(--tool-gradient);
}

body.is-authenticated .post-ready-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, .85fr);
  gap: 24px;
}

body.is-authenticated .post-ready-main,
body.is-authenticated .post-ready-side {
  min-width: 0;
  display: grid;
  gap: 10px;
}

body.is-authenticated .post-ready-card-shell,
body.is-authenticated .post-ready-card {
  height: 100%;
}

body.is-authenticated .post-ready-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px !important;
  border: 1px solid var(--tool-line) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: var(--tool-shadow) !important;
}

body.is-authenticated .post-ready-copy {
  max-height: min(58vh, 560px);
  overflow: auto;
  white-space: pre-wrap;
}

body.is-authenticated .post-ready-side-card {
  padding: 15px 17px;
}

body.is-authenticated .post-ready-check {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(16, 168, 107, .24);
  background: rgba(16, 168, 107, .06);
}

body.is-authenticated .post-ready-check.is-watch {
  border-color: rgba(255, 104, 71, .28);
  background: rgba(255, 104, 71, .055);
}

body.is-authenticated .post-ready-actions-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

body.is-authenticated .post-ready-actions-panel .btn-primary,
body.is-authenticated .post-ready-actions-panel .btn-feedback {
  min-height: 42px;
}

body.is-authenticated .post-ready-actions-panel .feedback-state {
  grid-column: 1 / -1;
}

@media (min-width: 1280px) and (max-height: 900px) {
  body.is-authenticated #dashboard-view {
    padding-top: 10px !important;
  }

  body.is-authenticated .workspace-step-panel {
    padding: 20px !important;
    gap: 10px;
  }

  body.is-authenticated .workspace-step-head h2 {
    font-size: 2.45rem !important;
  }

  body.is-authenticated .post-ready-copy,
  body.is-authenticated .thinking-layer-locked-draft {
    font-size: 12.25px !important;
    line-height: 1.4;
  }
}

@media (max-width: 1180px) {
  body.is-authenticated .hero-topbar {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding-block: 10px !important;
  }

  body.is-authenticated .workspace-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
    height: 48px;
    overflow-x: auto;
  }

  body.is-authenticated .step-two-builder-grid,
  body.is-authenticated .tool-step-one-grid,
  body.is-authenticated .tool-step-three-body,
  body.is-authenticated .thinking-layer-shell,
  body.is-authenticated .post-ready-layout {
    grid-template-columns: 1fr;
  }

  body.is-authenticated .angle-card:has(.builder-control-emphasis) {
    grid-template-columns: 1fr;
  }

  body.is-authenticated .builder-control-emphasis,
  body.is-authenticated .builder-control-suggestion {
    grid-column: 1;
  }

  body.is-authenticated .tool-bottom-workflow {
    grid-template-columns: 1fr;
    padding-inline: 18px;
  }

  body.is-authenticated .tool-bottom-status {
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  body.is-authenticated #dashboard-view {
    padding: 12px 12px 210px !important;
  }

  body.is-authenticated .hero-topbar {
    grid-template-columns: 1fr;
  }

  body.is-authenticated .session-meta {
    justify-self: stretch;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  body.is-authenticated #auth-chip {
    grid-column: 1 / -1;
  }

  body.is-authenticated .workspace-step-head,
  body.is-authenticated .generate-mode-topbar {
    grid-template-columns: 1fr;
    display: grid !important;
  }

  body.is-authenticated .generate-mode-switch,
  body.is-authenticated .idea-group-switch,
  body.is-authenticated .generate-mode-actions,
  body.is-authenticated #refresh-ideas-btn {
    width: 100%;
  }

  body.is-authenticated .idea-card {
    grid-template-columns: 1fr;
  }

  body.is-authenticated .idea-chip-row,
  body.is-authenticated .idea-card-actions {
    grid-column: 1;
    justify-content: flex-start;
  }

  body.is-authenticated .workspace-stepper-grid,
  body.is-authenticated .thinking-layer-actions,
  body.is-authenticated .post-ready-actions-panel {
    grid-template-columns: 1fr;
  }

  body.is-authenticated .tool-bottom-workflow {
    max-height: 48vh;
    overflow: auto;
  }
}

/* Step 1 precision pass: match approved test UI proportions and stacking */
body.is-authenticated #generate-section.workspace-step-panel.is-active {
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 18px !important;
  min-height: calc(100vh - 172px) !important;
  padding: clamp(26px, 3vw, 38px) clamp(28px, 3.4vw, 52px) 26px !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .workspace-step-head {
  min-height: 156px;
  align-items: start;
}

body.is-authenticated #generate-section .workspace-step-head h2 {
  max-width: 760px;
  margin-top: 18px !important;
  font-size: clamp(2.35rem, 3.2vw, 3.45rem) !important;
  line-height: 1.04;
}

body.is-authenticated #generate-section .workspace-step-head .muted {
  max-width: 720px;
  font-size: 13px;
}

body.is-authenticated #generate-section .tool-step-one-grid {
  grid-template-columns: minmax(680px, 1fr) minmax(360px, 430px);
  gap: 28px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

body.is-authenticated #generate-section .tool-step-one-main,
body.is-authenticated #generate-section .generate-mode-panels,
body.is-authenticated #generate-section .generate-mode-panel,
body.is-authenticated #generate-section .generate-idea-panel {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

body.is-authenticated #generate-section .tool-step-one-main {
  grid-template-rows: auto minmax(0, 1fr);
}

body.is-authenticated #generate-section .generate-mode-topbar {
  min-height: 70px;
  margin: 0 0 14px !important;
  padding: 10px 12px;
  border: 1px solid var(--tool-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: inset 0 1px 0 #fff, 0 14px 32px rgba(20, 32, 86, .055);
}

body.is-authenticated #generate-section .generate-mode-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

body.is-authenticated #generate-section .generate-mode-help {
  display: inline-flex;
}

body.is-authenticated #generate-section .generate-idea-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

body.is-authenticated #generate-section #idea-status[hidden] {
  display: none !important;
}

body.is-authenticated #generate-section .idea-group-switch {
  width: fit-content;
  margin: 0 0 12px;
}

body.is-authenticated #generate-section .idea-card-list {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  padding: 0 6px 8px 0;
  scrollbar-width: thin;
}

body.is-authenticated #generate-section .idea-card {
  grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
  min-height: 108px;
  padding: 16px 18px !important;
}

body.is-authenticated #generate-section .idea-card-meta-row {
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

body.is-authenticated #generate-section .idea-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.is-authenticated #generate-section .idea-card-title {
  max-width: 780px;
  font-size: 15.5px !important;
}

body.is-authenticated #generate-section .idea-card-copy {
  max-width: 820px;
  margin-top: 8px;
  color: var(--tool-muted) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.is-authenticated #generate-section .idea-chip-row {
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 320px;
}

body.is-authenticated #generate-section .idea-card-actions {
  align-self: end;
}

body.is-authenticated #generate-section .tool-idea-preview {
  align-self: stretch;
  min-height: 0;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
}

body.is-authenticated #generate-section .tool-idea-preview-card {
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px;
  overflow-y: auto;
  overflow-x: hidden;
}

body.is-authenticated #generate-section .tool-idea-preview-card .idea-chip-row {
  grid-column: auto !important;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

body.is-authenticated #generate-section .tool-idea-preview-card h3 {
  font-size: clamp(1.12rem, 1.25vw, 1.35rem);
}

body.is-authenticated #generate-section .tool-preview-block {
  min-width: 0;
}

body.is-authenticated #generate-section .tool-preview-use-btn {
  margin-top: 2px;
  border-radius: 13px;
}

body.is-authenticated #generate-section .generate-form {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  gap: 14px;
}

body.is-authenticated #generate-section .generate-form textarea {
  min-height: 300px;
}

@media (min-width: 1280px) and (max-height: 900px) {
  body.is-authenticated #generate-section.workspace-step-panel.is-active {
    min-height: calc(100vh - 158px) !important;
    padding-top: 22px !important;
  }

  body.is-authenticated #generate-section .workspace-step-head {
    min-height: 34px;
  }

  body.is-authenticated #generate-section .workspace-step-head h2 {
    display: none !important;
  }

  body.is-authenticated #generate-section .idea-card {
    min-height: 98px;
    padding-block: 14px !important;
  }
}

@media (max-width: 1180px) {
  body.is-authenticated #generate-section .tool-step-one-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  body.is-authenticated #generate-section.workspace-step-panel.is-active {
    overflow: visible !important;
  }
}

/* Step 1 rebuild lock: remove old shell behavior and prevent card/preview overlap */
body.is-authenticated #generate-section.workspace-step-panel.is-active {
  min-height: calc(100vh - 148px) !important;
  padding: 18px clamp(18px, 2vw, 34px) 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.is-authenticated #generate-section > .workspace-step-head {
  display: none !important;
}

body.is-authenticated #generate-section .tool-step-one-head-slot .workspace-step-head {
  display: grid !important;
  min-height: 34px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  padding: 0 !important;
}

body.is-authenticated #generate-section .tool-step-one-head-slot .section-signal-pill {
  justify-self: end !important;
  align-self: start !important;
  margin-top: 4px !important;
}

body.is-authenticated #generate-section .tool-step-one-head-slot .workspace-step-head h2 {
  display: none !important;
}

body.is-authenticated #generate-section .tool-step-one-head-slot .workspace-step-head .muted {
  display: none !important;
}

body.is-authenticated #generate-section .tool-step-one-body {
  height: calc(100vh - 174px) !important;
  min-height: 560px !important;
  overflow: visible !important;
}

body.is-authenticated #generate-section .tool-step-one-grid {
  height: 100% !important;
  grid-template-columns: minmax(0, 1fr) clamp(390px, 24vw, 440px) !important;
  gap: clamp(22px, 2vw, 32px) !important;
  align-items: start !important;
  overflow: visible !important;
}

body.is-authenticated #generate-section .tool-step-one-head-slot {
  min-width: 0;
}

body.is-authenticated #generate-section .generate-mode-topbar {
  display: grid !important;
  grid-template-columns: auto auto minmax(160px, 1fr);
  align-items: center !important;
  gap: 16px !important;
  min-height: 64px !important;
  margin: 0 0 12px !important;
  padding: 8px 10px !important;
  border-radius: 18px !important;
}

body.is-authenticated #generate-section .generate-mode-actions {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

body.is-authenticated #generate-section .idea-group-switch {
  margin: 0 !important;
  justify-self: start !important;
  padding: 3px !important;
}

body.is-authenticated #generate-section .idea-group-tab {
  min-width: 128px !important;
  min-height: 34px !important;
  color: var(--tool-ink-2) !important;
  background: transparent !important;
}

body.is-authenticated #generate-section .idea-group-tab.is-active {
  color: var(--tool-purple) !important;
  border-color: rgba(104, 69, 255, .34) !important;
  background: rgba(104, 69, 255, .045) !important;
  box-shadow: inset 0 1px 0 #fff !important;
}

body.is-authenticated #generate-section .generate-mode-switch {
  min-width: 342px;
}

body.is-authenticated #generate-section .generate-mode-tab {
  min-width: 160px !important;
}

body.is-authenticated #generate-section .tool-step-one-main {
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  overflow: visible !important;
}

body.is-authenticated #generate-section .generate-mode-panels,
  body.is-authenticated #generate-section .generate-idea-panel {
  min-height: 0 !important;
  height: 100% !important;
  overflow: visible !important;
}

body.is-authenticated #generate-section .generate-idea-panel {
  display: block !important;
}

body.is-authenticated #generate-section .idea-card-list {
  height: calc(100% - 2px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  padding: 0 8px 8px 2px !important;
}

body.is-authenticated #generate-section .idea-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(330px, auto) !important;
  grid-template-areas:
    "meta chips"
    "title chips"
    "copy actions" !important;
  gap: 8px 18px !important;
  min-height: 122px !important;
  padding: 16px 18px !important;
  align-items: start !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .idea-card-top {
  display: contents !important;
}

body.is-authenticated #generate-section .idea-card-meta-row {
  grid-area: meta !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

body.is-authenticated #generate-section .idea-chip-row {
  grid-area: chips !important;
  justify-self: end !important;
  align-self: start !important;
  min-width: 310px !important;
  max-width: 420px !important;
  display: flex !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
}

body.is-authenticated #generate-section .idea-card-title-row {
  grid-area: title !important;
  min-width: 0 !important;
  align-items: start !important;
}

body.is-authenticated #generate-section .idea-card-title {
  max-width: 100% !important;
  margin: 0 !important;
  color: var(--tool-ink) !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
}

body.is-authenticated #generate-section .idea-card-copy {
  grid-area: copy !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: var(--tool-muted) !important;
  font-size: 12.5px !important;
  line-height: 1.42 !important;
  opacity: 1 !important;
  z-index: 1 !important;
}

body.is-authenticated #generate-section .idea-card-actions {
  grid-area: actions !important;
  justify-self: end !important;
  align-self: end !important;
  min-width: 260px !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  z-index: 2 !important;
}

body.is-authenticated #generate-section .idea-card-actions .btn-secondary {
  min-width: 120px !important;
  background: rgba(255,255,255,.96) !important;
}

body.is-authenticated #generate-section .tool-idea-preview {
  height: calc(100vh - 174px) !important;
  min-height: 0 !important;
  align-self: stretch !important;
  padding: 24px !important;
  overflow: visible !important;
}

body.is-authenticated #generate-section .tool-idea-preview-card {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto !important;
  gap: 16px !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .tool-idea-preview-card > * {
  min-width: 0 !important;
}

body.is-authenticated #generate-section .tool-idea-preview-card .idea-chip-row {
  min-width: 0 !important;
  max-width: none !important;
  justify-self: start !important;
  justify-content: flex-start !important;
}

body.is-authenticated #generate-section .tool-preview-block:last-of-type {
  overflow: auto !important;
  padding-right: 2px !important;
}

body.is-authenticated #generate-section .tool-preview-use-btn {
  position: relative !important;
  z-index: 1 !important;
  align-self: end !important;
  margin: 0 !important;
}

body.is-authenticated #generate-section .tool-preview-reasons {
  display: grid;
  gap: 8px;
}

body.is-authenticated #generate-section .tool-preview-reasons span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(91, 105, 158, .12);
  border-radius: 10px;
  background: rgba(248, 250, 255, .9);
  color: var(--tool-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
}

body.is-authenticated #generate-section .tool-virality-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(104, 69, 255, .08), rgba(255, 104, 71, .08));
  color: var(--tool-ink);
  font-size: 12px;
  font-weight: 850;
}

body.is-authenticated #generate-section .tool-virality-score strong {
  color: var(--tool-purple);
  font-size: 16px;
  font-weight: 930;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-step-one-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-idea-preview,
body.is-authenticated[data-generate-mode="manual"] #generate-section #generate-ideas-panel {
  display: none !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section #generate-manual-panel {
  display: block !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
}

@media (max-width: 1280px) {
  body.is-authenticated #generate-section .tool-step-one-grid {
    grid-template-columns: minmax(0, 1fr) 360px !important;
  }

  body.is-authenticated #generate-section .generate-mode-topbar {
    grid-template-columns: 1fr;
  }

  body.is-authenticated #generate-section .generate-mode-actions {
    justify-self: stretch !important;
  }
}

/* Step 1 manual mode: locked testUI-style left input + right typing companion */
body.is-authenticated #generate-section .tool-manual-companion {
  display: none !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-step-one-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
  align-items: stretch !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-idea-preview,
body.is-authenticated[data-generate-mode="manual"] #generate-section #generate-ideas-panel {
  display: none !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-manual-companion {
  display: grid !important;
  grid-template-rows: auto minmax(220px, 1fr) auto !important;
  gap: 26px !important;
  height: calc(100vh - 174px) !important;
  min-height: 560px !important;
  align-self: stretch !important;
  padding: clamp(24px, 2.5vw, 38px) !important;
  border: 1px solid rgba(91, 105, 158, .14) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 92% 28%, rgba(255, 103, 171, .14), transparent 26%),
    radial-gradient(circle at 10% 8%, rgba(109, 71, 255, .12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(248, 250, 255, .88)) !important;
  box-shadow: 0 26px 70px rgba(38, 46, 95, .11) !important;
  overflow: hidden !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-companion-copy {
  display: grid !important;
  gap: 14px !important;
  color: var(--tool-ink) !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-companion-copy h3 {
  max-width: 340px !important;
  margin: 0 !important;
  color: var(--tool-ink) !important;
  font-size: clamp(32px, 3vw, 44px) !important;
  line-height: .96 !important;
  letter-spacing: 0 !important;
  font-weight: 930 !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-companion-copy p {
  max-width: 330px !important;
  margin: 0 !important;
  color: var(--tool-muted) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  font-weight: 650 !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-accent-line {
  width: 76px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #6b3dff, #ff4f64) !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-chat-card,
body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-tip-card {
  border: 1px solid rgba(91, 105, 158, .16) !important;
  background: rgba(255, 255, 255, .86) !important;
  box-shadow: 0 18px 42px rgba(35, 44, 88, .08) !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-chat-card {
  align-self: center !important;
  width: 100% !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-window-dots {
  display: flex !important;
  gap: 8px !important;
  height: 40px !important;
  align-items: center !important;
  padding: 0 18px !important;
  border-bottom: 1px solid rgba(91, 105, 158, .12) !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-window-dots span {
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-window-dots span:nth-child(1) { background: #ff675e !important; }
body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-window-dots span:nth-child(2) { background: #ffbd3d !important; }
body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-window-dots span:nth-child(3) { background: #34c77b !important; }

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-chat-body {
  display: grid !important;
  gap: 28px !important;
  padding: 22px 20px 26px !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-chat-row {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-chat-avatar,
body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-tip-icon {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #7547ff, #fb3fa4) !important;
  color: #fff !important;
  font-size: 0 !important;
  box-shadow: 0 12px 28px rgba(117, 71, 255, .26) !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-chat-avatar::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 50% 50% 45% 45%;
  border-bottom-width: 5px;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-ai-avatar::before {
  content: "AI";
  width: auto;
  height: auto;
  border: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-chat-row strong,
body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-tip-card strong {
  color: var(--tool-ink) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-chat-row p {
  min-height: 42px !important;
  margin: 6px 0 8px !important;
  color: var(--tool-ink) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-chat-row small {
  color: #8b96b8 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-typing-status {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 42px !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-typing-status span {
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #7a4dff !important;
  animation: manualTypingPulse 1s ease-in-out infinite !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-typing-status span:nth-of-type(2) { animation-delay: .12s !important; }
body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-typing-status span:nth-of-type(3) { animation-delay: .24s !important; }

@keyframes manualTypingPulse {
  0%, 70%, 100% { transform: translateY(0); opacity: .45; }
  35% { transform: translateY(-4px); opacity: 1; }
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-tip-card {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 18px !important;
  border-radius: 16px !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-tip-icon {
  background: linear-gradient(135deg, #8e6aff, #bca8ff) !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-tip-icon::before {
  content: "i";
  font-size: 16px;
  font-weight: 950;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-tip-card p {
  margin: 4px 0 0 !important;
  color: var(--tool-muted) !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-mode-panels {
  height: calc(100% - 78px) !important;
  min-height: 0 !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section #generate-manual-panel {
  display: block !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form {
  height: 100% !important;
  min-height: 560px !important;
  display: grid !important;
  grid-template-rows: auto minmax(300px, 1fr) auto auto !important;
  gap: 16px !important;
  padding: clamp(22px, 2.4vw, 34px) !important;
  border: 1px solid rgba(91, 105, 158, .14) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 92% 12%, rgba(109, 71, 255, .08), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(250, 252, 255, .9)) !important;
  box-shadow: 0 26px 70px rgba(38, 46, 95, .1) !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form label {
  color: var(--tool-ink) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form textarea {
  min-height: 300px !important;
  height: 100% !important;
  padding: 24px !important;
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #6e4bff, #ff3ead, #ff6b45) border-box !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 48px rgba(35, 44, 88, .08) !important;
  color: var(--tool-ink) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  font-weight: 650 !important;
  resize: vertical !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form .field-meta-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form .field-meta-note {
  color: var(--tool-muted) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form .field-counter {
  color: #06a46c !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-actions {
  justify-content: start !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section #generate-btn {
  min-width: 260px !important;
  min-height: 58px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #673dff, #e33dc5 52%, #ff6748) !important;
  box-shadow: 0 18px 34px rgba(137, 70, 255, .26) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

@media (max-width: 980px) {
  body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-step-one-grid {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-manual-companion,
  body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form {
    height: auto !important;
    min-height: 0 !important;
  }
}

/* Step 1 final content polish */
body.is-authenticated #generate-section .tool-step-one-body {
  height: calc(100vh - 214px) !important;
  min-height: 500px !important;
}

body.is-authenticated #generate-section .tool-idea-preview {
  height: calc(100vh - 214px) !important;
  padding: 18px !important;
}

body.is-authenticated #generate-section .tool-idea-preview-card {
  position: relative !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  padding: 20px !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .tool-preview-scroll {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 2px 4px 4px 0 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 80, 255, .32) transparent;
}

body.is-authenticated #generate-section .tool-preview-scroll::-webkit-scrollbar {
  width: 7px;
}

body.is-authenticated #generate-section .tool-preview-scroll::-webkit-scrollbar-track {
  background: transparent;
}

body.is-authenticated #generate-section .tool-preview-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(116, 80, 255, .28), rgba(255, 91, 97, .32));
}

body.is-authenticated #generate-section .tool-preview-source-summary {
  margin: 0 !important;
  color: var(--tool-ink-2) !important;
  font-size: 12.75px !important;
  line-height: 1.48 !important;
  font-weight: 760 !important;
}

body.is-authenticated #generate-section .tool-preview-block {
  display: grid !important;
  gap: 12px !important;
}

body.is-authenticated #generate-section .tool-preview-block p {
  margin: 0 !important;
}

body.is-authenticated #generate-section .tool-preview-use-btn {
  position: sticky !important;
  bottom: 0 !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(119, 72, 255, .25) !important;
}

body.is-authenticated #generate-section .tool-virality-score,
body.is-authenticated #generate-section .tool-preview-reasons,
body.is-authenticated #generate-section .tool-idea-preview-card > .tool-preview-block .idea-chip-row {
  display: none !important;
}

body.is-authenticated #generate-section .idea-card-copy {
  -webkit-line-clamp: 1 !important;
  color: var(--tool-ink-2) !important;
  font-weight: 700 !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section #generate-btn {
  color: #fff !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-manual-companion,
body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form {
  min-height: 500px !important;
}

/* Step 2 rebuild lock: two-column builder with fixed right action */
body.is-authenticated #angles-section.workspace-step-panel.is-active {
  min-height: calc(100vh - 150px) !important;
  padding: 18px clamp(18px, 2vw, 34px) 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head {
  min-height: 34px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
}

body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head h2,
body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head .muted {
  display: none !important;
}

body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head .workspace-step-chip,
body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head .panel-kicker {
  display: inline-flex !important;
  width: auto !important;
  margin-right: 8px !important;
}

body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head .section-signal-pill {
  justify-self: end !important;
  align-self: start !important;
}

body.is-authenticated #angles-section .tool-step-two-body {
  height: calc(100vh - 214px) !important;
  min-height: 500px !important;
  overflow: visible !important;
}

body.is-authenticated #angles-section .step-two-builder-grid {
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1fr) clamp(390px, 24vw, 440px) !important;
  gap: clamp(22px, 2vw, 32px) !important;
  align-items: stretch !important;
  overflow: visible !important;
}

body.is-authenticated #angles-section .step-two-column {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 0 !important;
}

body.is-authenticated #angles-section .step-two-builder-grid > .step-two-column:not(.step-two-column-side) > .step-two-card:first-child {
  display: none !important;
}

body.is-authenticated #angles-section .step-two-builder-grid > .step-two-column:not(.step-two-column-side) > .step-two-card:nth-child(2) {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  padding: 18px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .9) !important;
  overflow: hidden !important;
}

body.is-authenticated #angles-section .step-two-section-head {
  margin: 0 0 12px !important;
}

body.is-authenticated #angles-section .step-two-section-head h3 {
  margin: 8px 0 0 !important;
  color: var(--tool-ink) !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
}

body.is-authenticated #angles-section .angle-card-list {
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 8px 4px 0 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 80, 255, .32) transparent;
}

body.is-authenticated #angles-section .angle-card {
  min-height: 100% !important;
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  overflow: visible !important;
}

body.is-authenticated #angles-section .angle-card-copy {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

body.is-authenticated #angles-section .angle-card-subcopy {
  color: var(--tool-ink-2) !important;
  font-size: 12.5px !important;
  line-height: 1.48 !important;
  font-weight: 700 !important;
}

body.is-authenticated #angles-section .builder-control-mode,
body.is-authenticated #angles-section .builder-control-voice,
body.is-authenticated #angles-section .builder-control-length {
  margin-top: 2px !important;
}

body.is-authenticated #angles-section .builder-control-emphasis,
body.is-authenticated #angles-section .builder-control-suggestion {
  width: 100% !important;
}

body.is-authenticated #angles-section .builder-text-input {
  min-height: 70px !important;
}

body.is-authenticated #angles-section .step-two-column-side {
  min-height: 0 !important;
  display: block !important;
}

body.is-authenticated #angles-section .step-two-column-side .step-two-card {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 16px !important;
  padding: 20px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .9) !important;
  overflow: hidden !important;
}

body.is-authenticated #angles-section .step-two-selection-summary {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 6px 0 0 !important;
  display: grid !important;
  align-content: start !important;
  gap: 12px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 80, 255, .32) transparent;
}

body.is-authenticated #angles-section .step-two-selection-summary > div {
  display: block !important;
  grid-template-columns: minmax(104px, auto) minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid rgba(91, 105, 158, .12) !important;
}

body.is-authenticated #angles-section .step-two-selection-summary .step-two-summary-hero {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  padding-bottom: 16px !important;
}

body.is-authenticated #angles-section .step-two-summary-hero strong {
  color: var(--tool-ink) !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 930 !important;
}

body.is-authenticated #angles-section .step-two-summary-hero p {
  margin: 0 !important;
  color: var(--tool-ink-2) !important;
  font-size: 12.75px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
}

body.is-authenticated #angles-section .step-two-actions {
  margin: 0 !important;
}

body.is-authenticated #angles-section .step-two-column-side .step-two-actions {
  position: sticky !important;
  bottom: 5vh !important;
  padding-top: 2px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 18%) !important;
}

body.is-authenticated #angles-section #generate-from-builder-btn {
  width: 100% !important;
  min-height: 50px !important;
  color: #fff !important;
  border-radius: 12px !important;
}

@media (max-width: 980px) {
  body.is-authenticated #angles-section .step-two-builder-grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  body.is-authenticated #angles-section .tool-step-two-body,
  body.is-authenticated #angles-section .step-two-column-side .step-two-card {
    height: auto !important;
  }
}

/* Step 2 final accuracy pass */
body.is-authenticated #angles-section.workspace-step-panel.is-active {
  min-height: calc(100vh - 172px) !important;
  padding-top: 12px !important;
  padding-bottom: 106px !important;
}

body.is-authenticated #angles-section .tool-step-two-body {
  height: calc(100vh - 252px) !important;
  min-height: 480px !important;
}

body.is-authenticated #angles-section .step-two-builder-grid {
  grid-template-columns: minmax(0, 1fr) clamp(390px, 24vw, 440px) !important;
  height: 100% !important;
  align-items: stretch !important;
}

body.is-authenticated #angles-section .step-two-builder-grid > .step-two-column:not(.step-two-column-side) > .step-two-card:nth-child(2) {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.is-authenticated #angles-section .step-two-section-head {
  min-height: 62px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: start !important;
}

body.is-authenticated #angles-section .step-two-section-head h3 {
  margin-top: 8px !important;
  font-size: 18px !important;
}

body.is-authenticated #angles-section .angle-card-list {
  height: calc(100% - 62px) !important;
  padding: 0 !important;
  overflow-y: auto !important;
}

body.is-authenticated #angles-section .angle-card {
  min-height: auto !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px 12px !important;
  padding: 18px 18px 16px !important;
  border: 1px solid rgba(128, 96, 255, .28) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(249,246,255,.86)) !important;
  box-shadow: inset 0 1px 0 #fff, 0 18px 40px rgba(48, 57, 116, .08) !important;
}

body.is-authenticated #angles-section .angle-card > :not(.builder-control-mode):not(.builder-control-voice):not(.builder-control-length):not(.builder-control-emphasis):not(.builder-control-suggestion) {
  grid-column: 1 / -1 !important;
}

body.is-authenticated #angles-section .angle-card-subcopy {
  display: grid !important;
  gap: 8px !important;
}

body.is-authenticated #angles-section .angle-card-subcopy > div,
body.is-authenticated #angles-section .angle-card-subcopy:not(:has(div)) {
  align-items: start !important;
}

body.is-authenticated #angles-section .angle-card .mini-label {
  white-space: nowrap !important;
}

body.is-authenticated #angles-section .builder-guidance-line {
  margin: 2px 0 0 !important;
  color: var(--tool-ink) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
}

body.is-authenticated #angles-section .builder-control-group {
  display: grid !important;
  gap: 6px !important;
  align-content: start !important;
}

body.is-authenticated #angles-section .builder-control-mode {
  grid-column: 1 / span 2 !important;
}

body.is-authenticated #angles-section .builder-control-voice {
  grid-column: 3 / span 2 !important;
}

body.is-authenticated #angles-section .builder-control-length {
  grid-column: 5 / span 2 !important;
}

body.is-authenticated #angles-section .builder-control-emphasis {
  grid-column: 1 / span 3 !important;
}

body.is-authenticated #angles-section .builder-control-suggestion {
  grid-column: 4 / span 3 !important;
}

body.is-authenticated #angles-section .builder-control-label {
  color: var(--tool-ink) !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

body.is-authenticated #angles-section .builder-select {
  width: 100% !important;
  min-height: 36px !important;
  padding: 0 36px 0 14px !important;
  border: 1px solid rgba(91, 105, 158, .18) !important;
  border-radius: 10px !important;
  background:
    linear-gradient(45deg, transparent 50%, var(--tool-ink) 50%) calc(100% - 18px) 15px / 6px 6px no-repeat,
    linear-gradient(135deg, #fff, rgba(249, 251, 255, .96)) !important;
  color: var(--tool-ink) !important;
  font-size: 12.5px !important;
  font-weight: 850 !important;
  appearance: none !important;
  box-shadow: inset 0 1px 0 #fff !important;
}

body.is-authenticated #angles-section .builder-control-length .builder-control-inline {
  width: 100% !important;
  min-height: 36px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(91, 105, 158, .18) !important;
  border-radius: 10px !important;
  background: #fff !important;
  overflow: hidden !important;
}

body.is-authenticated #angles-section .builder-control-length .builder-chip {
  min-height: 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--tool-ink) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.is-authenticated #angles-section .builder-control-length .builder-chip.is-active {
  color: #fff !important;
  background: var(--tool-gradient) !important;
}

body.is-authenticated #angles-section .builder-text-input {
  min-height: 58px !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

body.is-authenticated #angles-section .builder-helper-text {
  margin-top: -2px !important;
  color: var(--tool-muted) !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
}

body.is-authenticated #angles-section .angle-card > .builder-control-inline:not(.builder-control-length .builder-control-inline) {
  grid-column: auto / span 2 !important;
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

body.is-authenticated #angles-section .angle-card > .builder-control-inline .builder-chip {
  min-height: 28px !important;
  color: var(--tool-purple) !important;
  background: rgba(104, 69, 255, .07) !important;
  border: 1px solid rgba(104, 69, 255, .14) !important;
  box-shadow: none !important;
}

body.is-authenticated #angles-section .angle-card > .step-two-actions {
  grid-column: 3 / span 2 !important;
  justify-self: stretch !important;
}

body.is-authenticated #angles-section .angle-card > .step-two-actions .btn-secondary {
  width: 100% !important;
  min-height: 38px !important;
}

body.is-authenticated #angles-section .step-two-column-side .step-two-card {
  height: 100% !important;
  border-radius: 18px !important;
  padding: 18px !important;
}

body.is-authenticated #angles-section .step-two-selection-summary {
  max-height: 100% !important;
  padding-bottom: 8px !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
}

body.is-authenticated #angles-section .step-two-selection-summary > div {
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr) !important;
  padding-bottom: 10px !important;
}

body.is-authenticated #angles-section .step-two-selection-summary .step-two-summary-hero {
  padding: 0 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.is-authenticated #angles-section .step-two-column-side .step-two-actions {
  padding-top: 14px !important;
}

@media (max-width: 1180px) {
  body.is-authenticated #angles-section .angle-card {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.is-authenticated #angles-section .builder-control-mode,
  body.is-authenticated #angles-section .builder-control-voice,
  body.is-authenticated #angles-section .builder-control-length,
  body.is-authenticated #angles-section .builder-control-emphasis,
  body.is-authenticated #angles-section .builder-control-suggestion {
    grid-column: 1 / -1 !important;
  }
}

/* Full-screen tool frame lock: override legacy centered app shell */
body.is-authenticated {
  --tool-topbar-height: 70px;
  --tool-bottom-height: 88px;
  --tool-edge-pad: clamp(16px, 1.7vw, 32px);
  --tool-vertical-gap: 16px;
}

body.is-authenticated .page-shell,
body.is-authenticated .main-shell,
body.is-authenticated #dashboard-view,
body.is-authenticated .dashboard,
body.is-authenticated .workspace-page,
body.is-authenticated #dashboard-page-dashboard {
  width: 100vw !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-width: 0 !important;
  

}

body.is-authenticated .main-shell,
body.is-authenticated #dashboard-view,
body.is-authenticated .dashboard {
  height: calc(100vh - var(--tool-topbar-height)) !important;
  overflow: auto !important;
}

body.is-authenticated .workspace-page {
  height: calc(100vh - var(--tool-topbar-height)) !important;
  min-height: 0 !important;
  padding: var(--tool-vertical-gap) var(--tool-edge-pad) calc(var(--tool-bottom-height) + var(--tool-vertical-gap)) !important;
  overflow: hidden !important;
}

body.is-authenticated .workspace-page.hidden {
  display: none !important;
}

body.is-authenticated #dashboard-page-dashboard {
  padding: 0 !important;
}

body.is-authenticated .workspace-step-panel.is-active,
body.is-authenticated #generate-section.workspace-step-panel.is-active,
body.is-authenticated #angles-section.workspace-step-panel.is-active,
body.is-authenticated #output-section.workspace-step-panel.is-active,
body.is-authenticated #post-ready-section.workspace-step-panel.is-active {
  width: 100% !important;
  max-width: none !important;
  height:auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.is-authenticated #generate-section .tool-step-one-body,
body.is-authenticated #angles-section .tool-step-two-body,
body.is-authenticated #output-section .tool-step-three-body,
body.is-authenticated #post-ready-section .tool-step-four-body {
  height: 100% !important;
  min-height: 0 !important;
}

body.is-authenticated #generate-section .tool-idea-preview,
body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-manual-companion,
body.is-authenticated #angles-section .step-two-column-side .step-two-card {
  height: 100% !important;
  min-height: 0 !important;
}

body.is-authenticated .tool-bottom-workflow {
  left: var(--tool-edge-pad) !important;
  right: var(--tool-edge-pad) !important;
  bottom: 12px !important;
  width: auto !important;
  max-width: none !important;
  min-height: calc(var(--tool-bottom-height) - 12px) !important;
  margin: 0 !important;
}

/* Step 3 rebuild lock: thinking editor left, insight check right */
body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head {
  min-height: 34px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
}

body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head h2,
body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head .muted {
  display: none !important;
}

body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head .workspace-step-chip,
body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head .panel-kicker {
  display: inline-flex !important;
  width: auto !important;
  margin-right: 8px !important;
}

body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head .section-signal-pill {
  justify-self: end !important;
  align-self: start !important;
}

body.is-authenticated #output-section.workspace-step-panel.is-active {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 12px !important;
}

body.is-authenticated #output-section .tool-step-three-body {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(390px, 24vw, 440px) !important;
  gap: clamp(22px, 2vw, 32px) !important;
  align-items: stretch !important;
  overflow: visible !important;
}

body.is-authenticated #output-section .workspace-output-column {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section #signals-section.signal-analysis-panel {
  display: none !important;
}

body.is-authenticated #output-section .results,
body.is-authenticated #output-section .thinking-layer-results {
  height: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.is-authenticated #output-section .thinking-layer-card {
  height: 100% !important;
  min-height: 0 !important;
}

body.is-authenticated #output-section .thinking-layer-shell {
  height: 100% !important;
  min-height: 0 !important;
  display: contents !important;
}

body.is-authenticated #output-section .thinking-layer-editor-panel {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto !important;
  padding: 18px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .thinking-layer-locked-draft {
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.is-authenticated #output-section .thinking-layer-insight-panel {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto !important;
  gap: 14px !important;
  padding: 20px !important;
  border-radius: 18px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.is-authenticated #output-section .thinking-layer-final-btn {
  position: sticky !important;
  bottom: 0 !important;
  width: 100% !important;
  min-height: 50px !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(119, 72, 255, .25) !important;
}

@media (max-width: 980px) {
  body.is-authenticated #output-section .tool-step-three-body {
    grid-template-columns: 1fr !important;
    overflow: auto !important;
  }

  body.is-authenticated #output-section .thinking-layer-shell {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

/* Step 3 structural correction: expose generated draft + insight as true columns */
body.is-authenticated #output-section #summary-card,
body.is-authenticated #output-section #results-nudge {
  display: none !important;
}

body.is-authenticated #output-section .workspace-output-column,
body.is-authenticated #output-section #results,
body.is-authenticated #output-section .thinking-layer-card,
body.is-authenticated #output-section .thinking-layer-shell {
  display: contents !important;
}

body.is-authenticated #output-section .thinking-layer-editor-panel {
  grid-column: 1 !important;
  min-width: 0 !important;
}

body.is-authenticated #output-section .thinking-layer-insight-panel {
  grid-column: 2 !important;
  min-width: 0 !important;
}

body.is-authenticated #output-section .thinking-layer-insight-panel {
  overflow: hidden !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto !important;
}

body.is-authenticated #output-section .thinking-layer-score-block,
body.is-authenticated #output-section .thinking-layer-feedback-grid,
body.is-authenticated #output-section .thinking-layer-note {
  min-height: 0 !important;
}

body.is-authenticated #output-section .thinking-layer-feedback-grid {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.is-authenticated #output-section .thinking-layer-final-btn {
  align-self: end !important;
  margin-top: 8px !important;
}

@media (max-width: 980px) {
  body.is-authenticated #output-section .workspace-output-column,
  body.is-authenticated #output-section #results,
  body.is-authenticated #output-section .thinking-layer-card,
  body.is-authenticated #output-section .thinking-layer-shell {
    display: grid !important;
  }

  body.is-authenticated #output-section .thinking-layer-editor-panel,
  body.is-authenticated #output-section .thinking-layer-insight-panel {
    grid-column: 1 !important;
  }
}

/* Step 3 final polish */
body.is-authenticated #output-section.workspace-step-panel.is-active {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head {
  position: absolute !important;
  z-index: 3 !important;
  left: 18px !important;
  right: calc(clamp(390px, 24vw, 440px) + clamp(22px, 2vw, 32px) + 18px) !important;
  top: 12px !important;
  pointer-events: none !important;
}

body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head .section-signal-pill {
  justify-self: end !important;
}

body.is-authenticated #output-section .tool-step-three-body {
  padding-top: 0 !important;
}

body.is-authenticated #output-section .thinking-layer-editor-panel {
  position: relative !important;
  padding-top: 58px !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
}

body.is-authenticated #output-section .thinking-layer-locked-draft {
  min-height: 260px !important;
}

body.is-authenticated #output-section .thinking-redraft-panel {
  display: grid !important;
  grid-template-rows: auto 58px auto !important;
  gap: 8px !important;
}

body.is-authenticated #output-section .thinking-redraft-panel .thinking-layer-edit-head {
  min-height: 0 !important;
}

body.is-authenticated #output-section .thinking-redraft-panel .thinking-research-help {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

body.is-authenticated #output-section .thinking-redraft-panel .thinking-research-textarea {
  min-height: 58px !important;
  height: 58px !important;
  resize: none !important;
}

body.is-authenticated #output-section .thinking-redraft-panel .thinking-layer-actions {
  display: block !important;
}

body.is-authenticated #output-section .thinking-research-panel:not(.thinking-redraft-panel) {
  display: none !important;
}

body.is-authenticated #output-section .thinking-layer-editor-panel > .card-actions.thinking-layer-actions:last-child {
  display: flex !important;
  grid-template-columns: minmax(150px, 210px) minmax(0, auto) !important;
  gap: 10px !important;
  align-items: center !important;
}

body.is-authenticated #output-section .thinking-layer-editor-panel > .card-actions.thinking-layer-actions:last-child .btn-secondary {
  width: auto !important;
  min-height: 40px !important;
}

body.is-authenticated #output-section .thinking-layer-insight-panel {
  padding-bottom: 20px !important;
}

body.is-authenticated #output-section .thinking-layer-feedback-grid {
  display: none !important;
}

@media (max-width: 980px) {
  body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    pointer-events: auto !important;
  }

  body.is-authenticated #output-section .thinking-layer-editor-panel {
    padding-top: 18px !important;
  }
}

/* Step 4 rebuild lock: final post left, analysis/actions right */
body.is-authenticated #post-ready-section.workspace-step-panel.is-active {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 12px !important;
}

body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head {
  position: absolute !important;
  z-index: 3 !important;
  left: 18px !important;
  right: calc(clamp(390px, 24vw, 440px) + clamp(22px, 2vw, 32px) + 18px) !important;
  top: 12px !important;
  min-height: 34px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head h2,
body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head .muted {
  display: none !important;
}

body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head .workspace-step-chip,
body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head .panel-kicker {
  display: inline-flex !important;
  width: auto !important;
  margin-right: 8px !important;
}

body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head .section-signal-pill {
  justify-self: end !important;
  align-self: start !important;
}

body.is-authenticated #post-ready-section .tool-step-four-body,
body.is-authenticated #post-ready-section .post-ready-layout {
  height: 100% !important;
  min-height: 0 !important;
}

body.is-authenticated #post-ready-section .post-ready-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(390px, 24vw, 440px) !important;
  gap: clamp(22px, 2vw, 32px) !important;
  align-items: stretch !important;
}

body.is-authenticated #post-ready-section .post-ready-main {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section #post-ready-summary,
body.is-authenticated #post-ready-section .post-ready-side-card:first-child {
  display: none !important;
}

body.is-authenticated #post-ready-section .post-ready-card-shell,
body.is-authenticated #post-ready-section .post-ready-card {
  height: 100% !important;
  min-height: 0 !important;
}

body.is-authenticated #post-ready-section .post-ready-card {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto auto !important;
  padding: 58px 18px 18px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-card-header .mini-label {
  display: none !important;
}

body.is-authenticated #post-ready-section .post-ready-card .card-title {
  font-size: 22px !important;
  line-height: 1.12 !important;
}

body.is-authenticated #post-ready-section .post-ready-card .card-header-meta {
  display: none !important;
}

body.is-authenticated #post-ready-section .post-ready-card-header .recommendation-badge {
  display: none !important;
}

body.is-authenticated #post-ready-section .post-ready-card .label {
  display: none !important;
}

body.is-authenticated #post-ready-section .post-ready-copy {
  max-height: none !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 18px !important;
  border-radius: 12px !important;
}

body.is-authenticated #post-ready-section .post-ready-side {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: minmax(0, auto) minmax(0, 1fr) auto !important;
  gap: 12px !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card {
  min-height: 0 !important;
  border-radius: 18px !important;
  padding: 18px !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card:nth-child(2),
body.is-authenticated #post-ready-section .post-ready-side-card:nth-child(3) {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card:nth-child(4) {
  align-self: end !important;
  padding: 14px !important;
}

body.is-authenticated #post-ready-section .post-ready-actions-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 10px !important;
  align-items: center !important;
}

body.is-authenticated #post-ready-section .post-ready-actions-panel .btn-primary {
  width: 100% !important;
  min-height: 48px !important;
  color: #fff !important;
}

body.is-authenticated #post-ready-section .post-ready-actions-panel .btn-feedback {
  min-width: 72px !important;
  min-height: 48px !important;
}

body.is-authenticated #post-ready-section .post-ready-actions-panel .feedback-state {
  grid-column: 1 / -1 !important;
}

@media (max-width: 980px) {
  body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    pointer-events: auto !important;
  }

  body.is-authenticated #post-ready-section .post-ready-layout {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated #post-ready-section .post-ready-card {
    padding-top: 18px !important;
  }
}

/* Step 4 final structure: two master blocks only */
body.is-authenticated #post-ready-section.workspace-step-panel.is-active {
  padding-top: 0px !important;
}

body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head {
  top: 26px !important;
}

body.is-authenticated #post-ready-section .post-ready-layout {
  padding-top: 14px !important;
}

body.is-authenticated #post-ready-section .post-ready-card {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 58px 0 0 !important;
}

body.is-authenticated #post-ready-section .post-ready-copy {
  background: rgba(255,255,255,.92) !important;
  border: 1px solid var(--tool-line) !important;
  box-shadow: var(--tool-shadow) !important;
}

body.is-authenticated #post-ready-section .post-ready-side {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto auto !important;
  gap: 0 !important;
  padding: 18px !important;
  border: 1px solid var(--tool-line) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: var(--tool-shadow) !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card:nth-child(2),
body.is-authenticated #post-ready-section .post-ready-side-card:nth-child(3) {
  overflow: visible !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card:nth-child(2) {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 4px !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card:nth-child(3) {
  margin-top: 18px !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card:nth-child(4) {
  align-self: end !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(91,105,158,.12) !important;
}

body.is-authenticated #post-ready-section #post-ready-source-summary:empty {
  display: none !important;
}

body.is-authenticated #post-ready-section .post-ready-source-summary > div:not(:has(.mini-label:first-child:last-child)) {
  display: none !important;
}

@media (max-width: 980px) {
  body.is-authenticated #post-ready-section .post-ready-card {
    padding-top: 0 !important;
  }
}

/* =====================================================================
   Step 1A Final Premium Lock — single idea list + decision preview
   Scope: Step 1 only. Top navbar and bottom stepper logic stay untouched.
   ===================================================================== */

body.is-authenticated {
  --step1a-bg: #f8faff;
  --step1a-card: rgba(255, 255, 255, .94);
  --step1a-card-strong: #ffffff;
  --step1a-ink: #080d35;
  --step1a-ink-soft: #27315f;
  --step1a-muted: #647093;
  --step1a-line: rgba(95, 105, 150, .15);
  --step1a-line-strong: rgba(112, 78, 255, .34);
  --step1a-purple: #6f45ff;
  --step1a-pink: #e33ac9;
  --step1a-orange: #ff653d;
  --step1a-blue: #2e9bff;
  --step1a-green: #0ea66d;
  --step1a-cta-gradient: linear-gradient(135deg, #ff673f 0%, #e43fc6 46%, #7045ff 72%, #279cff 100%);
  --step1a-tab-gradient: linear-gradient(135deg, #6f45ff 0%, #d63de2 56%, #ff5e65 100%);
  --step1a-soft-shadow: 0 18px 46px rgba(25, 34, 82, .075), inset 0 1px 0 rgba(255,255,255,.95);
  --step1a-lift-shadow: 0 22px 56px rgba(84, 63, 180, .12), 0 8px 22px rgba(255, 95, 89, .045), inset 0 1px 0 rgba(255,255,255,.98);
}

body.is-authenticated #generate-section.workspace-step-panel.is-active {
  min-height: calc(100vh - 150px) !important;
  padding: 14px clamp(18px, 2vw, 34px) 98px !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .tool-step-one-body {
  height: calc(100vh - 238px) !important;
  min-height: 500px !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .tool-step-one-grid {
  height: 100% !important;
  grid-template-columns: minmax(0, 1fr) clamp(390px, 24vw, 452px) !important;
  gap: clamp(22px, 2vw, 32px) !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .tool-step-one-main {
  height: 100% !important;
  min-height: 0 !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .tool-step-one-head-slot .workspace-step-head {
  min-height: 30px !important;
  margin: 0 0 8px !important;
}

body.is-authenticated #generate-section .tool-step-one-head-slot .workspace-step-chip,
body.is-authenticated #generate-section .tool-step-one-head-slot .panel-kicker {
  min-height: 22px !important;
  padding: 0 11px !important;
  border-color: rgba(112, 78, 255, .1) !important;
  background: rgba(112, 78, 255, .07) !important;
  color: #8a6cff !important;
}

body.is-authenticated #generate-section .generate-mode-topbar {
  min-height: 64px !important;
  margin: 0 0 12px !important;
  padding: 8px 10px !important;
  border: 1px solid var(--step1a-line) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: var(--step1a-soft-shadow) !important;
}

body.is-authenticated #generate-section .generate-mode-switch,
body.is-authenticated #generate-section .idea-group-switch {
  border: 1px solid rgba(95, 105, 150, .14) !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: inset 0 1px 0 #fff, 0 12px 24px rgba(25, 34, 82, .04) !important;
}

body.is-authenticated #generate-section .generate-mode-tab.is-active {
  color: #fff !important;
  background: var(--step1a-tab-gradient) !important;
  box-shadow: 0 16px 34px rgba(111, 69, 255, .2), 0 8px 18px rgba(255, 94, 101, .12) !important;
}

body.is-authenticated #generate-section .idea-group-tab.is-active {
  color: var(--step1a-purple) !important;
  background: #fff !important;
  border-color: rgba(112, 78, 255, .32) !important;
  box-shadow: 0 10px 22px rgba(112, 78, 255, .06), inset 0 1px 0 #fff !important;
}

body.is-authenticated #generate-section #refresh-ideas-btn {
  min-height: 40px !important;
  border-radius: 13px !important;
  background: #fff !important;
  border-color: rgba(95, 105, 150, .15) !important;
}

body.is-authenticated #generate-section .generate-mode-panels,
body.is-authenticated #generate-section .generate-idea-panel {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .generate-idea-panel {
  display: block !important;
}

body.is-authenticated #generate-section .idea-card-list {
  height: calc(100% - 2px) !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: start !important;
  gap: 10px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 8px 4px 2px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(112, 78, 255, .22) transparent;
}

body.is-authenticated #generate-section .idea-card-list::-webkit-scrollbar { width: 7px; }
body.is-authenticated #generate-section .idea-card-list::-webkit-scrollbar-track { background: transparent; }
body.is-authenticated #generate-section .idea-card-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(112, 78, 255, .24), rgba(255, 101, 61, .22));
}

body.is-authenticated #generate-section .idea-card {
  position: relative !important;
  isolation: isolate !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(310px, auto) !important;
  grid-template-areas: "main side" !important;
  gap: 18px !important;
  min-height: 112px !important;
  padding: 15px 18px !important;
  border: 1px solid var(--step1a-line) !important;
  border-radius: 16px !important;
  background: var(--step1a-card) !important;
  box-shadow: 0 14px 34px rgba(25, 34, 82, .055), inset 0 1px 0 #fff !important;
  cursor: pointer;
  overflow: hidden !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.is-authenticated #generate-section .idea-card:hover {
  transform: translateY(-1px);
  border-color: rgba(112, 78, 255, .26) !important;
  box-shadow: 0 18px 42px rgba(25, 34, 82, .075), inset 0 1px 0 #fff !important;
}

body.is-authenticated #generate-section .idea-card.is-active {
  border-color: rgba(112, 78, 255, .78) !important;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--step1a-cta-gradient) border-box !important;
  box-shadow: var(--step1a-lift-shadow) !important;
}

body.is-authenticated #generate-section .idea-card.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 96% 12%, rgba(111, 69, 255, .08), transparent 28%),
    radial-gradient(circle at 0% 0%, rgba(255, 101, 61, .045), transparent 28%);
}

body.is-authenticated #generate-section .idea-card-main {
  grid-area: main !important;
  min-width: 0 !important;
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
}

body.is-authenticated #generate-section .idea-card-side {
  grid-area: side !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  justify-items: end !important;
  align-items: start !important;
  gap: 12px !important;
}

body.is-authenticated #generate-section .idea-card-meta-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

body.is-authenticated #generate-section .idea-card-selected-pill,
body.is-authenticated #generate-section .idea-active-check {
  display: none !important;
}

body.is-authenticated #generate-section .idea-card.is-active .idea-card-selected-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(112, 78, 255, .15);
  background: rgba(112, 78, 255, .065);
  color: var(--step1a-purple);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.is-authenticated #generate-section .idea-card.is-active .idea-active-check {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 30px;
  height: 30px;
  display: grid !important;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--step1a-tab-gradient);
  box-shadow: 0 14px 26px rgba(112, 78, 255, .2);
  font-size: 13px;
  font-weight: 950;
}

body.is-authenticated #generate-section .idea-card.is-active .idea-chip-row {
  padding-right: 40px !important;
}

body.is-authenticated #generate-section .idea-card-title-row {
  min-width: 0 !important;
}

body.is-authenticated #generate-section .idea-card-title {
  max-width: 100% !important;
  color: var(--step1a-ink) !important;
  font-size: clamp(14.5px, .92vw, 16px) !important;
  line-height: 1.28 !important;
  letter-spacing: -.012em !important;
  font-weight: 920 !important;
}

body.is-authenticated #generate-section .idea-card-copy {
  max-width: 860px !important;
  margin: 0 !important;
  color: var(--step1a-ink-soft) !important;
  font-size: 12.5px !important;
  line-height: 1.42 !important;
  font-weight: 700 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .idea-chip-row,
body.is-authenticated #generate-section .tool-preview-chip-row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 360px !important;
}

body.is-authenticated #generate-section .idea-card-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.is-authenticated #generate-section .idea-action-btn {
  min-width: 124px !important;
  min-height: 37px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.96) !important;
  border-color: rgba(95, 105, 150, .16) !important;
  color: var(--step1a-ink-soft) !important;
}

body.is-authenticated #generate-section .workspace-step-chip,
body.is-authenticated #generate-section .mini-label,
body.is-authenticated #generate-section .pill,
body.is-authenticated #generate-section .recommendation-badge {
  min-height: 22px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(112, 78, 255, .13) !important;
  background: rgba(112, 78, 255, .065) !important;
  color: var(--step1a-purple) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

body.is-authenticated #generate-section .recommendation-badge.is-recommended {
  background: rgba(14, 166, 109, .08) !important;
  color: #078a5a !important;
  border-color: rgba(14, 166, 109, .16) !important;
}

body.is-authenticated #generate-section .recommendation-badge.is-alternative {
  background: rgba(112, 78, 255, .065) !important;
  color: var(--step1a-purple) !important;
}

body.is-authenticated #generate-section .recommendation-badge.is-muted {
  background: rgba(255, 176, 61, .1) !important;
  color: #8d5b00 !important;
  border-color: rgba(255, 176, 61, .2) !important;
}

body.is-authenticated #generate-section .tool-idea-preview {
  height: calc(100vh - 238px) !important;
  min-height: 500px !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 18px !important;
  border: 1px solid rgba(112, 78, 255, .22) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 92% 16%, rgba(112, 78, 255, .045), transparent 28%),
    rgba(255,255,255,.76) !important;
  box-shadow: 0 22px 58px rgba(25, 34, 82, .08), inset 0 1px 0 rgba(255,255,255,.95) !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .tool-idea-preview .panel-kicker,
body.is-authenticated #generate-section .tool-idea-preview > .mini-label,
body.is-authenticated #generate-section .tool-idea-preview > .workspace-step-chip {
  width: fit-content !important;
}

body.is-authenticated #generate-section .tool-idea-preview-card {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  padding: 18px !important;
  border: 1px solid var(--step1a-line) !important;
  border-radius: 18px !important;
  background: var(--step1a-card-strong) !important;
  box-shadow: 0 16px 42px rgba(25, 34, 82, .055), inset 0 1px 0 #fff !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .tool-preview-scroll {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 2px 3px 4px 0 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(112, 78, 255, .22) transparent;
}

body.is-authenticated #generate-section .tool-preview-scroll::-webkit-scrollbar { width: 7px; }
body.is-authenticated #generate-section .tool-preview-scroll::-webkit-scrollbar-track { background: transparent; }
body.is-authenticated #generate-section .tool-preview-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(112, 78, 255, .24), rgba(255, 101, 61, .22));
}

body.is-authenticated #generate-section .tool-preview-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

body.is-authenticated #generate-section .tool-preview-chip-row {
  justify-content: flex-start !important;
  max-width: none !important;
}

body.is-authenticated #generate-section .tool-preview-check {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 auto !important;
  color: #fff !important;
  background: var(--step1a-tab-gradient) !important;
  box-shadow: 0 14px 28px rgba(112, 78, 255, .2) !important;
}

body.is-authenticated #generate-section .tool-idea-preview-card h3 {
  margin: 0 0 10px !important;
  color: var(--step1a-ink) !important;
  font-size: clamp(20px, 1.45vw, 25px) !important;
  line-height: 1.14 !important;
  letter-spacing: -.035em !important;
  font-weight: 940 !important;
}

body.is-authenticated #generate-section .tool-preview-source-summary {
  margin: 0 0 20px !important;
  color: var(--step1a-ink-soft) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 720 !important;
}

body.is-authenticated #generate-section .tool-preview-why-card {
  margin: 0 0 22px !important;
  padding: 16px !important;
  border: 1px solid rgba(112, 78, 255, .16) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(248,246,255,.98), rgba(255,255,255,.94)) !important;
  box-shadow: inset 0 1px 0 #fff !important;
}

body.is-authenticated #generate-section .tool-preview-block-head {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin-bottom: 10px !important;
}

body.is-authenticated #generate-section .tool-preview-block h4 {
  margin: 0 !important;
  color: var(--step1a-ink) !important;
  font-size: 11px !important;
  font-weight: 940 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase !important;
}

body.is-authenticated #generate-section .tool-preview-block p {
  margin: 0 !important;
  color: var(--step1a-ink-soft) !important;
  font-size: 12.5px !important;
  line-height: 1.54 !important;
  font-weight: 680 !important;
}

body.is-authenticated #generate-section .tool-preview-spark,
body.is-authenticated #generate-section .tool-preview-target {
  color: var(--step1a-purple) !important;
  font-weight: 950 !important;
}

body.is-authenticated #generate-section .tool-preview-fit-row {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
  margin-bottom: 22px !important;
}

body.is-authenticated #generate-section .tool-preview-fit-row strong {
  display: block !important;
  color: var(--step1a-ink) !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  font-weight: 880 !important;
}

body.is-authenticated #generate-section .tool-preview-fit-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

body.is-authenticated #generate-section .tool-preview-refresh-note {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(14, 166, 109, .18) !important;
  border-radius: 13px !important;
  background: rgba(14, 166, 109, .065) !important;
  color: #08784f !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 740 !important;
}

body.is-authenticated #generate-section .tool-preview-refresh-note span:first-child {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(14, 166, 109, .26) !important;
  background: rgba(255,255,255,.62) !important;
  font-weight: 950 !important;
}

body.is-authenticated #generate-section .tool-preview-use-btn {
  position: relative !important;
  bottom: auto !important;
  width: 100% !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #fff !important;
  background: var(--step1a-cta-gradient) !important;
  box-shadow: 0 18px 34px rgba(111, 69, 255, .22), 0 10px 22px rgba(255, 101, 61, .14) !important;
  font-size: 15px !important;
  font-weight: 920 !important;
  letter-spacing: -.01em !important;
}

body.is-authenticated #generate-section .tool-preview-use-btn span:last-child {
  position: absolute;
  right: 18px;
  font-size: 22px;
  line-height: 1;
}

body.is-authenticated #generate-section .tool-preview-empty-state {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: var(--step1a-muted);
}

body.is-authenticated #generate-section .tool-preview-empty-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(112, 78, 255, .08);
  color: var(--step1a-purple);
}

body.is-authenticated[data-generate-mode="manual"] #generate-section.workspace-step-panel.is-active {
  overflow: hidden !important;
}

@media (min-width: 1280px) and (max-height: 900px) {
  body.is-authenticated #generate-section.workspace-step-panel.is-active {
    padding-top: 10px !important;
    padding-bottom: 92px !important;
  }

  body.is-authenticated #generate-section .tool-step-one-body,
  body.is-authenticated #generate-section .tool-idea-preview {
    height: calc(100vh - 218px) !important;
    min-height: 470px !important;
  }

  body.is-authenticated #generate-section .generate-mode-topbar {
    min-height: 58px !important;
  }

  body.is-authenticated #generate-section .idea-card {
    min-height: 104px !important;
    padding: 13px 16px !important;
  }

  body.is-authenticated #generate-section .idea-card-title {
    font-size: 14.5px !important;
  }

  body.is-authenticated #generate-section .tool-idea-preview-card h3 {
    font-size: 20px !important;
  }
}

@media (max-width: 1280px) {
  body.is-authenticated #generate-section .tool-step-one-grid {
    grid-template-columns: minmax(0, 1fr) 370px !important;
    gap: 20px !important;
  }

  body.is-authenticated #generate-section .idea-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, auto) !important;
  }

  body.is-authenticated #generate-section .idea-chip-row {
    max-width: 300px !important;
  }
}

@media (max-width: 980px) {
  body.is-authenticated #generate-section.workspace-step-panel.is-active,
  body.is-authenticated #generate-section .tool-step-one-body,
  body.is-authenticated #generate-section .tool-step-one-grid,
  body.is-authenticated #generate-section .tool-idea-preview {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.is-authenticated #generate-section .tool-step-one-grid {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated #generate-section .idea-card {
    grid-template-columns: 1fr !important;
    grid-template-areas: "main" "side" !important;
  }

  body.is-authenticated #generate-section .idea-card-side {
    justify-items: start !important;
  }

  body.is-authenticated #generate-section .idea-chip-row,
  body.is-authenticated #generate-section .idea-card-actions {
    justify-content: flex-start !important;
    max-width: none !important;
  }
}

/* =====================================================================
   Step 1A Overlap Hotfix — neutralize older grid-area rules inside new markup
   Issue fixed: title/summary badges collapsing over each other in idea cards.
   ===================================================================== */
body.is-authenticated #generate-section .idea-card-main,
body.is-authenticated #generate-section .idea-card-side {
  min-width: 0 !important;
}

body.is-authenticated #generate-section .idea-card-main .idea-card-meta-row,
body.is-authenticated #generate-section .idea-card-main .idea-card-title-row,
body.is-authenticated #generate-section .idea-card-main .idea-card-copy,
body.is-authenticated #generate-section .idea-card-side .idea-chip-row,
body.is-authenticated #generate-section .idea-card-side .idea-card-actions {
  grid-area: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

body.is-authenticated #generate-section .idea-card-main .idea-card-meta-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  min-width: 0 !important;
}

body.is-authenticated #generate-section .idea-card-main .idea-card-title-row {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.is-authenticated #generate-section .idea-card-main .idea-card-title {
  display: block !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  margin: 0 !important;
}

body.is-authenticated #generate-section .idea-card-main .idea-card-copy {
  display: -webkit-box !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  margin: 0 !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

body.is-authenticated #generate-section .idea-card-side .idea-chip-row {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 360px !important;
}

body.is-authenticated #generate-section .idea-card-side .idea-card-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.is-authenticated #generate-section .idea-card-side .idea-action-btn {
  flex: 0 0 auto !important;
}

@media (max-width: 900px) {
  body.is-authenticated #generate-section .idea-card {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated #generate-section .idea-card-side {
    justify-items: start !important;
  }

  body.is-authenticated #generate-section .idea-card-side .idea-chip-row,
  body.is-authenticated #generate-section .idea-card-side .idea-card-actions {
    justify-content: flex-start !important;
  }
}

/* =====================================================================
   Step 1A Center + Bottom Visibility Fix
   Purpose:
   - Remove extra nested left/right padding from Step 1 middle workspace.
   - Keep the main Step 1 area centered and balanced.
   - Stop AI Ideas and What's on your mind panels from hiding behind the
     fixed bottom workflow bar.
   - Preserve all existing JS/product logic.
   ===================================================================== */

body.is-authenticated {
  --tool-topbar-height: 70px;
  --tool-bottom-height: 94px;
  --tool-edge-pad: clamp(22px, 1.8vw, 34px);
  --tool-vertical-gap: 12px;
  --step1a-safe-bottom: 18px;
}

body.is-authenticated *,
body.is-authenticated *::before,
body.is-authenticated *::after {
  box-sizing: border-box;
}

/* The page itself owns the outer spacing. Step panels should not add a second horizontal gutter. */
body.is-authenticated #dashboard-view,
body.is-authenticated #dashboard-page-dashboard,
body.is-authenticated .workspace-page {
  padding-left: var(--tool-edge-pad) ;
  padding-right: var(--tool-edge-pad);
}

body.is-authenticated .workspace-page,
body.is-authenticated #dashboard-page-dashboard {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  overflow: auto !important;
  width:100% !important;
}

/* Bottom bar gets the same left/right rhythm as the main content. */
body.is-authenticated .tool-bottom-workflow {
  left: var(--tool-edge-pad) !important;
  right: var(--tool-edge-pad) !important;
  bottom: 10px !important;
  min-height: 78px !important;
}

/* Step 1 panel uses the available workspace only; no extra side padding. */
body.is-authenticated #generate-section.workspace-step-panel.is-active {
  width: 100% !important;
  max-width: none !important;
  height: calc(100vh - var(--tool-topbar-height) - var(--tool-bottom-height) - (var(--tool-vertical-gap) * 2) - var(--step1a-safe-bottom)) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

body.is-authenticated #generate-section .tool-step-one-body {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.is-authenticated #generate-section .tool-step-one-grid {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  grid-template-columns: minmax(0, 1fr) clamp(390px, 24vw, 452px) !important;
  gap: clamp(22px, 1.8vw, 32px) !important;
  align-items: stretch !important;
  overflow: visible !important;
}

/* Left column: keep header compact and allow only the card list to scroll. */
body.is-authenticated #generate-section .tool-step-one-main {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .tool-step-one-head-slot .workspace-step-head {
  min-height: 26px !important;
  margin: 0 0 6px !important;
}

body.is-authenticated #generate-section .generate-mode-topbar {
  min-height: 58px !important;
  margin: 0 0 10px !important;
  padding: 7px 9px !important;
}

body.is-authenticated #generate-section .generate-mode-panels,
body.is-authenticated #generate-section .generate-mode-panel,
body.is-authenticated #generate-section .generate-idea-panel {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .generate-idea-panel {
  display: block !important;
}

body.is-authenticated #generate-section .idea-card-list {
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 8px 14px 0 !important;
  align-content: start !important;
  scroll-padding-bottom: 18px !important;
}

/* Cards stay slightly tighter so four ideas fit better on desktop without visual cutting. */
body.is-authenticated #generate-section .idea-card {
  min-height: 104px !important;
  padding: 14px 18px !important;
  gap: 14px !important;
}

body.is-authenticated #generate-section .idea-card-copy {
  -webkit-line-clamp: 2 !important;
}

/* Right preview: match the Step 1 height, keep CTA visible, and scroll only inside content if needed. */
body.is-authenticated #generate-section .tool-idea-preview {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
  padding: 16px !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .tool-idea-preview-card {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  padding: 18px !important;
  overflow: hidden !important;
}

body.is-authenticated #generate-section .tool-preview-scroll {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 2px 3px 10px 0 !important;
}

body.is-authenticated #generate-section .tool-preview-use-btn {
  flex: 0 0 auto !important;
  align-self: end !important;
  position: relative !important;
  bottom: auto !important;
  min-height: 54px !important;
  margin: 0 !important;
}

/* Manual mode: same shell height, but lift controls so the CTA never sits behind the bottom stepper. */
body.is-authenticated[data-generate-mode="manual"] #generate-section.workspace-step-panel.is-active {
  overflow: visible !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-step-one-grid {
  grid-template-columns: minmax(0, 1fr) clamp(390px, 24vw, 452px) !important;
  height: 100% !important;
  min-height: 0 !important;
  align-items: stretch !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-mode-panels {
  height: calc(100% - 68px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section #generate-manual-panel {
  height: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* Step 1 tabbar compaction: header, tabs, content should be three tight rows */
body.is-authenticated #generate-section .tool-step-one-main {
  grid-template-rows: auto auto minmax(0, 1fr) !important;
}

body.is-authenticated #generate-section .generate-mode-topbar {
  min-height: 46px !important;
  height: auto !important;
  margin: 0 0 8px !important;
  padding: 4px 6px !important;
  align-items: center !important;
}

body.is-authenticated #generate-section .generate-mode-switch,
body.is-authenticated #generate-section .idea-group-switch {
  min-height: 36px !important;
  padding: 2px !important;
}

body.is-authenticated #generate-section .generate-mode-tab,
body.is-authenticated #generate-section .idea-group-tab {
  min-height: 32px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.is-authenticated #generate-section .generate-mode-actions {
  min-height: 36px !important;
}

body.is-authenticated #generate-section #refresh-ideas-btn {
  min-height: 34px !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-mode-panels {
  height: 100% !important;
}

/* Step 1 CTA guard: no status toast should sit over the preview action. */
body.is-authenticated #generate-section #idea-status,
body.is-authenticated #generate-section .tool-preview-refresh-note {
  display: none !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form,
body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-manual-companion {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form {
  grid-template-rows: auto minmax(210px, 1fr) auto auto !important;
  gap: 12px !important;
  padding: clamp(18px, 2vw, 28px) !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form textarea {
  min-height: 220px !important;
  height: 100% !important;
  resize: none !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-actions {
  min-height: 52px !important;
  align-items: center !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section #generate-btn {
  min-height: 52px !important;
  margin: 0 !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-manual-companion {
  grid-template-rows: auto minmax(170px, 1fr) auto !important;
  gap: 16px !important;
  padding: clamp(18px, 2vw, 30px) !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-companion-copy h3 {
  font-size: clamp(28px, 2.55vw, 40px) !important;
}

body.is-authenticated[data-generate-mode="manual"] #generate-section .manual-chat-body {
  gap: 18px !important;
  padding: 18px !important;
}

/* Desktop short-height tuning: preserve bottom visibility over perfect no-scroll. */
@media (min-width: 1280px) and (max-height: 900px) {
  body.is-authenticated {
    --tool-bottom-height: 92px;
    --tool-vertical-gap: 10px;
    --step1a-safe-bottom: 14px;
  }

  body.is-authenticated #generate-section .generate-mode-topbar {
    min-height: 54px !important;
    margin-bottom: 8px !important;
  }

  body.is-authenticated #generate-section .idea-card {
    min-height: 98px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  body.is-authenticated #generate-section .tool-idea-preview {
    padding: 14px !important;
  }

  body.is-authenticated #generate-section .tool-idea-preview-card {
    padding: 16px !important;
  }

  body.is-authenticated #generate-section .tool-preview-use-btn {
    min-height: 50px !important;
  }

  body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form textarea {
    min-height: 190px !important;
  }
}

@media (max-width: 1280px) {
  body.is-authenticated #generate-section .tool-step-one-grid {
    grid-template-columns: minmax(0, 1fr) 370px !important;
  }
}

@media (max-width: 980px) {
  body.is-authenticated .workspace-page,
  body.is-authenticated #dashboard-page-dashboard {
    overflow: auto !important;
  }

  body.is-authenticated #generate-section.workspace-step-panel.is-active,
  body.is-authenticated #generate-section .tool-step-one-body,
  body.is-authenticated #generate-section .tool-step-one-grid,
  body.is-authenticated #generate-section .tool-idea-preview,
  body.is-authenticated[data-generate-mode="manual"] #generate-section .generate-form,
  body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-manual-companion {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.is-authenticated #generate-section .tool-step-one-grid,
  body.is-authenticated[data-generate-mode="manual"] #generate-section .tool-step-one-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Step 3 premium LinkedIn preview rebuild: image-matched left draft workspace */
body.is-authenticated #output-section .thinking-layer-premium-editor {
  position: relative !important;
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(91, 105, 158, .14) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 22px 58px rgba(25, 34, 82, .08), inset 0 1px 0 rgba(255,255,255,.96) !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .thinking-layer-premium-hero {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) auto !important;
  gap: 16px !important;
  align-items: center !important;
  min-height: 104px !important;
  padding: 24px 28px 20px !important;
  border-bottom: 1px solid rgba(91,105,158,.12) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(104,69,255,.065), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.92)) !important;
}

body.is-authenticated #output-section .thinking-layer-hero-icon {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 15px !important;
  color: #6845ff !important;
  background: linear-gradient(135deg, rgba(104,69,255,.13), rgba(236,63,159,.08)) !important;
  box-shadow: inset 0 1px 0 #fff, 0 16px 30px rgba(104,69,255,.08) !important;
}

body.is-authenticated #output-section .thinking-layer-hero-icon svg {
  width: 25px !important;
  height: 25px !important;
}

body.is-authenticated #output-section .thinking-layer-premium-hero .card-title {
  margin: 0 !important;
  color: var(--tool-ink) !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
  font-weight: 930 !important;
}

body.is-authenticated #output-section .thinking-layer-premium-hero .card-header-meta {
  margin-top: 6px !important;
  color: var(--tool-muted) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

body.is-authenticated #output-section .thinking-layer-lock-chip {
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(104,69,255,.18) !important;
  color: #6845ff !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 12px 26px rgba(104,69,255,.08), inset 0 1px 0 #fff !important;
  font-size: 12px !important;
  font-weight: 920 !important;
}

body.is-authenticated #output-section .thinking-layer-lock-chip svg {
  width: 15px !important;
  height: 15px !important;
}

body.is-authenticated #output-section .thinking-draft-snapshot {
  display: grid !important;
  gap: 12px !important;
  padding: 14px 26px 16px !important;
  border-bottom: 1px solid rgba(91,105,158,.12) !important;
  background: rgba(250,252,255,.72) !important;
}

body.is-authenticated #output-section .thinking-draft-snapshot > .label,
body.is-authenticated #output-section .thinking-linkedin-preview-shell > .label {
  margin: 0 !important;
  color: #586287 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
}

body.is-authenticated #output-section .thinking-draft-snapshot-grid {
  display: grid !important;
  grid-template-columns: 1.05fr 1.05fr .8fr 1.35fr 1.05fr !important;
  gap: 14px !important;
}

body.is-authenticated #output-section .thinking-snapshot-card {
  min-width: 0 !important;
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(91,105,158,.12) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 12px 26px rgba(22,31,72,.04), inset 0 1px 0 #fff !important;
}

body.is-authenticated #output-section .thinking-snapshot-icon {
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: rgba(104,69,255,.105) !important;
  color: #6845ff !important;
  font-size: 17px !important;
  font-weight: 950 !important;
}

body.is-authenticated #output-section .thinking-snapshot-icon-teal { background: rgba(30,190,184,.12) !important; color: #0ca6a0 !important; }
body.is-authenticated #output-section .thinking-snapshot-icon-orange { background: rgba(255,104,71,.12) !important; color: #ff6847 !important; }
body.is-authenticated #output-section .thinking-snapshot-icon-green { background: rgba(16,168,107,.12) !important; color: #10a86b !important; }

body.is-authenticated #output-section .thinking-snapshot-card strong {
  display: block !important;
  margin: 0 0 4px !important;
  color: var(--tool-ink) !important;
  font-size: 12.5px !important;
  line-height: 1.15 !important;
  font-weight: 930 !important;
}

body.is-authenticated #output-section .thinking-snapshot-card span:not(.thinking-snapshot-icon) {
  display: block !important;
  color: var(--tool-muted) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.is-authenticated #output-section .thinking-linkedin-preview-shell {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 16px 26px 14px !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .thinking-linkedin-preview {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: 12px !important;
  padding: 16px 18px 10px !important;
  border: 1px solid rgba(91,105,158,.14) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 16px 40px rgba(22,31,72,.055), inset 0 1px 0 #fff !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .thinking-linkedin-head {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
}

body.is-authenticated #output-section .thinking-linkedin-avatar {
  width: 40px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--tool-gradient) !important;
  box-shadow: 0 12px 24px rgba(104,69,255,.18) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

body.is-authenticated #output-section .thinking-linkedin-head strong {
  display: block !important;
  color: var(--tool-ink) !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 930 !important;
}

body.is-authenticated #output-section .thinking-linkedin-head span:not(.thinking-linkedin-icon) {
  display: block !important;
  margin-top: 3px !important;
  color: var(--tool-muted) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

body.is-authenticated #output-section .thinking-linkedin-icon {
  width: 26px !important;
  height: 26px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 5px !important;
  color: #fff !important;
  background: #0a66c2 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -.04em !important;
}

body.is-authenticated #output-section .thinking-linkedin-hook {
  color: var(--tool-ink) !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  font-weight: 920 !important;
}

body.is-authenticated #output-section .thinking-linkedin-preview .thinking-layer-locked-draft {
  min-height: 0 !important;
  height: 100% !important;
  padding: 0 4px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--tool-ink) !important;
  font-size: 13.25px !important;
  line-height: 1.72 !important;
  font-weight: 640 !important;
  white-space: pre-wrap !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(116,80,255,.3) transparent !important;
}

body.is-authenticated #output-section .thinking-linkedin-preview .thinking-layer-locked-draft::-webkit-scrollbar,
body.is-authenticated #output-section .thinking-layer-insight-panel::-webkit-scrollbar {
  width: 7px !important;
}

body.is-authenticated #output-section .thinking-linkedin-preview .thinking-layer-locked-draft::-webkit-scrollbar-thumb,
body.is-authenticated #output-section .thinking-layer-insight-panel::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(116,80,255,.28), rgba(255,91,97,.32)) !important;
}

body.is-authenticated #output-section .thinking-linkedin-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(91,105,158,.11) !important;
  border-radius: 9px !important;
  background: rgba(250,252,255,.9) !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .thinking-linkedin-meta-row span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  padding: 0 16px !important;
  border-left: 1px solid rgba(91,105,158,.12) !important;
  color: var(--tool-muted) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  white-space: nowrap !important;
}

body.is-authenticated #output-section .thinking-linkedin-meta-row span:first-child {
  border-left: 0 !important;
  padding-left: 0 !important;
}

body.is-authenticated #output-section .thinking-linkedin-meta-row i {
  width: 7px !important;
  height: 7px !important;
  display: inline-block !important;
  border-radius: 999px !important;
  background: #10a86b !important;
}

body.is-authenticated #output-section .thinking-premium-research {
  display: block !important;
  padding: 0 26px 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.is-authenticated #output-section .thinking-premium-research .thinking-research-toggle {
  min-height: 36px !important;
  border-radius: 10px !important;
  color: #6845ff !important;
  background: rgba(104,69,255,.055) !important;
  border-color: rgba(104,69,255,.13) !important;
  box-shadow: none !important;
}

body.is-authenticated #output-section .thinking-premium-research .thinking-research-box {
  margin-top: 10px !important;
  padding: 12px !important;
  border: 1px solid rgba(91,105,158,.12) !important;
  border-radius: 12px !important;
  background: rgba(250,252,255,.86) !important;
}

body.is-authenticated #output-section .thinking-premium-actions {
  display: grid !important;
  grid-template-columns: minmax(130px, 170px) minmax(140px, 190px) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: 64px !important;
  padding: 14px 26px !important;
  border-top: 1px solid rgba(91,105,158,.12) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(249,251,255,.96)) !important;
}

body.is-authenticated #output-section .thinking-premium-actions .btn-secondary {
  width: 100% !important;
  min-height: 40px !important;
  border-radius: 10px !important;
  color: var(--tool-ink) !important;
  border-color: rgba(91,105,158,.16) !important;
  background: rgba(255,255,255,.95) !important;
  box-shadow: 0 10px 24px rgba(20,32,86,.045), inset 0 1px 0 #fff !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
}

body.is-authenticated #output-section .thinking-premium-actions .btn-secondary:first-child {
  color: #6845ff !important;
  border-color: rgba(104,69,255,.26) !important;
}

body.is-authenticated #output-section .thinking-layer-action-note {
  justify-self: end !important;
  color: #59658f !important;
  font-size: 12px !important;
  font-weight: 720 !important;
}

body.is-authenticated #output-section .thinking-layer-action-note::before {
  content: "◇";
  margin-right: 8px;
  color: #6845ff;
}

body.is-authenticated #output-section .thinking-layer-premium-side {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto !important;
  gap: 18px !important;
  padding: 24px !important;
  border: 1px solid rgba(91,105,158,.14) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 22px 58px rgba(25,34,82,.08), inset 0 1px 0 rgba(255,255,255,.96) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.is-authenticated #output-section .thinking-layer-premium-side .thinking-layer-insight-head {
  display: grid !important;
  gap: 8px !important;
}

body.is-authenticated #output-section .thinking-layer-premium-side .thinking-layer-insight-head h3 {
  margin: 0 !important;
  color: var(--tool-ink) !important;
  font-size: 15px !important;
  font-weight: 930 !important;
}

body.is-authenticated #output-section .thinking-layer-premium-side .thinking-layer-insight-callout,
body.is-authenticated #output-section .thinking-layer-premium-side .thinking-layer-insight-copy {
  display: none !important;
}

body.is-authenticated #output-section .thinking-layer-score-block {
  display: grid !important;
  gap: 12px !important;
  padding-top: 22px !important;
}

body.is-authenticated #output-section .thinking-layer-score-block .label,
body.is-authenticated #output-section .thinking-side-feedback .label {
  color: #7b86a8 !important;
  font-size: 11px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  font-weight: 940 !important;
}

body.is-authenticated #output-section .evaluation-bar-item {
  display: grid !important;
  gap: 8px !important;
}

body.is-authenticated #output-section .evaluation-bar-label-row {
  color: #59658f !important;
  font-size: 12.5px !important;
  font-weight: 850 !important;
}

body.is-authenticated #output-section .evaluation-bar-label-row span:last-child {
  color: #7a84a8 !important;
  font-weight: 930 !important;
}

body.is-authenticated #output-section .evaluation-bar-track {
  height: 7px !important;
  border-radius: 999px !important;
  background: #ecf0f7 !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .evaluation-bar-track span,
body.is-authenticated #output-section .evaluation-bar-fill {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #6845ff, #d93adf 58%, #ff6747) !important;
}

body.is-authenticated #output-section .thinking-side-feedback {
  display: grid !important;
  grid-template-rows: auto minmax(120px, 1fr) !important;
  gap: 10px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(91,105,158,.12) !important;
}

body.is-authenticated #output-section .thinking-side-feedback .thinking-research-help {
  margin: 8px 0 0 !important;
  color: #59658f !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 650 !important;
}

body.is-authenticated #output-section .thinking-side-feedback .thinking-research-textarea {
  min-height: 130px !important;
  height: 100% !important;
  padding: 18px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(91,105,158,.16) !important;
  background: rgba(255,255,255,.96) !important;
  color: var(--tool-ink) !important;
  box-shadow: inset 0 1px 0 #fff !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  resize: none !important;
}

body.is-authenticated #output-section .thinking-layer-final-btn {
  align-self: end !important;
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #ff6847 0%, #ec3f9f 52%, #3ba3ff 100%) !important;
  box-shadow: 0 18px 36px rgba(104,69,255,.20), 0 10px 24px rgba(255,104,71,.14) !important;
  font-size: 15px !important;
  font-weight: 930 !important;
}

@media (max-width: 1280px) {
  body.is-authenticated #output-section .thinking-draft-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.is-authenticated #output-section .thinking-snapshot-wide {
    grid-column: auto !important;
  }

  body.is-authenticated #output-section .thinking-linkedin-meta-row {
    flex-wrap: wrap !important;
    height: auto !important;
    padding: 8px 12px !important;
    gap: 8px 0 !important;
  }
}

@media (max-width: 980px) {
  body.is-authenticated #output-section .thinking-layer-premium-editor,
  body.is-authenticated #output-section .thinking-layer-premium-side {
    height: auto !important;
    min-height: 0 !important;
  }

  body.is-authenticated #output-section .thinking-layer-premium-hero,
  body.is-authenticated #output-section .thinking-premium-actions {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated #output-section .thinking-draft-snapshot-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Step 2 image-match rebuild: premium angle builder exact UI */
body.is-authenticated #angles-section.workspace-step-panel.is-active {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head {
  min-height: 30px !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 1px !important;
  pointer-events: auto !important;
}

body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head h2,
body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head .muted {
  display: none !important;
}

body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head .workspace-step-chip,
body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head .panel-kicker,
body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head .section-signal-pill {
  min-height: 24px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  color: #7746ff !important;
  border: 1px solid rgba(120, 76, 255, .15) !important;
  background: rgba(120, 76, 255, .075) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9) !important;
  font-size: 10.5px !important;
  font-weight: 940 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

body.is-authenticated #angles-section.workspace-step-panel.is-active > .workspace-step-head .section-signal-pill {
  justify-self: end !important;
}

body.is-authenticated #angles-section .tool-step-two-body {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.is-authenticated #angles-section .step-two-builder-grid {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(430px, 28vw, 520px) !important;
  gap: 24px !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

body.is-authenticated #angles-section .step-two-column,
body.is-authenticated #angles-section .step-two-column-side {
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  gap: 0 !important;
}

body.is-authenticated #angles-section .step-two-builder-grid > .step-two-column:not(.step-two-column-side) > .step-two-card:first-child {
  display: none !important;
}

body.is-authenticated #angles-section .step-two-builder-grid > .step-two-column:not(.step-two-column-side) > .step-two-card:nth-child(2),
body.is-authenticated #angles-section .step-two-column-side .step-two-card {
  height: 100% !important;
  min-height: 0 !important;
  border: 1px solid rgba(91,105,158,.12) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 22px 58px rgba(25,34,82,.08), inset 0 1px 0 rgba(255,255,255,.96) !important;
}

body.is-authenticated #angles-section .step-two-builder-grid > .step-two-column:not(.step-two-column-side) > .step-two-card:nth-child(2) {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  padding: 24px 26px !important;
  overflow: hidden !important;
  gap: 0px !important;
}

body.is-authenticated #angles-section .step-two-section-head {
  min-height: 66px !important;
  margin: 0 0 8px !important;
  display: block !important;
}

body.is-authenticated #angles-section .step-two-section-head .mini-label {
  min-height: 24px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  color: #6d3fff !important;
  border: 1px solid rgba(109,63,255,.14) !important;
  background: rgba(109,63,255,.075) !important;
  font-size: 10px !important;
  font-weight: 940 !important;
}

body.is-authenticated #angles-section .step-two-section-head h3 {
  margin: 13px 0 0 !important;
  color: #08103d !important;
  font-size: 20px !important;
  line-height: 1.1 !important;
  letter-spacing: -.02em !important;
  font-weight: 940 !important;
}

body.is-authenticated #angles-section .angle-card-list.step-two-premium-angle-list,
body.is-authenticated #angles-section .angle-card-list {
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(116,80,255,.26) transparent !important;
}

body.is-authenticated #angles-section .step-two-premium-angle-card {
  height: auto !important;
  min-height: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  align-content: start !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-top: 10px !important;
}

body.is-authenticated #angles-section .step-two-angle-hero {
  display: grid !important;
  gap: 12px !important;
  min-height: auto !important;
  padding: 22px 26px !important;
  border: 1px solid rgba(117,82,255,.34) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 92% 22%, rgba(109,63,255,.08), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(249,246,255,.86)) !important;
  box-shadow: inset 0 1px 0 #fff, 0 16px 36px rgba(50,58,116,.055) !important;
}

body.is-authenticated #angles-section .step-two-angle-hero-top,
body.is-authenticated #angles-section .step-two-chip-row,
body.is-authenticated #angles-section .step-two-selected-area {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.is-authenticated #angles-section .step-two-angle-hero-top {
  justify-content: space-between !important;
}

body.is-authenticated #angles-section .step-two-angle-hero .mini-label,
body.is-authenticated #angles-section .step-two-angle-hero .recommendation-badge {
  min-height: 26px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  color: #6d3fff !important;
  border: 1px solid rgba(109,63,255,.14) !important;
  background: rgba(109,63,255,.08) !important;
  font-size: 10.5px !important;
  font-weight: 950 !important;
  letter-spacing: .035em !important;
}

body.is-authenticated #angles-section .step-two-selected-pill {
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  color: #5d3fff !important;
  border: 1px solid rgba(109,63,255,.16) !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: inset 0 1px 0 #fff !important;
  font-size: 10.5px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

body.is-authenticated #angles-section .step-two-selected-pill svg,
body.is-authenticated #angles-section .step-two-star-icon svg,
body.is-authenticated #angles-section .step-two-ui-icon svg,
body.is-authenticated #angles-section .step-two-actions svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.05 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.is-authenticated #angles-section .step-two-star-icon {
  width: 30px !important;
  height: 30px !important;
  display: inline-grid !important;
  place-items: center !important;
  color: #8a95b4 !important;
}

body.is-authenticated #angles-section .step-two-angle-hero h3 {
  margin: 0 !important;
  color: #070d37 !important;
  font-size: 21px !important;
  line-height: 1.22 !important;
  letter-spacing: -.025em !important;
  font-weight: 950 !important;
}

body.is-authenticated #angles-section .step-two-angle-hero p {
  max-width: 870px !important;
  margin: 0 !important;
  color: #253063 !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  font-weight: 720 !important;
}

body.is-authenticated #angles-section .step-two-blueprint-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.is-authenticated #angles-section .step-two-blueprint-tile {
  min-height: 94px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
  padding: 14px 13px !important;
  border: 1px solid rgba(91,105,158,.13) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(20,32,86,.035) !important;
}

body.is-authenticated #angles-section .step-two-ui-icon {
  width: 38px !important;
  height: 38px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #7547ff !important;
  border: 1px solid rgba(117,71,255,.13) !important;
  background: linear-gradient(180deg, rgba(117,71,255,.08), rgba(117,71,255,.035)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9) !important;
}

body.is-authenticated #angles-section .step-two-blueprint-tile strong,
body.is-authenticated #angles-section .step-two-list-head strong,
body.is-authenticated #angles-section .builder-control-label {
  color: #07103d !important;
  font-size: 12.5px !important;
  line-height: 1.15 !important;
  font-weight: 940 !important;
}

body.is-authenticated #angles-section .step-two-blueprint-tile p {
  margin: 7px 0 0 !important;
  color: #263360 !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
}

body.is-authenticated #angles-section .step-two-list-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.is-authenticated #angles-section .step-two-list-block {
  min-height: 108px !important;
  padding: 15px 18px !important;
  border: 1px solid rgba(91,105,158,.13) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(20,32,86,.035) !important;
}

body.is-authenticated #angles-section .step-two-list-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

body.is-authenticated #angles-section .step-two-list-head .step-two-ui-icon {
  width: 26px !important;
  height: 26px !important;
}

body.is-authenticated #angles-section .step-two-list-include .step-two-ui-icon {
  color: #12a875 !important;
  background: rgba(16,168,107,.08) !important;
  border-color: rgba(16,168,107,.18) !important;
}

body.is-authenticated #angles-section .step-two-list-avoid .step-two-ui-icon {
  color: #ff5264 !important;
  background: rgba(255,82,100,.08) !important;
  border-color: rgba(255,82,100,.18) !important;
}

body.is-authenticated #angles-section .step-two-list-block ul {
  margin: 10px 0 0 44px !important;
  padding: 0 !important;
  color: #202a5a !important;
  font-size: 11.75px !important;
  line-height: 1.48 !important;
  font-weight: 700 !important;
}

body.is-authenticated #angles-section .step-two-controls-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px 12px !important;
}

body.is-authenticated #angles-section .builder-control-group {
  display: grid !important;
  gap: 7px !important;
  align-content: start !important;
}

body.is-authenticated #angles-section .builder-control-mode { grid-column: 1 / span 2 !important; }
body.is-authenticated #angles-section .builder-control-voice { grid-column: 3 / span 2 !important; }
body.is-authenticated #angles-section .builder-control-length { grid-column: 5 / span 2 !important; }
body.is-authenticated #angles-section .builder-control-emphasis { grid-column: 1 / span 3 !important; }
body.is-authenticated #angles-section .builder-control-suggestion { grid-column: 4 / span 3 !important; }

body.is-authenticated #angles-section .builder-select,
body.is-authenticated #angles-section .builder-text-input {
  width: 100% !important;
  border: 1px solid rgba(91,105,158,.16) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.9) !important;
  color: #08103d !important;
  box-shadow: inset 0 1px 0 #fff !important;
  font-weight: 800 !important;
}
body.is-authenticated #angles-section .builder-select-right,
body.is-authenticated #angles-section .builder-text-input {
  width: auto !important;
  border: 1px solid rgba(91,105,158,.16) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.9) !important;
  color: #08103d !important;
  box-shadow: inset 0 1px 0 #fff !important;
  font-weight: 800 !important;
  margin-left: 10px !important;

}
body.is-authenticated #angles-section .builder-select-right {
  min-height: 38px !important;
  padding: 0 38px 0 16px !important;
  font-size: 12.75px !important;
  appearance: none !important;
  background:
    linear-gradient(45deg, transparent 50%, #07103d 50%) calc(100% - 18px) 16px / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(249,251,255,.94)) !important;
}

body.is-authenticated #angles-section .builder-select {
  min-height: 38px !important;
  padding: 0 38px 0 16px !important;
  font-size: 12.75px !important;
  appearance: none !important;
  background:
    linear-gradient(45deg, transparent 50%, #07103d 50%) calc(100% - 18px) 16px / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(249,251,255,.94)) !important;
}

body.is-authenticated #angles-section .builder-text-input {
  min-height: 58px !important;
  padding: 12px 14px !important;
  resize: none !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  vertical-align: middle;
  margin-left: 10px !important;
}

body.is-authenticated #angles-section .builder-text-input::placeholder {
  color: #9aa4bf !important;
  font-weight: 680 !important;
}

body.is-authenticated #angles-section .builder-helper-text {
  margin-top: -2px !important;
  color: #59658f !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

body.is-authenticated #angles-section .builder-control-length .builder-control-inline {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 1px solid rgba(91,105,158,.16) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.94) !important;
  overflow: hidden !important;
}

body.is-authenticated #angles-section .builder-control-length .builder-chip {
  min-height: 36px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #07103d !important;
  font-size: 12px !important;
  font-weight: 930 !important;
}

body.is-authenticated #angles-section .builder-control-length .builder-chip.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #6845ff, #d93adf 58%, #ff6747) !important;
}

body.is-authenticated #angles-section .step-two-bottom-actions {
  display: grid !important;
  grid-template-columns: minmax(250px, 1fr) minmax(340px, 1.55fr) minmax(180px, 220px) !important;
  gap: 12px !important;
  align-items: center !important;
}

body.is-authenticated #angles-section .step-two-option-group {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(91,105,158,.13) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(20,32,86,.035) !important;
}

body.is-authenticated #angles-section .step-two-option-icon {
  flex: 0 0 auto !important;
  width: 30px !important;
  height: 30px !important;
}

body.is-authenticated #angles-section .step-two-option-group .builder-chip {
  min-height: 30px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(91,105,158,.16) !important;
  color: #07103d !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: none !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
}

body.is-authenticated #angles-section .step-two-option-group .builder-chip.is-active {
  color: #6845ff !important;
  border-color: rgba(104,69,255,.16) !important;
  background: rgba(104,69,255,.08) !important;
}

body.is-authenticated #angles-section .step-two-actions {
  margin: 0 !important;
  align-self: stretch !important;
}

body.is-authenticated #angles-section .step-two-actions .btn-secondary {
  width: 100% !important;
  height: 100% !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 16px !important;
  border-radius: 13px !important;
  color: #07103d !important;
  border: 1px solid rgba(91,105,158,.16) !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(20,32,86,.04) !important;
  font-size: 12px !important;
  font-weight: 930 !important;
}

body.is-authenticated #angles-section .step-two-column-side .step-two-card {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 16px !important;
  padding: 26px 28px !important;
  overflow: hidden !important;
}

body.is-authenticated #angles-section .step-two-column-side .step-two-card > .mini-label,
body.is-authenticated #angles-section .step-two-side-head .mini-label {
  min-height: 24px !important;
  padding: 0 14px !important;
  color: #6d3fff !important;
  border: 1px solid rgba(109,63,255,.14) !important;
  background: rgba(109,63,255,.075) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
}

body.is-authenticated #angles-section .step-two-side-head {
  display: block !important;
  min-height: 28px !important;
}

body.is-authenticated #angles-section .step-two-side-head .step-two-refresh-btn {
  display: none !important;
}

body.is-authenticated #angles-section .step-two-selection-summary.step-two-selection-premium {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

body.is-authenticated #angles-section .step-two-summary-hero {
  display: grid !important;
  gap: 9px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  background: transparent !important;
}

body.is-authenticated #angles-section .step-two-summary-hero .mini-label {
  margin-top: 4px !important;
  min-height: 23px !important;
  padding: 0 12px !important;
  display:flex !important;
}

body.is-authenticated #angles-section .step-two-summary-hero strong {
  color: #07103d !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
  font-weight: 950 !important;
}

body.is-authenticated #angles-section .step-two-summary-hero p {
  margin: 0 !important;
  color: #202a5a !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
  font-weight: 760 !important;
}

body.is-authenticated #angles-section .step-two-summary-list {
  min-height: 0 !important;
  display: grid !important;
  align-content: start !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 4px !important;
}

body.is-authenticated #angles-section .step-two-summary-row {
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 44px minmax(108px, .9fr) minmax(0, 1.2fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(91,105,158,.12) !important;
}

body.is-authenticated #angles-section .step-two-summary-row .step-two-ui-icon {
  width: 34px !important;
  height: 34px !important;
  color: #7547ff !important;
  background: rgba(117,71,255,.06) !important;
  box-shadow: 0 10px 24px rgba(117,71,255,.08), inset 0 1px 0 #fff !important;
}

body.is-authenticated #angles-section .step-two-summary-label {
  color: #07103d !important;
  font-size: 12.75px !important;
  font-weight: 900 !important;
}

body.is-authenticated #angles-section .step-two-summary-row strong {
  color: #202a5a !important;
  font-size: 12.75px !important;
  line-height: 1.25 !important;
  font-weight: 760 !important;
}

body.is-authenticated #angles-section .step-two-column-side .step-two-actions {
  position: sticky !important;
  padding-top: 8px !important;
  background: transparent !important;
}

body.is-authenticated #angles-section #generate-from-builder-btn {
  width: 100% !important;
  min-height: 68px !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #6845ff 0%, #d93adf 54%, #ff6747 100%) !important;
  box-shadow: 0 18px 38px rgba(104,69,255,.20), 0 10px 24px rgba(255,104,71,.14) !important;
  font-size: 16px !important;
  font-weight: 950 !important;
}

@media (max-width: 1280px) {
  body.is-authenticated #angles-section .step-two-blueprint-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  body.is-authenticated #angles-section .step-two-bottom-actions {
    grid-template-columns: 1fr 1fr !important;
  }
  body.is-authenticated #angles-section .step-two-actions {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 980px) {
  body.is-authenticated #angles-section .step-two-builder-grid,
  body.is-authenticated #angles-section .step-two-controls-grid,
  body.is-authenticated #angles-section .step-two-blueprint-grid,
  body.is-authenticated #angles-section .step-two-list-grid,
  body.is-authenticated #angles-section .step-two-bottom-actions {
    grid-template-columns: 1fr !important;
  }
  body.is-authenticated #angles-section .builder-control-mode,
  body.is-authenticated #angles-section .builder-control-voice,
  body.is-authenticated #angles-section .builder-control-length,
  body.is-authenticated #angles-section .builder-control-emphasis,
  body.is-authenticated #angles-section .builder-control-suggestion {
    grid-column: 1 / -1 !important;
  }
}

/* Step 2 right-panel live control lock */
body.is-authenticated #angles-section .angle-builder-controls,
body.is-authenticated #angles-section .angle-writing-grid,
body.is-authenticated #angles-section .angle-bottom-options,
body.is-authenticated #angles-section .angle-card > .builder-control-inline {
  display: none !important;
}

body.is-authenticated #angles-section .step-two-column-side .step-two-card {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 12px !important;
  padding: 22px 24px !important;
}

body.is-authenticated #angles-section .step-two-selection-summary.step-two-selection-premium {
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 14px !important;
  overflow: hidden !important;
}

body.is-authenticated #angles-section .step-two-summary-hero {
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(91,105,158,.12) !important;
}

body.is-authenticated #angles-section .step-two-summary-hero strong {
  font-size: 17px !important;
  line-height: 1.18 !important;
}

body.is-authenticated #angles-section .step-two-summary-hero p {
  font-size: 12.25px !important;
  line-height: 1.38 !important;
}

body.is-authenticated #angles-section .step-two-settings-panel {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: start !important;
  gap: 10px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 4px 4px 0 !important;
}

body.is-authenticated #angles-section .step-two-source-line,
body.is-authenticated #angles-section .step-two-setting {
  min-height: 48px !important;
  display: block !important;
  grid-template-columns: 34px minmax(100px, .8fr) minmax(0, 1.25fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(91,105,158,.12) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated #angles-section .step-two-source-line .step-two-ui-icon,
body.is-authenticated #angles-section .step-two-setting .step-two-ui-icon {
  width: 30px !important;
  height: 30px !important;
  color: #7547ff !important;
  background: rgba(117,71,255,.06) !important;
  border: 1px solid rgba(117,71,255,.14) !important;
  border-radius: 999px !important;
}

body.is-authenticated #angles-section .step-two-source-line span,
body.is-authenticated #angles-section .step-two-setting .builder-control-label {
  color: #07103d !important;
  font-size: 12px !important;
  font-weight: 920 !important;
  vertical-align: middle !important;
}

body.is-authenticated #angles-section .step-two-source-line strong {
  color: #202a5a !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 760 !important;
}

body.is-authenticated #angles-section .step-two-setting .builder-select,
body.is-authenticated #angles-section .step-two-setting .builder-text-input,
body.is-authenticated #angles-section .step-two-length-control {
  width: 100% !important;
  min-width: 0 !important;
}

body.is-authenticated #angles-section .step-two-setting .builder-select {
  min-height: 36px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

body.is-authenticated #angles-section .step-two-length-control {
  min-height: 36px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  border: 1px solid rgba(91,105,158,.16) !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 10px !important;
  margin-top: 10px !important;
}

body.is-authenticated #angles-section .step-two-length-control .builder-chip {
  min-height: 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  background: none !important;
  color: #07103d;
}

body.is-authenticated #angles-section .step-two-length-control .builder-chip.is-active {
  color: #fff !important;
  background: var(--tool-gradient) !important;
}

body.is-authenticated #angles-section .step-two-setting-wide {
  grid-template-columns: 34px 1fr !important;
  align-items: start !important;
}

body.is-authenticated #angles-section .step-two-setting-wide .builder-control-label,
body.is-authenticated #angles-section .step-two-setting-wide .builder-text-input {
  grid-column: 2 !important;
}

body.is-authenticated #angles-section .step-two-setting-wide .builder-text-input {
  min-height: 62px !important;
  padding: 10px 12px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  resize: none !important;
}

body.is-authenticated #angles-section #generate-from-builder-btn {
  min-height: 50px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 930 !important;
}

/* Step 4 premium publish-preview lock: final post ready to copy and publish */
body.is-authenticated #post-ready-section.workspace-step-panel.is-active {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head {
  min-height: 34px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
}

body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head h2,
body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head .muted {
  display: none !important;
}

body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head .workspace-step-chip,
body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head .panel-kicker {
  display: inline-flex !important;
  width: auto !important;
  margin-right: 8px !important;
}

body.is-authenticated #post-ready-section.workspace-step-panel.is-active > .workspace-step-head .section-signal-pill {
  justify-self: end !important;
  align-self: start !important;
}

body.is-authenticated #post-ready-section .tool-step-four-body,
body.is-authenticated #post-ready-section .post-ready-layout {
  height: 100% !important;
  min-height: 0 !important;
}

body.is-authenticated #post-ready-section .post-ready-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(390px, 24vw, 440px) !important;
  gap: clamp(22px, 2vw, 32px) !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-main,
body.is-authenticated #post-ready-section .post-ready-side {
  min-height: 0 !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-main {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

body.is-authenticated #post-ready-section #post-ready-summary {
  display: none !important;
}

body.is-authenticated #post-ready-section .post-ready-card-shell.post-ready-publish-shell {
  height: 100% !important;
  min-height: 0 !important;
  display: block !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-card {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
  gap: 14px !important;
  padding: clamp(18px, 2vw, 26px) !important;
  border: 1px solid rgba(91,105,158,.14) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 94% 7%, rgba(104,69,255,.055), transparent 24%),
    radial-gradient(circle at 5% 4%, rgba(255,104,71,.045), transparent 24%),
    rgba(255,255,255,.94) !important;
  box-shadow: 0 22px 54px rgba(20,32,86,.08), inset 0 1px 0 rgba(255,255,255,.95) !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-head {
  display: flex !important;
  align-items: start !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-head h3 {
  margin: 10px 0 0 !important;
  color: #07103d !important;
  font-size: clamp(20px, 1.45vw, 26px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
  font-weight: 950 !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-head p {
  margin: 7px 0 0 !important;
  color: #687396 !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  font-weight: 760 !important;
}

body.is-authenticated #post-ready-section .post-ready-status-pill {
  flex: 0 0 auto !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(16,168,107,.20) !important;
  background: rgba(16,168,107,.08) !important;
  color: #08784e !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

body.is-authenticated #post-ready-section .post-ready-status-pill span {
  width: 19px !important;
  height: 19px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #10a86b !important;
}

body.is-authenticated #post-ready-section .post-ready-readiness-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.is-authenticated #post-ready-section .post-ready-readiness-card {
  min-height: 58px !important;
  display: grid !important;
  align-content: center !important;
  gap: 4px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(91,105,158,.13) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(20,32,86,.04) !important;
}

body.is-authenticated #post-ready-section .post-ready-readiness-card span {
  color: #8590ad !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
}

body.is-authenticated #post-ready-section .post-ready-readiness-card strong {
  color: #07103d !important;
  font-size: 13px !important;
  line-height: 1.12 !important;
  font-weight: 950 !important;
}

body.is-authenticated #post-ready-section .post-ready-linkedin-preview {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 4px !important;
  padding: clamp(18px, 1.8vw, 14px) !important;
  border: 1px solid rgba(91,105,158,.14) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: inset 0 1px 0 #fff, 0 16px 42px rgba(20,32,86,.055) !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-linkedin-top {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 28px !important;
  gap: 14px !important;
  align-items: center !important;
}

body.is-authenticated #post-ready-section .post-ready-avatar {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #6845ff, #d93adf 56%, #ff6747) !important;
  box-shadow: 0 12px 28px rgba(104,69,255,.22) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

body.is-authenticated #post-ready-section .post-ready-linkedin-top strong {
  display: block !important;
  color: #07103d !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
}

body.is-authenticated #post-ready-section .post-ready-linkedin-top span {
  display: block !important;
  margin-top: 3px !important;
  color: #74809e !important;
  font-size: 12px !important;
  font-weight: 720 !important;
}

body.is-authenticated #post-ready-section .post-ready-linkedin-badge {
  justify-self: end !important;
  width: 25px !important;
  height: 25px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 5px !important;
  color: #fff !important;
  background: #0a66c2 !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  font-family: Arial, sans-serif !important;
}

body.is-authenticated #post-ready-section .post-ready-linkedin-body {
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 2px 6px 8px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #07103d !important;
  white-space: pre-wrap !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
  font-weight: 690 !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(116,80,255,.28) transparent !important;
}

body.is-authenticated #post-ready-section .post-ready-linkedin-body::-webkit-scrollbar {
  width: 7px !important;
}

body.is-authenticated #post-ready-section .post-ready-linkedin-body::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(104,69,255,.30), rgba(255,104,71,.30)) !important;
}

body.is-authenticated #post-ready-section .post-ready-hook-line {
  display: block !important;
  margin-bottom: 2px !important;
  color: #07103d !important;
  font-size: 15.5px !important;
  line-height: 1.48 !important;
  font-weight: 950 !important;
}

body.is-authenticated #post-ready-section .post-ready-hashtag-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(91,105,158,.10) !important;
}

body.is-authenticated #post-ready-section .post-ready-hashtag-row span {
  color: #315bdc !important;
  font-size: 12.5px !important;
  font-weight: 850 !important;
}

body.is-authenticated #post-ready-section .post-ready-image-direction {
  display: grid !important;
  gap: 8px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(91,105,158,.12) !important;
  border-radius: 13px !important;
  background: rgba(248,250,255,.88) !important;
}

body.is-authenticated #post-ready-section .post-ready-image-direction p {
  margin: 0 !important;
  color: #59658f !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-footer {

  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 16px !important;
  align-items: center !important;
  padding-top: 2px !important;
}

body.is-authenticated #post-ready-section .post-ready-post-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0 !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(91,105,158,.12) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.78) !important;
}

body.is-authenticated #post-ready-section .post-ready-post-meta span {
  position: relative !important;
  color: #687396 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  padding: 0 13px !important;
}

body.is-authenticated #post-ready-section .post-ready-post-meta span:first-child {
  padding-left: 0 !important;
}

body.is-authenticated #post-ready-section .post-ready-post-meta span + span::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 1px !important;
  height: 14px !important;
  transform: translateY(-50%) !important;
  background: rgba(91,105,158,.18) !important;
}

body.is-authenticated #post-ready-section .post-ready-footer-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

body.is-authenticated #post-ready-section .post-ready-footer-actions .btn-primary,
body.is-authenticated #post-ready-section .post-ready-footer-actions .btn-secondary {
  min-height: 42px !important;
  border-radius: 12px !important;
  padding: 0 16px !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

body.is-authenticated #post-ready-section .post-ready-footer-actions .btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #6845ff, #d93adf 56%, #ff6747) !important;
  box-shadow: 0 14px 30px rgba(104,69,255,.17), 0 8px 18px rgba(255,104,71,.11) !important;
}

body.is-authenticated #post-ready-section .post-ready-footer-actions .btn-secondary {
  color: #07103d !important;
  border: 1px solid rgba(91,105,158,.14) !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(20,32,86,.035) !important;
}

body.is-authenticated #post-ready-section .post-ready-copy.is-collapsed {
  max-height: none !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-card > .copy-toggle {
  display: none !important;
}

body.is-authenticated #post-ready-section .post-ready-side {
  display: grid !important;
  grid-template-rows: auto auto auto auto !important;
  gap: 14px !important;
  padding: 20px !important;
  border: 1px solid rgba(91,105,158,.14) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 94% 6%, rgba(104,69,255,.055), transparent 28%),
    rgba(255,255,255,.94) !important;
  box-shadow: 0 22px 54px rgba(20,32,86,.08), inset 0 1px 0 rgba(255,255,255,.95) !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated #post-ready-section .post-ready-side > .mini-label,
body.is-authenticated #post-ready-section .post-ready-side-card > .mini-label {
  min-height: 24px !important;
  padding: 0 14px !important;
  color: #6845ff !important;
  border-color: rgba(104,69,255,.14) !important;
  background: rgba(104,69,255,.075) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
}

body.is-authenticated #post-ready-section .post-ready-confidence-scores {
  gap: 12px !important;
}

body.is-authenticated #post-ready-section .evaluation-bar-item {
  display: grid !important;
  gap: 7px !important;
}

body.is-authenticated #post-ready-section .evaluation-bar-label-row {
  color: #687396 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

body.is-authenticated #post-ready-section .evaluation-bar-label-row span:last-child {
  color: #07103d !important;
  font-weight: 950 !important;
}

body.is-authenticated #post-ready-section .evaluation-bar-track {
  height: 7px !important;
  border-radius: 999px !important;
  background: #edf1f7 !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .evaluation-bar-track span,
body.is-authenticated #post-ready-section .evaluation-bar-fill {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #ff6847, #ec3f9f 45%, #6845ff 72%, #46b7ff) !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-checks {
  min-height: 0 !important;
  display: grid !important;
  gap: 10px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 4px !important;
}

body.is-authenticated #post-ready-section .post-ready-check {
  padding: 14px 16px !important;
  border-radius: 13px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85) !important;
}

body.is-authenticated #post-ready-section .post-ready-check-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  color: #07103d !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

body.is-authenticated #post-ready-section .post-ready-check-head span:last-child {
  font-size: 12px !important;
}

body.is-authenticated #post-ready-section .post-ready-check p {
  margin: 8px 0 0 !important;
  color: #687396 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  font-weight: 720 !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 10px !important;
  align-items: center !important;
  margin-top: 0 !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-actions .btn-primary,
body.is-authenticated #post-ready-section .post-ready-publish-actions .btn-feedback {
  min-height: 48px !important;
  border-radius: 12px !important;
  padding: 0 18px !important;
  color: #fff !important;
  border: 0 !important;
  background: linear-gradient(135deg, #ff6847 0%, #ec3f9f 50%, #46a9ff 100%) !important;
  box-shadow: 0 14px 30px rgba(236,63,159,.15) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-actions .btn-feedback {
  min-width: 70px !important;
}

body.is-authenticated #post-ready-section .feedback-state {
  grid-column: 1 / -1 !important;
  color: #687396 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-source {
  color: #687396 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 760 !important;
}

body.is-authenticated #post-ready-section .is-copied {
  background: #10a86b !important;
  color: #fff !important;
}

body.is-authenticated #post-ready-section .is-copy-error {
  background: #ff6847 !important;
  color: #fff !important;
}

@media (max-width: 1180px) {
  body.is-authenticated #post-ready-section .post-ready-layout {
    grid-template-columns: 1fr !important;
    overflow-y: auto !important;
  }

  body.is-authenticated #post-ready-section .post-ready-publish-card,
  body.is-authenticated #post-ready-section .post-ready-side {
    height: auto !important;
    min-height: 0 !important;
  }
}

@media (max-width: 760px) {
  body.is-authenticated #post-ready-section .post-ready-readiness-strip,
  body.is-authenticated #post-ready-section .post-ready-publish-footer,
  body.is-authenticated #post-ready-section .post-ready-publish-actions {
    grid-template-columns: 1fr !important;
  }

  body.is-authenticated #post-ready-section .post-ready-footer-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}
body.is-authenticated #post-ready-section .copy-toggle {
  display: none !important;
}

/* Step 4 image-match enhancement: final post + inline publishing checks + full preview modal */
body.is-authenticated #post-ready-section .post-ready-publish-card {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 18px !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-head h3,
body.is-authenticated #post-ready-section .post-ready-readiness-strip {
  display: none !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-head p {
  margin-top: 12px !important;
  font-size: 13px !important;
  color: #5f6a91 !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-grid {
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(330px, 32%, 430px) !important;
  gap: 18px !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-grid .post-ready-linkedin-preview,
body.is-authenticated #post-ready-section .post-ready-inline-checks {
  min-height: 0 !important;
  height: 100% !important;
  border: 1px solid rgba(91,105,158,.14) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: inset 0 1px 0 #fff, 0 16px 42px rgba(20,32,86,.055) !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-grid .post-ready-linkedin-preview {
  grid-template-rows: auto minmax(0, 1fr) auto auto !important;
}

body.is-authenticated #post-ready-section .post-ready-inline-checks {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 16px !important;
  padding: clamp(18px, 1.8vw, 24px) !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-inline-checks .mini-label {
  justify-self: start !important;
}

body.is-authenticated #post-ready-section .post-ready-inline-checks .post-ready-publish-checks {
  overflow-y: auto !important;
  padding-right: 4px !important;
}

body.is-authenticated #post-ready-section .post-ready-linkedin-body {
  font-size: 14.5px !important;
  line-height: 1.68 !important;
}

body.is-authenticated #post-ready-section .post-ready-post-meta span:last-child i {
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  margin-right: 7px !important;
  border-radius: 999px !important;
  background: #10a86b !important;
  vertical-align: 1px !important;
}

body.is-authenticated #post-ready-section .post-ready-side {
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  overflow: hidden !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card:has(#post-ready-improvements),
body.is-authenticated #post-ready-section .post-ready-side-card:has(#post-ready-checks) {
  display: none !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card:has(#post-ready-scores) {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  gap: 12px !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card:has(#post-ready-scores) .panel-kicker::after {
  content: "Thinking + Analysis";
  display: block;
  margin-top: 14px;
  color: #07103d;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 950;
  text-transform: none;
}

body.is-authenticated #post-ready-section .post-ready-side-card:has(#post-ready-scores)::after {
  content: "BEST DEFAULT";
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(104, 69, 255, .12);
  background: rgba(104, 69, 255, .075);
  color: var(--tool-purple);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .035em;
  order: -1;
}

body.is-authenticated #post-ready-section #post-ready-scores {
  overflow: visible !important;
  align-content: start !important;
}

body.is-authenticated #post-ready-section #post-ready-source-summary {
  display: none !important;
}

body.is-authenticated #post-ready-section .post-ready-side-card:has(#post-ready-issues) {
  align-self: end !important;
  display: grid !important;
  gap: 12px !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-actions {
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-actions .btn-primary {
  grid-column: 1 / -1 !important;
}

body.is-authenticated #post-ready-section .post-ready-publish-actions .btn-feedback {
  min-width: 0 !important;
}

body.is-authenticated #post-ready-section .post-ready-check.is-pass {
  border-color: rgba(16,168,107,.22) !important;
  background: linear-gradient(180deg, rgba(239,255,249,.98), rgba(246,255,252,.88)) !important;
}

body.is-authenticated #post-ready-section .post-ready-check.is-watch {
  border-color: rgba(255,104,71,.28) !important;
  background: linear-gradient(180deg, rgba(255,247,242,.98), rgba(255,250,246,.88)) !important;
}

body.is-authenticated #post-ready-section .post-ready-footer-actions .btn-primary::before,
body.is-authenticated #post-ready-section .post-ready-publish-actions .btn-primary::before {
  content: "▣";
  margin-right: 8px;
  font-weight: 950;
}

body.is-authenticated #post-ready-section .post-ready-footer-actions .btn-secondary[data-action="copy-hashtags"]::before {
  content: "#";
  margin-right: 8px;
  font-size: 18px;
  font-weight: 950;
}

body.is-authenticated #post-ready-section .post-ready-footer-actions .btn-secondary[data-action="post-ready-preview"]::before {
  content: "↗";
  margin-right: 8px;
  font-weight: 950;
}

body.post-ready-preview-open {
  overflow: hidden !important;
}

body.is-authenticated .post-ready-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
}

body.is-authenticated .post-ready-preview-modal.hidden,
body.is-authenticated .post-ready-preview-modal[hidden] {
  display: none !important;
}

body.is-authenticated .post-ready-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 23, 58, .45);
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
}

body.is-authenticated .post-ready-preview-dialog {
  position: relative;
  width: min(620px, calc(100vw - 42px));
  max-height: min(86vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(91,105,158,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 38px 110px rgba(10,17,55,.30), inset 0 1px 0 rgba(255,255,255,.98);
  overflow: hidden;
}

body.is-authenticated .post-ready-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.is-authenticated .post-ready-preview-header h3 {
  margin: 0;
  color: #07103d;
  font-size: 18px;
  letter-spacing: -.02em;
  font-weight: 950;
}

body.is-authenticated .post-ready-preview-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #526085;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.is-authenticated .post-ready-preview-body {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

body.is-authenticated .post-ready-linkedin-modal-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(91,105,158,.15);
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 18px 44px rgba(20,32,86,.06);
}

body.is-authenticated .post-ready-linkedin-modal-top {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 30px;
  gap: 14px;
  align-items: start;
}

body.is-authenticated .post-ready-linkedin-modal-top strong {
  display: block;
  color: #07103d;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 950;
}

body.is-authenticated .post-ready-linkedin-modal-top span,
body.is-authenticated .post-ready-linkedin-modal-top small {
  display: block;
  margin-top: 3px;
  color: #657193;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

body.is-authenticated .post-ready-linkedin-modal-copy {
  color: #07103d;
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 650;
}

body.is-authenticated .post-ready-modal-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #0a66c2;
  font-size: 12.5px;
  font-weight: 800;
}

body.is-authenticated .post-ready-modal-meta {
  display: flex;
  gap: 12px;
  color: #74809e;
  font-size: 12px;
  font-weight: 760;
}

body.is-authenticated .post-ready-modal-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(91,105,158,.12);
  color: #58658b;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1180px) {
  body.is-authenticated #post-ready-section .post-ready-publish-grid {
    grid-template-columns: 1fr !important;
    overflow-y: auto !important;
  }

  body.is-authenticated #post-ready-section .post-ready-inline-checks {
    height: auto !important;
  }
}

@media (max-width: 760px) {
  body.is-authenticated .post-ready-preview-dialog {
    width: calc(100vw - 24px);
    padding: 18px;
  }

  body.is-authenticated .post-ready-modal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Step 4 final-analysis heading cleanup */
body.is-authenticated #post-ready-section .post-ready-side-card:has(#post-ready-scores)::after,
body.is-authenticated #post-ready-section .post-ready-side-card:has(#post-ready-scores) .panel-kicker::after {
  content: none !important;
}

body.is-authenticated #post-ready-section .post-ready-analysis-title {
  margin: 2px 0 0 !important;
  color: #07103d !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
  font-weight: 950 !important;
}

body.is-authenticated #post-ready-section .post-ready-analysis-badge {
  width: fit-content !important;
  min-height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(104, 69, 255, .12) !important;
  background: rgba(104, 69, 255, .075) !important;
  color: var(--tool-purple) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
}

/* =========================================================
   Step 3 image-match final override: Draft Snapshot + Insight Check
   Scope: only Step 3 / output-section. Does not touch Step 1, 2, 4,
   Profile, History, top nav, or bottom workflow.
   ========================================================= */
body.is-authenticated #output-section.workspace-step-panel.is-active {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 8px 0 14px !important;
  pointer-events: none !important;
}

body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head > div:first-child {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head h2,
body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head .muted {
  display: none !important;
}

body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head .workspace-step-chip,
body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head .panel-kicker,
body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head .section-signal-pill {
  display: inline-flex !important;
  min-height: 24px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(104, 69, 255, .11) !important;
  border-radius: 999px !important;
  background: rgba(104, 69, 255, .105) !important;
  color: #6845ff !important;
  box-shadow: none !important;
  font-size: 11px !important;
  letter-spacing: .035em !important;
  font-weight: 940 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

body.is-authenticated #output-section .tool-step-three-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(390px, 28vw, 510px) !important;
  gap: clamp(22px, 2.2vw, 34px) !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  align-items: stretch !important;
}

body.is-authenticated #output-section #signals-section.signal-analysis-panel,
body.is-authenticated #output-section #summary-card,
body.is-authenticated #output-section #results-nudge {
  display: none !important;
}

body.is-authenticated #output-section .workspace-output-column,
body.is-authenticated #output-section #results,
body.is-authenticated #output-section .thinking-layer-results,
body.is-authenticated #output-section .thinking-layer-card,
body.is-authenticated #output-section .thinking-layer-shell,
body.is-authenticated #output-section .step3-premium-shell {
  display: contents !important;
}

body.is-authenticated #output-section .step3-draft-panel {
  grid-column: 1 !important;
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(91, 105, 158, .14) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 22px 58px rgba(25, 34, 82, .075), inset 0 1px 0 rgba(255,255,255,.98) !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .step3-draft-card {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 18px !important;
  padding: 22px 32px 18px !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .step3-card-heading {
  margin: 0 !important;
  color: var(--tool-ink) !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
  font-weight: 940 !important;
}

body.is-authenticated #output-section .step3-draft-grid {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(460px, 1fr) minmax(270px, 360px) !important;
  gap: clamp(22px, 2vw, 34px) !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .step3-linkedin-card {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: 16px !important;
  padding: 18px 24px 0 !important;
  border: 1px solid rgba(91,105,158,.14) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 16px 40px rgba(25,34,82,.055), inset 0 1px 0 #fff !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .thinking-linkedin-head {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) 34px !important;
  gap: 16px !important;
  align-items: center !important;
  margin: 0 !important;
}

body.is-authenticated #output-section .thinking-linkedin-avatar {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #6845ff 0%, #d93adf 50%, #ff6747 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(104, 69, 255, .18) !important;
  font-size: 24px !important;
  font-weight: 940 !important;
}

body.is-authenticated #output-section .thinking-linkedin-head strong {
  display: block !important;
  color: var(--tool-ink) !important;
  font-size: 15px !important;
  line-height: 1.1 !important;
  font-weight: 940 !important;
}

body.is-authenticated #output-section .thinking-linkedin-head span:not(.thinking-linkedin-icon) {
  display: block !important;
  margin-top: 4px !important;
  color: #59658f !important;
  font-size: 12.5px !important;
  font-weight: 730 !important;
}

body.is-authenticated #output-section .thinking-linkedin-icon {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  justify-self: end !important;
  border-radius: 8px !important;
  background: #0a66c2 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 940 !important;
}

body.is-authenticated #output-section .thinking-linkedin-hook {
  margin: 0 !important;
  color: var(--tool-ink) !important;
  font-size: 14px !important;
  line-height: 1.42 !important;
  font-weight: 940 !important;
}

body.is-authenticated #output-section .step3-linkedin-card .thinking-layer-locked-draft {
  min-height: 0 !important;
  height: 100% !important;
  padding: 0 8px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--tool-ink) !important;
  font-size: 13.55px !important;
  line-height: 1.58 !important;
  font-weight: 760 !important;
  white-space: pre-wrap !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(116, 80, 255, .28) transparent !important;
}

body.is-authenticated #output-section .step3-linkedin-card .thinking-layer-locked-draft::-webkit-scrollbar,
body.is-authenticated #output-section .step3-insight-panel::-webkit-scrollbar {
  width: 7px !important;
}

body.is-authenticated #output-section .step3-linkedin-card .thinking-layer-locked-draft::-webkit-scrollbar-thumb,
body.is-authenticated #output-section .step3-insight-panel::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(104,69,255,.25), rgba(255,104,71,.32)) !important;
}

body.is-authenticated #output-section .thinking-linkedin-meta-row {
  display: flex !important;
  align-items: center !important;
  min-height: 40px !important;
  margin: 0 -24px !important;
  padding: 0 22px !important;
  border-top: 1px solid rgba(91,105,158,.11) !important;
  border-radius: 0 !important;
  background: rgba(250,252,255,.94) !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .thinking-linkedin-meta-row span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  padding: 0 16px !important;
  border-left: 1px solid rgba(91,105,158,.12) !important;
  color: #59658f !important;
  font-size: 11.5px !important;
  font-weight: 790 !important;
  white-space: nowrap !important;
}

body.is-authenticated #output-section .thinking-linkedin-meta-row span:first-child {
  border-left: 0 !important;
  padding-left: 0 !important;
}

body.is-authenticated #output-section .thinking-linkedin-meta-row i {
  width: 8px !important;
  height: 8px !important;
  display: inline-block !important;
  border-radius: 999px !important;
  background: #10a86b !important;
}

body.is-authenticated #output-section .step3-snapshot-stack {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .thinking-snapshot-card {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 4px 20px !important;
  border: 1px solid rgba(91,105,158,.14) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 14px 34px rgba(25,34,82,.052), inset 0 1px 0 #fff !important;
}

body.is-authenticated #output-section .thinking-snapshot-icon {
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 11px !important;
  background: rgba(104,69,255,.11) !important;
  color: #6845ff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

body.is-authenticated #output-section .thinking-snapshot-icon-teal { background: rgba(30,190,184,.12) !important; color: #0ca6a0 !important; }
body.is-authenticated #output-section .thinking-snapshot-icon-orange { background: rgba(255,104,71,.12) !important; color: #ff6847 !important; }
body.is-authenticated #output-section .thinking-snapshot-icon-green { background: rgba(16,168,107,.12) !important; color: #10a86b !important; }

body.is-authenticated #output-section .thinking-snapshot-card strong {
  display: block !important;
  color: var(--tool-ink) !important;
  font-size: 13.5px !important;
  line-height: 1.2 !important;
  font-weight: 940 !important;
}

body.is-authenticated #output-section .thinking-snapshot-card span:not(.thinking-snapshot-icon) {
  display: block !important;
  margin-top: 8px !important;
  color: #36416c !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 720 !important;
}

body.is-authenticated #output-section .step3-research-panel {
  display: grid !important;
  gap: 10px !important;
  padding: 0 32px 14px !important;
  border-top: 1px solid rgba(91,105,158,.10) !important;
  background: rgba(255,255,255,.96) !important;
}

body.is-authenticated #output-section .step3-research-toggle {
  justify-self: start !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
  color: var(--tool-purple) !important;
  border: 1px solid rgba(104,69,255,.22) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 10px 22px rgba(25,34,82,.045), inset 0 1px 0 #fff !important;
  font-size: 12px !important;
  font-weight: 880 !important;
}

body.is-authenticated #output-section .step3-research-panel .thinking-research-box {
  display: grid !important;
  gap: 10px !important;
  padding: 14px !important;
  border: 1px solid rgba(91,105,158,.14) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,255,.92)) !important;
}

body.is-authenticated #output-section .step3-research-panel .thinking-research-box.hidden,
body.is-authenticated #output-section .step3-research-panel .thinking-research-box[hidden] {
  display: none !important;
}

body.is-authenticated #output-section .step3-research-head {
  padding: 0 !important;
}

body.is-authenticated #output-section .step3-research-panel .thinking-research-help {
  margin: 5px 0 0 !important;
  color: var(--tool-muted) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
}

body.is-authenticated #output-section .step3-research-panel .thinking-research-textarea {
  min-height: 86px !important;
  max-height: 150px !important;
  resize: vertical !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(91,105,158,.16) !important;
  background: rgba(255,255,255,.98) !important;
  color: var(--tool-ink) !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
}

body.is-authenticated #output-section .step3-action-bar {
  min-height: 84px !important;
  display: grid !important;
  grid-template-columns: minmax(150px, 220px) minmax(160px, 230px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 16px 32px !important;
  border-top: 1px solid rgba(91,105,158,.12) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(249,251,255,.96)) !important;
}

body.is-authenticated #output-section .step3-action-bar .btn-secondary {
  width: 100% !important;
  min-height: 50px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(91,105,158,.16) !important;
  background: rgba(255,255,255,.96) !important;
  color: var(--tool-ink) !important;
  box-shadow: 0 10px 26px rgba(20,32,86,.045), inset 0 1px 0 #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body.is-authenticated #output-section .step3-action-bar .btn-secondary:first-child {
  color: #6845ff !important;
  border-color: rgba(104,69,255,.28) !important;
}

body.is-authenticated #output-section .thinking-layer-action-note {
  justify-self: start !important;
  color: #59658f !important;
  font-size: 12px !important;
  font-weight: 720 !important;
}

body.is-authenticated #output-section .thinking-layer-action-note::before {
  content: "◇" !important;
  margin-right: 8px !important;
  color: #6845ff !important;
}

body.is-authenticated #output-section .step3-insight-panel {
  grid-column: 2 !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: 18px !important;
  padding: 24px !important;
  border: 1px solid rgba(91,105,158,.14) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 22px 58px rgba(25,34,82,.08), inset 0 1px 0 rgba(255,255,255,.96) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.is-authenticated #output-section .step3-insight-head {
  display: grid !important;
  gap: 12px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid rgba(91,105,158,.12) !important;
}

body.is-authenticated #output-section .step3-insight-head h3 {
  margin: 8px 0 0 !important;
  color: var(--tool-ink) !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  font-weight: 940 !important;
  letter-spacing: -.025em !important;
}

body.is-authenticated #output-section .step3-insight-head .recommendation-badge,
body.is-authenticated #output-section .step3-insight-head .pill,
body.is-authenticated #output-section .step3-insight-head span[class*="recommend"] {
  justify-self: start !important;
}

body.is-authenticated #output-section .step3-score-block {
  display: grid !important;
  gap: 13px !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid rgba(91,105,158,.12) !important;
}

body.is-authenticated #output-section .step3-score-block .label,
body.is-authenticated #output-section .step3-draft-feedback .label {
  color: #7b86a8 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  font-weight: 940 !important;
}

body.is-authenticated #output-section .evaluation-bar-grid {
  display: grid !important;
  gap: 13px !important;
}

body.is-authenticated #output-section .evaluation-bar-item {
  display: grid !important;
  gap: 8px !important;
}

body.is-authenticated #output-section .evaluation-bar-label-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  color: #344067 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body.is-authenticated #output-section .evaluation-bar-label-row span:last-child {
  color: #667197 !important;
  font-weight: 940 !important;
}

body.is-authenticated #output-section .evaluation-bar-track {
  height: 7px !important;
  border-radius: 999px !important;
  background: #edf1f7 !important;
  overflow: hidden !important;
}

body.is-authenticated #output-section .evaluation-bar-track span,
body.is-authenticated #output-section .evaluation-bar-fill {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #6845ff, #d93adf 55%, #ff6747) !important;
}

body.is-authenticated #output-section .thinking-layer-insight-callout,
body.is-authenticated #output-section .thinking-layer-insight-copy,
body.is-authenticated #output-section .thinking-layer-feedback-grid {
  display: none !important;
}

body.is-authenticated #output-section .step3-draft-feedback {
  height: 325px !important;
  display: block !important;
  grid-template-rows: auto minmax(126px, 1fr) !important;
  gap: 12px !important;
  align-content: stretch !important;
  
}
aside .step-confirm-button-container
{      display: flex !important;
    justify-content: flex-end !important;
    padding-top: 12px !important;
    background-color: #ffff !important;
    width: 25% !important;
    position: absolute;
    bottom: 20px !important;
}

body.is-authenticated #output-section .step3-draft-feedback .thinking-research-help {
  margin: 9px 0 0 !important;
  color: #59658f !important;
  font-size: 13px !important;
  line-height: 1.48 !important;
  font-weight: 650 !important;
}

body.is-authenticated #output-section .step3-draft-feedback .thinking-research-textarea {
  height: 125px !important;
  padding: 18px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(91,105,158,.16) !important;
  background: rgba(255,255,255,.96) !important;
  color: var(--tool-ink) !important;
  box-shadow: inset 0 1px 0 #fff !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  resize: none !important;
}

body.is-authenticated #output-section .thinking-layer-final-btn {
  align-self: end !important;
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 12px !important;
  color: #fff !important;
  border: 0 !important;
  background: linear-gradient(135deg, #ff6847 0%, #ec3f9f 52%, #3ba3ff 100%) !important;
  box-shadow: 0 18px 36px rgba(104,69,255,.20), 0 10px 24px rgba(255,104,71,.14) !important;
  font-size: 15px !important;
  font-weight: 930 !important;
}

@media (max-width: 1320px) {
  body.is-authenticated #output-section .tool-step-three-body {
    grid-template-columns: minmax(0, 1fr) 390px !important;
  }

  body.is-authenticated #output-section .step3-draft-grid {
    grid-template-columns: minmax(0, 1fr) 300px !important;
  }

  body.is-authenticated #output-section .thinking-linkedin-meta-row {
    flex-wrap: wrap !important;
    height: auto !important;
    padding-block: 8px !important;
    gap: 8px 0 !important;
  }
}

@media (max-width: 1100px) {
  body.is-authenticated #output-section.workspace-step-panel.is-active {
    overflow: visible !important;
  }

  body.is-authenticated #output-section .tool-step-three-body {
    grid-template-columns: 1fr !important;
    overflow-y: auto !important;
    padding-bottom: 12px !important;
  }

  body.is-authenticated #output-section .workspace-output-column,
  body.is-authenticated #output-section #results,
  body.is-authenticated #output-section .thinking-layer-results,
  body.is-authenticated #output-section .thinking-layer-card,
  body.is-authenticated #output-section .thinking-layer-shell,
  body.is-authenticated #output-section .step3-premium-shell {
    display: grid !important;
    min-height: 0 !important;
  }

  body.is-authenticated #output-section .step3-draft-panel,
  body.is-authenticated #output-section .step3-insight-panel {
    grid-column: 1 !important;
    height: auto !important;
    min-height: 0 !important;
  }
}

@media (max-width: 760px) {
  body.is-authenticated #output-section.workspace-step-panel.is-active {
    padding: 14px 12px 210px !important;
  }

  body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head,
  body.is-authenticated #output-section.workspace-step-panel.is-active > .workspace-step-head > div:first-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding-inline: 0 !important;
  }

  body.is-authenticated #output-section .step3-draft-card {
    padding: 18px !important;
  }

  body.is-authenticated #output-section .step3-draft-grid {
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }

  body.is-authenticated #output-section .step3-linkedin-card {
    min-height: 520px !important;
  }

  body.is-authenticated #output-section .step3-snapshot-stack {
    grid-template-rows: none !important;
    height: auto !important;
  }

  body.is-authenticated #output-section .step3-action-bar {
    grid-template-columns: 1fr !important;
    padding: 14px 18px !important;
  }

  body.is-authenticated #output-section .step3-insight-panel {
    padding: 18px !important;
  }

}
