
      :root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; background: #020105; color: #f7efff; --line: rgba(207, 166, 255, 0.2); --muted: #b5a8c8; --gold: #ffd166; }
      * { box-sizing: border-box; }
      html, body { width: 100%; min-height: 100%; margin: 0; }
      body { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; align-items: center; padding: 0 24px; background: radial-gradient(circle at 50% -10%, rgba(116, 63, 255, 0.22), transparent 34rem), radial-gradient(circle at 20% 100%, rgba(80, 212, 150, 0.12), transparent 30rem), #020105; }
      a { color: inherit; }
      .app-shell { width: min(100%, 580px); height: 100dvh; min-height: 100dvh; max-height: 100dvh; overflow: hidden; position: relative; background: radial-gradient(circle at 50% 8%, rgba(92, 48, 180, 0.2), transparent 16rem), linear-gradient(180deg, #060414 0%, #0d0820 52%, #120a25 100%); box-shadow: 0 0 120px rgba(93, 43, 200, 0.48), 0 38px 110px rgba(0, 0, 0, 0.46), inset 0 0 24px rgba(255, 255, 255, 0.03); }
      .screen { width: 100%; height: 100%; min-height: 100%; padding: 24px; position: relative; overflow-y: auto; }
      .screen::before { content: ""; pointer-events: none; position: absolute; inset: 0; opacity: 0.28; background-image: radial-gradient(circle, rgba(193, 143, 255, 0.42) 0 1px, transparent 1.5px), radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.5px); background-size: 132px 156px, 184px 210px; background-position: 28px 44px, 88px 140px; }
      .screen > * { position: relative; z-index: 1; }
      .screen-header { min-height: 44px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin-bottom: 24px; }
      .screen-header strong { color: #f7efff; font-size: 18px; font-weight: 750; text-align: center; }
      .plain-icon-link { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 50%; color: #f7efff; text-decoration: none; font-size: 24px; font-weight: 800; }
      .plain-icon-link:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(207, 166, 255, 0.42); }
      .categories-hero { padding: 8px 0 20px; }
      .categories-hero span, .category-detail-eyebrow { color: var(--gold); font-size: 13px; font-weight: 800; }
      .categories-hero h1 { margin: 10px 0 12px; color: #f5ecff; font-size: 28px; line-height: 1.26; font-weight: 900; }
      .categories-hero p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
      .category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; padding-bottom: 18px; }
      .category-card { aspect-ratio: 1 / 1; min-height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px 7px; border: 1px solid rgba(207, 166, 255, 0.2); border-radius: 16px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)), rgba(20, 14, 36, 0.78); text-align: center; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
      .category-icon-wrap { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: radial-gradient(circle at 45% 30%, rgba(255, 209, 102, 0.22), transparent 58%), rgba(139, 53, 255, 0.22); border: 1px solid rgba(207, 166, 255, 0.2); }
      .category-native-icon { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 29px; line-height: 1; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2)); }
      .category-card strong { color: #f7efff; margin: 0; font-size: 13px; line-height: 1.24; font-weight: 850; word-break: keep-all; }
      .category-detail-hero { padding: 22px 18px; border: 1px solid rgba(207, 166, 255, 0.24); border-radius: 20px; background: radial-gradient(circle at 50% 0%, rgba(255, 209, 102, 0.16), transparent 48%), linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)), rgba(20, 14, 36, 0.82); text-align: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
      .category-detail-icon { width: 74px; height: 74px; margin: 0 auto 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 24px; background: radial-gradient(circle at 45% 30%, rgba(255, 209, 102, 0.24), transparent 58%), rgba(139, 53, 255, 0.24); border: 1px solid rgba(207, 166, 255, 0.24); }
      .category-detail-icon .category-native-icon { font-size: 38px; }
      .category-detail-hero h1 { margin: 10px 0 12px; color: #f7efff; font-size: 24px; line-height: 1.32; font-weight: 900; word-break: keep-all; }
      .category-detail-hero p { margin: 0; color: #d8cce7; font-size: 14px; line-height: 1.65; word-break: keep-all; }
      .category-keyword-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
      .category-keyword-tag { min-height: 28px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #dccfff; font-size: 12px; font-weight: 750; }
      .dream-section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 16px; }
      .dream-section-title span { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(188, 118, 255, 0.15); color: #bc76ff; font-size: 14px; font-weight: 900; }
      .dream-section-title h2 { margin: 0; color: #fff; font-size: 16px; font-weight: 800; }
      .seo-article { margin-top: 24px; padding-bottom: 4px; }
      .quick-read-card { margin-bottom: 16px; padding: 17px; border: 1px solid rgba(255, 209, 102, 0.24); border-radius: 16px; background: linear-gradient(145deg, rgba(255, 209, 102, 0.12), rgba(255, 255, 255, 0.045)); }
      .quick-read-card h3 { margin: 0 0 10px; color: #ffe0a1; font-size: 15px; line-height: 1.42; }
      .quick-read-card ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: #eadfff; font-size: 13px; line-height: 1.65; word-break: keep-all; }
      .seo-article-intro { display: grid; gap: 12px; margin-bottom: 22px; }
      .seo-article-intro p { margin: 0; color: #d8cce7; font-size: 14px; line-height: 1.72; word-break: keep-all; }
      .situation-list { display: grid; gap: 12px; }
      .seo-content-card { position: relative; padding: 18px 17px 17px; border: 1px solid rgba(207, 166, 255, 0.18); border-radius: 16px; background: rgba(255, 255, 255, 0.055); }
      .situation-number { display: inline-flex; align-items: center; height: 24px; margin-bottom: 10px; padding: 0 9px; border-radius: 999px; background: rgba(188, 118, 255, 0.14); color: #d7b5ff; font-size: 11px; font-weight: 900; letter-spacing: 0; }
      .seo-content-card h3 { margin: 0 0 9px; color: #f7efff; font-size: 16px; line-height: 1.42; }
      .seo-content-card p { margin: 0; color: #d8cce7; font-size: 14px; line-height: 1.74; word-break: keep-all; }
      .fortune-grid { display: grid; gap: 10px; }
      .fortune-card { padding: 16px; border-radius: 15px; border: 1px solid rgba(207, 166, 255, 0.18); background: rgba(255, 255, 255, 0.055); }
      .fortune-card.good { border-color: rgba(112, 208, 107, 0.3); background: rgba(112, 208, 107, 0.1); }
      .fortune-card.bad { border-color: rgba(255, 119, 119, 0.26); background: rgba(255, 119, 119, 0.09); }
      .fortune-card.neutral { border-color: rgba(255, 209, 102, 0.28); background: rgba(255, 209, 102, 0.09); }
      .fortune-card h3 { margin: 0 0 7px; color: #fff; font-size: 14px; }
      .fortune-card p { margin: 0; color: #d8cce7; font-size: 13px; line-height: 1.68; word-break: keep-all; }
      .faq-list { display: grid; gap: 10px; margin: 0; }
      .faq-list div { padding: 16px; border: 1px solid rgba(207, 166, 255, 0.18); border-radius: 15px; background: rgba(255, 255, 255, 0.055); }
      .faq-list dt { margin: 0 0 8px; color: #f7efff; font-size: 14px; font-weight: 850; line-height: 1.45; }
      .faq-list dd { margin: 0; color: #d8cce7; font-size: 13px; line-height: 1.68; word-break: keep-all; }
      .primary-button { min-height: 58px; display: inline-flex; width: 100%; align-items: center; justify-content: center; margin: 18px 0 8px; border-radius: 16px; background: linear-gradient(135deg, #7d2cff 0%, #a743ff 48%, #7624e8 100%); color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; box-shadow: 0 16px 34px rgba(120, 51, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
      .site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 8px; color: rgba(247, 239, 255, 0.58); font-size: 12px; line-height: 1.4; }
      .site-footer a { min-height: 30px; display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
      .site-footer a:hover { color: #f7efff; text-decoration: underline; }
      .contact-form { display: grid; gap: 12px; }
      .contact-form label { display: grid; gap: 7px; color: #f7efff; font-size: 13px; font-weight: 800; }
      .contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(207, 166, 255, 0.2); border-radius: 12px; background: rgba(255, 255, 255, 0.07); color: #f7efff; padding: 12px 13px; font: inherit; font-size: 14px; }
      .contact-form textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
      .contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(216, 204, 231, 0.58); }
      @media (max-width: 519px) { body { padding: 0; } .app-shell { width: 100%; } }
      @media (max-width: 360px) { .screen { padding-left: 18px; padding-right: 18px; } .category-grid { gap: 8px; } .category-card { min-height: 106px; padding: 10px 6px; border-radius: 14px; } .category-icon-wrap { width: 42px; height: 42px; border-radius: 15px; } .category-card strong { font-size: 12px; } .category-native-icon { font-size: 25px; } .category-detail-hero h1 { font-size: 22px; } }
    
/* Extend the restored palette and cards without changing the app's original bundle. */
[hidden] { display: none !important; }
.traffic-search { margin: 0 0 24px; }
.traffic-search label { display: block; font-size: 15px; font-weight: 750; margin-bottom: 9px; }
.traffic-search-row { display: flex; gap: 8px; }
.traffic-search input { min-width: 0; width: 100%; flex: 1; min-height: 48px; padding: 10px 12px; color: #f7efff; background: #1b122b; border: 1px solid #cfa6ff6b; border-radius: 12px; font: inherit; font-size: 16px; }
.traffic-search input::placeholder { color: #b5a8c8; }
.traffic-search button { min-height: 44px; padding: 9px 13px; border: 1px solid #cfa6ff6b; border-radius: 12px; background: #422366; color: #f7efff; font: inherit; font-weight: 700; cursor: pointer; }
.traffic-search .traffic-reset { background: transparent; border: 0; font-size: 13px; padding: 8px 0 8px 12px; }
.traffic-search-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.traffic-search-status, .traffic-edited { color: #c7b9d8; font-size: 13px; line-height: 1.65; }
.traffic-empty { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 24px; line-height: 1.7; }
.traffic-toc { margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #ffffff05; }
.traffic-toc h2 { margin: 0 0 10px; font-size: 17px; }
.traffic-toc ol { padding-left: 22px; margin: 0; }
.traffic-toc a { display: inline-block; padding: 8px 0; color: #dfc9ff; line-height: 1.5; text-underline-offset: 4px; }
.traffic-article .seo-content-card { scroll-margin-top: 20px; }
.traffic-related { margin: 24px 0; }
.traffic-related h2 { font-size: 18px; }
.traffic-related nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.traffic-related a { display: flex; min-height: 48px; padding: 12px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: 14px; line-height: 1.5; background: #ffffff06; }
.traffic-method { border-top: 1px solid var(--line); padding-top: 20px; margin: 26px 0; color: #c7b9d8; font-size: 13px; line-height: 1.75; }
.traffic-method h2 { color: #f7efff; font-size: 16px; }
.traffic-method a { text-underline-offset: 3px; }
.traffic-article h2, .traffic-article h3 { overflow-wrap: anywhere; }
.traffic-article .seo-content-card p { line-height: 1.85; }
.traffic-not-found { margin: 30px auto; max-width: 520px; padding: 24px; color: #f7efff; line-height: 1.7; }
.traffic-not-found a { color: #dfc9ff; display: inline-block; padding: 12px; }
:where(.traffic-search, .traffic-toc, .traffic-related, .traffic-method, .traffic-not-found) :is(a,button,input):focus-visible { outline: 3px solid #ffd166; outline-offset: 4px; }
@media (max-width: 360px) { .traffic-related nav { grid-template-columns: 1fr; } }
.traffic-reading { line-height: 1.85; font-size: 14px; }
.traffic-reading h2 { font-size: 18px; line-height: 1.6; margin: 0 0 14px; }
.traffic-reading h3 { font-size: 16px; line-height: 1.6; }
.traffic-reading p + p { margin-top: 14px; }
.traffic-reading ul { padding-left: 20px; }
.traffic-reading li + li { margin-top: 10px; }
.traffic-reading a, .traffic-guide-entry a { color: #dfc9ff; text-underline-offset: 4px; }
.traffic-reading .seo-content-card h2 a { display: block; }
.traffic-reading-section { scroll-margin-top: 20px; }
.traffic-example { padding-top: 14px; margin-top: 18px; border-top: 1px solid var(--line); }
.traffic-reading dl { margin: 12px 0; }
.traffic-reading dl > div + div { margin-top: 12px; }
.traffic-reading dt { color: #f7efff; font-weight: 700; }
.traffic-reading dd { margin: 3px 0 0; color: #c7b9d8; overflow-wrap: anywhere; }
.traffic-record-template { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff06; font: inherit; user-select: text; }
.traffic-daily-records { list-style: none; padding: 0; }
.traffic-daily-records > li { padding-top: 12px; border-top: 1px solid var(--line); }
.traffic-worked { margin-top: 28px; scroll-margin-top: 20px; }
.traffic-worked .seo-content-card { margin-bottom: 14px; }
.traffic-guide-entry { font-size: 14px; line-height: 1.7; margin: 0 0 20px; }
:where(.traffic-reading, .traffic-guide-entry) a:focus-visible { outline: 3px solid #ffd166; outline-offset: 4px; }

/* Reading guides keep the restored palette; larger type is scoped to this flow. */
:is(.traffic-guide-screen, #resources) { --guide-card: #1b122b; --guide-text: #f7efff; --guide-muted: #c7b9d8; }
.traffic-guide-screen .screen-header { margin-bottom: 20px; }
.traffic-guide-screen .traffic-guide-hero { padding: 0 0 24px; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: start; }
.traffic-guide-hero .category-native-icon { display: none; }
.traffic-guide-hero h1 { font-size: 26px; line-height: 1.4; text-wrap: balance; }
.traffic-guide-screen .traffic-guide-hero p { font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.traffic-guide-screen .traffic-guide-hero .category-detail-eyebrow { color: var(--guide-muted); font-size: 14px; }
.traffic-guide-screen .traffic-reading { font-size: 16px; line-height: 1.75; word-break: keep-all; overflow-wrap: break-word; }
.traffic-guide-screen .traffic-reading h2 { font-size: 20px; line-height: 1.5; text-wrap: balance; }
.traffic-guide-screen .traffic-reading h3 { font-size: 17px; line-height: 1.5; text-wrap: balance; }
.traffic-guide-screen :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: break-word; }
.traffic-guide-screen .situation-list { gap: 24px; }
.traffic-guide-screen .traffic-reading-section { background: var(--guide-card); padding: 20px 18px; }
.traffic-guide-screen .traffic-reading-section p { font-size: 16px; line-height: 1.75; }
.traffic-guide-screen .traffic-reading-section h2 { margin-bottom: 16px; }
.traffic-guide-screen .traffic-edited, .traffic-guide-screen .traffic-method { font-size: 14px; }
.traffic-guide-screen .traffic-related nav { grid-template-columns: 1fr; }
.traffic-guide-screen .traffic-related a { font-size: 16px; }
:is(.traffic-guide-screen, #resources) .traffic-guide-grid { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
:is(.traffic-guide-screen, #resources) .traffic-guide-grid li { margin: 0; min-width: 0; }
:is(.traffic-guide-screen, #resources) .traffic-guide-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; gap: 14px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--guide-card); color: var(--guide-text); text-decoration: none; }
:is(.traffic-guide-screen, #resources) .traffic-guide-card h3 { margin: 0 0 6px; font-size: 18px; }
:is(.traffic-guide-screen, #resources) .traffic-guide-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--guide-muted); text-wrap: pretty; }
.traffic-guide-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; background: #422366; font-size: 25px; }
.traffic-guide-arrow { color: #dfc9ff; font-size: 22px; }
.traffic-guide-screen .traffic-guide-note { color: var(--guide-muted); font-size: 14px; line-height: 1.7; margin: 18px 0 28px; }
.traffic-guide-screen .traffic-guide-toc { padding: 4px 16px; background: var(--guide-card); }
.traffic-guide-toc summary { min-height: 48px; padding: 10px 0; cursor: pointer; font-weight: 700; }
.traffic-guide-toc summary span { margin-inline-start: 8px; color: var(--guide-muted); font-size: 14px; font-weight: 400; white-space: nowrap; }
.traffic-guide-toc[open] ol { padding-bottom: 12px; }
.traffic-guide-screen .traffic-guide-toc a { min-height: 44px; }
.traffic-guide-screen .site-footer { font-size: 14px; }
.traffic-guide-screen .site-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--guide-muted); }
.traffic-guide-screen .traffic-skip-link { position: absolute; z-index: 20; inset-block-start: 12px; inset-inline-start: 24px; padding: 12px 16px; border-radius: 10px; background: var(--guide-card); color: var(--guide-text); transform: translateY(-200%); }
.traffic-guide-screen .traffic-skip-link:focus { transform: none; }
.traffic-guide-screen :is(a, summary):focus-visible { outline: 3px solid var(--gold, #ffd166); outline-offset: 4px; }
.traffic-guide-screen #guide-content { scroll-margin-top: 16px; }
@media (hover: hover) { .traffic-guide-card:hover { border-color: #cfa6ff; } }
@media (max-width: 360px) {
  .traffic-guide-screen .traffic-guide-hero h1 { font-size: 24px; }
  :is(.traffic-guide-screen, #resources) .traffic-guide-card { gap: 10px; padding: 16px 12px; grid-template-columns: 40px minmax(0, 1fr) 16px; }
  .traffic-guide-icon { width: 40px; height: 40px; }
}
@media (forced-colors: active) {
  .traffic-guide-screen :is(a, summary):focus-visible { outline-color: Highlight; }
}

/* Individual dream article invitation, using the restored production palette. */
.traffic-analysis-popup { color: var(--text, #f7efff); width: min(calc(100% - 48px), 360px); max-height: calc(100dvh - 48px); overflow: auto; padding: 34px 24px 26px; text-align: center; border: 1px solid #cfa6ff40; border-radius: 24px; background: radial-gradient(ellipse at 50% 0%, #6535a833, transparent 65%), #17102d; box-shadow: 0 32px 100px #0009, inset 0 1px #ffffff0d; }
.traffic-analysis-popup::backdrop { background: #020105b8; backdrop-filter: blur(5px); }
.traffic-analysis-popup .close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; background: none; border: 0; color: var(--muted, #b5a8c8); font: inherit; font-size: 26px; cursor: pointer; }
.traffic-analysis-popup .art { width: 104px; height: 104px; display: grid; place-items: center; margin: 0 auto 20px; background: radial-gradient(circle, #ad69ff30, transparent 70%); }
.traffic-analysis-popup .art svg { width: 92px; height: 92px; }
.traffic-analysis-popup .eyebrow { font-size: 12px; letter-spacing: 1.5px; font-weight: 650; color: #cfa6ff; margin: 0 0 12px; }
.traffic-analysis-popup h2 { font-size: 26px; letter-spacing: -.9px; line-height: 1.45; margin: 0; font-weight: 750; word-break: keep-all; }
.traffic-analysis-popup h2 em { font-style: normal; color: #d9b8ff; }
.traffic-analysis-popup .description { font-size: 14px; color: #c7b9d8; line-height: 1.8; margin: 16px 0 22px; word-break: keep-all; }
.traffic-analysis-popup .features { display: flex; justify-content: center; margin-bottom: 26px; font-size: 12px; color: #dfc9ff; }
.traffic-analysis-popup .features span + span::before { content: '·'; padding: 0 10px; color: #806990; }
.traffic-analysis-popup .primary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; border-radius: 16px; background: linear-gradient(135deg, #7d2cff, #a743ff 48%, #7624e8); color: white; font-size: 16px; font-weight: 750; text-decoration: none; box-shadow: 0 16px 34px #7833ff40, inset 0 1px #ffffff38; }
.traffic-analysis-popup :is(button, a):focus-visible { outline: 2px solid var(--gold, #ffd166); outline-offset: 3px; }
@media (max-width: 360px) { .traffic-analysis-popup { width: calc(100% - 32px); padding-inline: 20px; } .traffic-analysis-popup h2 { font-size: 24px; } }


/* Home tabs reuse the archived AI screen, search cards, and reading guides. */
.traffic-home-screen { padding: 24px; text-align: start; }
.traffic-home h2, .traffic-home-ai h3 { margin: 0; font-size: 21px; line-height: 1.5; }
.traffic-home .traffic-home-title { margin: 8px 0 12px; font-size: 28px; line-height: 1.4; letter-spacing: -.8px; }
.traffic-home p { color: #c7b9d8; font-size: 15px; line-height: 1.7; word-break: keep-all; }
.traffic-home .traffic-home-intro { margin: 0 0 22px; }
.traffic-step-label { color: #cfa6ff; margin: 0 0 7px; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.traffic-home .traffic-search { margin-bottom: 12px; }
.traffic-home .traffic-search-status { margin: 4px 0 0; font-size: 12px; }
.traffic-home .traffic-home-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 0; }
.traffic-home-topics .category-card { aspect-ratio: auto; min-height: 84px; padding: 14px 0; flex-direction: row; justify-content: flex-start; gap: 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; text-align: start; font-size: 14px; box-shadow: none; }
.traffic-home-topics .category-card > span:first-child { font-size: 24px; flex-shrink: 0; }
.traffic-home-topics .traffic-topic-copy { display: grid; gap: 5px; }
.traffic-topic-copy small { color: #c7b9d8; font-size: 12px; font-weight: 400; }
.traffic-home-topics .category-card strong { font-size: 15px; line-height: 1.4; font-weight: 600; word-break: keep-all; }
.traffic-ai-steps { margin: 0; padding: 0 0 0 20px; color: #f4ecff; }
.traffic-ai-steps li { margin: 0 0 18px; font-size: 16px; line-height: 1.6; }
.traffic-ai-steps p { margin: 4px 0 0; }
.traffic-home-ai { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.traffic-home-ai > a { display: inline-flex; min-height: 44px; align-items: center; color: #dfc9ff; text-underline-offset: 4px; font-size: 15px; }
.traffic-home .site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.traffic-home .site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: #c7b9d8; }
.traffic-home :is(a, button, input):focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.traffic-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.traffic-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.traffic-journey a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; text-decoration: none; text-align: center; line-height: 1.5; }
.traffic-journey a[aria-current="step"] { background: #422366; border-color: #cfa6ff; color: #fff; font-weight: 700; }
.traffic-journey a span { color: #cfa6ff; }
.traffic-guide-step { margin: 30px 0; scroll-margin-top: 20px; }
.traffic-guide-step > p:not(.traffic-step-label) { margin: 0 0 16px; color: #c7b9d8; }
.traffic-guide-next { border: 1px solid var(--line-strong); border-radius: 16px; background: #1b122b; padding: 20px; margin: 28px 0; }
.traffic-guide-next a { display: block; padding: 12px 0; min-height: 44px; }
@media (max-width: 360px) {
  .traffic-home .screen.traffic-home-screen { padding-inline: 24px; }
  .traffic-journey a { flex-direction: column; gap: 2px; font-size: 12px; }
}

/* Fixed destinations stay reachable without covering the scrollable content. */
body:has(.traffic-bottom-nav) { --traffic-nav-space: calc(82px + env(safe-area-inset-bottom, 0px)); }
body:has(.traffic-bottom-nav) .screen { padding-bottom: calc(28px + var(--traffic-nav-space)); scroll-padding-bottom: var(--traffic-nav-space); }
body:has(.traffic-bottom-nav) .document-page { padding-bottom: calc(28px + var(--traffic-nav-space)); }
/* Let desktop wheel input scroll the document from both the content and the side gutters. */
@media (min-width: 768px) {
  html:has(.traffic-bottom-nav) { scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  body:has(.traffic-bottom-nav) .app-shell { height: auto; max-height: none; overflow: clip; }
  .app-shell:has(> .dream-reader) {
    background:
      radial-gradient(circle at 50% 8dvh, #5c30b433, transparent 16rem),
      linear-gradient(180deg, #060414, #0d0820 52dvh, #120a25 100dvh);
  }
  body:has(.traffic-bottom-nav) .app-shell .screen { height: auto; min-height: 100dvh; overflow: visible; }
}
#analyze { width: 100%; }
/* The AI form and its static guide read as one centered column; the guide follows the form without a viewport-tall gap. */
#analyze:has(.traffic-ai-guide) #root { min-height: 0; align-items: flex-start; }
#analyze:has(.traffic-ai-guide) #root .app-shell { height: auto; min-height: 0; max-height: none; overflow: clip; box-shadow: none; }
#analyze:has(.traffic-ai-guide) #root .screen { height: auto; min-height: 0; overflow: visible; padding-bottom: 8px; }
/* The guide footer below already carries these links. */
#analyze:has(.traffic-ai-guide) #root .analyze-screen .legal-link-row { display: none; }
#analyze .traffic-ai-guide { margin: 0 auto; height: auto; min-height: 0; max-height: none; overflow: clip; box-shadow: none; }
#analyze .traffic-ai-guide .screen { height: auto; min-height: 0; overflow: visible; }
#root .intro-screen { visibility: hidden; }
#root .analyze-screen .category-entry-button { display: none; }
#root textarea { scroll-margin-block: 24px var(--traffic-nav-space); }
.traffic-bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 580px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line, #cfa6ff33); background: #100a20f5; box-shadow: 0 -8px 28px #02010540; backdrop-filter: blur(16px); }
.traffic-bottom-nav a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; min-height: 56px; padding: 6px 4px; border-radius: 12px; color: var(--muted, #b5a8c8); font-size: 12px; line-height: 1.4; font-weight: 600; text-decoration: none; white-space: nowrap; }
.traffic-bottom-nav svg { width: 23px; height: 23px; }
.traffic-bottom-nav a[aria-current="page"] { color: #dfc9ff; background: #cfa6ff16; }
.traffic-bottom-nav a:focus-visible { outline: 2px solid var(--gold, #ffd166); outline-offset: -2px; }
#resources .traffic-guide-grid { margin-top: 16px; }
@media (max-width: 360px) {
  .traffic-bottom-nav { padding-inline: 8px; }
  .traffic-home .traffic-home-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Compact, illustrated mobile reading shelves. */
#resources .traffic-tips-intro { margin: 12px 0 28px; }
#resources .traffic-tips-intro .traffic-home-title { font-size: 28px; margin: 0 0 6px; }
#resources .traffic-tips-intro p { margin: 0; font-size: 14px; }
.traffic-tips-section + .traffic-tips-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid #cfa6ff20; }
#resources .traffic-tips-section h3 { margin: 0; font-size: 20px; line-height: 1.4; }
#resources .traffic-tips-description { margin: 6px 0 14px; font-size: 14px; }
.traffic-tips-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.traffic-tips-grid li { min-width: 0; display: flex; }
.traffic-tip-card { display: flex; flex-direction: column; width: 100%; border: 1px solid #cfa6ff20; border-radius: 16px; overflow: hidden; background: #21152f; color: #f6efff; text-decoration: none; }
.traffic-tip-art { display: block; position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; }
.traffic-tip-art img { position: absolute; width: 300%; max-width: none; height: 200%; left: 0; top: 0; }
.traffic-tip-art-0 img { left: 0%; top: 0%; }
.traffic-tip-art-1 img { left: -100%; top: 0%; }
.traffic-tip-art-2 img { left: -200%; top: 0%; }
.traffic-tip-art-3 img { left: 0%; top: -100%; }
.traffic-tip-art-4 img { left: -100%; top: -100%; }
.traffic-tip-art-5 img { left: -200%; top: -100%; }
.traffic-tip-copy { display: flex; flex: 1; flex-direction: column; padding: 0 14px 16px; }
#resources .traffic-tip-copy h4 { margin: 0 0 7px; font-size: 16px; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
#resources .traffic-tip-copy p { margin: 0; font-size: 13px; line-height: 1.6; color: #bfb0cf; word-break: keep-all; overflow-wrap: anywhere; }
.traffic-tip-card:focus-visible { outline: 3px solid var(--gold, #ffd166); outline-offset: 3px; }
@media (hover: hover) { .traffic-tip-card:hover { border-color: #cfa6ff88; } }
@media (max-width: 360px) { .traffic-tips-grid { gap: 10px; } .traffic-tip-copy { padding: 0 11px 14px; } #resources .traffic-tip-copy h4 { font-size: 15px; } }

/* Shared mobile dream article reader. */
.dream-reader { --reader-accent: #d6c0ff; }
.dream-reader .category-detail-hero { padding: 0; text-align: left; background: none; border: 0; box-shadow: none; }
.dream-reader .dream-cover { margin: 0 0 24px; padding: 0; border-radius: 28px; overflow: hidden; }
.dream-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.image-credits .document-section { scroll-margin-top: 24px; overflow-wrap: anywhere; }
.image-credits .document-section p + p { margin-top: 8px; }
.dream-reader .category-detail-hero h1 { font-size: 30px; line-height: 1.3; letter-spacing: -.04em; }
.dream-reader .category-detail-hero p { font-size: 15px; line-height: 1.85; }
.dream-reader .dream-scenes { padding: 12px 0; border: 0; background: none; }
.dream-scenes p { color: var(--muted); font-size: 14px; }
.dream-reader .dream-scenes ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; list-style: none; padding: 0; margin-top: 20px; }
.dream-reader .dream-scenes li a { display: flex; min-height: 48px; height: 100%; align-items: center; justify-content: center; padding: 12px 6px; border-radius: 14px; background: #ffffff08; border: 1px solid #c9a7ff28; text-decoration: none; font-size: 14px; }
.dream-reader .dream-scenes a:hover { background: #a876ff25; }
.dream-reader .situation-list { gap: 0; }
.dream-reader .situation-list > .seo-content-card { padding: 28px 0; border: 0; border-bottom: 1px solid #c9a7ff24; border-radius: 0; background: none; box-shadow: none; }
.dream-reader .situation-list h3 { font-size: 21px; line-height: 1.5; letter-spacing: -.025em; }
.dream-reader .situation-list p { font-size: 16px; line-height: 1.95; }
.dream-reader .traffic-worked { margin: 32px 0; padding: 24px 18px; border-radius: 24px; background: #cbb5ef0c; border: 1px solid #cbb5ef20; }
.dream-reader .traffic-worked > h2 { font-size: 23px; line-height: 1.45; }
.dream-reader .traffic-worked .seo-content-card { border-radius: 18px; background: #a88bd610; }
.dream-reader .dream-faq details { border-bottom: 1px solid #c9a7ff26; }
.dream-reader .dream-faq summary { padding: 20px 2px; cursor: pointer; font-size: 16px; line-height: 1.65; font-weight: 650; }
.dream-reader .dream-faq p { margin: 0 0 22px; color: var(--muted); line-height: 1.85; }
.dream-reader :is(a,summary):focus-visible { outline: 3px solid #ffd166; outline-offset: 4px; }
@media (max-width: 420px) { .dream-reader.screen { padding: 20px; } }

.dream-cover-symbol { display: flex; align-items: center; justify-content: center; height: 112px; font-size: 72px; line-height: 1; filter: drop-shadow(0 10px 22px #ab78ff40); }
.dream-reader .dream-scenes li a { text-align: center; word-break: keep-all; overflow-wrap: anywhere; }

.dream-reader .dream-forecast { padding: 16px 18px; background: #a98ad514; border-left: 3px solid #cdb3ff; border-radius: 0 14px 14px 0; }
.dream-forecast span { display: block; font-size: 12px; color: #c8b3e2; margin-bottom: 8px; }
.dream-forecast strong { display: block; color: #f2e8ff; font-size: 17px; line-height: 1.75; }

/* Long tables of contents keep all crawlable anchors without delaying the reading. */
.dream-scenes summary { cursor: pointer; min-height: 48px; padding: 12px 0; color: #f7efff; font-size: 18px; font-weight: 700; }
.dream-scenes summary span { margin-left: 8px; color: #c7b9d8; font-size: 14px; font-weight: 400; }
.dream-scene-group h3 { margin: 24px 0 0; font-size: 16px; color: #c7b9d8; }
.dream-reader .dream-scene-group ol { margin-top: 10px; }
:where(.traffic-home, .dream-reader) ::selection { background: #dfc9ff; color: #17102d; }
.traffic-search input { caret-color: #ffd166; }

.traffic-search-scene { display: block; margin-top: 6px; color: #dfc9ff; line-height: 1.5; }

/* Collapsible examples within dream articles. */
.dream-reader .traffic-comparison { margin: 24px 0; padding: 0; border: 1px solid #cbb5ef38; border-radius: 20px; background: #cbb5ef0c; scroll-margin-top: 20px; }
.traffic-comparison-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 18px; cursor: pointer; list-style: none; }
.traffic-comparison-summary::-webkit-details-marker { display: none; }
.traffic-comparison-summary:focus-visible { outline: 3px solid #ffd166; outline-offset: 4px; border-radius: 16px; }
.traffic-comparison-heading { display: grid; gap: 5px; min-width: 0; }
.traffic-comparison-kicker { color: #c7b9d8; font-size: 12px; font-weight: 600; }
.traffic-comparison-title { color: #f7efff; font-size: 19px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.traffic-comparison-action { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; color: #dfc9ff; font-size: 13px; font-weight: 600; }
.traffic-comparison-close, .traffic-comparison[open] .traffic-comparison-open { display: none; }
.traffic-comparison[open] .traffic-comparison-close { display: inline; }
.traffic-comparison-chevron { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.traffic-comparison[open] .traffic-comparison-chevron { transform: rotate(225deg) translateY(-2px); }
.traffic-comparison-body { padding: 0 18px 20px; overflow-wrap: anywhere; }
.traffic-comparison-body p { line-height: 1.85; }
.traffic-comparison-notice { color: #c7b9d8; font-size: 14px; }
.traffic-comparison-records { display: grid; gap: 12px; margin: 18px 0; }
.traffic-comparison-record { min-width: 0; padding: 16px; border: 1px solid #cbb5ef24; border-radius: 14px; background: #a88bd610; }
.traffic-comparison-body h3 { margin: 0 0 8px; color: #e1d0ff; font-size: 16px; line-height: 1.5; }
.traffic-comparison-body p { margin: 0; }
.traffic-comparison-interpretation { margin: 18px 0; padding: 14px 16px; border-left: 3px solid #cdb3ff; border-radius: 0 12px 12px 0; background: #a98ad514; }
.traffic-comparison-interpretation strong { display: block; margin-bottom: 8px; color: #e1d0ff; font-size: 15px; }
.traffic-comparison-record .traffic-comparison-interpretation { margin: 14px 0 0; }
.traffic-comparison-questions { margin: 18px 0; }
.traffic-comparison-questions ul { margin: 0; padding-left: 20px; }
.traffic-comparison-questions li { margin: 6px 0; line-height: 1.7; }

/* Summary-first reading layout applies only to the six detailed guides. */
.traffic-guide-detail .traffic-guide-hero { padding-bottom: 12px; }
.traffic-guide-detail .traffic-guide-hero h1 { margin: 0 0 10px; font-size: 26px; font-weight: 700; line-height: 1.3; }
.traffic-guide-detail .traffic-article { margin-top: 0; }
.traffic-guide-detail .traffic-edited { margin: 0 0 18px; font-size: 12px; line-height: 1.5; }
.traffic-guide-detail .traffic-guide-summary { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--guide-card); }
.traffic-guide-detail .traffic-reading .traffic-guide-summary h2 { font-size: 16px; line-height: 1.4; margin: 0 0 8px; }
.traffic-guide-detail .traffic-guide-summary ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.traffic-guide-detail .traffic-guide-summary li + li { margin-top: 5px; }
.traffic-guide-detail .traffic-guide-section-nav { position: sticky; top: 0; z-index: 4; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin: 14px 0 18px; background: #0c0817; scrollbar-width: thin; }
.traffic-guide-detail .traffic-guide-section-nav a { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 20px; color: var(--guide-text); font-size: 14px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.traffic-guide-detail .traffic-guide-section-nav a:hover { border-color: #dcc3ff; }
.traffic-guide-detail .traffic-reading .traffic-reading-section { scroll-margin-top: 76px; padding: 8px 0 30px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.traffic-guide-detail .traffic-reading .traffic-reading-section + .traffic-reading-section { border-top: 1px solid var(--line); padding-top: 30px; }
.traffic-guide-detail .traffic-reading .traffic-reading-section h2 { font-size: 22px; line-height: 1.45; letter-spacing: -.02em; margin: 0 0 16px; }
.traffic-guide-detail .traffic-reading .traffic-reading-section p { font-size: 17px; line-height: 1.85; }
.traffic-guide-detail .traffic-guide-example { border-bottom: 1px solid var(--line); padding: 0 0 12px; margin-top: 12px; }
.traffic-guide-detail .traffic-guide-example > summary { min-height: 44px; padding: 10px 0; font-size: 16px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.traffic-guide-detail .traffic-guide-example > dl { padding: 4px 0 8px; }
.traffic-guide-detail :is(a, summary):focus-visible { outline: 2px solid #dcc3ff; outline-offset: 3px; }
@media (max-width: 360px) { .traffic-guide-detail .traffic-guide-hero h1 { font-size: 24px; } }

.traffic-guide-detail .traffic-reading-section :is(li, dd, pre) { font-size: 17px; line-height: 1.85; }
.traffic-guide-detail .traffic-reading-section dt { font-size: 14px; line-height: 1.7; }
.traffic-guide-detail .traffic-guide-info > summary { min-height: 44px; padding: 10px 0; cursor: pointer; }

.dream-scene-analysis-link { display: inline-flex; align-items: center; min-height: 44px; color: #d9b8ff; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.dream-scene-analysis-link:focus-visible { outline: 2px solid #ffd166; outline-offset: 3px; border-radius: 2px; }

/* Keep fragment jumps and printed pages on the full article layout. */
@media screen {
  .dream-reader:not(:has(:target)) .situation-list > .seo-content-card:nth-of-type(n + 4) {
    content-visibility: auto;
    contain-intrinsic-block-size: auto 10rem;
  }
}

/* cache-bust: v2 */