:root {
  --bg: #f5f7fb;
  --bg-accent: #edf2ff;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --brand: #2151ff;
  --brand-strong: #163fd6;
  --brand-soft: rgba(33, 81, 255, 0.08);
  --gold: #f59e0b;
  --success: #0f9f6e;
  --danger: #dd524c;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 32px 80px rgba(15, 23, 42, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(33, 81, 255, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 24%),
    linear-gradient(180deg, #f8faff 0%, #f2f5fb 100%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.hidden { display: none !important; }

.page-shell {
  position: relative;
  min-height: 100vh;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 56px;
}

.backdrop-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 12%, rgba(33, 81, 255, 0.12), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(16, 185, 129, 0.10), transparent 22%),
    radial-gradient(circle at 50% 42%, rgba(245, 158, 11, 0.06), transparent 20%);
}

.promo-bar,
.topbar,
.hero-stage,
.features-strip,
.gallery-section,
.site-footer,
.studio-main {
  position: relative;
  z-index: 1;
}

.promo-bar {
  margin-top: 16px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(33, 81, 255, 0.10), rgba(16, 185, 129, 0.10));
  color: #24417a;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0 18px;
}

.brand-block,
.header-actions,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #4d78ff);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(33, 81, 255, 0.24);
}

.brand-mark {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-link {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  box-shadow: var(--shadow);
}

.hero-badge-row,
.hero-actions,
.hero-metrics,
.gallery-stats,
.cta-banner-actions,
.studio-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badge,
.panel-kicker-light,
.gallery-stat-pill,
.hero-metric-card,
.prompt-chip,
.composer-mini-status,
.studio-inline-note {
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.hero-badge,
.panel-kicker-light {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #27407a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge.soft {
  color: var(--muted);
}

.hero-link-button {
  min-height: 50px;
  padding: 0 22px;
}

.credits-badge,
.avatar-pill,
.ghost-btn,
.invite-pill,
.composer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.credits-badge {
  color: #213562;
}

.credits-badge strong,
.studio-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.avatar-pill {
  width: 44px;
  justify-content: center;
  padding: 0;
  font-weight: 700;
  color: var(--brand);
}

.ghost-btn {
  justify-content: center;
  color: var(--text);
  font-weight: 600;
}

.cta-button,
.send-button,
.auth-tab,
.primary-button {
  border: 0;
  border-radius: 999px;
}

.cta-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--brand), #4a73ff);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(33, 81, 255, 0.24);
}

.small-btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0 10px;
}

.hero-copy {
  padding: 24px 0;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.98;
}

.hero-copy p {
  margin: 20px 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 28px;
}

.hero-metrics {
  margin-top: 28px;
}

.hero-metric-card {
  min-width: 136px;
  padding: 16px 18px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-metric-card strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-metric-card span,
.gallery-stat-pill span,
.studio-inline-note span {
  color: var(--muted);
  font-size: 13px;
}

.composer-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.composer-panel-head h2,
.quality-copy h2,
.cta-banner h2,
.studio-page-head h1,
.workflow-head h3 {
  margin: 10px 0 0;
  letter-spacing: -0.04em;
}

.composer-panel-head h2 {
  font-size: 28px;
}

.composer-mini-status {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #344054;
  font-weight: 600;
}

.status-dot-live {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(15, 159, 110, 0.12);
}

.composer-wrap {
  display: grid;
  gap: 16px;
}

.composer-card,
.gallery-card,
.auth-modal-dialog,
.auth-modal-copy,
.auth-modal-card,
.studio-stats-bar,
.work-card,
.conversation-empty {
  box-shadow: var(--shadow-strong);
}

.composer-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.composer-main {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 14px;
  align-items: end;
}

textarea {
  width: 100%;
  min-height: 158px;
  resize: none;
  border: 0;
  outline: none;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 26px;
  line-height: 1.5;
  font-weight: 500;
}

textarea::placeholder {
  color: #98a2b3;
}

.send-button {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand), #4a73ff);
  color: #fff;
  box-shadow: 0 16px 32px rgba(33, 81, 255, 0.24);
}

.composer-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.composer-chip {
  min-height: 42px;
  color: #344054;
  background: #f9fafb;
  border-color: rgba(17, 24, 39, 0.06);
}

.select-chip {
  appearance: none;
}

.checkbox-chip input {
  width: auto;
  accent-color: var(--brand);
}

.cost-hint {
  color: var(--muted);
  font-size: 14px;
}

.prompt-suggestion-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prompt-chip {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #344054;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.prompt-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(33, 81, 255, 0.18);
}

.status-band,
.auth-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.status-band {
  color: var(--muted);
  font-size: 14px;
}

