/* Celik Collective visual polish: quieter surfaces, clearer hierarchy, safer touch targets. */
:root {
  --cc-line: #40364c;
  --cc-line-strong: #675675;
  --cc-panel: #15131b;
  --cc-panel-raised: #1c1824;
  --cc-lilac: #d9c1ee;
  --cc-muted: #c1b7ca;
}

html { scroll-padding-top: 96px; }
body {
  background:
    radial-gradient(ellipse at 76% 2%, #56386b24, transparent 35rem),
    radial-gradient(ellipse at 5% 48%, #29464614, transparent 40rem),
    #0c0b10;
}
.shell { background: transparent; }
.sidebar {
  background: linear-gradient(180deg, #15121a 0%, #100f14 68%);
  border-color: #302938;
}
.brand { min-height: 48px; }
.workspace {
  border-color: var(--cc-line);
  border-radius: 13px;
  background: linear-gradient(135deg, #211b29, #15131b);
  box-shadow: inset 0 1px #ffffff08;
}
.nav-item { min-height: 46px; border: 1px solid transparent; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.nav-item:hover { background: #ffffff08; color: #f5eff9; }
.nav-item.active { border-color: #584763; background: linear-gradient(100deg, #372a42, #24212b); color: #efdcff; }
.credit-card { border-color: var(--cc-line); background: linear-gradient(145deg, #1b1722, #131219); }

main > header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  height: auto;
  border-color: #ffffff12;
  background: #0e0d12dd;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.content { max-width: 1540px; padding-top: clamp(24px, 3.2vw, 48px); padding-bottom: 48px; }
.hero, .workspace-home {
  border-color: #594866;
  box-shadow: 0 24px 72px #05030a50, inset 0 1px #ffffff0b;
}
.hero { background-color: #17131d; }
.hero-copy > p, .journey-description { color: #d0c7d6; }
.hero-cta {
  min-height: 48px;
  border: 1px solid #e8d4fa80;
  box-shadow: 0 10px 26px #b38ac829, inset 0 1px #ffffff70;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px #b38ac840, inset 0 1px #ffffff70; }
.hero-facts { gap: 10px; }
.hero-facts > span, .hero-proof {
  border: 1px solid #ffffff12;
  border-radius: 999px;
  background: #100d1680;
  padding: 7px 11px;
}
.hero-proof { display: inline-flex; margin-top: 14px; color: #d2c7d9; font-size: 11px; }
.journey-route { min-height: 72px; }

.quick-start {
  border: 1px solid var(--cc-line);
  border-radius: 18px;
  background: linear-gradient(130deg, #18151e, #121116);
  box-shadow: inset 0 1px #ffffff08;
}
.quick-start-steps li {
  border: 1px solid #ffffff10;
  border-radius: 12px;
  background: #ffffff04;
}
.tools-heading { margin-top: clamp(32px, 5vw, 60px); }
.tools-heading h2, .section-title h2 { letter-spacing: -.025em; }
.feature-grid { gap: 14px; }
.feature {
  min-height: 116px;
  border-color: var(--cc-line);
  border-radius: 15px;
  background: linear-gradient(145deg, #1c1922, #141219);
  box-shadow: inset 0 1px #ffffff08;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.feature.selected { border-color: #a888bd; box-shadow: 0 10px 32px #b58dd01a, inset 0 1px #ffffff16; }
.tool-icon { border-color: #756184; box-shadow: inset 0 1px #ffffff14; }
.feature-copy small { color: #c0b5c8; line-height: 1.5; }
.tool-tag { color: #dfcaee; }
.pack-grid button, .ai-pack-grid button, .director-grid button {
  border-radius: 14px;
  box-shadow: inset 0 1px #ffffff08;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.assistant-packs, .director-presets, .purpose-panel {
  border-color: var(--cc-line);
  box-shadow: inset 0 1px #ffffff08;
}
.section-title { align-items: end; }

.panel, .composer, .result {
  border-color: var(--cc-line);
  border-radius: 16px;
  box-shadow: 0 16px 42px #05030a22, inset 0 1px #ffffff08;
}
.panel-heading { gap: 16px; }
.panel-heading h2 { line-height: 1.25; }
#generate-form { padding-bottom: 4px; }
#generate-form :is(input, select, textarea), .project-filters :is(input, select) {
  border-color: #51425f;
  border-radius: 11px;
  background-color: #100e15;
}
#generate-form textarea { min-height: 168px; line-height: 1.7; }
#generate-form :is(input, select, textarea):focus-visible { border-color: #d1b5e7; box-shadow: 0 0 0 3px #c49be322; }
.generation-footer { gap: 14px; }
.generation-footer .primary { min-height: 48px; }
.result #empty-result { min-height: 300px; }

button, a { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .feature:hover, .pack-grid button:hover, .ai-pack-grid button:hover, .director-grid button:hover {
    transform: translateY(-2px);
    border-color: #a38bb4;
    box-shadow: 0 12px 28px #08050d45, inset 0 1px #ffffff12;
  }
}
@media (max-width: 900px) {
  .content { padding-right: 24px; padding-left: 24px; }
  .quick-start { gap: 18px; }
  .feature { min-height: 106px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 24px; }
  main > header { position: relative; top: auto; min-height: 78px; padding-top: 10px; padding-bottom: 10px; }
  .content { padding: 16px 16px 34px; }
  .hero, .workspace-home { border-radius: 18px; }
  .hero-copy { padding: 25px 20px 18px; }
  .hero h1 { font-size: clamp(37px, 10vw, 44px); line-height: 1.08; }
  .hero-facts { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-facts > span { font-size: 10px; }
  .hero-proof { line-height: 1.45; }
  .journey-intro { min-height: 0; grid-template-columns: minmax(0, 1fr) 120px; gap: 6px; }
  .journey-copy { padding: 24px 0 18px; }
  .workspace-home .journey-copy h2 { font-size: clamp(29px, 8vw, 38px); }
  .journey-art { height: 150px; transform: scale(.84); transform-origin: center; }
  #workspace-home .workspace-routes { gap: 8px; }
  #workspace-home .journey-route { min-height: 68px; padding: 10px 9px !important; }
  .quick-start { margin-bottom: 28px; padding: 18px; }
  .quick-start h2 { font-size: 21px; line-height: 1.25; }
  .quick-start-steps { gap: 9px; }
  .quick-start-steps li { padding: 12px; }
  .tools-heading { margin: 28px 0 14px; }
  .feature-grid { gap: 9px; }
  .feature { min-height: 82px; padding: 13px 12px; }
  .feature-copy strong { font-size: 13px; }
  .feature-copy small { font-size: 11px; }
  .tool-tag { font-size: 9px; }
  .assistant-packs, .director-presets, .purpose-panel { border-radius: 15px; }
  .studio-grid { gap: 14px; }
  .composer, .result { border-radius: 15px; }
  #generate-form { padding-right: 17px; padding-left: 17px; }
  .generation-footer { align-items: stretch; }
  .generation-footer .primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta, .feature, .pack-grid button, .ai-pack-grid button, .director-grid button { transition: none !important; }
}

/* Community and project areas: clearer hierarchy, calmer cards, comfortable touch targets. */
#community-page > .intro, #projects-page > .intro { margin-bottom: 24px; }
#community-page .community-profile { padding: clamp(18px, 3vw, 28px); background: linear-gradient(145deg, #1c1822, #141219); }
#community-page .community-profile h2 { margin: 0 0 8px; font-size: 21px; }
#community-page .community-profile > p, #community-page .auth-note { max-width: 760px; color: #c6bacd; line-height: 1.7; }
#community-profile-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 10px 14px; align-items: end; max-width: 920px; }
#community-profile-form label { display: grid; gap: 7px; margin: 0; }
#community-profile-form label :is(input, textarea) { min-width: 0; min-height: 46px; padding: 11px 13px; }
#community-profile-form button { min-height: 44px; }
#community-my-stats { margin: 18px 0 0; color: #d7c8e2; }
.community-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.community-tabs button { min-height: 42px; padding: 9px 14px; border: 1px solid #40364c; border-radius: 999px; background: #17141d; color: #d4c8dc; }
.community-tabs button:hover, .community-tabs button:focus-visible { border-color: #8c72a0; background: #282131; }
.community-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr) auto; gap: 12px; align-items: end; margin: 16px 0 24px; padding: 16px; border: 1px solid #39313f; border-radius: 16px; background: #121016; }
.community-search label { display: grid; gap: 7px; margin: 0; }
.community-search :is(input, select) { min-width: 0; min-height: 46px; padding: 10px 12px; }
.community-search button { min-height: 44px; padding: 9px 18px; border: 1px solid #554562; border-radius: 10px; background: #241d2b; }
.community-grid { align-items: start; gap: 16px; }
.community-card { overflow: hidden; padding: clamp(17px, 2.2vw, 24px); background: linear-gradient(150deg, #1b1720, #141219); }
.community-card-head { gap: 12px; align-items: center; }
.community-card-head button:first-child { color: #f0e4f7; font-weight: 650; }
.community-card h3 { margin: 18px 0 8px; font-size: clamp(17px, 2vw, 21px); line-height: 1.4; overflow-wrap: anywhere; }
.community-card > small { display: block; color: #b8aabd; line-height: 1.5; }
.community-card .community-preview { margin: 14px 0; color: #d1c7d6; line-height: 1.7; overflow-wrap: anywhere; }
.community-card :is(button, summary) { min-height: 40px; }
.community-thumb { display: block; width: 100%; max-height: 300px; margin: 14px 0; border: 1px solid #51455c; border-radius: 13px; object-fit: cover; }
.community-card details { margin-top: 12px; padding-top: 10px; border-top: 1px solid #3d3445; }
.community-card details summary { display: flex; align-items: center; cursor: pointer; color: #d6c7df; }
.community-empty { padding: clamp(22px, 4vw, 40px); background: radial-gradient(ellipse at 90% 0%, #5b3e6c25, transparent 60%), #15121a; }
.community-person { padding: 16px; border-bottom: 1px solid #3e3545; }
.project-filters { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 16px; border: 1px solid #39313f; border-radius: 16px; background: #141119; }
.project-filters :is(input, select) { min-width: 0; min-height: 44px; padding: 9px 12px; }
.project-filters p { grid-column: 1 / -1; margin: 0; color: #b8adbf; line-height: 1.6; }
.project-card { background: linear-gradient(145deg, #1d1922, #151219); }
@media (max-width: 760px) {
 #community-profile-form { grid-template-columns: 1fr; }
 #community-profile-form button { width: 100%; }
 .community-search { grid-template-columns: 1fr; padding: 13px; }
 .community-search button { width: 100%; }
 .project-filters { grid-template-columns: 1fr; gap: 8px; }
 .project-filters label { margin: 4px 0 0; }
 .project-filters p { grid-column: auto; }
 .community-tabs { gap: 7px; }
 .community-tabs button { flex: 1 1 calc(50% - 7px); min-width: 0; }
 .community-card { border-radius: 15px; }
 .community-grid { gap: 12px; }
}

/* Studio polish: distinguish the selected tool, simplify the writing surface and clarify actions. */
.studio-stages { margin-top: 4px; margin-bottom: 24px; }
.studio-stages button { min-height: 98px; position: relative; overflow: hidden; }
.studio-stages button[aria-pressed=true] { box-shadow: 0 10px 28px #b18aca20, inset 0 1px #ffffff99; }
.studio-stages button[aria-pressed=true]::after { content: ''; position: absolute; right: -26px; bottom: -40px; width: 110px; height: 90px; border-radius: 50%; background: #9872b222; filter: blur(2px); pointer-events: none; }
.studio-grid { align-items: start; gap: 18px; }
.studio-grid > .panel { overflow: hidden; }
.studio-grid .panel-heading { background: linear-gradient(110deg, #211a29, #17141c); }
.studio-grid .panel-heading h2 { font-size: 21px; }
#generate-form > label, #generate-form .brief-options label { color: #ded2e5; font-size: 13px; font-weight: 550; }
#generate-form .brief-guide { margin: 14px 0 18px; border: 1px solid #3f3548; border-radius: 12px; background: #15121a; }
#generate-form .brief-guide summary { padding: 13px 15px; color: #d9c9e2; cursor: pointer; }
#generate-form .brief-guide[open] summary { border-bottom: 1px solid #3f3548; }
#generate-form .brief-guide > *:not(summary) { margin-right: 15px; margin-left: 15px; }
#generate-form .suggestions { gap: 8px; }
#generate-form .suggestions button { min-height: 38px; border-radius: 999px; padding: 8px 12px; font-size: 12px; }
#generate-form .generation-footer { align-items: center; color: #c6b8d0; }
#generate-form .generation-footer > span { line-height: 1.55; }
#generate-form .generation-footer .primary { min-height: 48px; border-radius: 12px; }
.result { overflow: hidden; }
.result .panel-heading { background: linear-gradient(110deg, #201a27, #17141c); }
.result-note { line-height: 1.6; }
.studio-stages button:focus-visible, .feature:focus-visible, .pack-grid button:focus-visible, .ai-pack-grid button:focus-visible, .director-grid button:focus-visible, #generate-form button:focus-visible, #generate-form summary:focus-visible { outline: 2px solid #e1c4fb; outline-offset: 3px; }
@media (max-width: 650px) {
 .studio-stages { margin-bottom: 18px; }
 .studio-stages button { min-height: 54px; justify-items: center; text-align: center; }
 .studio-grid { gap: 12px; }
 .studio-grid .panel-heading { padding: 17px 16px; }
 .studio-grid .panel-heading h2 { font-size: 19px; }
 #generate-form .generation-footer { display: grid; grid-template-columns: 1fr; }
 #generate-form .generation-footer .primary { width: 100%; }
 #generate-form .suggestions button { min-height: 42px; }
 .result #empty-result { min-height: 220px; }
}

/* A restrained desktop-only motion accent for the artwork; no movement on phones. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
 @keyframes cc-art-orbit { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
 @keyframes cc-art-glint { 0%, 100% { opacity: .84; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.08); } }
 .showcase-main::before { animation: cc-art-orbit 8s ease-in-out infinite; }
 .showcase-side::before { animation: cc-art-orbit 10s ease-in-out infinite reverse; }
 .showcase-orb { animation: cc-art-glint 4.5s ease-in-out infinite; }
}

/* Finishing details for support, privacy and account dialogs at narrow widths. */
footer { align-items: center; gap: 16px 24px; }
.legal-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 14px; }
.legal-links a, .legal-links button { min-height: 40px; display: inline-flex; align-items: center; color: #cbbdd5; text-decoration: none; }
.legal-links a:hover, .legal-links button:hover { color: #f1e4fb; }
.creator-credit { padding: 22px 0; }
.creator-credit strong { letter-spacing: -.02em; }
.creator-credit a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
dialog[open] { box-shadow: 0 28px 90px #0009, 0 0 0 1px #ffffff08; }
dialog :is(input, select, textarea) { box-sizing: border-box; width: 100%; }
dialog :is(button, summary) { min-height: 42px; }
dialog .dialog-close { min-height: 40px; min-width: 40px; }
@media (max-width: 650px) {
 footer { align-items: stretch; }
 .legal-links { justify-content: flex-start; gap: 4px 10px; }
 .legal-links a, .legal-links button { min-height: 44px; padding: 0 4px; }
 dialog[open] { max-height: calc(100dvh - 24px); overflow-y: auto; padding: 24px 18px; }
 dialog .dialog-close { position: sticky; float: right; top: 0; margin: -10px -6px 0 8px; z-index: 3; background: #19121fee; border-radius: 10px; }
}
