:root {
  --page: #f4f6fa;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --ink: #111827;
  --muted: #667085;
  --rule: #d8dee8;
  --brand: #2457c5;
  --brand-dark: #173b82;
  --danger: #b42318;
  --success: #067647;
  --warning: #b54708;
  --shadow: 0 18px 55px rgba(16, 24, 40, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  line-height: 1.5;
}

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  margin-top: 8px;
  font-size: 30px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 16px;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.label {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

input[type="color"] {
  height: 42px;
  padding: 4px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(36, 87, 197, 0.14);
}

.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  min-height: 42px;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--rule);
}

.btn.secondary:hover {
  background: var(--panel-soft);
}

.btn.danger {
  background: #fff;
  color: var(--danger);
  border-color: #f3b7b1;
}

.btn.danger:hover {
  background: #fff1f0;
}

.btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.error,
.success {
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 650;
}

.error {
  color: var(--danger);
  background: #fff1f0;
  border: 1px solid #f3b7b1;
}

.success {
  color: var(--success);
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(49, 86, 201, 0.14), transparent 34%),
    #0b1220;
  color: #fff;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-mark {
  display: grid;
  gap: 4px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-mark strong {
  font-size: 19px;
  letter-spacing: 0;
}

.brand-mark span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  width: 100%;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  padding: 12px 13px;
  font-weight: 750;
}

.nav button.active,
.nav button:hover {
  background: #fff;
  color: #111827;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.main {
  min-width: 0;
  padding: 32px 36px;
}

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

.topbar h1 {
  margin-top: 0;
  font-size: 31px;
}

