/* DOM surfaces keep native forms and document flow. Camera projection is supplied by the scene controller. */
/* Orbiting surfaces share the canvas viewport; tables retain their own horizontal scroll. */
html, body { overflow-x: clip; }
.flow-world .spatial-entry-hero { display: block; min-height: 0; padding: 18px 0 44px; margin-bottom: 96px; }
.flow-world .entry-kicker { margin: 0 0 24px 8px; font-size: 16px; }
.flow-world .spatial-entry-stage { position: relative; display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 36fr); align-items: start; column-gap: 9%; min-height: 510px; }
.flow-world .entry-surface { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 480px; padding: 40px 44px; overflow: hidden; border-radius: 44px; color: #f4f8ff; text-decoration: none; border-color: #dcc0ed4d; background: linear-gradient(138deg, #70548666, #39274566 58%, #30233b66); box-shadow: inset 0 1px 0 #f4e4ff40, inset 0 -1px 0 #dfb9f91a, 0 28px 70px #01051022; }
.flow-world .entry-residential { min-height: 340px; margin-top: 118px; padding: 28px 32px; border-color: #f0d5a24d; background: linear-gradient(140deg, #80684366, #553b2a66 60%, #34261f66); }
.flow-world .entry-index { color: #d0eaf6; font-size: 16px; font-weight: 600; letter-spacing: .09em; }
.flow-world .entry-copy { margin: 30px 0; }
.flow-world .entry-copy h2 { margin: 0; font-size: clamp(40px, 4.4vw, 68px); font-weight: 700; line-height: 1.16; letter-spacing: -.055em; text-shadow: 0 2px 24px #02091955; }
.flow-world .entry-copy p { margin: 18px 0 0; color: #dfecf8; font-size: 18px; font-weight: 500; }
.flow-world .entry-residential .entry-copy { margin: 20px 0; }
.flow-world .entry-residential .entry-copy h2 { font-size: clamp(34px, 3.4vw, 52px); }
.flow-world .entry-residential .entry-copy p { font-size: 16px; }
.flow-world .entry-bottom { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.flow-world .entry-providers { color: #c6deef; font-size: 16px; font-weight: 500; line-height: 1.65; overflow-wrap: anywhere; }
.flow-world .entry-button { min-height: 48px; padding: 12px 20px; border-radius: 16px; border-color: #c1eaff50; background: #b0e6f213; color: #f4fbff; font-size: 17px; font-weight: 600; }
.flow-world .entry-surface:hover, .flow-world .entry-surface:focus-visible { border-color: #d6f5ff9e; color: #fff; }
.flow-world .entry-surface:focus-visible { outline: 3px solid #b4edff; outline-offset: 6px; }
.flow-world .entry-surface:hover .entry-button, .flow-world .entry-surface:focus-visible .entry-button { background: #caf3ff2d; border-color: #d3f7ff91; }
.flow-world .hero-context { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 38px; margin: 42px 8px 0; max-width: 900px; }
.flow-world .hero-context .hero-display { margin: 0; font-size: 40px; line-height: .98; letter-spacing: -.06em; color: #a6c7e7; }
.flow-world .hero-context h1 { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.55; }
.flow-world .hero-context .intro { max-width: 720px; margin-top: 10px; color: #b8c7db; font-size: 16px; line-height: 1.85; }
.flow-world .hero-context-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 16px; font-size: 16px; color: #d1e8f7; }
.flow-world .hero-context-links a { padding-block: 6px; text-decoration: underline; text-decoration-color: #c1eaff38; text-underline-offset: 7px; }
.flow-world .spatial-workspace { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 28px; min-width: 0; max-width: 1400px; margin-inline: auto; }
.flow-world .spatial-workspace.catalog-section { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.flow-world .spatial-workspace::before, .flow-world .spatial-workspace::after { display: none; }
.spatial-workspace > * { min-width: 0; }
.flow-world .spatial-workspace-heading { grid-column: 1 / -1; min-width: 0; max-width: none; padding: 18px 4px; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.flow-world .spatial-workspace-heading .world-kicker { margin-bottom: 18px; }
.flow-world .spatial-status { grid-column: 1 / -1; max-width: 1050px; min-width: 0; }
.spatial-status:empty { display: none; }
.flow-world .spatial-status .notice { padding: 16px 22px; margin: 0; border: 1px solid #c9d7ff1e; border-radius: 22px; background: #16203b40; box-shadow: inset 0 1px 0 #e8f1ff0a; }
.flow-world .spatial-surface { position: relative; min-width: 0; border: 1px solid #c7d4ff29; border-radius: 30px; background: linear-gradient(138deg, #1324438f, #151d3b52 48%, #08122566); box-shadow: inset 0 1px 0 #e2f2ff14, 0 22px 60px #0206111a; transform-origin: center center; }
.flow-world .spatial-controls { grid-column: 1 / 4; padding: 10px 22px 4px; margin: 0; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.flow-world .spatial-controls summary { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 16px; }
.flow-world .spatial-controls summary small { max-width: none; text-align: left; }
.flow-world .spatial-controls .filter-drawer-content { padding-bottom: 20px; }
.flow-world .spatial-controls .catalog-filters { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.flow-world .spatial-controls .filter-actions { justify-content: stretch; }
.flow-world .spatial-controls .filter-actions > * { flex: 1 1 100%; }
.flow-world .spatial-catalog-stream { grid-column: 4 / -1; min-width: 0; padding-top: 24px; }
.flow-world .spatial-catalog-stream .product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px; }
.flow-world .spatial-catalog-stream .product-card { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px; border: 1px solid #c7d4ff26; border-radius: 30px; background: linear-gradient(145deg, #17314b66, #111b3652 55%, #10203b33); box-shadow: inset 0 1px 0 #dcefff14, 0 24px 60px #01061016; transform-origin: center center; }
.flow-world .spatial-catalog-stream .product-card:nth-child(even) { margin-top: 34px; }
.flow-world .spatial-catalog-stream .product-card:last-child { border-bottom: 1px solid #c7d4ff26; }
.flow-world .spatial-catalog-stream .plan-identity .stock-badge { margin-left: 0; margin-top: 10px; display: flex; }
.flow-world .spatial-catalog-stream .plan-specs { padding-top: 18px; border-top: 1px solid #becff422; }
.flow-world .spatial-catalog-stream .plan-specs .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.flow-world .spatial-catalog-stream .plan-actions { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 10px; }
.flow-world .spatial-catalog-stream .plan-actions .price, .flow-world .spatial-catalog-stream .plan-actions .price-period { grid-column: 1; }
.flow-world .spatial-catalog-stream .plan-actions .button { width: 100%; }
.flow-world .spatial-catalog-stream .empty-state { grid-column: 1 / -1; border: 1px solid #c7d4ff26; border-radius: 30px; background: #13244355; }
.flow-world .spatial-product { max-width: 1320px; gap: 44px; }
.flow-world .spatial-product .product-detail { grid-column: 1 / 8; padding: 38px; }
.flow-world .spatial-product .subscription-panel { grid-column: 8 / -1; padding: 32px; margin-top: 74px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.flow-world .spatial-product .subscription-panel::before { inset-inline: 24px; opacity: .3; }
.flow-world .spatial-product .detail-specs { border-color: #c8d8f828; }
.flow-world .spatial-product .detail-stock { gap: 14px; }
.flow-world .spatial-product .source-row { line-height: 2; }
.flow-world .spatial-stat-orbit { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; gap: 24px; margin: 12px 0 28px; border: 0; background: none; }
.flow-world .spatial-stat-orbit .stat-card { padding: 28px; border: 1px solid #c7d4ff26; border-radius: 30px; background: linear-gradient(145deg, #132c4566, #12183044); box-shadow: inset 0 1px 0 #dcefff12; }
.flow-world .spatial-stat-orbit .stat-card:nth-child(even) { margin-top: 22px; }
.flow-world .spatial-restocks .spatial-frequency, .flow-world .spatial-history .spatial-event-log { grid-column: 1 / 9; padding: 32px; margin: 0; }
.flow-world .spatial-restocks .spatial-timeline, .flow-world .spatial-history .spatial-intervals { grid-column: 9 / -1; padding: 28px; margin: 74px 0 0; }
.flow-world .spatial-restocks .history-section-heading, .flow-world .spatial-history .history-section-heading { flex-wrap: wrap; gap: 22px; }
.flow-world .spatial-restocks .compact-drawer { padding-inline: 16px; border: 1px solid #bdcfff22; background: #adc7ff04; }
.flow-world .spatial-restocks .compact-drawer .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flow-world .spatial-history .history-filter { flex-wrap: wrap; }
.flow-world .spatial-workspace .table-scroll { max-width: 100%; border-radius: 20px; }
.flow-world .spatial-workspace .events-table, .flow-world .spatial-workspace .period-table { min-width: 580px; }
.flow-world .spatial-frequency .period-table { min-width: 920px; }
.flow-world .spatial-workspace .events-table th, .flow-world .spatial-workspace .period-table th { background: transparent; }
.flow-world .spatial-workspace .events-table td, .flow-world .spatial-workspace .period-table td { background: transparent; }
.flow-world .spatial-workspace .empty-state { background: #08162740; }
.flow-world .spatial-workspace .history-note { color: #b1bdd2; }
.flow-world .spatial-workspace input:not([type="hidden"]), .flow-world .spatial-workspace select { background: #08172ab8; border-color: #bdd5fa38; }
.flow-world .spatial-workspace .button { background: #9cebf316; }
.flow-world .spatial-workspace .button-secondary { background: #c7d9ef08; }
.flow-world .spatial-workspace .notice.error { color: #ffd4de; background: #451d34c7; }
.flow-world .spatial-workspace .notice.success { color: #c7f2e4; background: #123b30c7; }
.flow-world .spatial-surface:focus-within, .flow-world .spatial-catalog-stream .product-card:focus-within { border-color: #bbf3f47d; }
html[data-panels="integrated"] [data-world-panel] .button { border-color: color-mix(in srgb, var(--panel-accent, #c4b9ed) 42%, transparent); background: color-mix(in srgb, var(--panel-accent, #c4b9ed) 9%, transparent); }
html[data-panels="integrated"] [data-world-panel] input:focus, html[data-panels="integrated"] [data-world-panel] select:focus { border-color: var(--panel-accent, #c4b9ed); outline-color: var(--panel-accent, #c4b9ed); }
@media (max-width: 1200px) {
  .flow-world .spatial-entry-stage { column-gap: 5%; grid-template-columns: minmax(0, 57fr) minmax(0, 38fr); }
  .flow-world .entry-surface { padding: 34px; }
  .flow-world .entry-residential { padding: 28px; }
  .flow-world .entry-bottom { gap: 16px; }
  .flow-world .spatial-workspace { gap: 24px; }
  .flow-world .spatial-controls { grid-column: 1 / 5; }
  .flow-world .spatial-catalog-stream { grid-column: 5 / -1; }
  .flow-world .spatial-catalog-stream .product-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .flow-world .spatial-catalog-stream .product-card:nth-child(even) { margin-top: 0; }
  .flow-world .spatial-product .product-detail { padding: 30px; }
  .flow-world .spatial-product .subscription-panel { padding: 28px; }
  .flow-world .spatial-restocks .spatial-frequency, .flow-world .spatial-history .spatial-event-log { grid-column: 1 / 8; }
  .flow-world .spatial-restocks .spatial-timeline, .flow-world .spatial-history .spatial-intervals { grid-column: 8 / -1; }
}
@media (max-width: 900px) {
  .flow-world .spatial-restocks .spatial-frequency, .flow-world .spatial-history .spatial-event-log,
  .flow-world .spatial-restocks .spatial-timeline, .flow-world .spatial-history .spatial-intervals { grid-column: 1 / -1; margin-top: 0; }
  .flow-world .spatial-product .product-detail { grid-column: 1 / 8; }
  .flow-world .spatial-product .subscription-panel { grid-column: 8 / -1; margin-top: 38px; }
  .flow-world .spatial-stat-orbit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-world .spatial-stat-orbit .stat-card:nth-child(even) { margin-top: 16px; }
}
@media (max-width: 760px) {
  .flow-world .spatial-entry-hero { padding-top: 10px; margin-bottom: 62px; }
  .flow-world .entry-kicker { margin-left: 4px; font-size: 15px; letter-spacing: .035em; }
  .flow-world .spatial-entry-stage { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 30px; }
  html[data-scene-mode="residential"] .spatial-entry-stage > [data-world-panel-slot="entry-residential"],
  html[data-scene-mode="residential"] .spatial-entry-stage > .entry-residential { order: -1; }
  .flow-world .entry-surface { min-height: 360px; padding: 28px 26px; border-radius: 32px; background: linear-gradient(135deg, #19465bb8, #11213799); }
  .flow-world .entry-residential { min-height: 310px; margin-top: 0; background: linear-gradient(135deg, #194239b8, #10253799); }
  .flow-world .entry-copy h2 { font-size: clamp(40px, 11.6vw, 56px); }
  .flow-world .entry-residential .entry-copy h2 { font-size: clamp(38px, 10.8vw, 52px); }
  .flow-world .entry-copy p { font-size: 16px; }
  .flow-world .entry-bottom { align-items: flex-start; flex-direction: column; gap: 18px; }
  .flow-world .entry-index, .flow-world .entry-providers { font-size: 15px; }
  .flow-world .hero-context { grid-template-columns: 84px minmax(0, 1fr); gap: 20px; margin: 34px 4px 0; }
  .flow-world .hero-context .hero-display { font-size: 26px; }
  .flow-world .hero-context h1 { font-size: 20px; }
  .flow-world .hero-context .intro, .flow-world .hero-context-links { font-size: 15px; }
  .flow-world .spatial-workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .flow-world .spatial-workspace > *, .flow-world .spatial-product .product-detail,
  .flow-world .spatial-product .subscription-panel, .flow-world .spatial-restocks .spatial-frequency,
  .flow-world .spatial-restocks .spatial-timeline, .flow-world .spatial-history .spatial-event-log,
  .flow-world .spatial-history .spatial-intervals { grid-column: 1; }
  .flow-world .spatial-workspace-heading { padding-inline: 4px; gap: 24px; }
  .flow-world .spatial-status .notice { padding: 16px 18px; }
  .flow-world .spatial-controls { padding-inline: 20px; border-radius: 26px; }
  .flow-world .spatial-catalog-stream { padding-top: 0; }
  .flow-world .spatial-catalog-stream .product-card { padding: 26px 22px; border-radius: 28px; }
  .flow-world .spatial-catalog-stream .plan-specs .spec-grid { gap: 18px 12px; }
  .flow-world .spatial-product .product-detail, .flow-world .spatial-product .subscription-panel,
  .flow-world .spatial-restocks .spatial-frequency, .flow-world .spatial-restocks .spatial-timeline,
  .flow-world .spatial-history .spatial-event-log, .flow-world .spatial-history .spatial-intervals { padding: 26px 22px; margin-top: 0; border-radius: 28px; }
  .flow-world .spatial-stat-orbit { gap: 14px; margin-bottom: 4px; }
  .flow-world .spatial-stat-orbit .stat-card { padding: 22px 16px; border-radius: 26px; }
  .flow-world .spatial-stat-orbit .stat-card:nth-child(even) { margin-top: 0; }
  .flow-world .spatial-controls, .flow-world .spatial-product .subscription-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .flow-world .spatial-surface, .flow-world .spatial-catalog-stream .product-card { background: linear-gradient(138deg, #132443c7, #09182d9e); }
}
@media (prefers-reduced-motion: reduce) {
  .flow-world .spatial-controls, .flow-world .spatial-product .subscription-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
