:root { color-scheme: light; --ink: #18232b; --muted: #63717b; --line: #dce3e7; --paper: #fff; --wash: #f4f7f8; --accent: #176b62; --danger: #9e3b35; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px)/2)); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.04em; font-size: 21px; }.brand span { color: var(--accent); }
.user-tools { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.layout { max-width: 1180px; padding: 34px 24px 72px; margin: auto; }
.hero { padding: 26px 0 30px; max-width: 720px; }.hero h1, .auth-card h1 { margin: 8px 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; }.hero p { color: var(--muted); margin: 8px 0; }
.eyebrow { color: var(--accent); font-weight: 750; font-size: 11px; letter-spacing: .13em; }
.columns { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(380px, 1.1fr); gap: 18px; align-items: start; }
.card, .auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 5px 20px #172b3610; }
.card h2 { margin: 0 0 18px; font-size: 19px; }.card h3 { margin: 24px 0 10px; font-size: 15px; }
label { display: block; margin: 14px 0; font-weight: 650; font-size: 13px; } input, textarea, select { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #cbd5da; border-radius: 8px; color: var(--ink); background: white; font: inherit; font-weight: 400; } input:focus, textarea:focus { outline: 3px solid #176b6224; border-color: var(--accent); }
button { font: inherit; cursor: pointer; border: 0; border-radius: 8px; padding: 9px 13px; }.primary { display: inline-flex; justify-content: center; width: 100%; margin-top: 8px; padding: 11px 16px; color: white; background: var(--accent); font-weight: 700; }.primary:hover { background: #0d574f; }.quiet { color: #34454e; background: #edf2f3; }.quiet:hover { background: #e0e9ea; }.muted { color: var(--muted); font-weight: 400; }
button:disabled { cursor: wait; opacity: .68; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.section-heading h2 { margin-bottom: 0; }
.history-list { display: grid; gap: 7px; margin-top: 16px; max-height: 490px; overflow: auto; }.history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; text-align: left; background: white; border: 1px solid var(--line); padding: 10px 12px; }.history-item:hover { border-color: var(--accent); }.history-item small { grid-column: 1 / -1; color: var(--muted); }.history-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { align-self: center; border-radius: 99px; padding: 2px 8px; font-size: 11px; background: #edf2f3; }.pill.succeeded { color: #116044; background: #e1f4e9; }.pill.failed, .pill.cancelled { color: #8b302b; background: #fbe9e7; }.pill.running { color: #8a5d00; background: #fff1cb; }
.detail-card { margin-top: 18px; }.status-line { color: var(--accent); font-weight: 700; }.run-summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #faf9fc; }.run-summary dt { color: var(--muted); }.run-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }.error-text { color: var(--danger); white-space: pre-wrap; }.actions, .report-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }.report-links { margin-top: 12px; }.report-links a { color: var(--accent); margin-right: 12px; }.steps { display: grid; gap: 8px; }.step-row { border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; }.step-title { font-weight: 700; }.step-row pre { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; margin-bottom: 0; }.empty { text-align: center; padding: 28px 0; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }.auth-card { width: min(100%, 410px); padding: 30px; }.auth-card h1 { font-size: 28px; }.auth-card .primary { margin-top: 12px; }.message { min-height: 1.5em; color: var(--danger); }.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: #1d3037; color: white; padding: 10px 16px; border-radius: 8px; transition: .2s; }.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.report { max-width: 900px; margin: 24px auto; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }.report table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }.report th, .report td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; }.report pre { background: var(--wash); padding: 12px; overflow: auto; }
@media (max-width: 760px) { .columns { grid-template-columns: 1fr; }.topbar { padding: 0 16px; }.layout { padding: 24px 14px 54px; }.card { padding: 17px; }.section-heading { align-items: flex-start; } }

/* Report reader: shared AFM platform palette, cards and typography. */
.report { max-width: 1120px; margin: 40px auto 64px; padding: 44px 48px 56px; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; font-family: inherit; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; counter-reset: report-section; }
.report::before { content: "AFM  /  AGENT REPORT"; display: block; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .16em; margin-bottom: 20px; }
.report h1 { color: var(--ink); font-family: inherit; font-size: clamp(28px, 3vw, 40px); line-height: 1.4; letter-spacing: -.035em; margin: 0 0 24px; font-weight: 750; }
.report h1 + p { color: var(--muted); font-size: 13px; line-height: 1.85; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.report h2 { counter-increment: report-section; display: flex; align-items: baseline; gap: 15px; color: var(--ink); font-size: 23px; line-height: 1.5; margin: 48px 0 22px; border-top: 1px solid var(--line); padding-top: 28px; scroll-margin-top: 110px; }
.report h2::before { content: counter(report-section, decimal-leading-zero); color: var(--accent); font-size: 13px; letter-spacing: .06em; font-weight: 500; }
.report h3 { font-size: 18px; color: var(--ink); margin: 32px 0 14px; }
.report h4 { font-size: 15px; margin: 26px 0 10px; }
.report p { margin: 16px 0; }
.report strong { color: var(--ink); font-weight: 650; }
.report a { color: var(--accent); text-underline-offset: 4px; }
.report ul, .report ol { padding-left: 24px; margin: 20px 0; }
.report li { padding-left: 6px; margin: 12px 0; }
.report li::marker { color: var(--accent); }
.report > h2:first-of-type + ul { list-style: none; padding: 14px 26px; background: #faf4fe; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; }
.report > h2:first-of-type + ul li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.report > h2:first-of-type + ul li:last-child { border-bottom: 0; }
.report code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .85em; background: #f4eafa; color: #7b528e; padding: 2px 5px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.report pre { background: var(--wash); padding: 20px; border: 1px solid var(--line); border-radius: 10px; line-height: 1.65; }
.report pre code { padding: 0; background: transparent; }
.report table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; font-size: 13px; line-height: 1.65; font-variant-numeric: tabular-nums; }
.report th, .report td { border: 0; border-bottom: 1px solid var(--line); padding: 13px 16px; text-align: left; vertical-align: top; min-width: 108px; }
.report th { background: #f0edf5; color: #64556f; font-size: 12px; font-weight: 650; white-space: nowrap; }
.report td { background: #fff; }
.report tbody tr:nth-child(even) td { background: #fcf9ff; }
.report tbody tr:hover td { background: #faf4fe; }
.report td:first-child { font-weight: 550; color: var(--ink); }
.report td code { white-space: normal; }
.report blockquote { margin: 24px 0; padding: 8px 22px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: #f7f2fb; color: #7b528e; }
.report hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.report-toolbar { position: sticky; top: 0; z-index: 5; }
.report-tools { display: flex; gap: 12px; align-items: center; font-size: 12px; }
.report-tools a { text-decoration: none; border-radius: 9px; padding: 10px 16px; }
.report-tools .primary { width: auto; margin: 0; font-size: 12px; padding: 10px 16px; }
.report-heading { max-width: 1260px; margin: auto; padding: 28px 32px 0; }
.report-heading .eyebrow { margin-top: 24px; }
.report-heading > p { display: flex; align-items: center; gap: 14px; margin: 10px 0 0; font-size: 26px; font-weight: 750; letter-spacing: -.025em; }
.report-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; max-width: 1260px; margin: auto; padding: 28px 32px 56px; align-items: start; }
.report-layout .report { width: 100%; margin: 0; }
.report-layout:has(.report-sidebar[hidden]) { grid-template-columns: minmax(0, 1fr); }
.report-sidebar { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow-y: auto; padding: 22px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.report-kicker { color: var(--accent); font-size: 10px; letter-spacing: .14em; font-weight: 700; margin: 0 8px 8px; }
.report-sidebar-title { font-size: 18px; margin: 0 8px 20px; letter-spacing: -.025em; }
#report-toc { display: grid; gap: 3px; }
#report-toc a { display: flex; align-items: baseline; gap: 12px; text-decoration: none; font-size: 13px; line-height: 1.6; color: var(--muted); padding: 9px 12px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; }
#report-toc a > span:first-child { font-size: 10px; color: #9c95a5; }
#report-toc a:hover, #report-toc a[aria-current] { background: #f4eafa; color: var(--accent); border-left-color: var(--accent); }
.report-sidebar-note { font-size: 11px; line-height: 1.8; color: var(--muted); border-top: 1px solid var(--line); margin: 24px 0 0; padding: 20px 8px 0; }
.report-table { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 10px; }
.report-table table { display: table; margin: 0; }
.report-skip { position: fixed; left: 20px; top: -100px; z-index: 10; background: white; padding: 10px 16px; color: var(--accent); border-radius: 8px; }
.report-skip:focus { top: 12px; }
.report-page :focus-visible { outline: 3px solid #a54edd; outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
  .report-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 24px; }
  .report { padding: 36px; }
}
@media (max-width: 760px) {
  .report-toolbar { height: 62px; padding: 0 18px; }
  .report-tools { gap: 14px; }
  .report-layout { display: block; padding: 18px 12px; }
  .report-heading { padding: 20px 16px 0; }
  .report-toolbar .report-tools { margin-left: auto; flex-wrap: wrap; gap: 8px; }
  .report-tools a, .report-tools .primary { padding: 8px 10px; }
  .report-sidebar { position: static; max-height: none; padding: 16px; margin-bottom: 16px; }
  .report-kicker { margin-bottom: 10px; }
  #report-toc { display: flex; overflow-x: auto; gap: 4px; }
  #report-toc a { flex-shrink: 0; font-size: 12px; padding: 6px 10px; }
  .report-sidebar-note { display: none; }
  .report { margin: 16px 10px; padding: 28px 20px 40px; font-size: 14px; }
  .report h2 { margin-top: 38px; font-size: 21px; }
  .report th, .report td { padding: 10px 12px; }
  .report > h2:first-of-type + ul { padding: 6px 16px; }
}
@media print {
  @page { size: landscape; margin: 15mm; }
  body.report-page { background: white; }
  .report-toolbar, .report-heading, .report-sidebar, .report-footer, .report-skip { display: none !important; }
  .report-layout { display: block; padding: 0; }
  .report, .report-layout .report { max-width: none; width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; font-size: 10pt; }
  .report h1 { font-size: 26pt; }
  .report h2 { font-size: 16pt; margin-top: 26pt; }
  .report h1, .report h2, .report h3, .report h4 { break-after: avoid; }
  .report-table { overflow: visible; border: 0; border-radius: 0; }
  .report table { display: table; width: 100%; table-layout: fixed; overflow: visible; font-size: 8pt; }
  .report th, .report td { min-width: 0; padding: 6pt; overflow-wrap: anywhere; }
  .report th { background: #f0edf5; color: #19171f; white-space: normal; }
  .report tr { break-inside: avoid; }
  .report thead { display: table-header-group; }
  .report pre { white-space: pre-wrap; }
}
.report > h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 34px; }

/* AFM brand workspace — logo and palette reference: afmagency.net, 2026-09-30. */
.platform-page, .auth-page { --ink: #19171f; --muted: #73717e; --accent: #8418cf; --line: #e7e4ec; --wash: #f6f5f8; font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--wash); color: var(--ink); }
.platform-topbar { height: 82px; background: #08080b; border: 0; padding-inline: max(32px, calc((100vw - 1260px)/2)); gap: 42px; }
.brand { display: flex; align-items: center; gap: 20px; }
.brand img { display: block; width: 168px; height: auto; }
.platform-topbar .brand span { color: #8e8a99; border-left: 1px solid #39363e; padding-left: 20px; font-size: 9px; letter-spacing: .15em; }
.global-nav { display: flex; gap: 28px; margin-right: auto; height: 100%; align-items: center; }
.global-nav a { color: #aba7b5; text-decoration: none; font-size: 13px; padding: 29px 0; border-bottom: 2px solid transparent; }
.global-nav a:hover, .global-nav a.active { color: #fff; border-bottom-color: #d384fc; }
.user-tools { color: #b8b4c1; font-size: 12px; }.user-tools .quiet { background: #242129; color: #eeeaf4; }
.platform-layout { max-width: 1260px; padding: 30px 32px 80px; min-height: calc(100vh - 170px); }
.breadcrumbs { min-height: 24px; color: #b0aab9; font-size: 12px; }
.breadcrumbs a { color: #7b718a; text-decoration: none; }.breadcrumbs a:hover { color: var(--accent); }
.platform-hero { max-width: none; padding: 32px 0 38px; border-bottom: 1px solid var(--line); margin-bottom: 32px; position: relative; }
.platform-hero::after { content: "AI FUELED MARKETING"; position: absolute; right: 0; top: 40px; font-size: 10px; letter-spacing: .2em; color: #92839f; }
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .16em; }
.platform-hero h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.045em; margin: 12px 0; font-weight: 750; }
.platform-hero p { color: var(--muted); max-width: 750px; font-size: 14px; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.agent-card { position: relative; min-height: 300px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.agent-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #41d9eb, #8872f2, #f364c7); }
.agent-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px #33204410; }
.agent-card-top { display: flex; justify-content: space-between; align-items: center; }
.agent-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #f4eafd; color: #862ac3; font-size: 22px; font-weight: 700; }
.tag { display: inline-flex; border-radius: 99px; padding: 5px 11px; background: #f5f0fa; color: #866499; font-size: 11px; white-space: nowrap; }
.agent-card h2 { margin: 26px 0 10px; font-size: 22px; }.agent-card p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.agent-meta { color: #9c95a5; font-size: 10px; margin-top: auto; letter-spacing: .04em; }
.agent-open, .text-link { display: inline-block; color: var(--accent); font-size: 13px; text-decoration: none; font-weight: 650; margin-top: 16px; }
.agent-open { border-top: 1px solid var(--line); padding-top: 16px; }.agent-open:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.columns { gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); }
.platform-page .card { border-color: var(--line); border-radius: 16px; padding: 28px; box-shadow: none; }.card h2 { font-size: 20px; letter-spacing: -.025em; }
.agent-info-card { background: #16111f; color: #fff; min-height: 310px; }.agent-info-card .eyebrow { color: #d397fc; }.agent-info-card h2 { margin: 22px 0 12px; font-size: 24px; }.agent-info-card .muted { color: #b1a5c1; line-height: 1.9; font-size: 13px; }.agent-info-card strong { font-size: 12px; }.agent-info-card .text-link { color: #d6a2f7; }
.info-rule { height: 1px; background: #382d43; margin: 24px 0; }
#agent-form-help { font-size: 13px; margin: 16px 0 24px; }
.platform-page input, .platform-page select, .auth-page input { border-color: #ddd6e5; border-radius: 8px; }
.platform-page input:focus, .auth-page input:focus { outline: 3px solid #8c27d321; border-color: var(--accent); }
.primary { background: #8916cd; border-radius: 9px; padding: 13px 20px; transition: background .18s; }.primary:hover { background: #7010ad; }
.quiet { background: #f0edf5; color: #64556f; }.quiet:hover { background: #e8def2; }button:disabled { cursor: not-allowed; opacity: .5; }
.shop-field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }.shop-field legend { font-size: 13px; font-weight: 650; margin-bottom: 12px; }
.shop-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 10px; }
.shop-choice { display: flex; align-items: center; gap: 11px; margin: 0; padding: 15px; border: 1px solid #e2dce9; border-radius: 9px; cursor: pointer; background: #fff; min-width: 0; }
.shop-choice span { overflow-wrap: anywhere; }.shop-choice:hover { border-color: #bb89d8; }.shop-choice:has(input:checked) { background: #faf4fe; border-color: #a147d2; box-shadow: 0 0 0 1px #a147d2; }
.shop-choice input { width: 16px; height: 16px; margin: 0; padding: 0; flex: 0 0 auto; accent-color: var(--accent); }
.shop-notice { font-size: 12px; margin: 10px 0 0; }.shop-notice button { font-size: 12px; margin-left: 10px; }
.field-help { display: block; font-size: 11px; margin-top: 7px; }.period-preview { background: #f7f2fb; padding: 10px 14px; border-radius: 7px; font-size: 12px; color: #7b528e; }
.history-card { margin-top: 32px; }.history-heading { margin-bottom: 24px; }.history-heading h2 { margin-top: 7px; }
.filters { display: flex; flex-wrap: wrap; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters label { flex: 1; min-width: 140px; margin: 0; color: #807489; font-size: 12px; }.filters select, .filters input { padding: 9px 11px; font-size: 13px; }
.result-count { font-size: 14px; margin: 20px 0 14px; }.history-list { max-height: none; overflow: visible; gap: 0; margin: 0; }
.history-item { color: inherit; text-decoration: none; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(230px, 1.3fr) 85px minmax(150px, max-content) max-content; align-items: center; padding: 18px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; gap: 16px; }
.history-item:hover { background: #faf6fd; }.history-id { font-size: 16px; font-weight: 650; }.history-item small { grid-column: auto; font-size: 14px; color: #655d70; }.history-step { white-space: normal; }
.history-report-link { white-space: nowrap; justify-self: end; }
.pill { justify-self: start; font-size: 13px; padding: 4px 10px; }.pill.queued { color: #796186; background: #f0e8f5; }.pill.running { color: #936000; background: #fff1ca; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 24px; font-size: 14px; }
.platform-page .step-row { border-color: var(--line); }.platform-page .status-line { color: var(--accent); }.detail-card .report-links a { color: var(--accent); background: #f4eafa; padding: 9px 13px; border-radius: 8px; text-decoration: none; font-size: 13px; }
.platform-page :focus-visible, .auth-page :focus-visible { outline: 3px solid #a54edd; outline-offset: 3px; }
.platform-footer { max-width: 1196px; margin: auto; padding: 24px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #98909f; font-size: 10px; letter-spacing: .12em; }
.auth-page { display: grid; grid-template-columns: minmax(0, 1.47fr) minmax(0, 1fr); place-items: stretch; padding: 0; background: #fff; }
.auth-intro { position: relative; isolation: isolate; min-height: 100vh; background: #090610 url('/static/login-ribbons.png') center top / cover no-repeat; color: #fff; padding: clamp(32px, 3.8vw, 58px); display: flex; flex-direction: column; gap: 48px; overflow: hidden; }
.auth-intro::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent 35%, #09061033 52%, #090610d9 85%); }
.auth-brand-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.auth-intro .brand img { width: clamp(150px, 14vw, 205px); }
.auth-platform-label { border-left: 1px solid #51465f; padding-left: 24px; color: #c0b4d4; font-size: 9px; font-weight: 500; letter-spacing: .2em; }
.auth-story { width: 100%; margin: auto 0 20px; padding-top: clamp(160px, 27vh, 330px); }
.auth-story .eyebrow { color: #aa77f2; font-size: 11px; font-weight: 600; letter-spacing: .22em; margin-bottom: 22px; }
.auth-story h2 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(42px, 5.6vw, 82px); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; margin: 0 0 22px; }
.auth-story p { color: #aaa4b9; font-size: clamp(16px, 1.7vw, 24px); line-height: 1.5; margin: 0; }
.auth-caption { display: flex; align-items: center; gap: 24px; color: #b9b0c9; font-size: 9px; letter-spacing: .22em; margin-top: auto; }
.auth-caption::before { content: ""; width: 40px; height: 1px; flex-shrink: 0; background: #9c5bd6; }
.auth-card { border: 0; box-shadow: none; width: min(100%, 450px); margin: auto; padding: 40px; }.auth-card h1 { font-size: 32px; margin-top: 15px; }.auth-card .muted { margin-bottom: 30px; font-size: 13px; }.auth-card label { margin: 20px 0; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: #a69bb2; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #ded5e7); }
.auth-divider::after { transform: scaleX(-1); }
.auth-divider span { font-family: Georgia, serif; font-size: 15px; font-style: italic; line-height: 1; }
.auth-lark-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; border: 1px solid #dcd5e5; border-radius: 9px; color: #35303e; background: #fff; text-decoration: none; transition: border-color .18s, background .18s; }
.auth-lark-button img { display: block; width: 83px; height: auto; }
.auth-lark-button span { font-size: 14px; font-weight: 600; }
.auth-lark-button:hover { border-color: #b5a0cd; background: #faf8fd; }
@media (max-width: 950px) {
 .platform-topbar { gap: 24px; padding: 0 24px; }.platform-topbar .brand span { display: none; }.history-item { grid-template-columns: minmax(100px, 1fr) minmax(150px, 1.2fr) 70px minmax(130px, max-content) max-content; gap: 10px; }.history-item small:last-child { grid-column: auto; }.platform-hero::after { display: none; }
}
@media (max-width: 760px) {
 .platform-topbar { height: auto; min-height: 76px; flex-wrap: wrap; gap: 12px 20px; padding: 16px 18px; }.brand img { width: 138px; }.global-nav { order: 3; width: 100%; gap: 24px; }.global-nav a { padding: 8px 0; }.user-tools { margin-left: auto; gap: 8px; font-size: 11px; }
 .platform-layout { padding: 18px 16px 44px; }.platform-hero { padding: 20px 0 24px; margin-bottom: 24px; }.columns { grid-template-columns: 1fr; }.platform-page .card { padding: 22px; }.agent-info-card { min-height: auto; }.shop-choices { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }.history-item { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; }.history-step { grid-row: 2; }.history-item small:last-child { grid-column: 1 / -1; }.history-report-link { grid-column: 1 / -1; justify-self: start; }.pill { grid-column: 2; grid-row: 1; }.filters label { min-width: 120px; }.platform-footer { margin: 0 16px; letter-spacing: .03em; gap: 20px; }
 .auth-page { grid-template-columns: 1fr; }.auth-intro { min-height: 560px; padding: 30px; gap: 38px; background-position: center top; }.auth-story { margin: auto 0 0; padding-top: 180px; }.auth-story h2 { font-size: clamp(40px, 7vw, 54px); }.auth-story p { font-size: 16px; }.auth-story .eyebrow { font-size: 9px; }.auth-caption { font-size: 8px; letter-spacing: .1em; }.auth-platform-label { font-size: 8px; }.auth-card { padding: 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Report period picker: one range, an expandable calendar and 7-day highlighting. */
.period-heading { margin: 22px 0 10px; font-size: 14px; font-weight: 650; }
.period-picker { margin-bottom: 20px; border: 1px solid #dcd1e8; border-radius: 12px; background: #fff; overflow: hidden; }
.period-picker summary { display: flex; align-items: center; gap: 14px; list-style: none; padding: 18px; cursor: pointer; background: #fcf9ff; }
.period-picker summary::-webkit-details-marker { display: none; }
.period-picker summary:hover { background: #f6eefc; }
.period-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; background: #f0e2fb; color: #8925c6; border-radius: 11px; }
.period-range { display: grid; gap: 5px; min-width: 0; }.period-caption { font-size: 12px; color: #8c759c; }.period-range strong { font-size: 19px; letter-spacing: -.025em; font-weight: 650; font-variant-numeric: tabular-nums; }
.period-chevron { color: #9778aa; margin-left: auto; font-size: 23px; }.period-picker[open] .period-chevron { transform: rotate(180deg); }
.period-calendar { border-top: 1px solid #ebe1f2; padding: 20px; max-width: 390px; margin: auto; }
.period-shortcuts { display: flex; gap: 8px; padding-bottom: 18px; }.period-shortcuts button { background: #f6effb; color: #8a3ab9; font-size: 13px; flex: 1; }
.calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }.calendar-nav strong { font-size: 16px; }.calendar-nav button { font-size: 24px; line-height: 1; background: #f7f4fa; width: 36px; height: 36px; padding: 0; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }.calendar-weekdays { margin-bottom: 8px; color: #97879f; font-size: 12px; }
.calendar-days { row-gap: 5px; }.calendar-day { border-radius: 0; padding: 0; height: 38px; background: transparent; color: #33253d; font-size: 14px; }.calendar-day.outside-month { color: #b7aabb; }.calendar-day.in-period { background: #f0e0fc; color: #8031ae; }.calendar-day.period-start { border-radius: 8px 0 0 8px; }.calendar-day.period-end { background: #8b1acd; color: #fff; border-radius: 0 8px 8px 0; font-weight: 700; }.calendar-day:hover { outline: 1px solid #b484ce; outline-offset: -2px; border-radius: 8px; }
.calendar-note { font-size: 12px; color: #8b7c95; margin: 16px 0 0; text-align: center; }
@media (max-width: 760px) { .period-picker summary { padding: 14px; gap: 10px; }.period-icon { width: 36px; height: 36px; }.period-range strong { font-size: 16px; }.period-caption { font-size: 11px; }.period-calendar { padding: 16px; }.history-item small { font-size: 14px; }.history-step { grid-column: 1 / -1; }.history-item small:last-child { grid-column: 1 / -1; }.history-id { white-space: normal; overflow-wrap: anywhere; } }


/* Selected desktop concept: Diagonal Team Narrative, 2026-09-30. */
@font-face { font-family: "AFM Display"; src: url('/static/fonts/Anton-Regular.ttf') format('truetype'); font-display: swap; }
.ui-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.platform-topbar { height: 70px; padding-inline: 4.2vw; gap: 7.7vw; position: relative; z-index: 20; }
.platform-topbar .brand img { width: 190px; }
.global-nav { gap: 20px; }
.agent-switcher { position: relative; height: 100%; color: #fff; }
.agent-switcher summary { display: flex; height: 100%; align-items: center; gap: 12px; list-style: none; cursor: pointer; font-size: 17px; }
.agent-switcher summary::-webkit-details-marker { display: none; }
.agent-switcher summary .ui-icon, .user-tools .ui-icon { filter: invert(1); }
.agent-switcher summary:focus-visible { outline: 2px solid #c878ff; outline-offset: 5px; }
.agent-menu { position: absolute; top: 56px; left: 0; width: 268px; padding: 8px 18px; background: #111113; border: 1px solid #39363e; border-radius: 7px; box-shadow: 0 12px 25px #0003; }
.agent-menu-item { display: flex; align-items: center; gap: 10px; min-height: 43px; width: 100%; padding: 9px 0; background: transparent; color: #f8f7fb; text-decoration: none; font-size: 16px; border-radius: 0; }
.agent-menu-item:hover { color: #deb3ff; }
.agent-selected-mark { margin-left: auto; filter: invert(1); visibility: hidden; }
.is-selected .agent-selected-mark { visibility: visible; }
.agent-placeholder { border-top: 1px solid #303033; color: #77777d; cursor: not-allowed; }
.agent-placeholder span { margin-right: auto; }
.agent-placeholder .ui-icon { width: 15px; height: 15px; filter: invert(.45); }
.agent-placeholder small { font-size: 11px; white-space: nowrap; color: #898990; }
.agent-placeholder:hover { color: #77777d; }
.user-tools { display: flex; align-items: center; gap: 28px; color: #fff; font-size: 16px; }
.user-menu { position: relative; color: #fff; }
.user-menu summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:focus-visible { outline: 2px solid #c878ff; outline-offset: 5px; }
.user-menu summary .ui-icon { width: 16px; height: 16px; }
.user-menu-content { position: absolute; top: calc(100% + 14px); right: 0; min-width: 140px; padding: 7px; background: #111113; border: 1px solid #39363e; border-radius: 7px; box-shadow: 0 12px 25px #0003; }
.user-menu-content .quiet { width: 100%; padding: 9px 12px; color: #f8f7fb; background: transparent; text-align: left; font-size: 14px; }
.user-menu-content .quiet:hover { background: #242129; }
.user-divider { color: #89868e; }
.team-home-page { background: #8914ed; }
.team-home-page .platform-layout { width: 100%; max-width: none; padding: 0; min-height: 0; }
.team-home-page .platform-footer { display: none; }
.weekly-home { position: relative; height: calc(100vw * .663); min-height: 670px; max-height: none; overflow: hidden; isolation: isolate; background: #8914ed; }
.weekly-poster { position: absolute; left: 3.2%; top: 6.4%; z-index: 2; color: #030305; font-family: "AFM Display", Impact, sans-serif; font-size: 9.15vw; line-height: 1.03; letter-spacing: -.035em; }
.weekly-poster span { display: block; }
.weekly-home-copy { position: absolute; left: 3.4%; top: 37%; z-index: 5; color: #fff; }
.weekly-kicker { font-size: 1.05vw; letter-spacing: .24em; font-weight: 600; }
.weekly-kicker::before { content: ""; display: block; width: 35px; height: 2px; background: white; margin-bottom: 18px; }
.weekly-home-copy h1 { font-family: "Avenir Next", Arial, sans-serif; font-size: 5.1vw; font-weight: 800; letter-spacing: -.055em; line-height: .91; margin: 10px 0 18px; }
.weekly-home-copy p { font-size: 1.43vw; line-height: 1.28; margin: 0 0 22px; }
.weekly-workspace-link { display: inline-flex; align-items: center; gap: 20px; padding: 17px 23px; color: #fff; background: #050506; text-decoration: none; font-size: 1.5vw; font-weight: 600; }
.weekly-workspace-link .ui-icon { filter: invert(1); width: 25px; height: 25px; }
.weekly-workspace-link:hover { background: #222; }
.weekly-workspace-link:focus-visible { outline: 3px solid white; outline-offset: 5px; }
.weekly-photographer { position: absolute; z-index: 4; width: 35%; height: auto; left: 18.2%; top: 33.5%; pointer-events: none; }
.weekly-afm { position: absolute; left: -1.6%; top: 79%; color: #030305; font-family: "Arial Black", Arial, sans-serif; font-size: 24vw; font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -.11em; z-index: 3; }
.weekly-note { position: absolute; top: 75%; left: 11.1%; color: white; font-size: .74vw; letter-spacing: .16em; line-height: 1.55; margin: 0; }
.weekly-note::after { content: ""; display: block; width: 22px; height: 1px; background: #fff; margin-top: 10px; }
.weekly-photo-collage { position: absolute; inset: 0; z-index: 1; }
.weekly-photo { position: absolute; margin: 0; animation: weekly-photo-arrive .8s both; animation-delay: calc(var(--slot) * 90ms); }
.weekly-photo-frame { padding: 0; border-radius: 0; background: transparent; width: 100%; height: 100%; overflow: hidden; display: block; }
.weekly-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease, filter .65s; }
.weekly-photo-1 { left: 58.7%; top: 4.8%; width: 38%; height: 29%; --slot: 0; }
.weekly-photo-2 { left: 51.5%; top: 25%; width: 11.5%; height: 25%; --slot: 1; }
.weekly-photo-2 img, .weekly-photo-6 img { filter: grayscale(1); }
.weekly-photo-3 { left: 65.6%; top: 35.4%; width: 32.4%; height: 21%; --slot: 2; }
.weekly-photo-4 { left: 53.5%; top: 53.5%; width: 20.7%; height: 20%; --slot: 3; }
.weekly-photo-5 { left: 81%; top: 58.7%; width: 16%; height: 29%; --slot: 4; }
.weekly-photo-6 { left: 58.5%; top: 75.2%; width: 21.1%; height: 19.2%; --slot: 5; }
.wall-message { position: absolute; right: 4%; top: 50%; color: white; font-size: 14px; z-index: 7; }
.wall-motion-toggle { position: absolute; bottom: 22px; right: 3.2%; background: #0002; color: white; padding: 5px; z-index: 7; }
.wall-motion-toggle img { filter: invert(1); }
.weekly-home.is-paused .weekly-photo { animation-play-state: paused; }
.weekly-home.is-paused .weekly-photo-frame img { transition: none; }
@keyframes weekly-photo-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .weekly-photo { animation: none; }.weekly-photo-frame img { transition: none; } }
.global-nav .agent-menu-item { padding: 9px 0; font-size: 16px; border-bottom: 0; }
.global-nav .agent-menu-item:hover { border-bottom: 0; }
.weekly-poster { transform: scaleX(1.27); transform-origin: left top; }
.weekly-photographer { top: 31%; }
.weekly-photo-frame { animation: weekly-photo-drift 8s ease-in-out infinite alternate; animation-delay: calc(var(--slot) * -1.3s); }
.weekly-home.is-paused .weekly-photo-frame { animation-play-state: paused; }
@keyframes weekly-photo-drift { from { translate: 0 -2px; } to { translate: 0 3px; } }
@media (prefers-reduced-motion: reduce) { .weekly-photo-frame { animation: none; } }
.agent-menu-item { min-height: 36px; }
.global-nav .agent-menu-item { padding: 7px 0; }
.weekly-home-copy h1 { margin-bottom: 10px; }
.weekly-home-copy p { margin-bottom: 17px; }
.global-nav .agent-menu-item { color: #f8f7fb; }
.global-nav .agent-menu-item:hover { color: #deb3ff; }

/* Fit the entire editorial scene within the available desktop viewport. */
.platform-topbar { position: sticky; top: 0; z-index: 50; flex-shrink: 0; }
.team-home-page .weekly-home { height: calc(100dvh - 70px); min-height: 0; }
.weekly-scene { position: absolute; width: min(100vw, calc((100dvh - 70px) * 1.50913)); height: min(66.3vw, calc(100dvh - 70px)); left: 50%; top: 50%; transform: translate(-50%, -50%); container-type: inline-size; }
.weekly-poster { font-size: 9.15cqw; }
.weekly-kicker { font-size: 1.05cqw; }
.weekly-home-copy h1 { font-size: 5.1cqw; }
.weekly-home-copy p { font-size: 1.43cqw; }
.weekly-workspace-link { font-size: 1.5cqw; padding: 1.15cqw 1.55cqw; gap: 1.35cqw; }
.weekly-workspace-link .ui-icon { width: 1.7cqw; height: 1.7cqw; }
.weekly-afm { font-size: 24cqw; }
.weekly-note { font-size: .74cqw; }
.weekly-photographer { filter: grayscale(1); }
.weekly-photo-frame img { filter: brightness(.56) saturate(.65); }
.weekly-photo-6 img { filter: grayscale(1) brightness(.56); }
.weekly-photo-frame:hover img, .weekly-photo-frame:focus-visible img { filter: brightness(1) saturate(1); }
.weekly-photo-6 .weekly-photo-frame:hover img, .weekly-photo-6 .weekly-photo-frame:focus-visible img { filter: grayscale(1) brightness(1); }
.weekly-photo-2 img { object-position: center 36%; }
.weekly-photo-3 img { object-position: center 40%; }
.weekly-photo-5 img { object-position: center 50%; }
/* The original photograph is occluded below the torso; keep that edge outside the frame. */
.weekly-photographer { width: 39%; left: 16%; top: 30%; }
/* Clip decorative edges without creating a nested scroll container. */
.weekly-home { overflow: clip; }

/* Weekly report workspace: creation sidebar and a readable run archive. */
.weekly-workspace-page .platform-layout { max-width: 1440px; padding: 24px 32px 56px; }
.weekly-workspace-page .platform-hero { padding: 20px 0 28px; margin-bottom: 0; border: 0; }
.weekly-workspace-page .platform-hero::after { display: none; }
.weekly-workspace-page .platform-hero h1 { font-size: 34px; margin: 8px 0 10px; }
.weekly-workspace-page .platform-hero .eyebrow { color: #8b8197; font-weight: 500; }
.weekly-workspace-page .workspace-shell { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.weekly-workspace-page .workspace, .weekly-workspace-page .workspace .columns { min-width: 0; }
.weekly-workspace-page .workspace .columns { display: block; height: 100%; }
.weekly-workspace-page .card { border-radius: 10px; padding: 26px; }
.weekly-workspace-page #agent-form-card { height: 100%; }
.weekly-workspace-page #agent-info, .weekly-workspace-page #agent-category, .weekly-workspace-page #agent-form-card .section-heading .eyebrow { display: none; }
.weekly-workspace-page #agent-form-card h2 { font-size: 21px; margin-bottom: 24px; }
.weekly-workspace-page #agent-form-help { font-size: 12px; line-height: 1.6; margin: -10px 0 22px; }
.weekly-workspace-page .shop-field { margin-bottom: 24px; }
.weekly-workspace-page .shop-field legend { width: 100%; font-size: 13px; }
.workspace-field-step { display: block; color: #8b8197; font-size: 10px; font-weight: 500; letter-spacing: .12em; margin-bottom: 8px; }
.weekly-workspace-page .shop-choices { display: block; }
.weekly-workspace-page .shop-choices select { padding: 16px 12px; font-size: 14px; font-weight: 600; background-color: #fff; }
.weekly-workspace-page .shop-notice { font-size: 11px; }
.weekly-workspace-page .period-heading { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 0; font-size: 13px; }
.weekly-workspace-page .period-picker { border-color: #e6dfec; border-radius: 8px; }
.weekly-workspace-page .period-picker summary { gap: 10px; padding: 13px 10px; background: #fff; }
.weekly-workspace-page .period-icon { width: 30px; height: 30px; border-radius: 6px; background: #f5f0fa; }
.weekly-workspace-page .period-range strong { font-size: 12px; letter-spacing: -.03em; white-space: nowrap; }
.weekly-workspace-page .period-caption { font-size: 10px; }
.weekly-workspace-page .period-calendar { padding: 14px 10px; }
.weekly-workspace-page .period-shortcuts { gap: 6px; }
.weekly-workspace-page .period-shortcuts button { font-size: 11px; padding: 7px 4px; }
.weekly-workspace-page .calendar-nav strong { font-size: 14px; }
.weekly-workspace-page .calendar-day { font-size: 12px; height: 32px; }
.weekly-workspace-page .calendar-note { font-size: 10px; }
.weekly-workspace-page #agent-submit { background: #77409d; padding: 13px; font-size: 14px; }
.weekly-workspace-page #agent-submit:hover { background: #623184; }
.weekly-workspace-page #form-message:empty { min-height: 0; margin: 0; }
.weekly-workspace-page .history-card { margin-top: 0; min-width: 0; }
.weekly-workspace-page .history-heading { margin-bottom: 20px; }
.weekly-workspace-page .history-heading h2 { margin: 0; font-size: 21px; }
.weekly-workspace-page .history-heading .eyebrow { display: none; }
.weekly-workspace-page #refresh { background: #fff; border: 1px solid var(--line); font-size: 12px; padding: 8px 12px; }
.weekly-workspace-page .filters { gap: 12px; padding: 0 0 20px; border-top: 0; }
.weekly-workspace-page .filters label { flex: 1; min-width: 100px; font-size: 11px; color: #827a8d; }
.weekly-workspace-page .filters input, .weekly-workspace-page .filters select { min-width: 0; height: 40px; font-size: 12px; }
.weekly-workspace-page .result-count { font-size: 11px; margin: 16px 0 0; color: #9a92a3; }
.weekly-workspace-page .history-item { grid-template-columns: 52px minmax(0, 1fr) auto 126px; padding: 24px 0; gap: 18px; cursor: default; }
.workspace-report-mark { display: grid; place-items: center; width: 52px; height: 60px; background: #f6f2fa; color: #79449e; border-radius: 10px; }
.workspace-report-mark svg { width: 28px; height: 28px; }
.workspace-report-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.weekly-workspace-page .history-id { font-size: 18px; max-width: 100%; }
.weekly-workspace-page .history-item .history-step { font-size: 14px; color: #73677f; grid-column: auto; grid-row: auto; overflow-wrap: anywhere; }
.weekly-workspace-page .history-item .workspace-report-time { font-size: 13px; color: #83778e; margin-top: 4px; grid-column: auto; }
.weekly-workspace-page .history-item .pill { grid-column: auto; grid-row: auto; font-size: 13px; padding: 5px 11px; white-space: nowrap; }
.workspace-report-actions { display: flex; flex-direction: column; align-items: stretch; gap: 9px; text-align: center; }
.weekly-workspace-page .workspace-run-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 10px 16px; background: #77409d; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.weekly-workspace-page .workspace-run-link:hover { background: #623184; }
.weekly-workspace-page .workspace-run-link:disabled { background: #eee8f3; color: #94889e; opacity: 1; }
.weekly-workspace-page .pagination { font-size: 11px; gap: 12px; }
.weekly-workspace-page .pagination button { font-size: 11px; background: #fff; border: 1px solid var(--line); }
@media (max-width: 1100px) {
 .weekly-workspace-page .workspace-shell { grid-template-columns: 310px minmax(0, 1fr); gap: 16px; }
 .weekly-workspace-page .card { padding: 20px; }
 .weekly-workspace-page .history-item { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
 .workspace-report-mark { width: 40px; height: 48px; }
 .workspace-report-actions { grid-column: 2 / -1; flex-direction: row; align-items: center; justify-content: flex-start; }
}
@media (max-width: 760px) {
 .weekly-workspace-page .platform-layout { padding: 16px 16px 40px; }
 .weekly-workspace-page .workspace-shell { grid-template-columns: minmax(0, 1fr); }
 .weekly-workspace-page .period-range strong { font-size: 13px; }
 .weekly-workspace-page .platform-hero h1 { font-size: 28px; }
}

/* GTM workspace uses the platform shell with an editorial research sequence. */
[data-agent-page="gtm-strategy"] .gtm-introduction { font-family: "Songti SC", serif; font-size: 24px; margin: 16px 0 28px; line-height: 1.5; }
.gtm-sequence { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); list-style: none; counter-reset: gtm-stage; padding: 20px 0; margin: 12px 0; border-top: 1px solid #ded7e6; border-bottom: 1px solid #ded7e6; gap: 12px; }
.gtm-sequence li { counter-increment: gtm-stage; font-size: 13px; line-height: 1.6; }
.gtm-sequence li::before { content: "0" counter(gtm-stage); display: block; color: #7951a6; font-size: 24px; margin-bottom: 7px; }
#report-links { flex-wrap: wrap; }
@media (max-width:600px) { .gtm-sequence { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* One reading surface for the four GTM deliverables. */
.gtm-reader { max-width: 1560px; margin: 0 auto; padding: 32px 36px; }
.gtm-reader h1 { margin: 8px 0 10px; }
.gtm-report-tabs { display: flex; gap: 8px; margin: 24px 0 18px; border-bottom: 1px solid var(--line, #dedee6); padding-bottom: 12px; flex-wrap: wrap; }
.gtm-report-tabs button { padding: 12px 20px; border-radius: 10px; border: 1px solid #d8d6e2; background: #fff; color: #555164; cursor: pointer; font: inherit; }
.gtm-report-tabs button[aria-selected="true"] { color: #fff; background: #17141e; border-color: #17141e; box-shadow: inset 0 -3px #a386dc; }
.gtm-report-tabs button:focus-visible { outline: 3px solid #a386dc; outline-offset: 3px; }
#suite-frame { display: block; width: 100%; height: calc(100vh - 290px); min-height: 540px; border: 1px solid #dedde7; border-radius: 14px; background: white; }
@media (max-width: 720px) { .gtm-reader { padding: 22px 14px; } .gtm-report-tabs { gap: 6px; } .gtm-report-tabs button { flex: 1 1 42%; padding: 10px 12px; } .gtm-reports-page .report-tools { flex-wrap: wrap; } }

/* GTM's independent comic cover: AFM palette, expressive ink and diagonal composition. */
.gtm-home-page { background: #8914ed; }
.gtm-home-page .platform-layout { max-width: none; padding: 0; }
.gtm-home-page .platform-footer { display: none; }
.gtm-landing { --gtm-side: max(3.5vw, calc((100vw - (100dvh - 70px) * 2.2) / 2)); position: relative; isolation: isolate; height: calc(100dvh - 70px); min-height: 0; padding: clamp(18px, 3dvh, 40px) var(--gtm-side) 0; display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, .65fr); grid-template-rows: minmax(0, 1fr) auto; gap: clamp(20px, 3dvh, 40px) 2.5vw; align-items: center; overflow: clip; color: #fff8e9; background: #8914ed; }
.gtm-landing[hidden] { display: none; }
.gtm-landing::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: radial-gradient(#08080b 1px, transparent 1px); background-size: 7px 7px; mask-image: linear-gradient(135deg, transparent 35%, #000); }
.gtm-comic-copy { position: relative; z-index: 2; min-width: 0; }
.gtm-edition { margin: 0 0 clamp(12px, 2dvh, 25px); font-size: clamp(9px, .75vw, 12px); font-weight: 700; letter-spacing: .2em; }
.gtm-comic-headline { color: #09090b; font-family: "AFM Display", Impact, sans-serif; font-size: clamp(60px, min(8.6vw, 18dvh), 168px); letter-spacing: -.045em; line-height: .96; transform: rotate(-4deg); transform-origin: left center; margin: 0 0 clamp(18px, 3.5dvh, 38px); }
.gtm-comic-headline > span { display: block; white-space: nowrap; }
.gtm-comic-headline > span:first-child { color: #fff8e9; -webkit-text-stroke: 2px #09090b; text-shadow: 5px 5px #09090b; }
.gtm-punctuation { color: #e8ff63; }
.gtm-agent-intro h1 { font-size: clamp(24px, min(2.6vw, 5.2dvh), 48px); line-height: 1.1; letter-spacing: -.045em; margin: 0 0 clamp(10px, 1.8dvh, 18px); }
.gtm-agent-intro p { font-size: clamp(14px, min(1.2vw, 2.7dvh), 22px); line-height: 1.6; margin: 0 0 clamp(14px, 2.6dvh, 26px); }
.gtm-workspace-link { display: inline-flex; gap: 30px; align-items: center; padding: clamp(11px, 1.8dvh, 17px) clamp(16px, 1.7vw, 24px); background: #e8ff63; border: 3px solid #09090b; box-shadow: 6px 6px #09090b; color: #09090b; font-size: clamp(14px, min(1.3vw, 2.8dvh), 20px); font-weight: 750; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.gtm-workspace-link:hover { transform: translate(3px, 3px); box-shadow: 3px 3px #09090b; }
.gtm-workspace-link:focus-visible { outline: 3px solid #fff8e9; outline-offset: 8px; }
.gtm-input-note { font-size: 11px; letter-spacing: .12em; margin: clamp(14px, 2.7dvh, 28px) 0 0; }
.gtm-comic-art { width: min(100%, calc((100dvh - 190px) * 1.5)); justify-self: end; min-width: 0; margin: 0; position: relative; transform: rotate(3deg); border: 5px solid #09090b; box-shadow: 12px 12px #09090b; background: #fff8e9; }
.gtm-comic-art > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.gtm-comic-art figcaption { position: absolute; right: 18px; bottom: -20px; padding: 10px 16px; transform: rotate(-7deg); background: #fff8e9; border: 3px solid #09090b; color: #09090b; font-size: clamp(12px, 1.3vw, 22px); font-weight: 900; box-shadow: 4px 4px #09090b; }
.gtm-story-strip { position: relative; grid-column: 1 / -1; margin: 0 calc(-1 * var(--gtm-side)); display: flex; justify-content: space-around; gap: 15px; padding: clamp(14px, 2dvh, 22px) 4vw; background: #09090b; border-top: 3px solid #fff8e9; transform: rotate(-1deg); color: #fff8e9; font-size: 13px; font-weight: 650; letter-spacing: .05em; }
@media (max-width: 900px) {
 .gtm-landing { height: auto; min-height: calc(100dvh - 70px); padding: 30px 26px 0; gap: 30px; grid-template-columns: 1fr; grid-template-rows: auto; }
 .gtm-comic-headline { font-size: clamp(70px, 17vw, 145px); margin-bottom: 32px; }
 .gtm-comic-art { width: 100%; max-width: none; justify-self: center; margin: 10px 0 20px; }
 .gtm-story-strip { margin-inline: -26px; flex-wrap: wrap; font-size: 11px; gap: 12px 24px; padding: 18px 22px; }
}
@media (prefers-reduced-motion: reduce) { .gtm-workspace-link { transition: none; } }
@media (max-width: 600px) {
 .gtm-home-page .platform-topbar { height: auto; min-height: 70px; display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; }
 .gtm-home-page .platform-topbar .brand { margin-right: auto; }
 .gtm-home-page .platform-topbar .global-nav { order: 3; flex-basis: 100%; margin: 0; }
 .gtm-home-page .agent-switcher summary { min-height: 28px; }
 .gtm-home-page .agent-menu { top: 34px; }
}

@media (min-width: 901px) and (max-height: 620px) {
 .gtm-landing { height: auto; min-height: 550px; }
 .gtm-comic-art { width: 100%; }
}

/* Readable GTM execution status; stages represent report milestones, not time. */
.run-observability { margin: 28px 0; }
.run-readable-summary { line-height: 1.8; overflow-wrap: anywhere; }
.run-stage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.run-stage { border: 1px solid var(--border, #e2deeb); border-radius: 16px; padding: 18px; display: grid; gap: 12px; background: #f6f5f8; }
.run-stage-running { border-color: #7b20ef; background: #f3eaff; }
.run-stage-succeeded { border-color: #bbb0d0; background: #ece7f6; }
.run-stage-failed { border-color: #bd4038; background: #fff2f0; }
.run-stage .eyebrow { font-size: 12px; }
.run-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.run-metrics dt { font-size: 13px; color: #6b6478; }
.run-metrics dd { margin: 8px 0 0; font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.run-observability .muted { font-size: 14px; line-height: 1.7; }
.run-coverage, .run-activity { padding-left: 22px; line-height: 1.8; overflow-wrap: anywhere; }
#run-step-details { margin-top: 24px; }
#run-step-details summary { cursor: pointer; font-weight: 700; margin-bottom: 16px; }
#run-step-details .error-text { overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 800px) { .run-stage-grid, .run-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 450px) { .run-stage-grid, .run-metrics { grid-template-columns: 1fr; } }

/* Brand world models: a quiet ledger within the existing AFM frame. */
#brand-switcher.is-selected > summary { color: #deb3ff; }
.brand-world-view { margin: 24px 0 64px; }
body.brand-world-page .platform-layout { width: 100%; max-width: none; margin-inline: auto; padding-inline: clamp(24px, 3vw, 64px); }
body.brand-world-page .platform-topbar { padding-inline: clamp(24px, 3vw, 64px); }
body.brand-world-page .platform-hero { padding: 14px 0 12px; margin-bottom: 8px; border-bottom: 0; }
body.brand-world-page .platform-hero h1 { margin: 4px 0 6px; }
body.brand-world-page .brand-world-view { margin-top: 8px; }
.world-list-note { color: #777080; font-size: 13px; margin-bottom: 24px; }
.world-brand-list { border-top: 1px solid #d6d0dc; }
.world-brand-row { display: flex; align-items: center; gap: 24px; padding: 30px 12px; border-bottom: 1px solid #d6d0dc; color: #16121b; text-decoration: none; transition: background .15s; }
.world-brand-row:hover { background: #ede5f3; }
.world-brand-row h2 { margin: 0; font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -.03em; }
.world-brand-number { color: #8b7b9b; font-size: 12px; }
.world-brand-platform { margin-left: auto; color: #74677f; font-size: 12px; }
.world-brand-arrow { font-size: 28px; }
.settings-link { color: #e9e5ee; text-decoration: none; font-size: 14px; padding: 9px 10px; border-radius: 7px; }
.settings-link:hover, .settings-link.active { background: #27232d; color: #fff; }
.settings-view { margin: 24px auto 64px; max-width: 1040px; }
.settings-tabs { display: flex; gap: 8px; border-bottom: 1px solid #ddd7e6; margin-bottom: 18px; }
.settings-tab { border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; background: transparent; color: #766b80; cursor: pointer; font: inherit; }
.settings-tab.is-selected { border-color: #8d5bd2; color: #20172b; font-weight: 650; }
.settings-tab:focus-visible { outline: 2px solid #9d6be1; outline-offset: 2px; }
.settings-panel { padding: clamp(20px, 4vw, 36px); }
.settings-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.settings-heading h2 { margin: 0 0 8px; font-size: 23px; }
.settings-heading p { margin: 0; max-width: 650px; }
.settings-refresh-meta { color: #71667b; font-size: 13px; margin: 24px 0 8px; }
.settings-message { min-height: 1.4em; color: #8a581b; font-size: 13px; }
.settings-table-wrap { max-width: 100%; overflow-x: auto; }
.settings-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.settings-table th { text-align: left; color: #71667b; font-weight: 550; background: #f6f3f8; }
.settings-table td, .settings-table th { padding: 14px 12px; border-bottom: 1px solid #eee9f1; }
.settings-shop-id { color: #72697a; font-size: 12px; overflow-wrap: anywhere; }
.settings-state { color: #87561b; white-space: nowrap; }
.settings-state.is-active { color: #32704d; }
.settings-empty { padding: 28px 12px; color: #71667b; border-top: 1px solid #eee9f1; }
.world-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; font-size: 13px; }
.world-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.world-metric { padding: 24px; }
.world-metric strong { display: block; font-size: 36px; margin: 14px 0; letter-spacing: -.04em; }
.world-metric p { font-size: 12px; margin: 0; }
.world-section { margin-bottom: 24px; min-width: 0; }
.world-section h2 { font-size: 20px; margin: 0 0 12px; }
.world-table-wrap { overflow-x: auto; max-width: 100%; }
.world-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.world-table th { text-align: left; white-space: nowrap; color: #71667b; font-weight: 500; background: #f6f3f8; }
.world-table td, .world-table th { padding: 13px 16px; border-bottom: 1px solid #eee9f1; }
.world-table td { max-width: 360px; min-width: 90px; overflow-wrap: anywhere; vertical-align: top; }
.world-source-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.world-source-tab { text-decoration: none; padding: 9px 13px; border: 1px solid #e3dbe9; border-radius: 6px; color: #73637e; font-size: 12px; }
.world-source-tab[aria-current="page"] { background: #18121e; border-color: #18121e; color: white; }
.world-warning { color: #8a581b; font-size: 13px; }
.world-section summary { cursor: pointer; font-size: 14px; margin-bottom: 16px; }
.knowledge-library { display: grid; gap: 22px; }
.knowledge-library > p { margin: -8px 0 0; }
.knowledge-group { border-top: 1px solid var(--line, #e8e5ee); padding-top: 16px; }
.knowledge-group-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.knowledge-group-heading h3 { font-size: 16px; margin: 0; }
.knowledge-upload, .knowledge-search { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.knowledge-upload input[type="file"] { max-width: min(360px, 60vw); font-size: 13px; }
.knowledge-document-list, .knowledge-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.knowledge-document, .knowledge-hit { border: 1px solid var(--line, #e8e5ee); border-radius: 12px; padding: 14px; min-width: 0; }
.knowledge-document-button { display: block; border: 0; padding: 0; background: none; color: inherit; text-align: left; font-weight: 650; cursor: pointer; }
.knowledge-document-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; }
.knowledge-document-actions button { border: 0; background: none; cursor: pointer; color: #7551bd; }
.knowledge-preview { margin-top: 12px; max-height: 460px; overflow: auto; padding: 14px; background: #faf9fc; border-radius: 8px; overflow-wrap: anywhere; }
.knowledge-preview table { border-collapse: collapse; max-width: 100%; }
.knowledge-preview th, .knowledge-preview td { border: 1px solid #ddd7e7; padding: 6px 9px; }
.knowledge-search input { min-width: min(300px, 70vw); padding: 10px 12px; border: 1px solid #d8d2e2; border-radius: 8px; }
.knowledge-hit p { overflow-wrap: anywhere; white-space: pre-wrap; }
.knowledge-metadata { margin-top: 10px; font-size: 13px; }
.knowledge-metadata summary, .knowledge-versions summary, .knowledge-trash summary { cursor: pointer; color: #7551bd; }
.knowledge-metadata-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.knowledge-metadata-form input, .knowledge-metadata-form select { min-width: 0; padding: 8px; border: 1px solid #d8d2e2; border-radius: 6px; }
.knowledge-metadata-form button, .knowledge-metadata-form span { grid-column: 1 / -1; }
.knowledge-trash { margin-top: 12px; font-size: 13px; }
.knowledge-trash-row { padding: 6px 0; }
.knowledge-delta { color: #6a48ab; font-weight: 600; }
@media (max-width: 850px) { .world-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .world-brand-platform { display: none; } .world-brand-arrow { margin-left: auto; } }
@media (max-width: 600px) { .settings-heading { flex-direction: column; } .settings-heading button { width: 100%; } .settings-table td, .settings-table th { padding: 11px 8px; } }
@media (prefers-reduced-motion: reduce) { .world-brand-row { transition: none; } }

/* Brand library: quiet editorial columns, persistent detail dialog. */
.knowledge-workspace { margin-bottom: 24px; padding: 28px; }
.knowledge-heading, .knowledge-category-title, .knowledge-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.knowledge-heading h2 { margin: 5px 0 6px; font-size: 26px; letter-spacing: -.04em; }
.knowledge-heading p { margin: 0; font-size: 13px; }
.knowledge-refresh { flex-shrink: 0; }
.knowledge-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 10px; margin-top: 24px; }
.knowledge-toolbar input, .knowledge-toolbar select { margin: 0; min-width: 0; }
.knowledge-toolbar button, .knowledge-primary { background: #21162c; color: #fff; }
.knowledge-workspace button:disabled, .knowledge-dialog button:disabled { opacity: .5; cursor: wait; }
.knowledge-workspace :focus-visible, .knowledge-dialog :focus-visible { outline: 3px solid #b99cdd; outline-offset: 3px; }
.knowledge-notice { min-height: 20px; margin: 9px 0 16px; font-size: 12px; }
.knowledge-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.knowledge-category { min-width: 0; border-top: 3px solid #b59ad1; padding-top: 17px; }
.knowledge-category-title { gap: 8px; flex-wrap: wrap; }
.knowledge-category-title h3 { margin: 0; font-size: 15px; flex: 1; }
.knowledge-category-title button { font-size: 12px; padding: 6px 9px; }
.knowledge-count { font-size: 11px; border: 1px solid #e3dbe9; border-radius: 50%; min-width: 24px; height: 24px; display: inline-grid; place-items: center; }
.knowledge-category-caption { font-size: 12px; margin: 10px 0 16px; }
.knowledge-dropzone { padding: 14px 10px; border: 1px dashed #cbbbdc; border-radius: 8px; color: #796787; background: #faf8fc; font-size: 11px; text-align: center; }
.knowledge-dropzone.is-dragging { border-color: #7551bd; background: #eee5fa; }
.knowledge-workspace input[hidden], .knowledge-search-results[hidden] { display: none; }
.knowledge-files { margin-top: 15px; }
.knowledge-file-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px 10px; padding: 16px 0; border-bottom: 1px solid #eee9f1; }
.knowledge-file-type { width: 30px; height: 36px; display: grid; place-items: center; background: #eee7f6; color: #715191; font-size: 10px; font-weight: 800; border-radius: 3px 9px 3px 3px; }
.knowledge-file-info { display: grid; gap: 4px; min-width: 0; }
.knowledge-file-name { background: none; padding: 0; color: #24182f; text-align: left; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.knowledge-file-name:hover { color: #7551bd; text-decoration: underline; text-underline-offset: 4px; }
.knowledge-file-info .muted, .knowledge-business-state { font-size: 11px; color: #84748e; }
.knowledge-status { grid-column: 2; justify-self: start; border-radius: 4px; background: #f0ecf4; padding: 2px 6px; font-size: 10px; color: #705787; }
.knowledge-status.is-ready { background: #edf3ee; color: #3e6a48; }
.knowledge-status.is-failed { background: #fbede7; color: #9a5136; }
.knowledge-stale, .knowledge-file-row > button { grid-column: 2; margin: 0; font-size: 11px; text-align: left; justify-self: start; }
.knowledge-stale { color: #8a6e42; }
.knowledge-empty { padding: 18px 0; color: #88788f; font-size: 12px; line-height: 1.9; }
.knowledge-upload-item { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; font-size: 11px; overflow-wrap: anywhere; }
.knowledge-upload-item button { padding: 0; font-size: 11px; }
.knowledge-trash { padding-top: 8px; }
.knowledge-trash summary { font-size: 12px; }
.knowledge-trash-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #eee9f1; font-size: 12px; }
.knowledge-trash-row > span:first-child { flex: 1; overflow-wrap: anywhere; }
.knowledge-trash-row button { padding: 4px 7px; font-size: 11px; }
.knowledge-search-results { padding: 16px 20px; margin-bottom: 24px; background: #f8f5fb; border-left: 3px solid #9773bb; }
.knowledge-search-results h3 { margin: 0 0 12px; font-size: 14px; }
.knowledge-search-hit { border-top: 1px solid #e8dfee; padding-top: 10px; }
.knowledge-search-hit button { text-align: left; padding: 0; overflow-wrap: anywhere; }
.knowledge-search-hit p { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.knowledge-dialog { box-sizing: border-box; width: min(980px, calc(100vw - 40px)); max-width: calc(100vw - 40px); max-height: calc(100dvh - 40px); padding: 24px; border: 1px solid #d9cde5; border-radius: 14px; background: white; color: #24182f; box-shadow: 0 24px 90px #18121e45; overflow: auto; }
.knowledge-dialog::backdrop { background: #18121e80; backdrop-filter: blur(3px); }
.knowledge-dialog-header h2 { margin: 0; font-size: 21px; overflow-wrap: anywhere; }
.knowledge-dialog-header button { flex-shrink: 0; }
.knowledge-dialog-status { font-size: 12px; }
.knowledge-dialog-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0; font-size: 12px; }
.knowledge-dialog-tools button { font-size: 12px; }
.knowledge-download { color: #7551bd; text-underline-offset: 4px; }
.knowledge-danger { color: #934f3b; background: #faf0ec; }
.knowledge-dialog-tabs { display: flex; gap: 6px; border-bottom: 1px solid #e5dcea; }
.knowledge-dialog-tab { background: none; color: #8a7698; border-radius: 0; padding: 11px 16px; border-bottom: 2px solid transparent; }
.knowledge-dialog-tab[aria-current] { color: #583176; border-color: #7551bd; }
.knowledge-dialog-body { padding-top: 8px; }
.knowledge-dialog-body > p { font-size: 12px; }
.knowledge-preview-frame { width: 100%; height: min(56dvh, 600px); border: 1px solid #e7e0ec; border-radius: 8px; background: #fff; }
.knowledge-edit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.knowledge-edit-form label { margin: 0; min-width: 0; color: #665471; }
.knowledge-edit-form label:first-child, .knowledge-edit-form label:last-of-type, .knowledge-edit-form > p { grid-column: 1 / -1; }
.knowledge-edit-form .knowledge-primary { justify-self: start; }
.knowledge-version-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; padding: 17px 0; border-bottom: 1px solid #eee9f1; font-size: 12px; }
.knowledge-version-row strong { overflow-wrap: anywhere; }
.knowledge-version-row span { grid-column: 1; }
.knowledge-version-row button, .knowledge-version-row a { grid-column: 2; grid-row: auto; font-size: 12px; }

/* Brand World Models: two focused views, grounded in saved data. */
.world-workspace { margin-top: 10px; }
.world-tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.world-tab { padding: 11px 2px 12px; border-radius: 0; border-bottom: 2px solid transparent; background: transparent; color: #777080; font-size: 14px; }
.world-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.world-tab-panel { min-width: 0; }
.world-analysis { padding: 23px 26px; margin-bottom: 20px; background: #f3ebfb; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; }
.world-analysis-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.world-analysis-heading { display: flex; align-items: baseline; gap: 12px; color: var(--accent); font-weight: 750; font-size: 14px; }
.world-analysis-action { flex: 0 0 auto; padding: 9px 14px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 12px; }
.world-analysis-action:disabled { cursor: not-allowed; opacity: .45; }
.world-analysis h2 { margin: 12px 0 5px; font-size: 21px; letter-spacing: -.025em; }
.world-analysis p { margin: 8px 0; color: #51475c; font-size: 14px; }
.world-analysis .world-analysis-footnote { margin-top: 15px; color: #776a83; font-size: 12px; }
.world-analysis-meta { color: #776a83 !important; font-size: 12px !important; }
.world-analysis-subheading { margin: 17px 0 8px; color: #51475c; font-size: 12px; }
.world-analysis-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(92, 48, 127, .12); border-bottom: 1px solid rgba(92, 48, 127, .12); padding: 12px 0; }
.world-analysis-tile { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 3px 12px; border-left: 1px solid rgba(92, 48, 127, .12); }
.world-analysis-tile:first-child { border-left: 0; padding-left: 0; }
.world-analysis-tile strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.world-analysis-tile .world-metric-note, .world-analysis-compare { color: #776a83; font-size: 10px; line-height: 1.45; }
.world-analysis-report { margin: 14px 0 2px; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid rgba(92, 48, 127, .15); border-radius: 8px; background: rgba(255, 255, 255, .74); color: #302638; font: inherit; font-size: 13px; line-height: 1.8; }
.world-section.world-performance, .world-section.world-changes, .world-section.world-object-details { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.world-store-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.world-store-metric { display: grid; gap: 5px; padding: 4px 18px; border-left: 1px solid var(--line); }
.world-store-metric:first-child { padding-left: 0; border-left: 0; }
.world-store-metric strong { font-size: 22px; }
.world-subheading { margin: 0 0 10px; color: var(--accent); font-size: 13px; }
.world-performance .world-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
.world-performance .world-metric { padding: 5px 18px 8px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.world-performance .world-metric:first-child { padding-left: 0; border-left: 0; }
.world-performance .world-metric strong { margin: 7px 0 5px; font-size: 26px; }
.world-performance .world-metric p { margin: 0; }
.world-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.world-section-title { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.world-period-select { width: auto; min-width: 130px; margin: 0; padding: 8px 11px; }
.world-metric-group + .world-metric-group { margin-top: 22px; }
.world-metric-group h3 { margin: 0 0 10px; color: var(--accent); font-size: 13px; }
.world-metric-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.world-metric-item { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 5px 18px 7px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.world-metric-item:first-child { padding-left: 0; border-left: 0; }
.world-metric-label { color: #71667b; font-size: 12px; }
.world-metric-value { font-size: 25px; line-height: 1.3; letter-spacing: -.035em; }
.world-metric-note { color: #847b8c; font-size: 11px; line-height: 1.6; }
.world-metric-item.is-unavailable .world-metric-value { color: #8c8491; font-size: 20px; }
.world-metric-delta { color: #654393; font-size: 12px; font-weight: 650; }
.world-data-note { margin: 12px 0; color: #81778b; font-size: 12px; }
.world-coverage { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.world-coverage summary, .world-object-details > summary { cursor: pointer; font-size: 13px; font-weight: 650; }
.world-coverage .world-table-wrap { margin-top: 12px; }
.world-change-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.world-filter { padding: 6px 13px; border: 1px solid var(--line); border-radius: 99px; background: white; color: #675d70; font-size: 12px; }
.world-filter[aria-pressed="true"] { border-color: var(--accent); background: #f4eafa; color: var(--accent); }
.world-changes .world-table td:nth-child(2) { min-width: 260px; }
.world-changes .world-table td:last-child { min-width: 190px; color: #777080; font-size: 11px; }
.world-detail-link { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 13px; font-weight: 650; text-decoration: none; }
.world-object-details { padding-left: 0; padding-right: 0; }
.world-object-details .world-status { margin-top: 12px; }
.world-detail-table { margin-top: 14px; }
.knowledge-workspace { margin: 0 0 30px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.knowledge-heading { margin-bottom: 16px; }
.knowledge-heading h2 { margin: 0 0 4px; font-size: 23px; }
.knowledge-header-actions { display: flex; align-items: center; gap: 8px; }
.knowledge-header-actions .knowledge-primary, .knowledge-category-title button { background: var(--accent); color: white; }
.knowledge-toolbar { margin-top: 0; grid-template-columns: minmax(0, 1fr) 170px auto; }
.knowledge-columns { grid-template-columns: 205px minmax(420px, 1.65fr) minmax(280px, .85fr); gap: 22px; margin-top: 14px; align-items: start; }
.knowledge-sidebar { display: grid; gap: 3px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.knowledge-category-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 10px 11px; background: transparent; color: #51475c; text-align: left; font-size: 13px; }
.knowledge-category-label { display: grid; gap: 3px; min-width: 0; }
.knowledge-category-types { color: #8a7d93; font-size: 10px; line-height: 1.4; }
.knowledge-category-link:hover, .knowledge-category-link[aria-current="true"] { color: var(--accent); background: #f4eafa; }
.knowledge-category-link .knowledge-count { border: 0; min-width: auto; height: auto; font-size: 11px; }
.knowledge-library { min-width: 0; padding: 0 20px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.knowledge-document-preview { position: sticky; top: 18px; min-width: 0; min-height: 330px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.knowledge-document-preview h3 { margin: 0 0 18px; font-size: 16px; }
.knowledge-preview-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.knowledge-preview-heading .knowledge-file-type { flex: 0 0 auto; }
.knowledge-preview-heading h4 { min-width: 0; margin: 2px 0; overflow-wrap: anywhere; font-size: 15px; }
.knowledge-preview-metadata { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 9px 12px; margin: 16px 0; font-size: 12px; }
.knowledge-preview-metadata dt { color: var(--muted); }
.knowledge-preview-metadata dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.knowledge-preview-note, .knowledge-preview-tags { color: var(--muted); font-size: 12px; line-height: 1.7; }
.knowledge-document-preview > .knowledge-primary { width: 100%; margin-top: 8px; }
.knowledge-category { padding: 12px 0; border-top: 0; }
.knowledge-category-title { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.knowledge-category-title h3 { font-size: 16px; }
.knowledge-category-caption { margin: 7px 0; }
.knowledge-category-title .knowledge-count { display: none; }
.knowledge-file-row { grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 13px 0; }
.knowledge-status { grid-column: 3; grid-row: 1; justify-self: end; }
.knowledge-stale, .knowledge-file-row > button { grid-column: 2 / -1; }
.knowledge-files.is-dragging { outline: 2px dashed var(--accent); outline-offset: 4px; background: #faf6ff; }
.knowledge-files.knowledge-dropzone { padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; font-size: inherit; }
@media (max-width: 850px) {
  .world-metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .world-metric-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .knowledge-columns { grid-template-columns: 1fr; gap: 12px; }
  .knowledge-sidebar { display: flex; overflow-x: auto; }
  .knowledge-category-link { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .knowledge-library { padding: 0 14px; }
}
@media (max-width: 600px) {
  body.brand-world-page .platform-layout { padding: 18px 16px 44px; }
  body.brand-world-page .platform-topbar { padding-inline: 16px; }
  .world-analysis, .world-section.world-performance, .world-section.world-changes { padding: 17px; }
  .world-analysis-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-analysis-tile:nth-child(odd) { border-left: 0; padding-left: 0; }
  .world-analysis-top { align-items: flex-start; }
  .world-analysis h2 { font-size: 18px; }
  .world-section-heading { align-items: flex-start; flex-wrap: wrap; }
  .world-metric-item { padding: 5px 10px 7px; }
  .world-store-metric { padding: 4px 9px; }
  .world-performance .world-metric { padding: 5px 10px 8px; }
  .knowledge-heading { flex-wrap: wrap; }
  .knowledge-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .knowledge-header-actions { width: 100%; justify-content: flex-end; }
  .knowledge-file-row { grid-template-columns: 30px minmax(0, 1fr); }
  .knowledge-status { grid-column: 2; grid-row: auto; justify-self: start; }
}
@media (max-width: 1150px) { .knowledge-columns { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) {
  .knowledge-workspace { padding: 18px; }
  .knowledge-heading { align-items: flex-start; }
  .knowledge-heading h2 { font-size: 22px; }
  .knowledge-heading .eyebrow { font-size: 9px; }
  .knowledge-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .knowledge-toolbar input { grid-column: 1 / -1; }
  .knowledge-toolbar select { width: 100%; }
  .knowledge-dialog { width: calc(100vw - 24px); padding: 16px; max-height: calc(100dvh - 24px); }
  .knowledge-dialog-header h2 { font-size: 18px; }
  .knowledge-edit-form { grid-template-columns: 1fr; }
}

/* Brand directory: editorial cover and searchable workspaces. */
.brand-directory-page .platform-layout { width: 100%; max-width: 1440px; padding: 28px 48px 60px; }
.brand-directory-page #page-heading, .brand-directory-page #breadcrumbs { display: none; }
.brand-directory-page .brand-world-view { margin: 0; }
.brand-directory-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0; }
.brand-directory-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.brand-directory-filter { display: inline-flex; align-items: center; gap: 9px; color: #77707f; background: transparent; padding: 11px 13px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; }
.brand-directory-filter span { font-size: 10px; opacity: .7; }
.brand-directory-filter[aria-pressed="true"] { background: #211729; color: #fff; }
.brand-directory-filter:hover:not([aria-pressed="true"]) { background: #eae4ef; color: #35273f; }
.brand-directory-search { display: flex; gap: 12px; align-items: center; color: #807486; font-size: 11px; margin: 0; }
.brand-directory-search input { width: 240px; margin: 0; padding: 11px 13px; background: #fff; font: inherit; font-size: 12px; }
.brand-directory-results { color: #8d8196; font-size: 11px; margin: 20px 0 14px; }
.brand-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.brand-directory-card { min-width: 0; border: 1px solid #e2dce7; border-radius: 9px; overflow: hidden; background: #fff; transition: transform .18s, box-shadow .18s; }
.brand-directory-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #22122f0b; }
.brand-directory-cover { height: 126px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #e9dff2; color: #564162; text-decoration: none; }
.brand-directory-cover::before, .brand-directory-cover::after { content: ""; position: absolute; border: 1px solid currentColor; opacity: .14; width: 200px; height: 200px; border-radius: 50%; right: -65px; top: -92px; }
.brand-directory-cover::after { right: -35px; top: -66px; }
.brand-directory-card[data-tone="1"] .brand-directory-cover { background: #e5e8e1; color: #53604e; }
.brand-directory-card[data-tone="2"] .brand-directory-cover { background: #eee3dc; color: #856752; }
.brand-directory-card[data-tone="3"] .brand-directory-cover { background: #e1e3ef; color: #56597b; }
.brand-directory-index { position: absolute; top: 16px; left: 20px; font-size: 10px; letter-spacing: .06em; opacity: .6; }
.brand-directory-monogram { font-family: "Baskerville", "Palatino Linotype", serif; font-size: 56px; letter-spacing: -.07em; line-height: 1; }
.brand-directory-cover-arrow { position: absolute; top: 12px; right: 18px; font-size: 20px; opacity: .6; }
.brand-directory-card-body { padding: 20px 22px 0; }
.brand-directory-platform { margin: 0 0 6px; color: #8a7c94; font-size: 10px; letter-spacing: .04em; }
.brand-directory-card h2 { font-size: 22px; letter-spacing: -.035em; line-height: 1.3; margin: 0 0 12px; overflow-wrap: anywhere; }
.brand-directory-name { color: #241c2c; text-decoration: none; }
.brand-directory-status { color: #8b8092; font-size: 11px; display: flex; align-items: center; gap: 7px; margin: 0 0 20px; }
.brand-directory-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #b8aebb; }
.brand-directory-status.is-connected { color: #54705e; }
.brand-directory-status.is-connected::before { background: #729b7f; }
.brand-directory-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid #eeeaf1; padding: 16px 0; }
.brand-directory-open { font-weight: 600; color: #67318e; font-size: 12px; text-decoration: none; }
.brand-directory-knowledge { color: #8b7c96; font-size: 11px; text-decoration: none; }
.brand-directory-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }
.brand-directory-footnote { font-size: 11px; color: #93869c; margin: 26px 0; }
.brand-directory-empty { grid-column: 1 / -1; text-align: center; padding: 60px 24px; border: 1px dashed #d8ccdf; border-radius: 8px; }
.brand-directory-empty h2 { font-size: 22px; margin: 0 0 12px; }
.brand-directory-empty p { font-size: 13px; color: #8b7c96; margin-bottom: 24px; }
.brand-directory-reset { background: #eee5f4; color: #67318e; font-size: 12px; padding: 10px 16px; }
@media (min-width: 1440px) { .brand-directory-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1000px) { .brand-directory-page .platform-layout { padding-inline: 24px; } .brand-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .brand-directory-toolbar { align-items: flex-start; flex-direction: column; gap: 16px; } }
@media (max-width: 600px) { .brand-directory-page .platform-layout { padding: 16px; } .brand-directory-grid { grid-template-columns: 1fr; } .brand-directory-search { width: 100%; } .brand-directory-search input { flex: 1; min-width: 0; width: auto; } .brand-directory-filter { padding-inline: 9px; } }
@media (prefers-reduced-motion: reduce) { .brand-directory-card { transition: none; } }

/* Brand context: a readable journal, with evidence and follow-through beside it. */
.story-workspace { --story-muted: #897d91; --story-line: #e4dce9; padding-bottom: 32px; }
.story-top { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 0 30px; }
.story-kicker { margin: 0 0 12px; font-size: 10px; font-weight: 650; color: #967aa8; letter-spacing: .15em; }
.story-top h2 { margin: 0; color: #302538; font-size: 27px; letter-spacing: -.045em; font-weight: 650; }
.story-intro { color: #8a7c95; font-size: 13px; line-height: 1.8; margin: 10px 0 0; }
.story-top-tools { display: flex; gap: 12px; flex-shrink: 0; align-items: center; }
.story-primary { background: #6c348d; color: #fff; padding: 11px 17px; font-size: 12px; border-radius: 6px; }
.story-primary:hover { background: #53236f; }
.story-quiet { background: transparent; color: #8c759c; font-size: 12px; padding: 8px 10px; border-radius: 5px; }
.story-quiet:hover { color: #582874; background: #eee6f4; }
.story-layout { display: grid; grid-template-columns: 164px minmax(0, 1fr) 250px; gap: clamp(20px, 3vw, 48px); align-items: start; border-top: 1px solid var(--story-line); padding-top: 28px; }
.story-timeline { position: sticky; top: 100px; max-height: calc(100vh - 135px); overflow: auto; padding-right: 12px; }
.story-timeline h3 { font-size: 11px; color: #9d8aa9; font-weight: 500; margin: 4px 0 24px; }
.story-timeline a { display: block; border-left: 1px solid #d9cbe4; color: #87768f; padding: 0 0 22px 16px; text-decoration: none; font-size: 12px; line-height: 1.6; }
.story-timeline a:hover { color: #6c348d; border-left-color: #6c348d; }
.story-timeline a span { display: block; font-size: 10px; color: #a596af; margin-bottom: 4px; }
.story-timeline a strong { font-weight: 500; }
.story-timeline p { font-size: 11px; color: #a596af; line-height: 1.8; }
.story-main { min-width: 0; }
.story-summary { padding: 26px 30px; background: #f0eaf4; border-top: 2px solid #a085b3; margin-bottom: 36px; }
.story-summary h2 { margin: 8px 0 18px; font-size: 25px; letter-spacing: -.035em; line-height: 1.4; }
.story-entry { padding: 28px 0 32px; border-bottom: 1px solid var(--story-line); scroll-margin-top: 100px; }
.story-entry h3 { font-size: 22px; line-height: 1.45; letter-spacing: -.025em; margin: 12px 0 18px; }
.story-entry-meta { display: flex; align-items: center; gap: 14px; font-size: 11px; color: #9a87a6; }
.story-entry-meta button { margin-left: auto; padding: 3px 0; }
.story-stage { padding-left: 12px; border-left: 1px solid #d7c8df; color: #856395; }
.story-date { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.story-prose { color: #55475e; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.story-prose p { margin: 0 0 14px; white-space: pre-wrap; }
.story-text-section { margin-top: 22px; }
.story-text-section h4 { color: #786382; font-size: 12px; font-weight: 650; margin: 0 0 10px; }
.story-text-section ul { padding-left: 18px; margin: 0; color: #67566f; font-size: 13px; line-height: 1.9; }
.story-text-section li { padding-left: 3px; margin: 6px 0; overflow-wrap: anywhere; }
.story-text-section li::marker { color: #ad96bd; }
.story-questions { border-left: 2px solid #d9c6ad; padding-left: 15px; }
.story-questions h4 { color: #9b7851; }
.story-entry-actions { margin-top: 24px; font-size: 12px; color: #8e789c; }
.story-entry-actions summary { cursor: pointer; }
.story-entry-actions p { line-height: 1.9; color: #796683; }
.story-sources { margin-top: 24px; display: flex; gap: 7px 12px; align-items: baseline; flex-wrap: wrap; border-top: 1px solid #e3d9e9; padding-top: 14px; font-size: 11px; color: #a08aaf; }
.story-source { color: #8c689e; text-decoration-color: #cdb4db; text-underline-offset: 4px; overflow-wrap: anywhere; }
.story-source:hover { color: #59276f; }
.story-source-unavailable { color: #a397a9; }
.story-record-note { color: #a394ad; margin: 12px 0 0; font-size: 10px; line-height: 1.8; }
.story-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 12px; }
.story-section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.story-section-heading span { font-size: 10px; color: #a395ac; }
.story-next { border-left: 1px solid var(--story-line); padding-left: 25px; }
.story-next h3 { font-size: 18px; font-weight: 600; margin: 0 0 24px; letter-spacing: -.035em; }
.story-action { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--story-line); }
.story-action strong { display: block; color: #62516e; font-size: 13px; line-height: 1.7; font-weight: 550; overflow-wrap: anywhere; }
.story-action span, .story-action small { display: block; color: #9e8ca9; font-size: 10px; line-height: 1.8; margin-top: 6px; }
.story-action small { color: #b0a0b9; }
.story-note, .story-footer { color: #a090aa; font-size: 11px; line-height: 1.8; }
.story-footer { border-top: 1px solid var(--story-line); padding-top: 20px; margin-top: 35px; }
.story-text-button { color: #805198; padding: 0; background: transparent; font-size: 12px; text-align: left; margin-top: 14px; }
.story-text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.story-message { color: #9a7850; font-size: 12px; line-height: 1.8; margin: 0; }
.story-message:not(:empty) { padding: 12px 0; }
.story-empty > p:not(.story-kicker) { font-size: 14px; line-height: 1.9; color: #98869f; }
.story-timeline-empty { margin: 22px 0; padding: 25px 0; border-top: 1px solid var(--story-line); color: #a090aa; line-height: 1.9; font-size: 13px; }
#brand-story-summary { scroll-margin-top: 100px; }
.story-editor { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 1px solid #e0d5e8; border-radius: 12px; padding: 30px; color: #35283e; background: #fdfbfe; box-shadow: 0 25px 100px #24132e33; }
.story-editor::backdrop { background: #160f2080; backdrop-filter: blur(3px); }
.story-editor-top { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.story-editor-top h2 { font-size: 23px; letter-spacing: -.035em; margin: 0; }
.story-field { display: grid; gap: 8px; margin: 18px 0; font-size: 12px; color: #877291; }
.story-editor input, .story-editor textarea, .story-editor select { margin: 0; width: 100%; padding: 10px 12px; font: inherit; font-size: 13px; background: #fff; color: #42304e; border: 1px solid #e2d5e9; border-radius: 6px; }
.story-editor textarea { line-height: 1.8; resize: vertical; min-height: 78px; }
.story-editor fieldset { border: 1px solid #e5dce9; margin: 24px 0 10px; padding: 15px; border-radius: 6px; }
.story-editor legend { color: #897493; font-size: 12px; padding: 0 6px; }
.story-edit-action { display: grid; grid-template-columns: 1.6fr 1fr 135px 90px auto; gap: 8px; align-items: center; margin: 8px 0; }
.story-edit-action input, .story-edit-action select { min-width: 0; padding: 8px; font-size: 11px; }
.story-edit-action button { padding: 4px; font-size: 10px; }
.story-editor-sources { max-height: 230px; overflow: auto; }
.story-editor-sources label { display: flex; gap: 10px; align-items: baseline; font-size: 12px; color: #877291; line-height: 1.8; margin: 9px 0; }
.story-editor-sources input { width: auto; accent-color: #805198; }
@media (max-width: 1150px) { .story-layout { grid-template-columns: minmax(0,1fr) 230px; gap: 24px; } .story-timeline { display: none; } }
@media (max-width: 750px) { .story-layout { grid-template-columns: 1fr; } .story-next { border-left: 0; border-top: 1px solid var(--story-line); padding: 24px 0 0; } .story-top { align-items: flex-start; flex-direction: column; } .story-summary { padding: 22px; } .story-top h2 { font-size: 23px; } .story-editor { padding: 20px; } .story-edit-action { grid-template-columns: 1fr 1fr; } .story-edit-action input:first-child { grid-column: 1 / -1; } }
body.brand-world-page .platform-hero .eyebrow, body.brand-world-page .platform-hero::after { display: none; }
body.brand-world-page .platform-hero { padding: 6px 0 8px; }
body.brand-world-page .platform-hero h1 { font-size: 32px; line-height: 1.25; }
body.brand-world-page .platform-hero p { font-size: 12px; }
body.brand-world-page .story-top { padding-top: 4px; }
body.brand-world-page .story-top h2 { font-size: 20px; }
body.brand-world-page .story-top { padding-bottom: 20px; }
body.brand-world-page #breadcrumbs:empty { display: none; }

/* Weekly business data: approved compact brand list and brand detail. */
.brand-directory-page .platform-layout { max-width: none; padding: 28px 30px 60px; }
body.brand-world-page #page-heading { display: none; }
.bw-weekly { color: #24212c; font-size: 13px; font-variant-numeric: tabular-nums; }
.bw-weekly h1 { font-size: 30px; letter-spacing: -.03em; margin: 0; }
.bw-title { margin-bottom: 26px !important; }
.bw-toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.bw-control { display: flex; flex-direction: column; gap: 7px; margin: 0; font-size: 12px; }
.bw-control-label { color: #82788e; font-size: 11px; }
.bw-weekly select,.bw-weekly input { font-family: inherit; font-size: 13px; border: 1px solid #ddd7e5; background: #fff; border-radius: 6px; color: #302a39; padding: 10px 12px; margin: 0; width: auto; min-height: 40px; }
.bw-toolbar input[type="search"] { min-width: 230px; margin-left: 8px; }
.bw-list-meta,.bw-pagination { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:16px 0; font-size:12px; }
.bw-table-wrap { overflow-x:auto; border:1px solid #e4dfeb; background:white; border-radius:8px; max-width:100%; }
.bw-table { border-collapse:collapse; width:100%; white-space:nowrap; font-size:12px; }
.bw-table th { padding:16px 12px; background:#f7f5fa; border-bottom:1px solid #e4dfeb; color:#4a4255; text-align:right; font-weight:600; }
.bw-table td { padding:22px 12px; border-bottom:1px solid #eeeaf2; text-align:right; }
.bw-table th:first-child,.bw-table td:first-child { text-align:left; }
.bw-table tbody tr:last-child td { border-bottom:0; }
.bw-table tbody tr:hover { background:#f7f3ff; }
.bw-brand-table { min-width:1530px; }
.bw-brand-table td:nth-child(2) { font-weight:650; }
.bw-brand-table th:first-child,.bw-brand-table td:first-child { position:sticky; left:0; z-index:1; background:#fff; box-shadow:1px 0 #eeeaf2; min-width:170px; }
.bw-brand-table th:first-child { background:#f7f5fa; z-index:2; }
.bw-brand-table tbody tr:hover td:first-child { background:#f7f3ff; }
.bw-table th.bw-channel-group { text-align:center; background:#f0eafa; }
.bw-brand-name .bw-link { color:#26202e; font-weight:650; }
.bw-brand-name small { display:block; margin-top:6px; padding-left:32px; }
.bw-avatar { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; background:#eee6fc; border-radius:6px; color:#7649be; margin-right:9px; vertical-align:middle; }
.bw-link { color:#7543c8; text-decoration:none; }
.bw-link:hover { text-decoration:underline; text-underline-offset:3px; }
.bw-growth { font-size:11px; font-weight:500; margin-left:3px; white-space:nowrap; }
.bw-growth.is-up { color:#178452; }
.bw-growth.is-down { color:#bf5355; }
.bw-muted,.bw-updated { color:#897e96; font-size:11px; }
.bw-sort { all:unset; cursor:pointer; color:inherit; font:inherit; }
.bw-button { font:inherit; background:white; border:1px solid #dcd3e7; border-radius:5px; color:#655472; padding:8px 13px; cursor:pointer; }
.bw-button:disabled { opacity:.4; cursor:default; }
.bw-pagination { justify-content:flex-end; }
.bw-pagination>span:first-child { margin-right:auto; }
.bw-data-note { font-size:11px; color:#8c8096; line-height:1.8; margin:20px 0; }
.bw-data-note summary { cursor:pointer; }
.bw-data-note p { margin:8px 0; max-width:1000px; }
.bw-detail-heading { display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-top:20px; }
.bw-library-link { margin-left:auto; font-size:12px; }
.bw-switch-brand { margin-top:-62px; margin-bottom:22px; display:flex; justify-content:flex-end; pointer-events:none; }
.bw-switch-brand select { pointer-events:auto; max-width:190px; }
.bw-tabs { display:flex; gap:28px; border-bottom:1px solid #e1dbe9; margin-bottom:22px; overflow-x:auto; white-space:nowrap; }
.bw-tabs a { padding:15px 1px; color:#706279; text-decoration:none; border-bottom:3px solid transparent; }
.bw-tabs a.active { color:#7543c8; border-color:#8657e8; font-weight:600; }
.bw-kpis { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:13px; margin-bottom:20px; }
.bw-kpi { background:white; border:1px solid #e5deed; border-left:3px solid #b69aec; border-radius:7px; padding:17px 15px; }
.bw-kpi>span { font-size:12px; }
.bw-kpi>strong { display:block; font-size:26px; letter-spacing:-.04em; padding:10px 0 16px; }
.bw-kpi-compare { display:flex; justify-content:space-between; gap:8px; line-height:1.8; }
.bw-detail-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:18px; margin-bottom:18px; }
.bw-panel { background:white; border:1px solid #e4dfeb; border-radius:8px; padding:20px; min-width:0; margin-bottom:18px; }
.bw-detail-grid .bw-panel { margin-bottom:0; }
.bw-panel h2 { font-size:16px; margin:0 0 18px; }
.bw-panel .bw-table-wrap { border:0; border-radius:0; }
.bw-panel .bw-table td { padding:17px 10px; }
.bw-panel .bw-control { flex-direction:row; align-items:center; justify-content:flex-end; margin-top:-44px; margin-bottom:10px; }
.bw-panel .bw-control select { min-height:32px; padding:5px 9px; font-size:11px; }
.bw-chart svg { width:100%; display:block; height:auto; }
.bw-channel-row { display:grid; grid-template-columns:125px 1fr 80px 82px; gap:10px; align-items:center; margin:18px 0; font-size:11px; }
.bw-channel-row strong { text-align:right; font-weight:500; }
.bw-bar { height:7px; border-radius:2px; background:#ece7f2; overflow:hidden; }
.bw-bar>span { height:100%; display:block; background:#8a5ce8; }
.bw-events { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:25px 0; }
.bw-events>div { background:#f4eefc; padding:15px; border-radius:5px; }
.bw-events span { font-size:11px; color:#746480; }
.bw-events strong { display:block; font-size:24px; margin-top:12px; }
.bw-empty { padding:38px 20px !important; text-align:center !important; color:#92859b; line-height:1.8; }
.bw-warning { border:1px solid #e7d2ac; background:#fff9ed; padding:15px; border-radius:6px; font-size:12px; }
.bw-weekly :focus-visible { outline:2px solid #9065de; outline-offset:3px; }
@media(max-width:1100px) { .bw-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } .bw-detail-grid { grid-template-columns:1fr; } .bw-switch-brand { margin:0 0 14px; justify-content:flex-start; } }
@media(max-width:600px) { .brand-directory-page .platform-layout { padding:20px 16px; } .bw-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .bw-toolbar { gap:8px; } .bw-toolbar input[type="search"] { width:100%; margin-left:0; } .bw-detail-heading { gap:10px; } .bw-panel { padding:14px; } .bw-channel-row { grid-template-columns:110px 1fr 70px; } .bw-channel-row .bw-link { grid-column:3; } }
@media(max-width:700px) {
 body.brand-world-page .platform-topbar, body.brand-directory-page .platform-topbar { height:auto; min-height:76px; flex-wrap:wrap; gap:12px 20px; padding:16px 18px; }
 body.brand-world-page .global-nav, body.brand-directory-page .global-nav { order:3; height:auto; width:100%; flex-basis:100%; margin:0; }
}

.bw-period-banner { display:flex; flex-wrap:wrap; gap:16px; align-items:center; margin:0 0 20px; font-size:12px; color:#776880; }
.bw-period-banner strong { color:#3c3049; font-weight:600; }
.bw-channel-notice { color:#8c6936; background:#fffaf0; border-left:2px solid #dfc494; padding:10px 12px; font-size:11px; line-height:1.8; margin:10px 0 16px; }
.bw-period-banner + .bw-switch-brand { margin-top:0; }
.bw-switch-brand { margin-top:0; }

/* Brand detail: continuous visual business review, no sparse data tabs. */
.bw-jump-nav { display:flex; flex-wrap:wrap; gap:8px; padding:12px 0; border-top:1px solid #e5dfeb; border-bottom:1px solid #e5dfeb; margin:20px 0 28px; }
.bw-jump-nav a { text-decoration:none; color:#72667c; font-size:12px; padding:7px 14px; border-radius:5px; }
.bw-jump-nav a:hover,.bw-jump-nav a:focus-visible { color:#7543c8; background:#eee7fa; }
.bw-section-heading { scroll-margin-top:100px; margin:32px 0 18px; }
.bw-section-heading>div { display:flex; align-items:center; gap:12px; }
.bw-section-heading h2 { margin:0; font-size:21px; letter-spacing:-.025em; }
.bw-section-number { font-size:11px; color:#9a80bd; letter-spacing:.08em; }
.bw-section-heading p { font-size:12px; color:#897d93; margin:8px 0 0 31px; }
.bw-visual-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:18px; }
.bw-visual-grid>.bw-panel { margin-bottom:0; }
.bw-three-columns { grid-template-columns:repeat(3,minmax(0,1fr)); }
.bw-trend-panel>p.bw-muted { margin-top:-10px; margin-bottom:18px; }
.bw-stat-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; background:#e6dfee; border:1px solid #e6dfee; border-radius:7px; overflow:hidden; margin-bottom:18px; }
.bw-stat-strip>div { padding:18px 22px; background:#fff; }
.bw-stat-strip strong { display:inline-block; font-size:24px; margin:7px 9px 0 0; }
.bw-stat-strip>div>.bw-muted { display:block; }
.bw-chart-legend { display:flex; flex-wrap:wrap; gap:18px; margin:0 0 22px; color:#87768f; font-size:10px; }
.bw-chart-legend>span::before { content:''; display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:6px; background:#8455d9; }
.bw-chart-legend .previous::before { background:#c4b4dc; }
.bw-chart-legend .baseline::before { background:#ded8e7; }
.bw-comparison-row { padding:0 0 20px; margin-bottom:18px; border-bottom:1px solid #f0ebf5; }
.bw-comparison-row:last-child { border:0; padding-bottom:0; margin-bottom:0; }
.bw-comparison-heading { display:flex; gap:15px; justify-content:space-between; align-items:center; margin-bottom:10px; }
.bw-comparison-heading strong { font-size:12px; font-weight:550; }
.bw-comparison-line { display:grid; grid-template-columns:52px minmax(0,1fr) 94px; gap:12px; align-items:center; margin:7px 0; font-size:11px; }
.bw-comparison-label { color:#91839b; font-size:10px; }
.bw-comparison-number { text-align:right; }
.bw-comparison-track { height:7px; background:#f4f1f8; border-radius:2px; overflow:hidden; }
.bw-comparison-track span { height:100%; display:block; background:#8455d9; }
.bw-comparison-line.previous .bw-comparison-track span { background:#c4b4dc; }
.bw-comparison-line.baseline .bw-comparison-track span { background:#ded8e7; }
.bw-composition { height:25px; display:flex; background:#f4f1f8; overflow:hidden; border-radius:4px; margin:28px 0; }
.bw-composition span.video { background:#8455d9; }
.bw-composition span.photo { background:#c4b4dc; }
.bw-composition-row { display:grid; grid-template-columns:1fr 90px 70px; align-items:center; margin:20px 0; }
.bw-composition-row strong { text-align:right; }
.bw-composition-row .bw-muted { text-align:right; }
.bw-all-metrics summary { cursor:pointer; font-size:13px; font-weight:550; }
.bw-all-metrics[open] summary { margin-bottom:20px; }
@media(max-width:1150px) { .bw-three-columns { grid-template-columns:1fr 1fr; } }
@media(max-width:800px) { .bw-visual-grid,.bw-three-columns { grid-template-columns:1fr; } .bw-stat-strip { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.bw-toolbar .bw-switch-brand { margin:0 0 0 auto; }
.bw-jump-nav { margin:12px 0 20px; padding:8px 0; }
.bw-section-heading { margin:24px 0 16px; }
.bw-channel-comparisons .bw-comparison-bars { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 40px; }
.bw-channel-comparisons .bw-chart-legend { grid-column:1 / -1; }
@media(max-width:800px) { .bw-channel-comparisons .bw-comparison-bars { grid-template-columns:1fr; } }
.bw-jump-nav { position:sticky; top:70px; z-index:6; background:#f7f6f9; }
@media(max-width:700px) { .bw-jump-nav { top:110px; } .bw-section-heading { scroll-margin-top:180px; } }

/* Brand visual system: blue / aurora violet / mint over a soft glass canvas. */
body.brand-world-page { background:radial-gradient(ellipse 62% 400px at 90% 0, #8b5cf61c, transparent),radial-gradient(ellipse 70% 480px at 38% 0, #06b6d421, transparent),#f0f3f9; }
.bw-visual-dashboard { --bc-blue:#3b82f6; --bc-violet:#8b5cf6; --bc-teal:#06b6d4; color:#293650; }
.bw-visual-dashboard .bw-detail-heading h1 { color:#1d2c48; font-weight:720; }
.bw-visual-dashboard .bw-panel,.bw-visual-dashboard .bw-kpi { background:#ffffffc9; border:1px solid #ffffffdb; border-radius:12px; box-shadow:0 5px 22px #25477807,0 1px 3px #32436c04; backdrop-filter:blur(12px); }
.bw-visual-dashboard .bw-panel { padding:19px 21px; }
.bw-visual-dashboard .bw-panel h2 { font-size:14px; color:#25354f; margin-bottom:14px; font-weight:650; }
.bw-visual-dashboard .bw-section-heading h2 { color:#23324d; font-size:19px; }
.bw-visual-dashboard .bw-section-heading p { color:#8c98ac; font-size:11px; }
.bw-visual-dashboard .bw-section-number { color:#8b91b9; }
.bw-visual-dashboard .bw-jump-nav { background:#f0f3f9e8; backdrop-filter:blur(18px); border-color:#dce3f0; border-radius:8px; padding-inline:5px; }
.bw-visual-dashboard .bw-jump-nav a { color:#7a86a0; }
.bw-visual-dashboard .bw-jump-nav a:hover { background:#fff; color:#3b82f6; box-shadow:0 2px 8px #516f9f0d; }
.bw-visual-dashboard .bw-toolbar select,.bw-visual-dashboard .bw-toolbar input { border-color:#e2e8f2; background:#ffffffd9; border-radius:8px; padding:9px 12px; box-shadow:0 2px 6px #32467405; }
.bw-visual-dashboard .bw-toolbar select:hover { box-shadow:0 5px 16px #45638b13; border-color:#ccd9ef; }
.bw-visual-dashboard .bw-period-banner strong { color:#586a88; }
.bw-visual-dashboard .bw-kpis { gap:12px; }
.bw-visual-dashboard .bw-kpi { padding:15px 15px 13px; border-top:2px solid color-mix(in srgb,var(--metric-color),transparent 66%); overflow:hidden; background:linear-gradient(145deg,#ffffffdf,color-mix(in srgb,var(--metric-color),white 96%)); }
.bw-kpi-label { display:block; font-size:11px; color:#6e7f98; }
.bw-kpi-body { display:grid; grid-template-columns:minmax(0,1fr) 76px; align-items:center; gap:4px; margin:10px 0 12px; }
.bw-kpi-body>strong { font-size:25px; font-weight:660; color:var(--metric-color); letter-spacing:-.045em; white-space:nowrap; }
.bw-visual-dashboard .bw-kpi-compare { font-size:10px; gap:6px; line-height:1.7; }
.bw-visual-dashboard .bw-kpi-compare .bw-muted { color:#9aa6b6; font-size:10px; }
.bw-visual-dashboard .bw-growth { font-size:10px; border-radius:4px; padding:2px 4px; }
.bw-visual-dashboard .bw-growth.is-up { color:#079a7d; background:#10b9810b; }
.bw-visual-dashboard .bw-growth.is-down { color:#d06b85; background:#e4588309; }
.bw-visual-dashboard .bw-muted { color:#929db0; }
.bc-area { position:relative; min-width:0; }
.bc-area>svg { display:block; width:100%; height:auto; overflow:visible; }
.bc-area svg circle:focus { outline:none; stroke-width:4; }
.bc-mini { min-width:0; }
.bc-mini>svg { width:100%; height:auto; min-height:32px; }
.bc-tooltip { position:absolute; width:210px; padding:12px 13px; background:#fffffff5; border:1px solid #e5ebf6; border-radius:10px; box-shadow:0 8px 28px #314d7921; z-index:10; pointer-events:none; font-size:10px; }
.bc-tooltip[hidden] { display:none; }
.bc-tooltip>strong { display:block; color:#536782; font-size:10px; margin-bottom:9px; }
.bc-tooltip-row { display:flex; align-items:center; gap:6px; color:#7789a4; margin-top:6px; }
.bc-tooltip-row>i,.bc-legend i { display:inline-block; width:6px; height:6px; border-radius:50%; flex:none; }
.bc-tooltip-row>b { margin-left:auto; color:#2b4263; font-weight:600; }
.bc-legend { display:flex; flex-wrap:wrap; gap:12px; color:#8594ad; font-size:10px; }
.bc-legend>span { display:inline-flex; gap:5px; align-items:center; }
.bw-trend-panel>.bc-legend { margin:0 0 10px; }
.bw-visual-dashboard .bw-trend-panel>p.bw-muted { margin:-8px 0 17px; font-size:10px; }
.bw-visual-dashboard .bw-stat-strip { border:0; background:transparent; gap:12px; overflow:visible; }
.bw-visual-dashboard .bw-stat-strip>div { background:#ffffffc2; padding:12px 16px; border-radius:10px; border:1px solid #fff; box-shadow:0 2px 12px #385b8c04; }
.bw-stat-body { display:grid; grid-template-columns:1fr 90px; align-items:center; gap:10px; }
.bw-visual-dashboard .bw-stat-strip strong { color:#3c5275; font-size:23px; margin:5px 4px 0 0; }
.bw-donut-layout { display:grid; grid-template-columns:minmax(120px,1fr) minmax(100px,.8fr); gap:14px; align-items:center; min-height:210px; }
.bc-rings svg { width:100%; max-width:180px; display:block; margin:auto; }
.bw-donut-legend>div { margin:15px 0; }
.bw-donut-legend strong { display:block; margin:5px 0 0 11px; font-size:18px; font-weight:600; color:#435a80; }
.bw-donut-legend small { display:block; margin-left:11px; color:#9aa6bb; font-size:10px; }
.bw-radar-layout { display:grid; grid-template-columns:1.3fr 1fr; gap:14px; align-items:center; }
.bc-radar svg { width:100%; display:block; max-height:260px; }
.bw-radar-layout>.bc-legend,.bw-radar-layout .bc-legend { justify-content:center; }
.bw-activity-row { display:grid; grid-template-columns:62px minmax(0,1fr); gap:14px; align-items:center; margin:11px 0; }
.bw-activity-row>div:first-child span { display:block; font-size:10px; color:#8b9ab2; }
.bw-activity-row strong { display:block; font-size:12px; color:#526b93; font-weight:550; }
.bw-activity-row .bc-mini svg { max-height:37px; }
.bw-chart-footnote { font-size:10px; line-height:1.8; color:#94a0b3; margin:12px 0 0; }
.bw-ad-grid { display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,.75fr) minmax(0,1.5fr); gap:16px; }
.bw-ad-grid>.bw-panel { margin:0; }
.bw-ad-caption { display:block; font-size:9px; letter-spacing:.15em; color:#b0bbcf; }
.bw-ad-value { display:block; color:#5a69b8; font-size:30px; font-weight:600; letter-spacing:-.04em; margin:15px 0 17px; }
.bw-ad-summary>.bc-mini { margin:16px 0; }
.bw-ad-summary>.bc-mini svg { max-height:70px; }
.bw-ad-growth { display:flex; justify-content:space-between; gap:10px; }
.bw-channel-micros { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:35px; }
.bw-channel-micro { display:grid; grid-template-columns:minmax(180px,1.35fr) minmax(80px,1fr) 64px; gap:12px; align-items:center; padding:17px 0; border-bottom:1px solid #e9eef6; }
.bw-channel-micro:last-child { border-bottom:0; }
.bw-micro-info h3 { font-size:11px; margin:0 0 9px; font-weight:600; color:#506482; }
.bw-micro-numbers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:0 0 3px; }
.bw-micro-numbers dt { font-size:9px; color:#a2adbf; }
.bw-micro-numbers dd { font-size:11px; color:#506583; margin:3px 0; }
.bw-channel-micro .bc-mini svg { max-height:60px; }
.bw-micro-coverage { width:64px; }
.bw-visual-dashboard .bw-channel-notice { background:#fff8eaab; border-left-color:#f3d68f; color:#a48a5c; font-size:10px; border-radius:5px; }
.bw-visual-dashboard .bw-all-metrics { margin-top:20px; }
@media(min-width:1700px) { .bw-kpi-body { grid-template-columns:minmax(0,1fr) 94px; } }
@media(max-width:1250px) { .bw-visual-dashboard .bw-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } .bw-channel-micros { grid-template-columns:1fr; } .bw-channel-micro { grid-template-columns:minmax(180px,1fr) minmax(90px,1fr) 70px; } .bw-ad-grid { grid-template-columns:1fr 1fr; } .bw-ad-grid>.bw-trend-panel { grid-column:1/-1; } }
@media(max-width:800px) { .bw-visual-dashboard .bw-three-columns { grid-template-columns:1fr; } .bw-donut-layout { min-height:180px; } .bw-donut-layout .bc-rings svg { max-width:155px; } .bw-visual-dashboard .bw-panel { padding:17px; } }
@media(max-width:600px) { .bw-visual-dashboard .bw-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .bw-kpi-body { grid-template-columns:1fr; } .bw-kpi-body .bc-mini { display:none; } .bw-visual-dashboard .bw-kpi-body>strong { font-size:25px; } .bw-stat-body { grid-template-columns:1fr; } .bw-stat-body .bc-mini { display:none; } .bw-radar-layout { grid-template-columns:1fr; } .bw-activity-micros { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; } .bw-channel-micro { grid-template-columns:minmax(150px,1.4fr) minmax(45px,.7fr) 52px; gap:8px; } .bw-micro-coverage { width:52px; } .bw-micro-numbers { gap:5px; } .bw-micro-numbers dd { font-size:10px; } }
@media(prefers-reduced-motion:reduce) { .bc-area * { transition:none !important; animation:none !important; } }
body.brand-world-page:has(.bw-visual-dashboard) .platform-layout { padding-top:18px; }
.bw-visual-dashboard .bw-detail-heading { margin-top:10px; }
.bw-visual-dashboard .bw-toolbar { margin:14px 0 10px; }
.bw-visual-dashboard .bw-period-banner { margin-bottom:12px; font-size:11px; }
.bw-visual-dashboard .bw-jump-nav { padding-block:5px; margin:10px 0 18px; }
.bw-visual-dashboard .bw-section-heading { margin:20px 0 14px; }
.bw-visual-dashboard .bw-section-heading p { margin-top:5px; }
.bc-tooltip-compare { color:#9ba7b9; border-top:1px solid #eef2f9; margin-top:8px; padding-top:8px; font-size:9px; line-height:1.6; }
.bw-visual-dashboard .bw-section-heading { scroll-margin-top:140px; }
.bw-visual-dashboard .bw-jump-nav a[aria-current="location"] { color:#3b82f6; background:#fff; box-shadow:0 2px 8px #516f9f0a; }
@media(max-width:700px) { .bw-visual-dashboard .bw-section-heading { scroll-margin-top:180px; } }

/* Explicit control sizing avoids macOS/Safari's compact native select rendering. */
.bw-weekly .bw-toolbar .bw-control-label { line-height:16px; }
.bw-weekly .bw-toolbar select {
  appearance:none;
  -webkit-appearance:none;
  display:block;
  height:42px;
  min-height:42px;
  line-height:20px;
  padding:10px 34px 10px 12px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%237b8ba4' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:12px 12px;
}
.bw-weekly .bw-toolbar input[type="date"] { height:42px; min-height:42px; line-height:20px; padding:10px 12px; }

/* Brand analysis: centered workspace with continuous brand memory. */
.bc-chat-launch { color:white; background:linear-gradient(110deg,#397ef1,#8160db); font:inherit; font-size:12px; border-radius:7px; padding:9px 17px; margin-left:4px; box-shadow:0 4px 14px #537be323; }
.bc-chat-dialog { position:fixed; inset:0; width:min(920px,calc(100vw - 64px)); max-width:calc(100vw - 32px); height:min(820px,calc(100dvh - 64px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; border:1px solid #dce5f4; border-radius:20px; background:#f6f8fc; box-shadow:0 28px 100px #172b5140; color:#344865; }
.bc-chat-dialog[open] { display:flex; flex-direction:column; }
.bc-chat-dialog::backdrop { background:#17273e65; backdrop-filter:blur(5px); }
.bc-chat-header { padding:22px 30px 18px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #e4eaf3; }
.bc-chat-eyebrow { color:#9aabc4; font-size:9px; letter-spacing:.16em; }
.bc-chat-header h2 { font-size:19px; margin:5px 0 0; }
.bc-chat-scope { display:flex; flex-direction:column; gap:5px; font-size:11px; color:#899bb5; padding:14px 24px 8px; }
.bc-chat-scope strong { color:#627da4; font-weight:550; }
.bc-chat-button { font:inherit; font-size:11px; color:#6880a4; background:white; border:1px solid #dde6f2; padding:7px 11px; border-radius:6px; white-space:nowrap; }
.bc-chat-status { color:#7d90ac; font-size:11px; line-height:1.7; margin:0; padding:8px 24px; min-height:35px; }
.bc-chat-messages { flex:1; min-height:80px; overflow:auto; padding:12px 30px 24px; overscroll-behavior:contain; }
.bc-chat-empty { padding:30px 18px; color:#8c9db8; font-size:13px; line-height:1.9; }
.bc-chat-message { padding:15px 16px; margin:12px 0; border-radius:10px; overflow-wrap:anywhere; background:white; border:1px solid #e9edf5; font-size:13px; line-height:1.85; }
.bc-chat-message.is-user { margin-left:15%; background:#edf3ff; border-color:#e1eaff; }
.bc-chat-role { display:block; font-size:10px; font-weight:600; color:#98a6bd; margin-bottom:7px; }
.bc-chat-message p { margin:0; white-space:pre-wrap; }
.bc-chat-answer p { margin:8px 0; }
.bc-chat-answer p { white-space:normal; }
.bc-chat-answer :is(h1,h2,h3,h4,h5,h6) { margin:22px 0 10px; line-height:1.5; color:#263e62; font-weight:650; }
.bc-chat-answer h1 { font-size:21px; }
.bc-chat-answer h2 { font-size:18px; padding-bottom:8px; border-bottom:1px solid #e8edf5; }
.bc-chat-answer h3 { font-size:15px; }
.bc-chat-answer :is(h4,h5,h6) { font-size:13px; }
.bc-chat-answer>:first-child { margin-top:0; }
.bc-chat-answer>:last-child { margin-bottom:0; }
.bc-chat-answer :is(ul,ol) { margin:10px 0; padding-left:24px; }
.bc-chat-answer li { margin:5px 0; padding-left:3px; }
.bc-chat-answer li>p { margin:5px 0; }
.bc-chat-answer li :is(ul,ol) { margin:4px 0; }
.bc-chat-answer strong { color:#2b466f; font-weight:650; }
.bc-chat-answer blockquote { margin:14px 0; padding:3px 16px; border-left:3px solid #9bb8e6; background:#f3f7fd; color:#6a7e9a; }
.bc-chat-answer hr { margin:20px 0; border:0; border-top:1px solid #e4eaf3; }
.bc-chat-answer a { color:#3768bb; text-decoration:underline; text-underline-offset:3px; }
.bc-chat-answer code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.9em; padding:2px 5px; border-radius:4px; background:#edf2f8; color:#395578; }
.bc-chat-answer pre { max-width:100%; overflow:auto; padding:15px 17px; margin:14px 0; border:1px solid #e1e8f3; border-radius:8px; background:#f4f7fb; line-height:1.7; white-space:pre; }
.bc-chat-answer pre code { padding:0; background:none; color:inherit; }
.bc-chat-table { max-width:100%; overflow-x:auto; margin:16px 0; border:1px solid #e2e9f3; border-radius:8px; }
.bc-chat-table:focus-visible { outline:2px solid #7da9ed; outline-offset:2px; }
.bc-chat-table table { width:100%; border-collapse:collapse; font-size:12px; line-height:1.7; }
.bc-chat-table :is(th,td) { padding:10px 13px; min-width:90px; text-align:left; vertical-align:top; border-bottom:1px solid #e8edf5; }
.bc-chat-table th { background:#f0f5fc; color:#48658d; font-weight:600; white-space:nowrap; }
.bc-chat-table tr:last-child td { border-bottom:0; }
.bc-chat-table tbody tr:nth-child(even) { background:#f9fbfe; }
.bc-chat-working { color:#7489b0; }
.bc-chat-notice { color:#9b865f; font-size:12px; }
.bc-chat-context { color:#96a2b6; font-size:10px; margin-top:16px; border-top:1px solid #edf0f6; padding-top:10px; }
.bc-chat-context summary { cursor:pointer; }
.bc-chat-context p { margin:8px 0; }
.bc-chat-source { margin:8px 0; }
.bc-chat-source a { color:#6d8aba; text-decoration:none; }
.bc-chat-source small { display:block; color:#a7b2c4; }
.bc-chat-suggestions { padding:4px 24px 10px; display:flex; flex-wrap:wrap; gap:6px; }
.bc-chat-suggestions[hidden] { display:none; }
.bc-chat-suggestions button { text-align:left; white-space:normal; background:#eff3fa; font-size:10px; }
.bc-chat-form { padding:12px 22px 14px; background:#fff; border-top:1px solid #e1e8f3; }
.bc-chat-form textarea { resize:vertical; min-height:72px; max-height:200px; margin:0; padding:11px 12px; font-size:12px; border:1px solid #dbe4f2; border-radius:8px; }
.bc-chat-actions { display:flex; align-items:center; gap:10px; margin-top:9px; font-size:10px; color:#a2aec1; }
.bc-chat-actions>span { margin-right:auto; }
.bc-chat-send { background:#5b83da; color:#fff; font:inherit; font-size:12px; padding:8px 19px; border-radius:6px; }
.bc-chat-footnote { font-size:9px; line-height:1.6; color:#a1aec2; margin:10px 0 0; }
@media(max-width:600px) { .bc-chat-dialog { width:calc(100vw - 20px); max-width:calc(100vw - 20px); height:calc(100dvh - 24px); max-height:calc(100dvh - 24px); border-radius:14px; } .bc-chat-header { padding:18px; } .bc-chat-messages { padding-inline:16px; } .bc-chat-form { padding:12px 16px; } }
.bc-chat-send:disabled { cursor:not-allowed; opacity:.45; }

/* Full-service report keeps the shared platform navigation and an isolated reader. */
.full-service-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.full-service-page .platform-layout { flex: 1; width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; }
.full-service-page .platform-footer { display: none; }
#full-service-view { height: 100%; }
#full-service-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--wash); }
@media (max-width: 760px) { .full-service-page .global-nav { gap: 14px; } }

/* Weekly report archive follows the platform's existing navigation menus. */
#full-service-switcher.is-selected > summary { color: #deb3ff; }
#full-service-switcher .agent-menu { width: 280px; }
#full-service-switcher .agent-menu-item { padding: 12px 0; font-size: 15px; }
#full-service-switcher .agent-menu-item small { color: #b6a7c3; font-size: 11px; }
#full-service-switcher .agent-menu-item.is-selected { color: #deb3ff; }
.report-week-mark { margin-left: auto; visibility: hidden; }
#full-service-switcher .agent-menu-item.is-selected .report-week-mark { visibility: visible; }
