:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; color: #f5f5f7; background: #000; --blue: #2997ff; --muted: #a1a1a6; --toolbar-height: 76px; }
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; overflow: hidden; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, main:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
#storeName:focus { outline: none; }
[hidden] { display: none !important; }
.toolbar { height: calc(var(--toolbar-height) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #242426; background: #111; position: relative; z-index: 3; }
.brand { color: #f5f5f7; font-size: 18px; font-weight: 600; letter-spacing: -.4px; text-decoration: none; }
.toolbar-actions { display: flex; gap: 8px; }
.toolbar-actions button { display: flex; gap: 7px; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #38383a; border-radius: 12px; background: #242426; color: #f5f5f7; font-size: 14px; }
.toolbar-actions button:hover { background: #333; }
.toolbar-actions button:active { background: #444; }
.toolbar-actions button[aria-expanded="true"] { color: var(--blue); border-color: var(--blue); }
.toolbar-actions svg { width: 20px; height: 20px; }
#filterBadge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 50%; background: var(--blue); color: #000; font-size: 11px; font-weight: 700; }
.circle-viewport { width: 100%; height: calc(100% - var(--toolbar-height) - env(safe-area-inset-top)); overflow: auto; overscroll-behavior: contain; cursor: grab; touch-action: pan-x pan-y; scrollbar-color: #48484a #111; }
.circle-viewport.dragging, .circle-viewport.dragging * { cursor: grabbing; user-select: none; }
.circle-canvas { position: relative; width: 1720px; height: 1720px; margin: auto; }
.circle-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 360px; text-align: center; cursor: default; }
.eyebrow { color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: 1.5px; margin: 0 0 12px; }
.circle-center h1 { font-size: 34px; line-height: 1.15; letter-spacing: -1px; margin: 0 0 14px; }
#circleSummary { color: #d2d2d7; font-size: 16px; line-height: 1.6; margin: 0; }
.circle-hint { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 24px 0 0; }
#retryButton { margin-top: 16px; border: 0; border-radius: 8px; background: #242426; color: var(--blue); padding: 10px 16px; }
.store-item { position: absolute; width: max-content; min-width: 156px; height: 16px; padding: 0 4px; border: 0; border-radius: 3px; background: transparent; color: #eee; font-size: 10px; line-height: 16px; white-space: nowrap; text-align: left; transform-origin: center; }
.store-item.left-half { text-align: right; }
.store-item.closed { color: #8c8c92; }
.store-item.unmatched { color: #49494f; }
.store-item:hover, .store-item:focus-visible { color: var(--blue); background: #151515; z-index: 1; }
.store-item.selected { color: var(--blue); }
.filter-panel { position: fixed; z-index: 5; top: calc(72px + env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); width: 340px; max-height: calc(100dvh - 92px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow: auto; padding: 20px; background: #1d1d1f; border: 1px solid #38383a; border-radius: 18px; box-shadow: 0 12px 40px #0009; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; }
.panel-heading h2 { font-size: 20px; letter-spacing: -.4px; margin: 0; }
.panel-heading button { color: var(--blue); background: transparent; border: 0; padding: 8px; font-size: 14px; }
.panel-heading button:disabled { color: #747478; cursor: default; }
.filter-caption { color: var(--muted); font-size: 13px; margin: 6px 0 16px; }
.feature-filters label { display: flex; align-items: center; gap: 10px; padding: 11px 0; min-height: 44px; cursor: pointer; font-size: 14px; }
.feature-filters input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: 0 0 auto; }
.feature-filters .feature-icon { width: 18px; height: 18px; flex: 0 0 18px; color: #d2d2d7; }
.feature-count { color: var(--muted); margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.filter-result { color: var(--muted); border-top: 1px solid #38383a; padding-top: 14px; margin-top: 10px; font-size: 13px; }
dialog { color: #f5f5f7; background: #1d1d1f; border: 1px solid #38383a; border-radius: 24px; padding: 0; width: min(760px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; box-shadow: 0 24px 100px #000a; }
dialog::backdrop { background: #000b; }
.close-detail { position: sticky; top: 16px; float: right; margin: 16px 16px -52px 0; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #ffffff30; border-radius: 50%; background: #1d1d1fe8; color: #fff; }
.close-detail svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.close-detail:hover { background: #444; }
.lucide { display: block; width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.store-hero { clear: none; width: 100%; aspect-ratio: 16 / 9; background: #272729; display: grid; place-items: center; }
.store-hero img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-unavailable { color: var(--muted); font-size: 14px; }
.status-band { display: flex; align-items: center; gap: 16px; padding: 10px 0 0; color: var(--muted); }
.status-band::before, .status-band::after { content: ''; height: 3px; background: currentColor; flex: 1 1 0; }
#operationalStatus { flex: 0 1 auto; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.5; text-transform: uppercase; overflow-wrap: anywhere; }
.status-band[data-status="open"] { color: #32d74b; }
.status-band[data-status="closed-now"] { color: #ff6961; }
.status-band[data-status="temporary"] { color: #ff9f0a; }
.detail-content { padding: 24px 32px 32px; }
.store-badges { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
.store-identifiers { display: flex; align-items: center; gap: 8px; }
.detail-pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 6px 12px; border: 1px solid #3d3d40; border-radius: 999px; background: #2a2a2c; color: #e5e5ea; font-size: 12px; line-height: 1.4; }
.store-number { flex: 0 0 auto; font-weight: 650; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.country-pill { min-width: 0; text-align: left; margin-left: auto; }
.country-pill .lucide { width: 15px; height: 15px; }
.detail-content h2 { font-size: 34px; letter-spacing: -.8px; line-height: 1.15; margin: 0 0 12px; }
.opening-event { display: flex; align-items: center; gap: 9px; margin: 0; padding-bottom: 24px; border-bottom: 1px solid #38383a; color: #d2d2d7; font-size: 14px; line-height: 1.5; }
.opening-event .lucide { color: var(--muted); }
.detail-section { margin-top: 26px; }
.detail-section h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.detail-section p { margin: 0; color: #d2d2d7; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.store-features { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chip { display: flex; align-items: center; gap: 7px; border: 1px solid #3d3d40; background: #272729; border-radius: 9px; padding: 8px 11px; font-size: 13px; line-height: 1.4; }
.feature-chip .feature-icon { width: 15px; height: 15px; flex: 0 0 15px; }
.no-features { color: var(--muted); font-size: 14px; margin: 0; }
.detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.website-link, .share-store-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.website-link { background: #0071e3; border: 1px solid #0071e3; }
.share-store-button { background: #2a2a2c; border: 1px solid #48484a; }
.share-store-button:hover { background: #38383b; }
.website-link[hidden] + .share-store-button { grid-column: 1 / -1; }
.website-link .lucide, .share-store-button .lucide { width: 18px; height: 18px; }
.website-link:hover { background: #0077ed; }
.website-link:active { background: #0066cc; }
@media (max-width: 390px) { .website-link, .share-store-button { padding-inline: 10px; font-size: 13px; gap: 6px; } }

#shareCardDialog { width: min(400px, calc(100vw - 28px)); height: fit-content; max-height: calc(100dvh - 24px); padding: 16px; border-radius: 24px; text-align: center; }
.share-card-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; }
.share-card-heading h2 { font-size: 18px; margin: 0; }
.share-card-heading button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #48484a; border-radius: 50%; background: #303033; color: #fff; }
#shareCardCanvas { display: block; width: min(340px, 100%); height: auto; aspect-ratio: 17 / 22; margin: 0 auto; border-radius: 30px; }
#shareCardStatus { margin: 12px 0; min-height: 18px; color: #a1a1a6; font-size: 12px; }
#downloadShareCard { width: 100%; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; background: #0071e3; color: #fff; font-size: 14px; font-weight: 600; }
#downloadShareCard:disabled { background: #4b4b4f; color: #a1a1a6; cursor: progress; }
@media (max-width: 600px) { #shareCardDialog { width: min(400px, calc(100vw - 28px)); height: fit-content; max-height: calc(100dvh - 24px); margin: auto; padding: 16px; border: 1px solid #38383a; border-radius: 24px; } }
@media (max-width: 600px) {
  .toolbar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .brand { font-size: 16px; }
  .filter-panel { width: min(340px, calc(100% - 24px)); right: 12px; }
  dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .status-band { gap: 12px; }
  .detail-content { padding: 22px 20px 36px; }
  .detail-content h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (prefers-contrast: more) { .store-item { color: #fff; } .store-item.unmatched { color: #7a7a80; } }

/* Main explorer: three panes, two panes, then one level at a time. */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; height: calc(var(--toolbar-height) + env(safe-area-inset-top)); }
.toolbar-brand { display: flex; align-items: center; min-width: 0; }
.circle-actions { position: fixed; top: calc(var(--toolbar-height) + env(safe-area-inset-top) + 12px); right: max(24px, env(safe-area-inset-right)); z-index: 4; }
.circle-actions button { height: 44px; min-width: 44px; }
body[data-view="main"] .circle-actions { display: none; }
.view-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 220px; height: 48px; padding: 5px; background: #252527; border: 1px solid #38383a; border-radius: 16px; isolation: isolate; }
.view-indicator { position: absolute; inset: 5px auto 5px 5px; width: calc((100% - 10px) / 2); border-radius: 11px; background: #535357; box-shadow: 0 2px 6px #0005; transform: translateX(0); transition: transform 320ms cubic-bezier(.2,.8,.2,1); z-index: -1; }
.view-switch[data-view="circle"] .view-indicator { transform: translateX(100%); }
.view-switch button { border: 0; border-radius: 11px; background: transparent; color: #a1a1a6; font-size: 14px; font-weight: 600; }
.view-switch button[aria-checked="true"] { color: #fff; }
.view-switch button:active { color: #fff; }
.circle-viewport { height: calc(100% - var(--toolbar-height) - env(safe-area-inset-top)); }
.filter-panel { top: calc(var(--toolbar-height) + env(safe-area-inset-top) + 64px); max-height: calc(100dvh - var(--toolbar-height) - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.main-view { display: grid; grid-template-columns: 240px 310px minmax(0, 1fr); height: calc(100% - var(--toolbar-height) - env(safe-area-inset-top)); background: #161618; }
.category-pane, .store-list-pane, .detail-pane { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #48484a transparent; }
.category-pane { background: #141416; border-right: 1px solid #303033; padding: 28px 14px 24px; }
.pane-heading { padding: 0 14px 20px; }
.pane-heading .eyebrow { font-size: 10px; margin-bottom: 7px; }
.pane-heading h1 { font-size: 27px; letter-spacing: -.7px; margin: 0; }
.category-group { margin-top: 24px; }
.category-group h2 { color: #a1a1a6; text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; margin: 0 14px 9px; }
.category-row { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 11px 14px; border: 0; border-radius: 10px; color: #d2d2d7; background: transparent; text-align: left; font-size: 13px; line-height: 1.4; }
.category-row .row-label { min-width: 0; overflow-wrap: anywhere; }
.category-row .lucide { width: 17px; height: 17px; color: #a1a1a6; }
.row-count { margin-left: auto; color: #8c8c92; font-size: 11px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.category-row:hover { background: #252527; }
.category-row[aria-current="true"] { background: #26384c; color: #8ac5ff; }
.category-row[aria-current="true"] .lucide, .category-row[aria-current="true"] .row-count { color: #8ac5ff; }
.catalog-status { color: #8c8c92; font-size: 11px; margin: 28px 14px 0; line-height: 1.6; }
.retry-catalog { border: 0; background: #242426; color: var(--blue); border-radius: 8px; padding: 10px 14px; margin: 10px 14px; }
.store-list-pane { background: #1c1c1e; border-right: 1px solid #303033; display: flex; flex-direction: column; }
.list-heading { flex: 0 0 auto; padding: 28px 22px 20px; border-bottom: 1px solid #303033; }
.list-heading h2 { font-size: 24px; letter-spacing: -.6px; line-height: 1.2; margin: 0 0 8px; overflow-wrap: anywhere; }
.list-count { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.store-search { display: flex; align-items: center; gap: 8px; background: #2b2b2e; border: 1px solid #38383a; border-radius: 10px; padding: 0 10px; color: #8c8c92; }
.store-search .lucide { width: 16px; height: 16px; }
.store-search input { min-width: 0; width: 100%; height: 38px; border: 0; background: transparent; color: #f5f5f7; font-size: 13px; outline-offset: 0; }
.store-search:focus-within { border-color: var(--blue); }
.main-store-list { overflow: auto; flex: 1 1 auto; min-height: 0; padding: 8px 10px 24px; }
.store-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; padding: 15px 12px; border-radius: 10px; background: transparent; text-align: left; color: #f5f5f7; }
.store-row:hover { background: #29292c; }
.store-row[aria-current="true"] { background: #303e50; }
.store-row-info { min-width: 0; flex: 1; }
.store-row-name { display: block; font-size: 14px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.store-row-location { display: block; color: #a1a1a6; font-size: 11px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.store-row-number { color: #8c8c92; font-size: 10px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.list-empty { padding: 32px 12px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.6; }
.detail-pane { background: #1d1d1f; }
#mainDetailHost { width: 100%; }
#mainDetailHost #sharedDetail { max-width: 758px; margin-inline: auto; }
#mainDetailHost .detail-content { max-width: none; }
.detail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: 40px; text-align: center; color: var(--muted); }
.detail-empty .lucide { width: 36px; height: 36px; margin-bottom: 18px; color: #6e6e73; stroke-width: 1.5; }
.detail-empty h2 { font-size: 23px; font-weight: 600; letter-spacing: -.5px; color: #d2d2d7; margin: 0 0 10px; }
.detail-empty p { font-size: 14px; line-height: 1.6; margin: 0; }
.pane-back { display: flex; align-items: center; gap: 4px; color: var(--blue); border: 0; border-radius: 8px; background: transparent; padding: 0; min-height: 36px; font-size: 14px; }
.pane-back .lucide { width: 20px; height: 20px; }
#backToCategories, .detail-navigation { display: none; }
@media (min-width: 1500px) { .main-view { grid-template-columns: 260px 350px minmax(0,1fr); } }
@media (min-width: 700px) and (max-width: 1099px) {
  .main-view { grid-template-columns: 290px minmax(0,1fr); }
  .main-view[data-step="categories"] .store-list-pane { display: none; }
  .main-view:not([data-step="categories"]) .category-pane { display: none; }
  #backToCategories { display: flex; margin: -8px 0 14px -6px; }
  #mainDetailHost .detail-content { padding: 24px; }
  #mainDetailHost .detail-content h2 { font-size: 30px; }
}
@media (max-width: 699px) {
  :root { --toolbar-height: 56px; }
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr; gap: 8px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .brand { font-size: 17px; }
  .view-switch { grid-column: 2; justify-self: end; width: 152px; height: 40px; padding: 4px; border-radius: 13px; }
  .view-indicator { inset: 4px auto 4px 4px; width: calc((100% - 8px) / 2); border-radius: 9px; }
  .view-switch button { font-size: 12px; border-radius: 9px; }
  .circle-actions { right: max(12px, env(safe-area-inset-right)); gap: 6px; }
  .circle-actions button { padding: 0 11px; font-size: 13px; }
  .main-view { display: block; }
  .category-pane, .store-list-pane, .detail-pane { height: 100%; border: 0; }
  .main-view[data-step="categories"] .store-list-pane, .main-view[data-step="categories"] .detail-pane,
  .main-view[data-step="stores"] .category-pane, .main-view[data-step="stores"] .detail-pane,
  .main-view[data-step="detail"] .category-pane, .main-view[data-step="detail"] .store-list-pane { display: none; }
  .category-pane { padding: 24px 16px max(24px, env(safe-area-inset-bottom)); }
  .category-row { min-height: 48px; font-size: 15px; }
  .row-count { font-size: 12px; }
  .category-group h2 { font-size: 11px; }
  #backToCategories { display: flex; margin: -8px 0 12px -6px; }
  .list-heading { padding: 20px 24px; }
  .main-store-list { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .store-row { padding: 16px 14px; }
  .store-row-name { font-size: 15px; }
  .store-row-location { font-size: 12px; }
  .detail-navigation { display: block; padding: 8px 14px; background: #1d1d1f; border-bottom: 1px solid #303033; position: sticky; top: 0; z-index: 2; }
  #mainDetailHost .detail-content { padding: 22px 20px max(36px, env(safe-area-inset-bottom)); }
  #mainDetailHost .detail-content h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .view-indicator { transition: none; } }

.store-search input:focus-visible { outline: none; }
.store-search:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Sidebar disclosures and list sorting share the existing compact controls. */
.category-disclosure { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; min-height: 36px; padding: 7px 14px; margin-bottom: 4px; border-radius: 8px; cursor: pointer; color: #a1a1a6; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.category-disclosure::-webkit-details-marker { display: none; }
.category-disclosure:hover { background: #252527; color: #d2d2d7; }
.category-disclosure:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.category-disclosure .lucide { width: 14px; height: 14px; transition: transform 180ms ease; }
.category-group[open] > .category-disclosure .lucide { transform: rotate(90deg); }
.list-title-row { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.list-title-row h2 { min-width: 0; margin-bottom: 0; padding-top: 5px; }
.sort-button { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid #38383a; border-radius: 10px; background: #29292c; color: #d2d2d7; }
.sort-button:hover { background: #38383a; }
.sort-button[aria-expanded="true"] { color: var(--blue); border-color: var(--blue); }
.sort-button .lucide { width: 18px; height: 18px; }
.sort-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 4; width: min(270px, 100%); padding: 6px; border: 1px solid #48484a; border-radius: 12px; background: #29292c; box-shadow: 0 10px 30px #0007; }
.sort-option { display: flex; align-items: center; gap: 8px; text-align: left; width: 100%; min-height: 44px; padding: 9px 8px; border: 0; border-radius: 7px; background: transparent; color: #e5e5ea; font-size: 12px; line-height: 1.4; }
.sort-option .lucide { width: 16px; height: 16px; visibility: hidden; }
.sort-option[aria-checked="true"] { color: #8ac5ff; }
.sort-option[aria-checked="true"] .lucide { visibility: visible; }
.sort-option:hover, .sort-option:focus-visible { background: #414144; }
.sort-option:focus-visible { outline-offset: -2px; }
@media (max-width: 699px) { .category-disclosure { font-size: 11px; min-height: 40px; } .sort-option { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .category-disclosure .lucide { transition: none; } }

/* Store history follows the native Timeline layout; no event cards. */
.store-timeline { margin-top: 18px; min-width: 0; --timeline-base: rgb(14.025 14.025 15.3); }
.store-timeline h3 { margin: 0 0 10px; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.timeline-events { list-style: none; padding: 4px 0; margin: 0; }
.timeline-row { position: relative; padding: 12px 0 18px; min-width: 0; --event-color: var(--muted); --rail-x: calc(10px + .4375rem); --body-inset: calc(26px + .875rem); }
.timeline-row[data-color="yellow"] { --event-color: #ffd60a; }
.timeline-row[data-color="blue"] { --event-color: #0a84ff; }
.timeline-row[data-color="purple"] { --event-color: #7633ff; }
.timeline-row[data-color="orange"] { --event-color: #ff9f0a; }
.timeline-row[data-color="green"] { --event-color: #32d74b; }
.timeline-row[data-color="pink"] { --event-color: #ff375f; }
.timeline-row::before, .timeline-row::after { content: ''; position: absolute; left: calc(var(--rail-x) - 1px); width: 2px; background: color-mix(in srgb, var(--muted) 22%, transparent); pointer-events: none; }
.timeline-row::before { top: 0; height: var(--rail-top, 12px); }
.timeline-row::after { top: var(--rail-bottom, 40px); bottom: 0; }
.timeline-row:first-child::before, .timeline-row:last-child::after { display: none; }
.timeline-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.timeline-title { display: flex; align-items: first baseline; gap: 16px; flex: 0 0 auto; width: max-content; max-width: 100%; padding: 6px 10px; border-radius: 14px; color: var(--event-color); background: color-mix(in srgb, var(--event-color) 28%, var(--timeline-base)); font-size: .8125rem; line-height: 1.3; font-weight: 700; text-transform: uppercase; }
.timeline-title .lucide { width: .875rem; height: .875rem; flex: 0 0 .875rem; align-self: flex-start; margin-top: .08em; }
.timeline-title-text { min-width: 0; overflow-wrap: anywhere; }
.timeline-date { width: max-content; max-width: 100%; flex: 0 0 auto; margin-left: auto; color: var(--muted); font-size: .6875rem; line-height: 1.4; font-weight: 600; text-transform: uppercase; text-align: right; overflow-wrap: anywhere; }
.timeline-body { margin: 8px 0 0 var(--body-inset); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.timeline-body p { margin: 0; font-size: 1rem; line-height: 1.45; color: #f5f5f7; overflow-wrap: anywhere; white-space: pre-line; }
.timeline-body .timeline-name { font-weight: 600; }
.timeline-name + p { margin-top: -2px; }
.timeline-rebuild-status { align-self: flex-start; margin-top: 2px; padding: 4px 8px; border-radius: 999px; font-size: .6875rem; font-weight: 600; line-height: 1.4; --status-color: var(--muted); color: var(--status-color); background: color-mix(in srgb, var(--status-color) 14%, transparent); }
.timeline-rebuild-status[data-color="red"] { --status-color: #ff453a; }
.timeline-rebuild-status[data-color="green"] { --status-color: #32d74b; }
.timeline-rebuild-status[data-color="orange"] { --status-color: #ff9f0a; }
.timeline-media-group { margin-top: 4px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.timeline-media-row { display: flex; gap: 12px; height: var(--media-height, 180px); margin-left: calc(-1 * var(--body-inset) - var(--media-outset-left, 16px)); margin-right: calc(-1 * var(--media-outset-right, 16px)); padding-left: calc(var(--body-inset) + var(--media-outset-left, 16px)); padding-right: calc(var(--media-outset-right, 16px) + var(--media-end-inset, 14px)); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: calc(var(--body-inset) + var(--media-outset-left, 16px)); scrollbar-width: none; }
.timeline-media-row::-webkit-scrollbar { display: none; }
.timeline-media { position: relative; flex: 0 0 auto; margin: 0; width: var(--media-width, 320px); height: 100%; border-radius: 8px; overflow: hidden; background: #2d2d30; scroll-snap-align: start; }
.timeline-media[data-loaded="true"] { width: calc(var(--media-height) * var(--image-ratio)); }
.timeline-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.timeline-media-label { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 8px; border-radius: 999px; background: #38383bb3; backdrop-filter: blur(16px); color: #f5f5f7; font-size: .6875rem; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; pointer-events: none; }
.timeline-media-loading, .timeline-media-retry { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; width: 100%; padding: 12px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .75rem; }
.timeline-media-retry:hover { background: #ffffff08; }
.timeline-newsroom { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 2px; }
.timeline-newsroom-link { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid #48484a; border-radius: 6px; color: var(--blue); background: #29292c; font-size: .8125rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.timeline-newsroom-link .lucide { width: 1em; height: 1em; }
.timeline-newsroom-link:hover { background: #38383a; }
@media (min-width: 700px) and (max-width: 1099px) and (orientation: portrait) {
  .detail-content { max-width: 600px; margin-inline: auto; }
}
@media (prefers-reduced-transparency: reduce) { .timeline-media-label { backdrop-filter: none; background: #38383b; } }