.topbar p {
  margin-top: 6px;
  max-width: 760px;
  font-size: 15px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.session-pill {
  display: grid;
  gap: 1px;
  min-width: 150px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  padding: 8px 11px;
}

.session-pill strong {
  font-size: 13px;
  line-height: 1.15;
}

.session-pill span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.panel.pad {
  padding: 18px;
}

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

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

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

.admin-brand-grid {
  grid-template-columns: minmax(520px, 0.92fr) minmax(420px, 1.08fr);
  align-items: start;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-title-row p {
  margin-top: 5px;
  font-size: 14px;
}

.brand-form-panel,
.brand-list-panel {
  align-self: start;
}

.brand-list,
.user-list {
  display: grid;
  gap: 10px;
}

.row-card {
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 7px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-row {
  padding: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.brand-row:hover {
  border-color: #b8c2d4;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.brand-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-box {
  width: 58px;
  height: 58px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.logo-variants {
  display: grid;
  gap: 14px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: #fbfcfe;
  padding: 14px;
}

.logo-variants h3 {
  font-size: 15px;
}

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

.logo-variant-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: #fff;
  padding: 10px;
  min-width: 0;
}

.logo-variant-preview {
  height: 86px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background:
    linear-gradient(45deg, #f3f5f8 25%, transparent 25%),
    linear-gradient(-45deg, #f3f5f8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f3f5f8 75%),
    linear-gradient(-45deg, transparent 75%, #f3f5f8 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-variant-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.logo-variant-preview span {
  color: var(--muted);
  font-weight: 900;
}

.file-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #c7d7fe;
  border-radius: 7px;
  background: #eef4ff;
  color: #2146a3;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  text-align: center;
}

.file-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-pick:hover {
  border-color: var(--brand);
  background: #e0eaff;
}

.radio-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 8px 9px;
  background: var(--panel-soft);
}

.radio-line input {
  width: auto;
}

.swatches {
  display: flex;
  gap: 5px;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(16, 24, 40, 0.16);
}

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

.tab {
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 9px 12px;
  font-weight: 800;
}

.tab.active {
  background: #eaf0ff;
  border-color: #9db7ff;
  color: #173b82;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(430px, 520px) minmax(460px, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1480px;
}

.generator-form {
  position: sticky;
  top: 18px;
}

.studio-panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.07);
  gap: 0;
  overflow: hidden;
}

.workbench-section {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f5;
}

.workbench-section:last-child {
  border-bottom: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.section-kicker {
  color: #475467;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-field {
  min-width: 230px;
  max-width: 280px;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(150px, 0.7fr);
  gap: 12px;
  align-items: end;
}

.preview-strip {
  display: grid;
  gap: 16px;
}

.output-desk {
  position: sticky;
  top: 18px;
}

.brand-guidance {
  display: grid;
  gap: 12px;
  border: 1px solid #d8e1f3;
  border-radius: 10px;
  background:
    linear-gradient(135deg, #ffffff, #f2f6ff);
  padding: 14px;
}

.brand-guidance-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.guidance-logo {
  width: 60px;
  height: 60px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

.brand-guidance strong {
  display: block;
  margin-top: 3px;
  color: #173b82;
  font-size: 17px;
}

.brand-guidance p {
  color: #344054;
  font-size: 13px;
}

.brand-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.brand-meta-row span {
  border: 1px solid #d5def0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.brand-palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.brand-palette span {
  min-height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.12);
}

.guidance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guidance-tags span,
.helper-note {
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
  padding: 5px 8px;
}

.helper-note {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: #fff;
  min-height: 43px;
}

.helper-note span {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.helper-note strong {
  font-size: 14px;
}

.topic-guidance {
  display: grid;
  gap: 10px;
  border: 1px solid #d5d9e2;
  border-radius: 10px;
  background: #fbfcfe;
  padding: 14px;
}

.topic-guidance strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.topic-digest {
  display: grid;
  gap: 7px;
}

.topic-digest p {
  display: grid;
  gap: 2px;
  color: #344054;
  font-size: 12px;
  border: 1px solid #eaedf3;
  border-radius: 8px;
  background: #fff;
  padding: 8px 9px;
}

.topic-guidance b {
  color: var(--ink);
  font-size: 12px;
}

.topic-digest span {
  line-height: 1.35;
}

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

.knowledge-card {
  align-content: start;
}

.knowledge-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.small-logo {
  width: 48px;
  height: 48px;
}

.knowledge-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-stats span {
  border-radius: 999px;
  background: #eef4ff;
  color: #173b82;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.knowledge-groups {
  display: grid;
  gap: 10px;
}

.knowledge-group {
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 10px;
  background: var(--panel-soft);
}

.knowledge-group strong {
  display: block;
  margin-bottom: 4px;
}

.format-picker {
  display: grid;
  gap: 10px;
}

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

.format-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  min-height: 82px;
}

.format-card:has(input:checked) {
  border-color: var(--brand);
  background: #f2f6ff;
  box-shadow: 0 0 0 3px rgba(36, 87, 197, 0.1);
}

.format-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.format-card > :not(input) {
  pointer-events: none;
}

.format-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #eef2f8;
  color: #344054;
  font-size: 14px;
  font-weight: 950;
}

.format-card:has(input:checked) .format-icon {
  background: var(--brand);
  color: #fff;
}

.format-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

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

.format-card em {
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.wide-btn {
  width: 100%;
}

.card-stage {
  overflow: auto;
  padding: 16px;
  background: #edf0f4;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

.social-card {
  --primary: #111827;
  --secondary: #2563eb;
  --accent: #f59e0b;
  --bg: #ffffff;
  --text: #111827;
  --secondary-rgb: 37, 99, 235;
  --accent-rgb: 245, 158, 11;
  --text-rgb: 17, 24, 39;
  width: 360px;
  height: 360px;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
}

.social-card.portrait {
  height: 450px;
}

.social-card.story {
  height: 640px;
  width: 360px;
}

.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(var(--secondary-rgb), 0.12), transparent 42%),
    radial-gradient(circle at 88% 16%, rgba(var(--accent-rgb), 0.22), transparent 28%);
  pointer-events: none;
}

.card-top,
.card-body,
.card-bottom {
  position: relative;
  z-index: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
}

.card-logo {
  height: 40px;
  max-width: 145px;
  object-fit: contain;
}

.fallback-logo {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-tag {
  color: var(--secondary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

.card-body {
  align-self: center;
  display: grid;
  gap: 14px;
}

.card-kicker {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-title {
  font-size: 34px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.portrait .card-title {
  font-size: 37px;
}

.story .card-title {
  font-size: 42px;
}

.card-summary {
  color: rgba(var(--text-rgb), 0.78);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 650;
}

.story .card-summary {
  font-size: 19px;
}

.card-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-top: 4px solid var(--accent);
  padding-top: 14px;
  font-size: 13px;
  font-weight: 800;
}

.card-cta {
  color: var(--secondary);
}

.card-url {
  text-align: right;
  color: rgba(var(--text-rgb), 0.68);
}

.question-card {
  --primary: #111827;
  --secondary: #2563eb;
  --accent: #f59e0b;
  --bg: #ffffff;
  --text: #111827;
  --secondary-rgb: 37, 99, 235;
  --accent-rgb: 245, 158, 11;
  --text-rgb: 17, 24, 39;
  width: 360px;
  height: 360px;
  padding: 26px;
  background: var(--bg);
  color: var(--text);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
}

.question-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(var(--secondary-rgb), 0.09), transparent 46%),
    linear-gradient(0deg, rgba(var(--accent-rgb), 0.13), transparent 34%);
}

.question-card > * {
  position: relative;
  z-index: 1;
}

.question-top,
.question-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.question-top span {
  color: var(--secondary);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.question-main {
  align-self: center;
  display: grid;
  gap: 10px;
}

.question-role {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-main h3 {
  font-size: 29px;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.question-main p {
  color: rgba(var(--text-rgb), 0.78);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.33;
}

.question-options {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: option;
}

.question-options li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(var(--text-rgb), 0.14);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  padding: 6px 8px;
  color: rgba(var(--text-rgb), 0.84);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.question-options li::before {
  counter-increment: option;
  content: counter(option, upper-alpha);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.answer-strip {
  border-left: 5px solid var(--accent);
  background: rgba(255, 255, 255, 0.74);
  padding: 8px 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.question-bottom {
  border-top: 3px solid var(--accent);
  padding-top: 11px;
  color: rgba(var(--text-rgb), 0.72);
  font-size: 12px;
  font-weight: 850;
}

.question-bottom strong {
  color: var(--secondary);
}

.question-defence {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 238, 0.92)),
    var(--bg);
}

.question-neet {
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.88), rgba(255, 255, 255, 0.95)),
    var(--bg);
}

.question-ctet {
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(239, 246, 255, 0.9)),
    var(--bg);
}

.question-law,
.question-ias,
.question-clat {
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.9)),
    var(--bg);
}

.role-question .question-main h3 {
  font-size: 27px;
}

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

.cost-row span,
.verify-pill {
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
}

.verify-pill.approved {
  color: var(--success);
  border-color: #abefc6;
  background: #ecfdf3;
}

.verify-pill.corrected {
  color: var(--warning);
  border-color: #fedf89;
  background: #fffaeb;
}

.verify-pill.needs_human_review {
  color: var(--danger);
  border-color: #f3b7b1;
  background: #fff1f0;
}

.mock-question-mark {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--secondary);
  color: #fff;
  font-size: 48px;
  font-weight: 950;
}

.caption-box {
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 14px;
  color: #344054;
}

.output-empty {
  min-height: 620px;
  padding: 28px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.96)),
    linear-gradient(135deg, var(--secondary), var(--accent));
}

.output-empty-copy {
  display: grid;
  gap: 6px;
  text-align: center;
}

.output-empty-copy h2 {
  font-size: 24px;
}

.output-empty-copy p {
  color: var(--muted);
  font-weight: 650;
}

.preview-mock-card {
  width: min(360px, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
    linear-gradient(135deg, rgba(36, 87, 197, 0.1), rgba(245, 158, 11, 0.16));
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 26px;
}

.mock-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.mock-card-top img {
  max-width: 132px;
  max-height: 44px;
  object-fit: contain;
}

.mock-card-top strong {
  color: var(--primary);
  font-size: 16px;
  font-weight: 950;
}

.mock-card-top span {
  width: 74px;
  height: 8px;
  border-radius: 999px;
  background: var(--secondary);
}

.mock-card-line {
  height: 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.12);
}

.mock-card-line.strong {
  height: 38px;
  width: 88%;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.82);
}

