/* Firstlight: a readable, quieter community workspace. Loaded after feature styles. */
:root {
  --page-width: 1360px;
  --rail: 224px;
  --heading-font: 'Manrope', Arial, sans-serif;
  --body-font: 'Manrope', Arial, sans-serif;
  --font-heading: var(--heading-font);
  --font-body: var(--body-font);
  --paper: #f7f7f8;
  --surface: #ffffff;
  --surface-soft: #f4f4f5;
  --ink: #202023;
  --muted: #65656c;
  --line: #e6e6ea;
  --warm: #a84c29;
  --welcome: #faf3ed;
  --welcome-ink: #5d3b2a;
  --brand-wash: #f9eee6;
  --soft-shadow: 0 2px 5px #20202303;
}
:root[data-theme=dark] {
  --paper: #0d0d0f;
  --surface: #151517;
  --surface-soft: #1e1e21;
  --ink: #f2f2f4;
  --muted: #ababB4;
  --line: #2c2c31;
  --warm: #efb48f;
  --welcome: #251e1b;
  --welcome-ink: #f4d1ba;
  --brand-wash: #2e211b;
  --soft-shadow: 0 2px 5px #00000012;
}
body { font-size: 14px; line-height: 1.65; letter-spacing: -.015em; }
button, a, input, textarea, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
/* Keep the navigation at the window edge instead of centering the app shell. */
#app { max-width: none; width: 100%; margin: 0; }
.app-navigation { left: 0; background: var(--paper)!important; }
.navigation-inner { padding: 28px 16px 20px; }
.app-navigation .brand { font-size: 27px; letter-spacing: -1.5px; gap: 8px; }
.app-navigation .brand-symbol, .app-navigation .brand-symbol img { width: 38px; height: 38px; }
.navigation-caption { padding: 12px 9px 32px; font-size: 11px; }
.app-navigation nav { position: static; flex: 0 0 auto; order: 0; }
.app-navigation nav button {
  font-size: 13px; min-height: 44px; padding: 11px 12px!important;
  border-radius: 9px; gap: 12px; font-weight: 600;
}
.app-navigation nav button:hover { transform: none; }
.app-navigation nav button.active { background: var(--surface); box-shadow: 0 1px 3px #00000006; }
.app-navigation nav button.active .ui-icon { color: var(--warm); }
.navigation-launch { min-height: 44px; margin-top: 24px; }
.navigation-bottom { margin-top: auto; }
.beta-note, .navigation-links button { font-size: 11px; }
.navigation-links { gap: 8px 14px; padding-bottom: 18px; }
.navigation-links button { min-height: 30px; }
.rail-account { border-radius: 11px; padding: 12px 10px; gap: 10px; }
.rail-account strong { font-size: 13px; }
.rail-account small { font-size: 11px; }
.maker-avatar { width: 34px; height: 34px; font-size: 13px; }
.app-topbar { height: 76px; background: var(--paper); padding: 0 28px; }
.topbar-title { font-size: 14px; }
.topbar-context { font-size: 12px; }
.beta-label { font-size: 10px; letter-spacing: 1px; padding: 3px 7px; border-radius: 5px; }
.topbar-actions>.btn { display: none; }
main.shell { padding: 28px 28px 0; }
.layout { grid-template-columns: minmax(0, 1fr) 244px; gap: 28px; justify-content: start; }
.community-welcome {
  border: 0; border-radius: 0; background: transparent; color: var(--ink);
  min-height: 0; padding: 0 0 28px; gap: 18px; margin: 0;
}
.welcome-kicker { font-size: 10px; letter-spacing: 1.15px; color: var(--warm); margin-bottom: 9px; }
.community-welcome h1 { font: 750 30px/1.2 var(--heading-font); letter-spacing: -1.1px; color: var(--ink); margin: 0 0 10px; }
.community-welcome p { font-size: 14px; line-height: 1.65; color: var(--muted); opacity: 1; margin: 0; max-width: 400px; }
.welcome-illustration { width: 126px!important; max-width: 26%; }
.welcome-link { font-size: 12px; margin-top: 12px; color: var(--warm); min-height: 30px; }
.launch-composer { padding: 16px 18px; gap: 12px; border-radius: 12px; margin-bottom: 24px; box-shadow: none; }
.composer-copy strong { font-size: 14px; font-weight: 700; }
.composer-copy small { font-size: 12px; }
.compose-label { font-size: 12px; color: var(--warm); gap: 8px; }
.feed-toolbar { margin-bottom: 0; }
.list-heading { height: 46px; margin-bottom: 16px; }
.feed-tabs { gap: 26px; }
.feed-tabs button { font-size: 14px; padding-bottom: 12px; min-width: 48px; }
.feed-tabs button.on::after { height: 2px; background: var(--ink); }
.feed-filter-row { display: grid; gap: 12px; }
.search {
  width: 100%; max-width: none; min-height: 44px; padding: 0 12px; margin: 0;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface); gap: 9px;
}
.search:focus-within { border-color: var(--muted); outline: 2px solid var(--accent); outline-offset: 2px; }
.search input { font-size: 13px!important; min-height: 40px; padding: 0!important; }
.search input:focus-visible { outline: none; }
.search .ui-icon { width: 17px; height: 17px; }
.filters { gap: 7px; flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.chip { font-size: 11px; padding: 7px 10px; min-height: 36px; border-radius: 7px; flex-shrink: 0; }
.chip.selected { background: var(--surface); color: var(--ink); border-color: var(--ink); font-weight: 750; }
.feed-status { font-size: 11px; margin: 14px 0 12px; gap: 12px; }
.feed-status>span:last-child { text-align: right; }
.discovery-options { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: transparent; }
.discovery-options>summary { font-size: 12px; color: var(--muted); cursor: pointer; min-height: 24px; }
.discovery-options[open]>summary { color: var(--ink); }
.discovery-options .discovery-controls { margin: 12px 0; font-size: 12px; }
.discovery-options .discovery-explanation { font-size: 12px; margin: 0; }
.discovery-options .discovery-explanation h3 { font-size: 12px; margin: 16px 0 4px; }
.discovery-options input { min-width: 18px; min-height: 18px; }
.discovery-options .text-btn { min-height: 36px; }
.discovery-arrivals { top: 16px; background: var(--surface); border-radius: 10px; font-size: 13px; }
.discovery-arrivals button { min-height: 36px; padding: 6px 12px; border-radius: 7px; background: var(--ink); color: var(--surface); }
.discovery-status { font-size: 11px; }
.grid { gap: 22px; }
.community-post.card { border-radius: 14px; box-shadow: var(--soft-shadow); }
.community-post.card:hover { border-color: color-mix(in srgb, var(--muted) 25%, var(--line)); box-shadow: 0 6px 20px #00000005; }
.post-top { padding: 18px 22px 0; gap: 10px; }
.post-author strong { font-size: 12px; }
.post-author>span { font-size: 11px; }
.save { width: 40px; height: 40px; border-radius: 8px; padding: 11px; }
.save .ui-icon { width: 18px; height: 18px; }
.post-main { padding: 18px 22px 0; }
.post-product-mark { width: 46px; height: 46px; border-radius: 11px; }
.community-post:hover .post-product-mark { transform: none; }
.product-heading h3 { font: 750 21px/1.3 var(--heading-font); letter-spacing: -.6px; }
.product-subline { font-size: 11px; gap: 6px; }
.post-stage { font-size: 10px; padding: 4px 8px; border-radius: 6px; }
.post-description { font-size: 14px; line-height: 1.75; margin-bottom: 18px; color: var(--muted); overflow-wrap: anywhere; }
.community-post [data-view-summary] .post-description { -webkit-line-clamp: 4; }
.post-banner-button, .post-media-wrap { border-radius: 9px; margin-bottom: 18px; }
/* Media retains its intrinsic ratio. Never crop launch banners to a fixed box. */
.product-banner { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
.link-preview { min-height: 126px; padding: 22px; border-radius: 9px; }
.link-preview-copy small { font-size: 10px; letter-spacing: .8px; }
.link-preview-copy strong { font-size: 21px; }
.link-preview-copy>span { font-size: 12px; }
.maker-question { padding: 14px 16px; background: var(--surface-soft); border-left: 0; border-radius: 9px; margin-bottom: 20px; }
.question-label { font-size: 11px; font-weight: 750; color: var(--warm); }
.maker-question p { font-size: 13px; line-height: 1.7; margin: 6px 0 0; }
.post-footer { margin: 0 -22px; padding: 12px 22px; gap: 10px; }
.post-footer .post-meta { gap: 10px; }
.post-like { min-height: 40px; font-size: 12px; border: 0; background: var(--surface-soft); border-radius: 8px; padding: 8px 10px; }
.task-duration { font-size: 11px; }
.post-actions { gap: 14px; }
.conversation-link, .post-primary { font-size: 12px; min-height: 40px; }
.post-primary { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.post-primary:hover { background: var(--surface-soft); color: var(--ink); }
.sidebar { top: 26px; gap: 24px; padding-top: 2px; }
.side-heading h3 { font-size: 14px; font-weight: 750; }
.side-subtitle { font-size: 12px; line-height: 1.6; margin: 5px 0 14px; }
.maker-row { gap: 10px; padding: 10px 0; min-height: 56px; }
.maker-row strong { font-size: 12px; }
.maker-row small { font-size: 11px; }
.fair-start.side-section { padding: 20px; border-radius: 12px; background: var(--welcome); border: 1px solid color-mix(in srgb, var(--warm) 15%, var(--line)); color: var(--welcome-ink); }
.fair-start h3 { font: 750 20px/1.35 var(--heading-font); letter-spacing: -.5px; margin: 10px 0; }
.fair-start p { font-size: 12px; line-height: 1.7; margin: 0; }
.fair-start .side-label { font-size: 10px; letter-spacing: .8px; }
.fair-start .invitation-illustration { width: 170px!important; display: block; margin: 8px auto!important; }
.fair-start .fair-footnote { border-top: 1px solid color-mix(in srgb, var(--warm) 15%, var(--line)); padding-top: 12px; font-size: 11px; }
.sidebar-note { font-size: 12px; line-height: 1.8; padding-top: 16px; }
.feed-endnote { font-size: 12px; margin: 30px 0; }
.collection-intro { padding: 4px 0 28px; }
.collection-intro h1 { font-size: 30px; font-weight: 750; }
.collection-intro p { font-size: 14px; }
.btn { min-height: 44px; font-size: 13px; padding: 10px 16px; border-radius: 9px; font-weight: 700; }
.btn.small { min-height: 40px; font-size: 12px; padding: 8px 12px; }
.btn:hover { transform: none; box-shadow: none; }
.help { font-size: 12px; line-height: 1.75; }
.text-btn { font-size: 12px; min-height: 32px; }
.intro { padding: 4px 0 26px; margin-bottom: 28px; }
.intro h1, .messages-intro h1, .terms-heading h1 { font: 750 32px/1.25 var(--heading-font); letter-spacing: -1px; margin: 10px 0; }
.intro-copy .eyebrow, .eyebrow { font-size: 10px; letter-spacing: 1px; }
.intro-copy p, .messages-intro p, .terms-heading p { font-size: 14px; }
.intro-art { flex-basis: 140px; width: 140px; height: 120px; }
.intro-art .illustration { width: 140px; max-height: 120px; }
.page-panel { padding: 28px; border-radius: 13px; }
.page-panel h2 { font-size: 22px; font-weight: 750; }
.page-panel h3 { font-size: 16px; font-weight: 750; }
.page-panel p { font-size: 14px; line-height: 1.8; }
.page-panel .help { font-size: 12px; }
.launch-sections { display: flex; position: static; gap: 20px; padding: 16px 0; margin: 14px 0 8px; border-bottom: 1px solid var(--line); width: auto; background: transparent; }
.launch-sections a { font-size: 12px; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
.launch-sections a:hover { color: var(--ink); }
.form-section-heading { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0 4px; scroll-margin-top: 24px; }
.form-section-heading>span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); color: var(--warm); font-size: 12px; flex-shrink: 0; }
.form-section-heading h2 { font-size: 18px; margin: 0 0 4px; }
.form-section-heading p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0; }
.story-editor { border-radius: 10px; padding: 20px; }
.brand-upload strong, .media-picker h4 { font-size: 14px; }
.brand-upload small, .upload-zone { font-size: 12px; }
.brand-upload { border-radius: 10px; }
.brand-upload .text-btn { min-height: 40px; }
.card-preview-details summary, .example-details summary { font-size: 13px; min-height: 40px; display: list-item; cursor: pointer; }
.page-panel label { font-size: 13px; gap: 8px; }
.page-panel input, .page-panel textarea, .page-panel select { min-height: 44px; font-size: 14px!important; padding: 11px 13px; border-radius: 8px; }
.notice { font-size: 12px; padding: 14px 16px; border-radius: 8px; }
.stats { gap: 16px; margin-bottom: 24px; }
.stat { padding: 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.stat small { font-size: 12px; }
.stat strong { font: 750 30px/1.35 var(--heading-font); margin-top: 8px; }
.review-card { padding: 24px 0; }
.settings-grid { gap: 24px; }
.settings-actions { gap: 10px; }
.messages-intro { padding: 4px 0 28px; }
.messages-intro>img { width: 140px; height: 120px; }
.inbox-row { padding: 18px 12px; gap: 14px; border-radius: 8px; }
.inbox-row strong { font-size: 14px; }
.inbox-row span>span { font-size: 13px; }
.inbox-row small, .inbox-row time { font-size: 11px; }
.terms-layout article p, .rules-page li { font-size: 14px; line-height: 1.9; }
.terms-layout>aside a { font-size: 13px; }
.empty { padding: 40px 24px; border-radius: 12px; }
.empty h3 { font-size: 20px; font-weight: 750; }
.empty p { font-size: 14px; }
#app>footer { font-size: 11px; padding: 22px 28px; }
dialog#modal { border-radius: 16px; padding: 32px; }
#modal .close { width: 40px; height: 40px; font-size: 23px; top: 12px; right: 12px; }
#modal-body h2 { font: 750 28px/1.3 var(--heading-font); letter-spacing: -.8px; }
.detail-description, .product-story { font-size: 14px; line-height: 1.85; }
.detail-host, .detail-heading .eyebrow { font-size: 12px; }
.detail-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
.detail-sidebar .task-box { padding: 22px; border-radius: 12px; }
.task-box .eyebrow { font-size: 10px; }
.task-box h3 { font-size: 23px; }
.task-box p, .detail-facts, .detail-facts p { font-size: 13px; }
.task-box .btn { font-size: 12px; min-height: 44px; }
.detail-facts h3 { font-size: 15px; }
.detail-facts>div>span { font-size: 11px; }
.meet-maker>span, .discussion-message p { font-size: 13px; }
.meet-maker small { font-size: 10px; }
.feedback-byline strong { font-size: 12px; }
.feedback-byline>span, .feedback-context { font-size: 11px; }
.post-comments .text-btn { min-height: 30px; font-size: 11px; }
.chat-message p { font-size: 14px; }
.chat-message time, .chat-message .text-btn { font-size: 11px; }
.chat-heading p { font-size: 12px; }
.onboarding-progress { padding-right: 30px; }
#modal[data-kind=onboarding]>.close { width: 40px; height: 40px; }
.onboarding-progress>span { font-size: 11px; }
.onboarding-story-copy>p, .onboarding-subtitle { font-size: 13px; }
.onboarding-promise, .onboarding-capacity, .onboarding-footnote { font-size: 11px; }
#modal .onboarding-content label { font-size: 12px; }
#modal .onboarding-content .help { font-size: 11px; }
#modal .onboarding-content .btn { font-size: 13px; }
#modal .onboarding-content input:not([type=checkbox]):not([type=radio]), #modal .onboarding-content textarea { font-size: 14px!important; }
@media(max-width:1160px) {
  :root { --rail: 200px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  main.shell { padding: 28px 24px 0; }
  .app-topbar { padding: 0 24px; }
  #app>footer { padding: 22px 24px; }
  .app-navigation .brand { font-size: 25px; }
}
@media(max-width:800px) {
  .settings-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-sidebar { grid-row: auto; }
  .discussion { grid-column: 1; }
  main.shell { padding: 24px 24px 0; }
  .app-topbar { padding: 0 24px; }
  .community-welcome h1 { font-size: 27px; }
  .welcome-illustration { width: 100px!important; }
  .compose-label { font-size: 0; }
  .post-footer { flex-wrap: wrap; }
  .post-footer .post-meta, .post-footer .post-actions { width: auto; }
}
@media(max-width:680px) {
  :root { --rail: 0px; }
  .app-navigation { height: 68px!important; background: var(--surface)!important; }
  .navigation-inner { height: 68px; padding: 14px 18px; }
  .app-navigation .brand { font-size: 25px; }
  .app-navigation .brand-symbol, .app-navigation .brand-symbol img { width: 34px; height: 34px; }
  .app-navigation nav { position: fixed; padding: 7px 6px max(9px, env(safe-area-inset-bottom)); background: var(--surface); }
  .app-navigation nav button { padding: 7px 3px!important; min-height: 48px; font-size: 10px; gap: 5px; }
  .app-navigation nav button.active { background: var(--surface-soft); box-shadow: none; }
  .app-topbar { top: 8px; right: 16px; height: 52px; padding: 0; background: transparent; }
  .topbar-actions>.btn { display: inline-flex; font-size: 12px; min-height: 38px; padding: 8px 11px; }
  .mobile-account { width: 36px; height: 36px; }
  .mobile-account .maker-avatar { width: 34px; height: 34px; font-size: 12px; }
  main.shell { padding: 24px 16px 0; }
  .community-welcome { padding-bottom: 22px; gap: 10px; }
  .community-welcome h1 { font-size: 26px; letter-spacing: -.8px; }
  .community-welcome p { font-size: 13px; }
  .welcome-kicker { font-size: 9px; }
  .welcome-illustration { width: 90px!important; max-width: 25%; margin: 0!important; }
  .welcome-link { font-size: 12px; }
  .launch-composer { padding: 14px; margin-bottom: 22px; }
  .composer-copy strong { font-size: 13px; }
  .composer-copy small { font-size: 11px; }
  .feed-tabs { gap: 24px!important; }
  .feed-tabs button { font-size: 14px; }
  .search { width: 100%; max-width: none; margin: 0; gap: 8px; }
  .search input { font-size: 16px!important; }
  .chip { font-size: 11px; min-height: 44px; }
  .feed-status { font-size: 10px; }
  .grid { gap: 18px; }
  .post-top { padding: 16px 16px 0; }
  .post-main { padding: 16px 16px 0; }
  .post-product-mark { width: 42px; height: 42px; }
  .product-heading h3 { font-size: 20px; }
  .product-subline { font-size: 10px; overflow-wrap: anywhere; }
  .post-stage { font-size: 9px; padding: 4px 6px; }
  .post-description { font-size: 14px; line-height: 1.75; }
  .maker-question { padding: 13px 14px; }
  .maker-question p { font-size: 13px; }
  .question-label { font-size: 11px; }
  .post-footer { margin: 0 -16px; padding: 12px 16px; }
  .post-footer .post-meta { width: auto; gap: 8px; }
  .post-footer .post-actions { width: auto; gap: 10px; }
  .post-primary, .conversation-link { min-height: 44px; font-size: 12px; }
  .post-like { min-height: 44px; }
  .post-meta .task-duration { font-size: 10px; }
  .discovery-arrivals { top: 78px; }
  .feed-endnote { font-size: 11px; }
  .intro h1, .messages-intro h1, .terms-heading h1 { font-size: 28px; }
  .intro-copy p, .messages-intro p { font-size: 13px; }
  .intro-art { flex-basis: 90px; width: 90px; height: 100px; }
  .intro-art .illustration { width: 90px; }
  .page-panel { padding: 22px 18px; }
  .launch-sections { gap: 12px; flex-wrap: wrap; }
  .launch-sections a { font-size: 11px; min-height: 40px; }
  .form-section-heading h2 { font-size: 17px; }
  .page-panel input, .page-panel textarea, .page-panel select, #modal input, #modal select, #modal textarea { font-size: 16px!important; }
  .stats { gap: 8px; }
  .stat { padding: 16px 12px; }
  .stat small { font-size: 11px; }
  .stat strong { font-size: 26px; }
  .messages-intro>img { width: 96px; height: 100px; margin: 0; }
  #app>footer { padding: 20px 16px 105px; }
  dialog#modal, dialog#modal[data-kind=product] { padding: 28px 18px 22px; border-radius: 14px; max-height: 90dvh; }
  .detail-description, .product-story { font-size: 14px; }
  .detail-heading { padding-right: 28px!important; }
}
@media(max-width:420px) {
  .post-footer .post-meta, .post-footer .post-actions { width: 100%; justify-content: space-between; }
  .conversation-link .ui-icon { display: inline-block; }
  .topbar-actions>.btn span { display: none; }
  .topbar-actions>.btn .ui-icon { width: 16px; height: 16px; }
  .welcome-illustration { display: none; }
}
@media(prefers-reduced-motion:reduce) {
  .community-post, .btn, .chip, .save, .post-primary { transition: none!important; }
}