.status-line {
  color: var(--brand-strong);
  font-weight: 600;
}

.invite-pill span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.invite-pill strong {
  color: var(--text);
}

.features-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.signal-strip {
  overflow: hidden;
  margin-top: 26px;
  padding: 14px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.signal-track {
  display: flex;
  gap: 32px;
  min-width: max-content;
  color: #475467;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.feature-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--brand-soft);
  font-size: 20px;
}

.quality-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  margin-top: 48px;
}

.quality-stage-card,
.cta-banner,
.studio-page-head {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-strong);
}

.quality-copy p,
.studio-page-head p,
.cta-banner p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.quality-points {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.quality-points article,
.workflow-step {
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.quality-points strong,
.workflow-step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.quality-points p,
.workflow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.workflow-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.workflow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.gallery-section {
  margin-top: 48px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-stats {
  justify-content: end;
}

.gallery-stat-pill {
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.gallery-stat-pill strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.masonry-grid {
  columns: 4 260px;
  column-gap: 18px;
}

.gallery-card {
  break-inside: avoid;
  overflow: hidden;
  margin: 0 0 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.gallery-card img {
  display: block;
  width: 100%;
}

.gallery-visual-wrap {
  position: relative;
}

.gallery-overlay {
  position: absolute;
  inset: 14px 14px auto 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.gallery-index,
.gallery-date {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.64);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.gallery-meta {
  padding: 16px 18px 18px;
}

.gallery-meta p {
  margin: 0;
  color: #344054;
  line-height: 1.7;
}

.cta-banner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 42px;
  background: linear-gradient(135deg, rgba(33, 81, 255, 0.10), rgba(16, 185, 129, 0.08));
}

.cta-banner h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.site-footer {
  margin-top: 56px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px 0 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
  font-weight: 800;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(18px);
}

.auth-modal-dialog {
  position: relative;
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.auth-modal-copy,
.auth-modal-card {
  border-radius: 28px;
}

.auth-modal-copy {
  padding: 34px;
  background: linear-gradient(145deg, #163fd6, #4d78ff);
  color: #fff;
}

.auth-modal-brand {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.auth-modal-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.auth-modal-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.auth-modal-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.auth-tab-bar {
  display: inline-flex;
  width: fit-content;
  padding: 4px;
  background: #eef2ff;
  border-radius: 999px;
}

.auth-tab {
  min-height: 40px;
  padding: 0 18px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.auth-tab.active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.auth-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.auth-fields-modal {
  grid-template-columns: 1fr;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: #fff;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(33, 81, 255, 0.10);
}

.auth-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-submit-btn {
  width: 100%;
}

.auth-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
}

.studio-main {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.studio-page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.studio-page-head h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
}

.studio-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.studio-stat,
.studio-stat-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 92px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.studio-stat-actions {
  flex-direction: row;
  align-items: center;
}

.studio-inline-note {
  display: grid;
  gap: 4px;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 16px;
}

.studio-inline-note strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.studio-stat-label,
.studio-status,
.work-meta,
.work-caption,
.conversation-empty {
  color: var(--muted);
}

.studio-status {
  margin: 0;
  font-size: 14px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.work-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.work-cover {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  display: block;
}

.work-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.work-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.work-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.work-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f7fb;
  color: #344054;
  font-size: 12px;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.work-card.focused {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(33, 81, 255, 0.16);
  border-color: rgba(33, 81, 255, 0.22);
}

.work-meta,
.work-caption {
  margin: 0;
  line-height: 1.7;
}

.conversation-empty {
  padding: 36px;
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed rgba(17, 24, 39, 0.12);
}

.admin-shell {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 110, 72, 0.18), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(67, 141, 214, 0.16), transparent 24%),
    linear-gradient(180deg, #09111b 0%, #132334 54%, #0b1119 100%);
  color: #d6dde7;
  font-family: 'IBM Plex Sans', sans-serif;
}

.admin-sidebar,
.admin-main {
  min-width: 0;
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px;
  border-radius: 30px;
  background: rgba(7, 14, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
  position: sticky;
  top: 20px;
  height: fit-content;
}

.admin-brand-block h1,
.admin-hero-copy h2,
.panel h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.tag {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  color: #7fb2b1;
}

.sidebar-copy,
.panel-copy {
  margin: 0;
  color: #94a7b5;
  line-height: 1.7;
}

.admin-sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #eef4fb;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 123, 84, 0.18), rgba(91, 152, 232, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-card span,
.hero-note-grid span,
.stat-card span,
.entity-meta span,
.entity-badges span,
.panel-kicker {
  display: block;
  color: #89a0b2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.admin-sidebar-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 22px;
  color: #f5efe7;
}

.admin-sidebar-card p {
  margin: 0;
  color: #c0ccd6;
  line-height: 1.7;
}

.admin-main {
  display: grid;
  gap: 20px;
}

.admin-hero,
.login-panel,
.dashboard,
.stats-grid,
.admin-grid,
.table-grid {
  min-width: 0;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr);
  gap: 18px;
}

.admin-hero-copy,
.admin-hero-status,
.panel,
.stat-card {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.admin-hero-copy {
  padding: 28px;
  background: linear-gradient(135deg, rgba(245, 238, 229, 0.96), rgba(227, 219, 208, 0.88));
  color: #11161d;
}

.admin-hero-copy h2 {
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.02;
  margin-bottom: 14px;
}

.admin-hero-copy p:last-child {
  margin: 0;
  color: #485565;
  line-height: 1.8;
}

.admin-hero-status {
  padding: 22px;
  background: rgba(8, 16, 25, 0.78);
  display: grid;
  gap: 18px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5fb;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #69e19b, #14a37a);
  box-shadow: 0 0 0 6px rgba(79, 193, 144, 0.14);
}

.hero-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-note-grid article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-note-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  color: #f6f8fb;
}

.login-panel,
.dashboard {
  display: grid;
  gap: 18px;
}

.admin-auth-card {
  max-width: 520px;
}

.panel,
.stat-card {
  background: linear-gradient(180deg, rgba(247, 241, 232, 0.96), rgba(237, 231, 222, 0.92));
  color: #12161c;
}

.panel {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.panel-kicker {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(11, 17, 25, 0.08);
  color: #465567;
}

.panel label {
  display: grid;
  gap: 8px;
  color: #344354;
  font-size: 14px;
}

.panel input,
.panel select,
.panel textarea,
.panel button {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(16, 23, 32, 0.12);
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #131313;
}

.panel textarea {
  min-height: 116px;
  font-size: 15px;
}

.panel button {
  border: 0;
  background: linear-gradient(135deg, #ff7b54, #e65136);
  color: white;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .02em;
}

.stats-grid,
.admin-grid,
.table-grid,
.entity-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.table-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.stat-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  right: -30px;
  top: -40px;
  background: linear-gradient(135deg, rgba(255, 123, 84, 0.18), rgba(56, 119, 223, 0.14));
}

.stat-card strong {
  position: relative;
  display: block;
  margin: 12px 0 10px;
  font-size: clamp(32px, 3vw, 42px);
  color: #10161e;
}

.stat-footnote {
  position: relative;
  color: #5e6a79;
  line-height: 1.6;
}

.compact-panel {
  align-content: start;
}

.entity-grid {
  grid-template-columns: 1fr;
}

.entity-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(14, 22, 31, 0.06);
  border: 1px solid rgba(16, 23, 32, 0.08);
}

.entity-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.entity-head strong {
  display: block;
  font-size: 18px;
}

.entity-subtitle,
.entity-meta {
  color: #586777;
  line-height: 1.7;
}

.entity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entity-badges span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 17, 25, 0.08);
  color: #24313f;
  font-size: 11px;
}

.inline-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-row input {
  width: auto !important;
}

.checkbox-row {
  color: #24313f;
}

@media (max-width: 1100px) {
  .auth-fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .page-shell { width: min(100%, calc(100% - 24px)); }
  .topbar, .section-heading, .hero-stage, .composer-main, .composer-footer, .auth-fields, .footer-inner { display: grid; }
  .topbar, .section-heading, .hero-stage, .footer-inner { grid-template-columns: 1fr; align-items: start; }
  .nav-links, .header-actions { flex-wrap: wrap; }
  .hero-stage { gap: 20px; }
  .composer-panel-head, .studio-page-head, .cta-banner { grid-template-columns: 1fr; display: grid; }
  .composer-main { grid-template-columns: 1fr; }
  textarea { font-size: 22px; min-height: 132px; }
  .send-button { justify-self: end; }
  .composer-footer, .auth-fields, .studio-stats-bar, .works-grid, .quality-section, .features-strip { grid-template-columns: 1fr; }
  .auth-strip, .auth-modal-dialog { grid-template-columns: 1fr; display: grid; }
  .gallery-stats { justify-content: start; }
  .admin-shell { grid-template-columns: 1fr; padding: 18px; }
  .admin-sidebar { position: static; }
  .admin-hero { grid-template-columns: 1fr; }
  .hero-note-grid { grid-template-columns: 1fr; }
  .panel-head, .entity-head { grid-template-columns: 1fr; display: grid; }
  .auth-modal { padding: 14px; }
  .studio-stat-actions { flex-direction: column; align-items: stretch; }
}