.mock-card-line.short {
  width: 64%;
}

.mock-card-bottom {
  height: 10px;
  width: 52%;
  border-radius: 999px;
  background: var(--accent);
}

.output-empty-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.output-empty-footer span {
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.hidden {
  display: none !important;
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav {
    display: flex;
    overflow-x: auto;
  }

  .nav button {
    width: auto;
    white-space: nowrap;
  }

  .sidebar-footer {
    display: none;
  }

  .preview-layout,
  .grid.two,
  .grid.three,
  .logo-variant-grid,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .generator-form,
  .output-desk {
    position: static;
  }

  .preview-layout {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .main {
    padding: 16px;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .session-pill {
    min-width: 0;
  }

  .field-grid,
  .format-grid {
    grid-template-columns: 1fr;
  }

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

  .compact-field {
    min-width: 0;
    max-width: none;
  }

  .output-empty {
    min-height: 480px;
    padding: 18px;
  }

  .social-card,
  .social-card.story,
  .question-card {
    width: 300px;
  }

  .social-card,
  .question-card {
    height: 300px;
    padding: 22px;
  }

  .social-card.portrait {
    height: 375px;
  }

  .social-card.story {
    height: 533px;
  }

  .card-title {
    font-size: 28px;
  }

  .question-main h3,
  .role-question .question-main h3 {
    font-size: 24px;
  }

  .story .card-title,
  .portrait .card-title {
    font-size: 32px;
  }
}
