/* Shared atmosphere: deep space, coloured nebulae and warm navigation lights. */
:root {
  --cosmos-navy: #0b1326;
  --cosmos-cyan: #9edfe9;
  --cosmos-gold: #edcb8a;
}
body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 4% 14%, rgba(65, 86, 153, .20), transparent 46%),
    radial-gradient(ellipse at 94% 38%, rgba(116, 66, 143, .19), transparent 45%),
    radial-gradient(ellipse at 20% 82%, rgba(24, 99, 119, .15), transparent 42%),
    linear-gradient(155deg, rgba(8, 15, 31, .53), rgba(8, 13, 28, .67)),
    url('/assets/cosmic/cosmic-space.webp') center top / cover fixed no-repeat,
    #0b1326;
}
body::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .52;
  background-image:
    radial-gradient(circle, rgba(219, 238, 255, .86) 0 .7px, transparent 1.4px),
    radial-gradient(circle, rgba(232, 211, 171, .65) 0 .7px, transparent 1.6px),
    radial-gradient(circle, rgba(155, 200, 238, .62) 0 1px, transparent 1.9px);
  background-size: 171px 197px, 281px 263px, 433px 389px;
  background-position: 29px 34px, 105px 136px, 209px 52px;
}
/* Opaque enough for long-form reading; the sky remains visible in the gutters. */
.nav {
  background: rgba(11, 18, 33, .93);
  border-bottom-color: rgba(214, 180, 119, .23);
  box-shadow: 0 10px 32px rgba(2, 6, 17, .23);
}
.footer { background: rgba(9, 17, 32, .72); color: #b1afba; }
.card, .auth-card, .settings-panel-page, .settings-section,
.guide-content, .feedback-card, .contact-aside, .legal {
  background: linear-gradient(150deg, rgba(22, 34, 54, .96), rgba(13, 21, 37, .97));
  border-color: rgba(201, 192, 160, .22);
}
.auth-card > p, .settings-intro, .guide-hero p, .contact-hero p,
.capabilities-hero p, .landing-heading > p { color: #b9bbc5; }
.landing-wrap::before { display: none; }
.landing-framework-note {
  margin: 5px 0 0;
  color: #b6bfcd;
  font-size: 13.5px;
  line-height: 1.65;
}
.landing-hero {
  background: #101b2c;
  border-color: rgba(221, 193, 139, .38);
  box-shadow: 0 30px 95px rgba(3, 7, 18, .38), 0 0 70px rgba(76, 116, 187, .13);
}
.landing-hero::after {
  background:
    linear-gradient(90deg, rgba(9, 18, 35, .98) 0%, rgba(9, 18, 35, .90) 33%, rgba(9, 18, 35, .53) 59%, rgba(9, 18, 35, .05) 100%),
    linear-gradient(0deg, rgba(8, 17, 32, .85), transparent 56%);
}
.landing-hero::before {
  background: radial-gradient(ellipse at 85% 10%, rgba(131, 117, 231, .12), transparent 65%),
    radial-gradient(ellipse at 60% 30%, rgba(101, 206, 229, .09), transparent 55%);
}
.landing-hero-copy { padding-top: 56px; }
.landing-primary-lead { color: #e1dfdc; }
.landing-secondary-lead { color: #bdc2cb; }
.hero-purpose {
  background: linear-gradient(90deg, rgba(183, 133, 58, .15), rgba(25, 39, 62, .55));
  border-left-color: #d9bb7f;
}
.hero-purpose strong { line-height: 1.45; }
.hero-purpose span { color: #dedcd8; }
.hero-points span {
  background: linear-gradient(135deg, rgba(57, 66, 83, .67), rgba(15, 30, 47, .80));
  color: #f0d8a4;
}
.hero-proof { background: rgba(16, 28, 47, .89); border-color: rgba(190, 194, 198, .23); }
.proof-step span { color: #e0c187; }
.proof-step p { color: #b5bac4; }
.landing-manifesto {
  background: linear-gradient(105deg, rgba(66, 55, 46, .68), rgba(18, 33, 57, .82));
  color: #d3d4db;
}
.mobile-workshop-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr);
  grid-template-areas: "copy phone" "download phone";
  align-items: center;
  gap: 26px 42px;
  position: relative;
  overflow: hidden;
  margin: 34px 0 0;
  padding: 44px clamp(24px, 5vw, 60px);
  border: 1px solid rgba(232, 198, 132, .65);
  border-radius: 24px;
  background: radial-gradient(ellipse at 90% 30%, #9271c938, transparent 55%),
    radial-gradient(ellipse at 4% 100%, #b08a492e, transparent 60%),
    linear-gradient(120deg, #25213a, #14223a);
  box-shadow: inset 0 1px #f4e1c229, 0 22px 60px #03071844, 0 0 44px #c6a2690c;
}
.mobile-workshop-copy { grid-area: copy; align-self: end; min-width: 0; }
.mobile-workshop-copy .eyebrow { font-size: 12px; letter-spacing: .19em; }
.mobile-workshop-copy h2 { max-width: 580px; margin: 13px 0 18px; color: #f6ebd6; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; font-weight: 550; letter-spacing: -.035em; }
.mobile-workshop-copy p { max-width: 570px; margin: 0; color: #d0cbdc; font-size: 16px; line-height: 1.75; }
.mobile-workshop-platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; color: #e6d4b5; font-size: 12px; }
.mobile-workshop-platforms span { border: 1px solid #d6b98642; border-radius: 7px; padding: 7px 10px; background: #b2946410; }
.mobile-workshop-download { grid-area: download; justify-self: start; align-self: start; gap: 14px; min-height: 56px; padding: 16px 25px; font-size: 16px; white-space: normal; }
.mobile-workshop-download:focus-visible { outline: 2px solid #bfeefa; outline-offset: 5px; }
.mobile-workshop-orbit { grid-area: phone; display: grid; place-items: center; position: relative; min-width: 0; padding: 14px 0; }
.mobile-workshop-orbit::before { content: ''; position: absolute; width: 110%; max-width: 390px; aspect-ratio: 1; border: 1px solid #e1c28a2c; border-radius: 50%; box-shadow: 0 0 70px #ba9ada18, inset 0 0 60px #a27aca12; }
.mobile-workshop-orbit::after { content: ''; position: absolute; top: 10%; right: 8%; width: 6px; height: 6px; border-radius: 50%; background: #e8c990; box-shadow: 0 0 20px #e8c990aa; }
.mobile-workshop-phone {
  position: relative; width: 246px; padding: 7px 7px 12px;
  border: 2px solid #b9a991; border-radius: 35px;
  background: #0e1020; color: #f6eddf; transform: rotate(5deg);
  box-shadow: inset 0 0 0 3px #363247, 15px 24px 48px #01041080;
  overflow: hidden; font-family: Inter, 'Segoe UI', sans-serif;
}
.phone-status { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 10px; font-weight: 650; }
.phone-camera { width: 56px; height: 14px; border-radius: 20px; background: #050712; }
.phone-app-head { display: flex; gap: 7px; align-items: center; padding: 10px 8px; border-bottom: 1px solid #cba56230; }
.phone-app-head img { display: block; width: 30px; height: 30px; }
.phone-app-head > span { font-size: 12px; font-weight: 600; }
.phone-app-head small { display: block; margin-top: 3px; color: #c1b6cd; font-size: 8px; font-weight: 400; }
.phone-app-head i { margin-left: auto; color: #ead0a0; font-size: 19px; font-style: normal; }
.phone-app-body { padding: 16px 11px 18px; background: radial-gradient(ellipse at 90% 15%, #614a8457, transparent 60%), #19182b; }
.phone-app-kicker { margin: 0 0 8px; color: #d6b780; font-size: 9px; letter-spacing: .05em; }
.phone-app-title { display: block; font-size: 23px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.phone-app-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 15px 0; }
.phone-app-modes span { display: block; padding: 8px 6px; border: 1px solid #b69bc340; border-radius: 6px; font-size: 10px; text-align: center; background: #272239; }
.phone-app-modes .selected { border-color: #e1b96f; color: #f0d3a1; background: #4a3740; }
.phone-app-result { overflow: hidden; border: 1px solid #d1b88945; border-radius: 9px; background: #242037; }
.phone-app-result > span { display: block; padding: 9px; font-size: 10px; color: #ded1bc; }
.phone-app-result > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.phone-app-result > div { display: flex; gap: 5px; padding: 8px; }
.phone-app-result b { flex: 1; padding: 7px 2px; border: 1px solid #d9b16b66; border-radius: 5px; color: #e9cca0; font-size: 8px; text-align: center; font-weight: 500; }
.phone-home-indicator { width: 64px; height: 3px; margin: 10px auto 0; border-radius: 3px; background: #c3bacc; }
@media (max-width: 720px) {
  .mobile-workshop-banner { grid-template-columns: 1fr; grid-template-areas: "copy" "phone" "download"; gap: 22px; padding: 30px 24px; border-radius: 20px; }
  .mobile-workshop-copy h2 { max-width: 420px; font-size: clamp(30px, 7vw, 39px); }
  .mobile-workshop-copy p { font-size: 15px; }
  .mobile-workshop-orbit { width: 100%; padding: 14px 0; }
  .mobile-workshop-orbit::before { width: 300px; max-width: 100%; }
  .mobile-workshop-phone { width: 228px; transform: rotate(3deg); }
  .mobile-workshop-download { justify-self: stretch; width: 100%; padding-inline: 15px; }
}
/* Actual examples are shown separately from their explanation. */
.workflow-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 24px 25px;
  border-color: rgba(202, 181, 143, .3);
  background: linear-gradient(145deg, #25243a, #171f32 76%);
  box-shadow: 0 22px 55px rgba(3, 7, 18, .3), inset 0 1px rgba(238, 224, 193, .07);
}
.workflow-card::before { display: none; }
.workflow-card .workflow-art {
  display: block;
  width: calc(100% + 48px);
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 -24px 24px;
  border-bottom: 1px solid rgba(223, 195, 147, .22);
  filter: none;
}
.workflow-number { margin-bottom: 13px; color: #efce95; font-size: 11px; text-shadow: none; }
.workflow-card h3 { color: #f4ecdf; font-weight: 550; text-shadow: none; }
.workflow-card p { color: #cbd0dd; font-size: 14.3px; line-height: 1.72; text-shadow: none; }
.workflow-result { margin-top: auto; padding-top: 20px; }
.workflow-result span { background: rgba(170, 143, 99, .08); border-color: rgba(220, 185, 129, .27); color: #d6d6e3; font-size: 10px; }
.idea-showcase { background: radial-gradient(ellipse at 0 0, #4b365248, transparent 60%), linear-gradient(140deg, #1a2a43, #101b30); }
.idea-source { color: #c1c4cd; background: rgba(163, 131, 74, .08); }
.idea-footnote { color: #a5afc0; }
.idea-transition-note { color: #bcc4d3; }
.benefit-card { background: linear-gradient(145deg, rgba(27, 43, 65, .89), rgba(16, 27, 46, .93)); border-color: rgba(192, 184, 166, .2); }
.benefit-card p { color: #b8c1d0; }
.audience-line { background: radial-gradient(ellipse at 0 50%, #76634426, transparent 65%), #17263ae8; }
.landing-cta { background: radial-gradient(ellipse at 90% 10%, #65548a42, transparent 70%), linear-gradient(140deg, #253047, #142438); }
.landing-cta p { color: #bbc3cf; }
@media (max-width: 720px) { .workflow-card p { max-width: 520px; } }
@media (max-width: 480px) {
  body { background-attachment: scroll; }
  .landing-framework-note { font-size: 12px; }
  .workflow-card { padding: 0 24px 25px; }
}
/* Give the first scene its own visible space on phones and tablets. */
@media (max-width: 820px) {
  .landing-hero .landing-hero-media { position: relative; inset: auto; width: 100%; height: auto; min-height: 230px; max-height: 380px; aspect-ratio: 3 / 2; object-fit: cover; object-position: 73% center; opacity: 1; filter: none; }
  .landing-hero::before, .landing-hero::after { display: none; }
  .landing-hero-copy { width: 100%; max-width: none; padding: 30px 24px; background: linear-gradient(145deg, #162239, #101b2c); }
}
/* Workshop surfaces share the violet and warm-gold atmosphere without tinting images. */
.site-shell {
  --surface: #151927;
  --surface-raised: #201e30;
  --surface-soft: #1a1e2f;
  --muted: #aaa6b8;
  --muted-strong: #cec8d6;
  --line: rgba(215, 188, 146, .27);
  --line-strong: rgba(230, 193, 139, .48);
  background:
    radial-gradient(ellipse at 10% 26%, rgba(125, 87, 151, .06), transparent 32rem),
    radial-gradient(ellipse at 91% 61%, rgba(185, 144, 79, .05), transparent 34rem);
}
.site-shell .topbar {
  background: linear-gradient(110deg, rgba(22, 22, 35, .96), rgba(17, 22, 35, .96));
  box-shadow: 0 8px 32px rgba(4, 6, 15, .24);
}
.site-shell .brand-copy span, .site-shell .nav-link { color: #bdb5c3; }
.site-shell .nav-link.active, .site-shell .nav-link:hover { color: #f6dfb0; }
.site-shell .saas-mini:not(.pay) { background: #211f31; border-color: #ccae7859; }
.site-shell .studio-cosmic-hero { background: #161b2b; border-color: #cdb07a61; }
.site-shell .studio-cosmic-hero::after {
  background:
    linear-gradient(90deg, rgba(22, 22, 36, .97) 0%, rgba(22, 23, 37, .88) 42%, rgba(19, 22, 36, .25) 72%, rgba(19, 22, 36, .08)),
    linear-gradient(0deg, rgba(20, 22, 35, .68), transparent 48%);
}
.site-shell .hero-description { color: #c5becd; }
.site-shell .architect-card {
  border-color: rgba(225, 189, 131, .42);
  background:
    radial-gradient(ellipse at 0 0, rgba(126, 89, 162, .12), transparent 57%),
    radial-gradient(ellipse at 100% 100%, rgba(182, 137, 74, .06), transparent 48%),
    linear-gradient(145deg, #191a2a, #151b2b 72%);
  box-shadow: 0 26px 80px rgba(3, 6, 18, .3), inset 0 1px rgba(245, 225, 187, .07);
}
.site-shell .workshop-scenario {
  border-color: rgba(177, 153, 194, .33);
  background: linear-gradient(145deg, #231e30, #1d2131);
  color: #e2dbe6;
}
.site-shell .workshop-scenario small { color: #c0b5c8; }
.site-shell .workshop-scenario > span { color: #d5b583; }
.site-shell .workshop-scenario.selected {
  border-color: #e1b96f;
  background: radial-gradient(ellipse at 0 0, rgba(193, 148, 76, .13), transparent 80%), linear-gradient(135deg, #302637, #292233);
  box-shadow: inset 0 1px rgba(247, 221, 165, .15), 0 0 24px rgba(183, 131, 63, .06);
}
.site-shell .workshop-scenario:not(:disabled):hover {
  border-color: #e9c58b;
  background: linear-gradient(140deg, #32283b, #27283d);
}
.site-shell .workshop-reference, .site-shell .settings-panel, .site-shell .advanced-panel {
  border-color: rgba(190, 161, 198, .25);
  background: linear-gradient(140deg, rgba(38, 31, 52, .8), rgba(24, 30, 47, .9));
}
.site-shell .advanced-option { background: rgba(17, 20, 34, .66); border-color: rgba(187, 170, 199, .2); }
.site-shell .advanced-option.enabled { background: rgba(143, 106, 130, .15); border-color: rgba(224, 187, 129, .43); }
.site-shell .prompt-input-wrap textarea, .site-shell .text-field input {
  background: linear-gradient(145deg, #161a2a, #191a2c);
  border-color: rgba(202, 176, 153, .38);
  color: #f4edf3;
}
.site-shell .select-field select { background-color: #171a2b; border-color: rgba(202, 176, 153, .38); color: #f0e8ee; }
.site-shell .select-field option { background: #1a1b2d; color: #f0e8ee; }
.site-shell .prompt-input-wrap textarea::placeholder, .site-shell .text-field input::placeholder { color: #a6a0b4; }
.site-shell .prompt-input-wrap textarea:focus, .site-shell .text-field input:focus, .site-shell .select-field select:focus {
  border-color: #e6c17d;
  box-shadow: 0 0 0 3px rgba(199, 157, 85, .11);
}
.site-shell .label-row > span, .site-shell .character-count, .site-shell .example-row > span,
.site-shell .format-description, .site-shell .workshop-detail-row > span,
.site-shell .workshop-scenario-hint, .site-shell .workshop-source-notice,
.site-shell .workshop-form .submit-row > p, .site-shell .advanced-panel-head p,
.site-shell .image-reference-actions small, .site-shell .section-intro,
.site-shell .workshop-disclaimer, .site-shell .method-grid p,
.site-shell .image-result-card footer span { color: #bcb3c5; }
.site-shell .example-row button { background: rgba(150, 122, 169, .1); color: #c5b9d0; border-color: #b297b44d; }
.site-shell .workshop-secondary, .site-shell .image-reference-actions button,
.site-shell .advanced-toggle, .site-shell .image-result-actions button,
.site-shell .image-result-actions a {
  background: linear-gradient(140deg, rgba(151, 111, 153, .14), rgba(182, 141, 78, .09));
  border-color: rgba(214, 181, 127, .4);
  color: #ead6b2;
}
.site-shell .workshop-secondary:hover, .site-shell .image-reference-actions button:hover,
.site-shell .advanced-toggle:hover, .site-shell .advanced-toggle[aria-expanded="true"],
.site-shell .image-result-actions button:hover, .site-shell .image-result-actions a:hover {
  background: linear-gradient(140deg, rgba(151, 111, 153, .24), rgba(182, 141, 78, .16));
  border-color: #e7bd79;
}
.site-shell .image-reference-preview { background: #151a29; color: #b9aec3; border-color: #baa0c15c; }
.site-shell .image-result-card, .site-shell .method-grid {
  border-color: rgba(210, 179, 144, .29);
  background: linear-gradient(145deg, #1f1d30, #182032);
}
.site-shell .image-result-card footer { background: rgba(25, 24, 41, .85); border-color: rgba(208, 175, 143, .21); }
.site-shell .workshop-image-preview, .site-shell .image-result-card img { background: #121928; }
.site-shell .last-image-empty { background: rgba(27, 24, 42, .8); border-color: rgba(187, 160, 200, .32); color: #bfb5ca; }
.site-shell > footer { background: linear-gradient(130deg, rgba(23, 21, 34, .95), rgba(18, 23, 36, .96)); }
.site-shell > footer > p { color: #b2a8bb; }
.workshop-progress-dialog, .image-reference-dialog {
  background:
    radial-gradient(ellipse at 0 0, rgba(145, 100, 181, .11), transparent 65%),
    radial-gradient(ellipse at 100% 100%, rgba(187, 142, 75, .06), transparent 62%),
    linear-gradient(145deg, #1e1c30, #151c2d);
  border-color: rgba(222, 183, 121, .55);
  box-shadow: 0 30px 120px rgba(2, 4, 13, .65), inset 0 1px rgba(244, 219, 179, .08);
}
.workshop-progress-dialog .image-progress { background: rgba(17, 18, 31, .72); }
.workshop-progress-dialog .image-progress-track { background-color: #17182b; }
.workshop-progress-steps li { color: #b5a9c1; }
.workshop-progress-steps li > span { border-color: #837088; }
.workshop-progress-steps li.is-current { background: linear-gradient(110deg, rgba(189, 139, 69, .18), rgba(142, 100, 179, .1)); }
.workshop-progress-steps li.is-complete { color: #e0c9a9; }
.workshop-progress-steps li.is-complete > span { background: #332b38; border-color: #b49a70; }
.workshop-progress-dialog #creationNotice { color: #c5bacd; }
.image-reference-dialog > p { color: #bfb2cb; }
.image-reference-dialog .image-reference-choice { background: rgba(160, 122, 177, .1); border-color: rgba(191, 163, 196, .28); color: #d8cddd; }
.image-reference-dialog .image-reference-choice:hover { border-color: #e3bd7c; }
.workshop-viewer { background: #121825; border-color: #d2b38680; }
#paywall .paywall-card { background: linear-gradient(140deg, #211c31, #161d2e); border-color: #c7a97a73; }
#paywall .topup-card { background: rgba(18, 20, 33, .78); border-color: #c4a48c40; }
#paywall .topup-card input { background: #181a2a; }
#paywall .topup-suggestions button { background: #282235; }
#paywall p, #paywall .wallet-history-row span { color: #c2b8cc; }
/* Private account and gallery: compact actions, closed forms and protected media. */
.profile-shell { max-width: 850px; }
.profile-card { padding: clamp(22px, 4vw, 36px); border: 1px solid rgba(208, 188, 148, .28); border-radius: 20px; background: linear-gradient(145deg, #1a2a42f5, #101b2ff5); }
.profile-card h2 { margin: 0 0 19px; color: #f1e9d8; font-size: 26px; font-weight: 550; }
.profile-protected { display: flex; gap: 10px; align-items: center; color: #d4c599; font-size: 14px; }
.profile-protected svg { width: 23px; height: 23px; flex-shrink: 0; }
.profile-email-label { display: block; margin-top: 24px; color: #a7b4c7; font-size: 12px; letter-spacing: .06em; }
.profile-email { margin: 8px 0 0; color: #f1eadc; font-size: 20px; overflow-wrap: anywhere; }
.profile-email-status { color: #abb7c9; font-size: 13px; }
.profile-email-status.verified { color: #b0d9be; }
.profile-actions { display: grid; gap: 10px; margin-top: 24px; }
.profile-action { display: flex; gap: 15px; width: 100%; align-items: center; min-height: 66px; padding: 18px 20px; border: 1px solid #829abc3d; border-radius: 12px; background: #1a2b43; color: #ede7db; text-align: left; text-decoration: none; font: 550 16px/1.4 Inter, 'Segoe UI', sans-serif; cursor: pointer; }
.profile-action:hover { border-color: #bba7788c; background: #23354f; }
.profile-action:focus-visible { outline: 2px solid #bce9f5; outline-offset: 3px; }
.profile-action-arrow { margin-left: auto; color: #ddc486; font-size: 22px; font-weight: 400; }
.profile-action-meta { margin-left: auto; color: #d3c294; font-size: 14px; white-space: nowrap; }
.profile-action-meta + .profile-action-arrow { margin-left: 0; }
.profile-password-details > summary { list-style: none; }
.profile-password-details > summary::-webkit-details-marker { display: none; }
.profile-password-details[open] > summary .profile-action-arrow { transform: rotate(45deg); }
.profile-password-panel { padding: 15px 20px 25px; border: 1px solid #829abc3d; border-top: 0; border-radius: 0 0 12px 12px; background: #122037; }
.profile-password-details[open] > summary { border-radius: 12px 12px 0 0; }
.profile-copy { color: #b9c4d4; font-size: 14px; line-height: 1.65; }
.profile-logout { color: #d7bdb5; background: #15243a; }
.profile-card [hidden] { display: none !important; }
.profile-card button:disabled { opacity: .6; cursor: wait; }
.profile-message { min-height: 1.2em; margin: 12px 0; color: #b9c4d4; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-message:empty { display: none; }
.profile-message.error { color: #f1b2b9; }
.profile-message.success { color: #b0d9be; }
.profile-confirm-dialog { width: min(490px, calc(100vw - 32px)); padding: 30px; border: 1px solid #d1bb8b80; border-radius: 18px; background: #18283f; color: #f1eadc; box-shadow: 0 24px 100px #020711aa; }
.profile-confirm-dialog::backdrop, .personal-gallery-viewer::backdrop { background: #030a17cc; backdrop-filter: blur(8px); }
.profile-confirm-dialog h2 { margin: 0 0 14px; font-size: 25px; font-weight: 550; line-height: 1.2; }
.profile-confirm-dialog > p { color: #bcc6d5; line-height: 1.65; font-size: 14px; }
.profile-confirm-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.personal-gallery-shell { max-width: 1160px; }
.personal-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.personal-gallery-heading h1 { margin: 12px 0 14px; color: #f1eadc; font-size: clamp(38px, 5vw, 58px); font-weight: 480; letter-spacing: -.04em; }
.personal-gallery-heading p { color: #c1cada; font-size: 16px; line-height: 1.65; }
.personal-gallery-heading .button { flex-shrink: 0; }
.personal-gallery-notice { padding: 18px 20px; border: 1px solid #d4bc7f50; border-left: 3px solid #d4bc7f; border-radius: 0 12px 12px 0; background: #253047ed; color: #dedbcd; font-size: 14px; line-height: 1.7; }
.personal-gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 22px 0; }
.personal-gallery-toolbar p { max-width: 750px; margin: 0; color: #b6c2d5; font-size: 14px; line-height: 1.7; }
.personal-gallery-toolbar button { flex-shrink: 0; }
.personal-gallery-status { color: #d3d8e3; line-height: 1.65; }
.personal-gallery-status:empty { display: none; }
.personal-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.personal-gallery-card { min-width: 0; overflow: hidden; border: 1px solid #acc1da42; border-radius: 16px; background: #16253de8; }
.personal-gallery-preview { display: block; width: 100%; padding: 0; border: 0; background: #0b1628; cursor: zoom-in; }
.personal-gallery-preview img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.personal-gallery-preview:focus-visible { outline: 3px solid #b9e7f2; outline-offset: -3px; }
.personal-gallery-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 17px; }
.personal-gallery-card-footer span { color: #bbc7d8; font-size: 12px; }
.personal-gallery-viewer { width: min(1200px, calc(100vw - 24px)); max-width: calc(100vw - 24px); height: min(94dvh, 1200px); max-height: 94dvh; padding: 52px 12px 78px; overflow: hidden; border: 1px solid #c6b58880; border-radius: 16px; background: #0d192b; color: #f0e6d3; }
.personal-gallery-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 9px; background: #07101d; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; }
.personal-gallery-viewport.is-zoomed { cursor: grab; }
.personal-gallery-viewport.is-dragging { cursor: grabbing; }
.personal-gallery-viewport:focus-visible { outline: 2px solid #e7c18a; outline-offset: -3px; }
.personal-gallery-viewer .personal-gallery-viewport img { position: absolute; top: 50%; left: 50%; display: block; max-width: none; max-height: none; object-fit: contain; transform-origin: center; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.personal-gallery-viewer-tools { position: absolute; bottom: 14px; left: 12px; right: 12px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.personal-gallery-viewer-tools .button { min-width: 40px; min-height: 42px; padding: 9px 12px; font-size: 13px; border-radius: 9px; }
.personal-gallery-viewer-tools output { min-width: 47px; color: #f1eadc; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.personal-gallery-viewer-tools .button:disabled { opacity: .42; cursor: default; }
.personal-gallery-viewer-tools .button:focus-visible, .personal-gallery-viewer-close:focus-visible { outline: 2px solid #e7c18a; outline-offset: 2px; }
.personal-gallery-viewer-close { position: absolute; top: 8px; right: 14px; width: 40px; height: 40px; border: 0; background: transparent; color: #f1eadc; font-size: 32px; cursor: pointer; }

@media(max-width: 600px) {
  .nav { gap: 12px; }
  .navlinks { min-width: 0; flex: 1; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
  .navlinks .button { min-width: 0; min-height: 38px; padding: 9px 11px; font-size: 13px; }
  .profile-action { min-height: 60px; padding: 16px; font-size: 15px; }
  .profile-password-panel { padding: 12px 16px 22px; }
  .personal-gallery-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .personal-gallery-heading .button { align-self: flex-start; }
  .personal-gallery-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .personal-gallery-grid { grid-template-columns: 1fr; }
  .profile-confirm-dialog { padding: 25px 22px; }
}

/* Continue from a gallery image, or open the complete gallery from the workshop. */
.personal-gallery-card-footer { flex-direction: column; align-items: stretch; }
.personal-gallery-card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 8px; }
.personal-gallery-card-meta > span { display: block; line-height: 1.55; }
.personal-gallery-card-meta .button { min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: 13px; text-align: center; }
.personal-gallery-card-meta .button:focus-visible { outline: 2px solid #e7c18a; outline-offset: 3px; }
.gallery-delete-dialog .gallery-delete-confirm { border-color: #cd96906b; color: #efceca; }
.gallery-delete-dialog .button:disabled { opacity: .6; cursor: wait; }
.gallery-delete-dialog .profile-message { color: #efd0ba; }
.gallery-delete-dialog .profile-confirm-actions { flex-wrap: wrap; }
.personal-gallery-concept-note { display: block; color: #b9b3c6; font-size: 12px; line-height: 1.55; }
.personal-gallery-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.personal-gallery-card-actions .button { min-width: 0; min-height: 46px; padding: 10px 12px; border-radius: 10px; font-size: 13px; text-align: center; white-space: normal; }
.personal-gallery-card-actions .button:focus-visible { outline: 2px solid #e7c18a; outline-offset: 3px; }
.personal-gallery-card-actions .button:disabled, .personal-gallery-card-actions .button[aria-disabled="true"] { opacity: .72; cursor: default; }
.workshop-history-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.workshop-history-actions .workshop-secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; margin: 0; text-decoration: none; }
@media (max-width: 600px) {
  .workshop-history-actions { justify-content: flex-start; gap: 8px; }
  .workshop-history-actions .workshop-secondary { padding: 10px 13px; font-size: 13px; }
}

@media (max-width: 420px) {
  .personal-gallery-card-footer { padding: 13px; gap: 10px; }
  .personal-gallery-viewer-tools { gap: 5px; }
  .personal-gallery-viewer-tools .button { min-width: 34px; padding: 9px 8px; font-size: 12px; }
  .personal-gallery-viewer-tools output { min-width: 42px; font-size: 12px; }
}


/* Private previews reserve space and never expose a broken-image icon. */
.image-preview-host { position: relative; }
.image-preview-host > img { opacity: 0; }
.image-preview-host[data-preview-state="ready"] > img { opacity: 1; }
.image-preview-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; color: #d8c7b5; font: 14px/1.5 Inter, "Segoe UI", sans-serif; text-align: center; pointer-events: none; }
.image-preview-status[hidden] { display: none; }
.image-preview-host[data-preview-state="loading"] { background-color: #161522; }
.workshop-image-preview { min-height: 240px; cursor: default; }
.workshop-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .workshop-history-grid { grid-template-columns: 1fr; } }
/* Workshop card actions: four equal controls in two rows. */
.site-shell .image-result-card .image-result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
.site-shell .image-result-card .image-result-actions > a,
.site-shell .image-result-card .image-result-actions > button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: 0; padding: 10px 8px; border: 1px solid rgba(214, 167, 86, .3); border-radius: 8px; background: rgba(215, 169, 92, .06); color: #dfc99e; font: 500 14px/1.35 Inter, "Segoe UI", sans-serif; text-align: center; text-decoration: none; white-space: normal; }
.site-shell .image-result-card .image-result-actions > button:disabled { opacity: .5; cursor: default; }
/* A compact mobile guide frame leaves room for the account icons. */
@media (max-width: 820px) {
  .site-shell .topbar { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .site-shell .saas-account { max-width: calc(100vw - 88px); flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
  .site-shell .saas-mini.saas-guide-mobile { flex: 0 0 auto; flex-direction: column; width: max-content; min-width: 0; min-height: 36px; padding: 4px 6px; gap: 0; font-size: 11px; line-height: 1.15; font-weight: 650; white-space: nowrap; text-align: center; }
  .site-shell .topbar .brand-mark { flex-shrink: 0; }
}
.studio-entry { flex: 0 0 auto; width: auto; min-width: 0; padding-inline: 16px; white-space: nowrap; }
#ideaSourcePanel, #firstReference, #secondReference { scroll-margin-top: 20px; }
.site-shell .workshop-footer { display: flex; justify-content: center; padding: 24px 0; }
.site-shell .workshop-footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #d2bd98; font: 500 14px/1.4 Inter, "Segoe UI", sans-serif; text-decoration: none; }
.site-shell .workshop-footer-brand img { display: block; flex: 0 0 36px; }
.balance-topup-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

/* Keep the active web app version visible in browsers and installed apps. */
.footer .app-version { display: block; flex-basis: 100%; width: 100%; margin-top: 8px; color: #bcb4c9; font-size: 13px; line-height: 1.5; }

/* 5.9.12: visible workshop choices, close-only image preview, compact footers. */
.site-shell .workshop-generator-field { grid-column: span 2; }
.site-shell .workshop-generator-field > span { color: #efd08e; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.35; font-weight: 650; letter-spacing: 0; }
.site-shell .workshop-generator-field select { min-height: 53px; border-color: #d9b366a6; background-color: #292238; box-shadow: 0 0 0 1px #d9b36612; font-size: 16px; }
.site-shell .workshop-history-actions .workshop-gallery-link { min-height: 49px; padding: 13px 25px; background: linear-gradient(115deg, #ebce8e, #bf934e); border-color: #eed39c; color: #1b1620; box-shadow: 0 8px 22px #a27b3b29; font-size: 16px; font-weight: 750; }
.site-shell .workshop-history-actions .workshop-gallery-link:hover { background: #f0d59a; color: #17131b; }
.site-shell .workshop-image-preview { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; cursor: zoom-in; }
.site-shell .workshop-image-preview:focus-visible { outline: 3px solid #e7c18a; outline-offset: -3px; }
.workshop-image-viewer { padding: 54px 12px 12px; }
.workshop-footer { display: flex; justify-content: center; padding: 24px; }
.workshop-footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #d2bd98; font: 500 14px/1.4 Inter, 'Segoe UI', sans-serif; text-decoration: none; }
.workshop-footer-brand img { display: block; flex: 0 0 36px; }
.profile-footer > div { justify-content: center; text-align: center; line-height: 1.6; }
@media (max-width: 600px) { .site-shell .workshop-generator-field { grid-column: 1 / -1; } }
/* The task chooser expands in the document, inside its own frame. */
.guide-task-picker { min-width: 0; border: 1px solid #d2b57566; border-radius: 11px; background: #151c30; overflow: hidden; }
.guide-task-picker > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 13px 15px; color: #ead9b5; font-size: 15px; line-height: 1.4; cursor: pointer; list-style: none; }
.guide-task-picker > summary::-webkit-details-marker { display: none; }
.guide-task-picker > summary::after { content: '+'; flex-shrink: 0; color: #e8c686; font-size: 22px; }
.guide-task-picker[open] > summary::after { content: '−'; }
.guide-task-picker[open] > summary { border-bottom: 1px solid #bca07140; }
.guide-task-options { display: grid; gap: 5px; max-height: 370px; overflow-y: auto; overscroll-behavior: contain; padding: 9px; scrollbar-color: #ae926b #151c30; }
.guide-task-option { display: block; width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #ded8e5; font: 14px/1.45 Inter, 'Segoe UI', sans-serif; text-align: left; cursor: pointer; }
.guide-task-option:hover, .guide-task-option[aria-pressed="true"] { border-color: #e0c18073; background: #b5966630; color: #f6deb0; }
.guide-task-option:focus-visible, .guide-task-picker > summary:focus-visible { outline: 2px solid #e8c686; outline-offset: -3px; }
.guide-assistant-form { align-items: start; }
.guide-assistant-field { min-width: 0; }
.guide-assistant-field > span { line-height: 1.5; }
.guide-advice-mode { padding: 14px 16px; border-left: 2px solid #dfbd73; border-radius: 0 10px 10px 0; background: #bca06a12; color: #dad2e0; font-size: 14px; line-height: 1.65; }
.guide-quick-start { margin: 30px 0; padding: clamp(20px, 4vw, 30px); border: 1px solid #ccb88e40; border-radius: 18px; background: linear-gradient(130deg, #262239, #17233a); }
.guide-quick-start h2 { margin: 0 0 18px; color: #f0dfbc; font-size: 26px; font-weight: 550; }
.guide-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guide-mode-card { align-self: start; border: 1px solid #c6b1863d; border-radius: 10px; background: #10192b80; }
.guide-mode-card > summary { cursor: pointer; padding: 16px; color: #e7ce9f; font-size: 15px; line-height: 1.45; }
.guide-mode-card p { padding: 0 16px 16px; margin: 0; color: #c6c2d2; font-size: 14px; line-height: 1.7; }
.guide-quick-note { color: #c6c2d2; font-size: 14px; line-height: 1.7; margin: 20px 0 0; }
@media (max-width: 600px) { .guide-mode-grid { grid-template-columns: 1fr; } .guide-quick-start h2 { font-size: 23px; } }
.guide-assistant { background: radial-gradient(ellipse at 0 0, #71548926, transparent 60%), linear-gradient(135deg, #242136, #162139); border-color: #d3b77773; }
.guide-assistant-head p, .guide-advice-summary { color: #c8c1d0; }
.guide-assistant-field textarea { background: #131b2d; border-color: #bda1745c; }
.guide-model-result { background: #151e30; }
.guide-model-result.best { background: linear-gradient(145deg, #4b384147, #192137); }
.guide-model-result p { color: #c1b7c9; }
