/* TileEye web — tokens and components from the "TileEye App Redesign" canvas (W01–W11). */
:root {
  --red: #B51D1F; --red-dark: #8A0A0F; --red-tint: #F9E3E1; --red-line: #F0C4C0;
  --orange: #F26A1E; --orange-hover: #E55F17; --orange-tint: #F9A06A;
  --ink: #2A1214; --night: #1E0D0E; --muted: #75655D; --faint: #8F7F77;
  --cream: #F7F2EC; --sand: #EDE5DC; --line: #E4D9CD; --line-soft: #F1EAE2; --white: #FFFFFF;
  --ok: #1F6B3E; --blue: #2F6FB0;
  --font: 'DM Sans', system-ui, sans-serif; --display: 'Poppins', 'DM Sans', sans-serif;
  --r-pill: 9999px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 15px/1.5 var(--font); }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
img, svg { display: block; flex: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
::placeholder { color: var(--faint); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; }
.skip-link:focus { left: 8px; color: #fff; }

/* Layout helpers */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }
.container { max-width: 1280px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack-2, .stack-4, .stack-6, .stack-10, .stack-12, .stack-14, .stack-16, .stack-18, .stack-20, .stack-24, .stack-28, .stack-56 { display: flex; flex-direction: column; }
.stack-2 { gap: 2px; } .stack-4 { gap: 4px; } .stack-6 { gap: 6px; } .stack-10 { gap: 10px; } .stack-12 { gap: 12px; }
.stack-14 { gap: 14px; } .stack-16 { gap: 16px; } .stack-18 { gap: 18px; } .stack-20 { gap: 20px; } .stack-24 { gap: 24px; }
.stack-28 { gap: 28px; } .stack-56 { gap: 56px; }
.pt-12 { padding-top: 12px; } .pt-24 { padding-top: 24px; } .pt-28 { padding-top: 28px; } .pt-40 { padding-top: 40px; } .pb-64 { padding-bottom: 64px; }
.mt-20 { margin-top: 20px; } .mt-auto { margin-top: auto; }
.grow { flex: 1 1 0; min-width: 0; } .grow-2 { flex: 2 1 240px; min-width: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; }
.row-between.wrap, .wrap { flex-wrap: wrap; } .align-end { align-items: flex-end; }
.flex-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.flex-grid > * { flex: 1 1 220px; min-width: 0; }
.flex-grid.wide { gap: 20px; } .flex-grid.wide > * { flex-basis: 240px; }
.center { text-align: center; } .right { text-align: right; }

/* Type */
.display { font: 700 52px/58px var(--display); max-width: 560px; }
.h-page { font: 700 34px/40px var(--display); }
.h-section { font: 700 28px/1.2 var(--display); }
.h-sub { font: 600 18px/1.3 var(--display); } .h-sub.lg { font-size: 26px; line-height: 32px; font-weight: 700; }
.h-card { font: 700 22px/1.25 var(--display); }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 520px; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.small { font-size: 13px; } .xs { font-size: 12px; } .base { font-size: 15px; } .lg { font-size: 17px; }
.strong { font-weight: 700; color: var(--ink); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.eyebrow.red { color: var(--red); letter-spacing: 2px; font-size: 11px; } .eyebrow.orange { color: var(--orange-tint); letter-spacing: 2px; font-size: 11px; }
.price { font-weight: 700; color: var(--red); }
.link-strong { font-weight: 700; font-size: 15px; }
.link-strong.small { font-size: 13px; }
.with-icon { display: inline-flex; align-items: center; gap: 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-word { font: 500 22px var(--display); letter-spacing: 6px; }
.brand.light { color: #fff; position: relative; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-link { height: 44px; padding: 0 14px; border-radius: var(--r-pill); display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.nav-link.with-mark { padding-left: 10px; }
.nav-link:hover { background: var(--cream); color: var(--ink); }
.nav-link.is-active { background: var(--red-tint); color: var(--red-dark); font-weight: 700; }
.search { flex: 1 1 220px; min-width: 0; height: 44px; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--muted); }
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
.search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-weight: 500; color: var(--ink); }
.header-actions { display: flex; gap: 8px; margin-left: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--cream); color: var(--ink); }
.icon-btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.icon-btn.dark:hover { background: var(--night); color: #fff; }

/* Buttons */
.btn { height: 54px; padding: 0 22px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn.full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row > .grow { flex: 1 1 160px; } .btn-row > .grow-2 { flex: 2 1 240px; }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ai { padding-left: 10px; background: var(--orange); color: var(--ink); } .btn-ai:hover { background: var(--orange-hover); color: var(--ink); }
.btn-ai-icon { width: 36px; height: 36px; border-radius: var(--r-pill); background: #fff; display: flex; align-items: center; justify-content: center; }
.btn-ai-icon.sm { width: 34px; height: 34px; }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); } .btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-dark { background: var(--night); color: #fff; height: 48px; } .btn-dark:hover { background: var(--ink); color: #fff; }
.btn-social { height: 52px; width: 100%; background: #fff; border-color: var(--line); color: var(--ink); font-size: 15px; }
.btn-social:hover { background: var(--cream); }
.link-btn { border: none; background: none; padding: 0; color: var(--red); font-weight: 700; font-size: 13px; cursor: pointer; min-height: 32px; }
.pill { height: 36px; padding: 0 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-red { height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--red); color: #fff; display: flex; align-items: center; font-weight: 700; font-size: 14px; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); transition: border-color .15s; }
.card:hover { border-color: var(--red); color: var(--ink); }
.card-plain { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card-link { display: flex; flex-direction: column; gap: 8px; padding: 10px; color: var(--ink); height: 100%; }
.card-link:hover { color: var(--ink); }
.tile-card { border-radius: 22px; }
.swatch { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 16px; }
.catalog-grid .swatch { aspect-ratio: 1 / 1; border-radius: 14px; }
.swatch::after, .proj-cover::after, .tx-grid::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px); background-size: 33.4% 50%; background-position: -1px -1px; }
.card:hover .swatch { outline: 2px solid var(--red); }
.tile-info { display: flex; flex-direction: column; gap: 2px; padding: 0 6px 6px; }
.tile-name { font: 700 16px/1.3 var(--font); }
.tile-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.rating { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.badge { position: absolute; z-index: 1; left: 10px; top: 10px; padding: 4px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: .6px; }
.badge-premium { background: var(--ink); color: #fff; } .badge-new { background: var(--red); color: #fff; }
.badge-sale { background: var(--orange); color: var(--ink); } .badge-trending { background: var(--blue); color: #fff; }

/* Home hero */
.hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.hero-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 16px 0; }
.stats { display: flex; flex-wrap: wrap; gap: 24px 36px; padding-top: 8px; }
.stats > div { display: flex; flex-direction: column; gap: 2px; }
.stats dd { font: 700 24px var(--display); } .stats dt { font-size: 13px; color: var(--muted); }
.room-preview { flex: 1 1 460px; min-width: 0; min-height: 420px; position: relative; overflow: hidden; border-radius: 28px; background: #4A3936; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.room-preview:hover { color: #fff; }
.room-preview.static { flex: none; min-height: 260px; }
.rs { position: absolute; top: 0; }
.rs-1 { left: 0; width: 22%; height: 52%; background: #E7A57E; }
.rs-2 { left: 22%; width: 14%; height: 46%; background: #D88C62; }
.rs-3 { right: 0; width: 30%; height: 56%; background: #EFEAE3; }
.rs-4 { left: 42%; top: 12%; width: 18%; height: 24%; background: #E9CF7A; }
.rs-floor { position: absolute; left: 0; right: 0; top: 40%; bottom: 0; overflow: hidden; perspective: 420px; }
.room-grid { position: absolute; left: -30%; right: -30%; top: 0; height: 200%; transform: rotateX(58deg); transform-origin: 50% 0;
  background: linear-gradient(rgba(70,60,55,.5) 2px, transparent 2px) 0 0/64px 64px, linear-gradient(90deg, rgba(70,60,55,.5) 2px, transparent 2px) 0 0/64px 64px, linear-gradient(118deg, transparent 30%, rgba(150,120,70,.25) 33%, transparent 38%), linear-gradient(150deg, #F2EEE8, #DDD3C6); }
.room-chips { position: absolute; left: 20px; top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip-dark { padding: 6px 12px; border-radius: var(--r-pill); background: rgba(18,8,9,.82); font-size: 12px; color: #fff; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.room-card { position: relative; margin: 20px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.96); color: var(--ink); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.room-card-sw { width: 48px; height: 48px; flex: none; border-radius: 12px; background: linear-gradient(118deg, transparent 38%, rgba(150,120,70,.32) 41%, transparent 45%), #EEE8E0; }
.room-card-text { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

/* App banner */
.app-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding: 24px 28px; border-radius: 24px; background: var(--night); color: #fff; margin-top: -16px; }
.app-banner h2 { font: 700 22px/28px var(--display); }
.app-banner p { font-size: 14px; line-height: 21px; color: #D9CBC6; }
.app-icon { width: 64px; height: 64px; flex: none; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; }
.app-icon.sm { width: 52px; height: 52px; border-radius: 14px; background: var(--cream); }
.app-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn { height: 52px; padding: 0 18px 0 12px; border-radius: 12px; background: #fff; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.store-btn:hover { color: var(--ink); background: var(--cream); }
.store-btn > span { display: flex; flex-direction: column; line-height: 1.1; }
.store-sub { font-size: 10px; font-weight: 600; letter-spacing: .4px; color: var(--muted); } .store-name { font-size: 16px; font-weight: 700; }

/* Category + project + studio cards */
.cat-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--red-tint); color: var(--red); display: flex; align-items: center; justify-content: center; }
.split { display: flex; flex-wrap: wrap; gap: 24px; }
.split > .grow-2 { flex: 2 1 520px; }
.proj-card { overflow: hidden; display: flex; flex-direction: column; flex-basis: 200px; }
.proj-cover { position: relative; height: 110px; }
.proj-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.studio-card { flex: 1 1 320px; min-width: 0; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mini-pattern { width: 72px; height: 72px; border-radius: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 8px; background: #F3ECE4; }
.mp-r { background: var(--red); border-radius: 4px; } .mp-b { background: #ECE3D9; border-radius: 4px; } .mp-o { background: var(--orange); border-radius: var(--r-pill); }
.seo-copy { display: flex; flex-direction: column; gap: 18px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: s; }
.steps > li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps > li::before { content: counter(s); width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--red-tint); color: var(--red); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.steps h3 { font: 700 17px/1.3 var(--font); }
.steps.compact { grid-template-columns: 1fr; gap: 10px; }
.steps.compact > li { padding: 14px 16px; }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; }
.breadcrumbs a { color: var(--muted); } .breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Catalog */
.catalog { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.filters { flex: 1 1 240px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; }
.filters fieldset { border: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.filters legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.facet, .facet-link { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 32px; cursor: pointer; color: var(--ink); }
.facet > span:nth-child(2), .facet-link > span:first-child { flex: 1; }
.facet input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.facet-link { padding: 0 10px; margin: 0 -10px; border-radius: 10px; }
.facet-link:hover { background: var(--cream); color: var(--ink); }
.facet-link.is-on { background: var(--red-tint); color: var(--red-dark); font-weight: 700; }
.products { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.catalog-grid { gap: 20px; } .catalog-grid > * { flex-basis: 200px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.sort select { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.seg { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--sand); }
.seg button { width: 44px; height: 38px; border-radius: 9px; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; background: transparent; color: var(--muted); }
.seg button.is-on { background: #fff; color: var(--red); box-shadow: 0 1px 4px rgba(42,18,20,.12); }
.list-view { display: flex; flex-direction: column; gap: 12px; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 10px; border-radius: 18px; }
.list-sw { position: relative; width: 96px; height: 96px; flex: none; border-radius: 14px; }
.list-row .price { min-width: 110px; text-align: right; }
.empty { text-align: center; color: var(--muted); }

/* Product detail */
.pdp { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.pdp-gallery { flex: 1 1 520px; min-width: 0; }
.pdp-buy { flex: 1 1 380px; min-width: 0; max-width: 100%; }
.pdp-hero { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--sw); }
.pdp-hero .badge { left: 16px; top: 16px; }
.pdp-hero::after { z-index: 0; }
.fab { position: absolute; z-index: 1; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: var(--r-pill); border: none; background: #fff; color: var(--red); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(42,18,20,.1); }
.see-room { position: absolute; z-index: 1; right: 16px; bottom: 16px; height: 48px; padding: 0 18px 0 8px; border-radius: var(--r-pill); background: var(--night); color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.see-room:hover { color: #fff; background: var(--ink); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); padding: 6px 20px; }
.specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.specs dt { color: var(--muted); } .specs dd { font-weight: 600; text-align: right; }
.rating-line { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.rating-line .dot { color: #C9B9AB; } .ok { color: var(--ok); font-weight: 600; }
.price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-xl { font: 700 34px var(--display); color: var(--red); }
.calc { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; }
.area-row { display: flex; gap: 8px; flex-wrap: wrap; }
.area-btn { flex: 1 1 72px; height: 44px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px; background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
.area-btn.is-on { background: var(--red); color: #fff; border-color: var(--red); }
.calc-lines { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.calc-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.calc-lines dt { color: var(--muted); } .calc-lines dd { font-weight: 600; }
.calc-lines .total { padding-top: 8px; border-top: 1px solid #EFE7DE; font-size: 16px; }
.calc-lines .total dt { color: var(--ink); font-weight: 700; } .calc-lines .total dd { color: var(--red); font-weight: 700; }
.checks { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 8px; } .checks svg { color: var(--ok); }
.pair-card { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 18px; flex-basis: 200px; }
.pair-sw { position: relative; width: 84px; height: 84px; flex: none; border-radius: 14px; }

/* Pattern studio */
.studio { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.studio-cats { flex: 1 1 220px; max-width: 100%; padding: 12px; }
.studio-cats ul { display: flex; flex-direction: column; gap: 2px; }
.cat-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.cat-row.is-on { background: var(--red-tint); color: var(--red-dark); }
.studio > .grow { flex: 999 1 560px; }
.pattern-card { padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 12px; flex-basis: 200px; }
.pattern-card .row-between { padding: 0 6px; }
.pattern-art { aspect-ratio: 1 / 1; border-radius: 14px; background-color: #F3ECE4; }
.pt-herring { background: repeating-linear-gradient(45deg, #B51D1F 0 14px, #ECE3D9 14px 16px, #D9CBC6 16px 30px, #ECE3D9 30px 32px); }
.pt-chevron { background: linear-gradient(135deg, #2A1214 25%, transparent 25%) -24px 0/48px 48px, linear-gradient(225deg, #2A1214 25%, transparent 25%) -24px 0/48px 48px, linear-gradient(315deg, #2A1214 25%, transparent 25%) 0 0/48px 48px, linear-gradient(45deg, #2A1214 25%, #ECE3D9 25%) 0 0/48px 48px; }
.pt-basket { background: linear-gradient(90deg, #D9CBC6 50%, transparent 50%) 0 0/48px 48px, repeating-linear-gradient(0deg, #F7F2EC 0 10px, #B51D1F 10px 12px); }
.pt-star { background: radial-gradient(circle, #F26A1E 22%, transparent 23%) 0 0/48px 48px, radial-gradient(circle, #B51D1F 40%, #F3ECE4 41%) 24px 24px/48px 48px; }
.pt-hex { background: radial-gradient(circle at 50% 50%, #8BA586 45%, #F3ECE4 46%) 0 0/32px 28px, radial-gradient(circle at 50% 50%, #6F8C6B 45%, transparent 46%) 16px 14px/32px 28px; }
.pt-check { background: conic-gradient(#2A1214 25%, #F7F2EC 0 50%, #2A1214 0 75%, #F7F2EC 0) 0 0/48px 48px; }
.pt-versailles { background: linear-gradient(#ECE3D9 2px, transparent 2px) 0 0/64px 64px, linear-gradient(90deg, #ECE3D9 2px, transparent 2px) 0 0/64px 64px, linear-gradient(#ECE3D9 2px, transparent 2px) 0 0/32px 32px, linear-gradient(90deg, #ECE3D9 2px, transparent 2px) 0 0/32px 32px, linear-gradient(140deg, #DCC7A2, #CDB48C); }
.pt-border { background: repeating-linear-gradient(90deg, #2F6FB0 0 10px, #F7F2EC 10px 20px) top/100% 24px no-repeat, repeating-linear-gradient(90deg, #2F6FB0 0 10px, #F7F2EC 10px 20px) bottom/100% 24px no-repeat, #F7F2EC; }
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }

/* Auth */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-story { flex: 1 1 480px; min-width: 0; position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.tiles-bg { background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 120px 120px; }
.login-art { position: absolute; right: -120px; bottom: -120px; width: 520px; height: 520px; opacity: .9; }
.measure { position: relative; max-width: 520px; }
.display.light { font-size: 48px; line-height: 54px; color: #fff; }
.light-muted { color: #D9CBC6; } .light-faint { color: #A8968F; position: relative; }
.chip-orange { align-self: flex-start; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(242,106,30,.18); color: var(--orange-tint); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.login-checks { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.login-checks li { display: flex; align-items: center; gap: 12px; }
.check-dot { width: 28px; height: 28px; flex: none; border-radius: var(--r-pill); background: var(--orange); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.login-form { flex: 1 1 420px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.login-inner { width: 100%; max-width: 420px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sand); }
.tabs button { height: 44px; border: none; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; background: transparent; color: var(--muted); }
.tabs button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(42,18,20,.12); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.form-grid > .field-label { flex: 1 1 160px; }
.field { height: 52px; width: 100%; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 0 14px; font-weight: 500; font-size: 15px; outline: none; }
.field:focus { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
.check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 18px; color: var(--muted); cursor: pointer; }
.check-label input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--red); }
.gate { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.gate-copy { flex: 1 1 420px; min-width: 0; }
.gate-card { flex: 0 1 480px; min-width: 0; margin: 0 auto; border-radius: 28px; background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(30,13,14,.12); border: 1px solid var(--line); }

/* Cart + account */
.checkout-steps { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; color: var(--muted); }
.checkout-steps li { display: flex; align-items: center; gap: 8px; }
.checkout-steps span { width: 28px; height: 28px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.checkout-steps .is-on { color: var(--ink); } .checkout-steps .is-on span { background: var(--red); border-color: var(--red); color: #fff; }
.checkout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.summary { flex: 1 1 320px; position: sticky; top: 16px; }
.cart-line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.cart-sw { position: relative; width: 72px; height: 72px; border-radius: 14px; flex: none; }
.tag { align-self: flex-start; padding: 2px 8px; border-radius: var(--r-pill); background: var(--cream); font-size: 12px; font-weight: 600; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px; }
.qty button { width: 40px; height: 40px; border: none; border-radius: var(--r-pill); background: var(--cream); cursor: pointer; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.note { padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 13px; color: var(--muted); }
.form-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.account { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.account-nav { flex: 1 1 240px; padding: 12px; }
.account-nav nav { display: flex; flex-direction: column; gap: 2px; }
.acc { min-height: 44px; padding: 0 14px; border-radius: 12px; display: flex; align-items: center; font-weight: 600; color: var(--ink); }
.acc:hover { background: var(--cream); color: var(--ink); }
.account > .grow { flex: 999 1 560px; }
.orders { display: flex; flex-direction: column; }
.order-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.status { padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; }
.status-shipped { background: #E3EDF8; color: #1D4F86; } .status-delivered { background: #E2F1E7; color: var(--ok); }

/* Footer */
.site-footer { background: var(--night); color: #D9CBC6; margin-top: 72px; }
.site-footer.compact { margin-top: auto; }
.site-footer a { color: #D9CBC6; } .site-footer a:hover { color: #fff; }
.footer-grid { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 32px 48px; justify-content: space-between; }
.footer-about { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.footer-about p { font-size: 14px; line-height: 21px; max-width: 320px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.compact .brand-word { font-size: 15px; letter-spacing: 4px; }
.footer-col { flex: 0 1 160px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #fff; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bar { padding-top: 18px; padding-bottom: 18px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }

/* Phone width */
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .display, .display.light { font-size: 36px; line-height: 42px; }
  .h-page { font-size: 28px; line-height: 34px; }
  .h-section { font-size: 24px; }
  .room-preview { min-height: 320px; flex-basis: 100%; }
  .login-story { padding: 32px 20px; }
  .login-art { display: none; }
  .specs { grid-template-columns: 1fr; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .search { order: 4; flex-basis: 100%; }
  .stack-56 { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Real product photos + API-driven pages */
.swatch { background: var(--sand); }
.swatch img, .pdp-hero img, .pair-sw img, .proj-cover img, .list-sw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swatch::after, .proj-cover::after { content: none; }
.swatch .badge { z-index: 2; }
.badge-sold-out { background: var(--ink); color: #fff; }
.pdp-hero { background: var(--sand); }
.pair-sw { overflow: hidden; background: var(--sand); }
.proj-cover { background: var(--sand); overflow: hidden; }
.room-card-sw { object-fit: cover; }
.tile-name, .clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-price-row { flex-wrap: wrap; gap: 4px 8px; }
.measure-wide { max-width: 760px; }
.facets { display: flex; flex-direction: column; gap: 2px; }
.filters .h-sub { margin-bottom: -8px; }
.prose { font-size: 15px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { font: 700 17px/1.3 var(--font); margin: 18px 0 6px; }
.prose p { margin: 0 0 10px; }
.prose ul, .prose ol { list-style: disc; padding-left: 20px; margin: 0 0 10px; }
.prose li p { margin: 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.prose img { max-width: 100%; height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose td, .prose th { border-bottom: 1px solid var(--line-soft); padding: 6px 4px; text-align: left; }
.options { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.options li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; }
.options li + li { border-top: 1px solid var(--line-soft); }
.options .is-out { color: var(--faint); text-decoration: line-through; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding-top: 8px; }
.pg { min-width: 44px; height: 44px; padding: 0 6px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.pg:hover { border-color: var(--ink); color: var(--ink); }
.pg.is-on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.pg-gap { padding: 0 6px; color: var(--muted); }
svg.pattern-art { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 14px; display: block; }
.empty-state { max-width: 560px; margin: 0 auto; align-items: center; text-align: center; padding: 40px 28px; }
.center-row { justify-content: center; }

/* Auth */
.alert { padding: 12px 14px; border-radius: 14px; background: var(--red-tint); border: 1px solid var(--red-line); color: var(--red-dark); font-size: 14px; font-weight: 600; }
.initials { font-weight: 700; font-size: 14px; text-decoration: none; }
.acc-user { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }
.full-w { width: 100%; text-align: left; }
.field.code { letter-spacing: 6px; font-size: 20px; text-align: center; }
.status-fulfilled, .status-delivered { background: #E2F1E7; color: var(--ok); }
.status-paid, .status-pending, .status-unfulfilled { background: var(--cream); color: var(--muted); }

/* Visualizer */
.viz { display: flex; flex-direction: column; gap: 24px; }
.viz-stage { flex: 999 1 560px; min-width: 0; position: relative; min-height: 420px; border-radius: 28px; overflow: hidden; background: #4A3936; display: flex; align-items: center; justify-content: center; }
.viz-img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; display: block; transition: opacity .2s; }
.viz-img.is-dim { opacity: .55; }
.viz-drop { position: absolute; inset: 16px; border: 2px dashed rgba(255,255,255,.35); border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: #fff; cursor: pointer; }
.viz-drop:hover, .viz-drop:focus-within { border-color: #fff; background: rgba(255,255,255,.04); }
.viz-drop .muted { color: #D9CBC6; max-width: 360px; }
.btn-ai-icon.lg { width: 72px; height: 72px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.viz-busy { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); min-width: 260px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.96); color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(30,13,14,.2); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--red-tint); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { flex-basis: 100%; height: 6px; border-radius: 3px; background: var(--sand); overflow: hidden; }
.bar-fill { height: 100%; background: var(--red); transition: width .4s; }
.viz-panel { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.viz-panel .viz-tiles { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: 340px; }
@media (max-width: 860px) { .viz-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.seg-wide { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sand); }
.seg-wide button { flex: 1; min-height: 40px; border: none; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.seg-wide button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(42,18,20,.12); }
.seg-wide button:disabled, .viz-tile:disabled { cursor: not-allowed; opacity: .6; }
.viz-search { flex: none; }
.viz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.viz-tile { width: 100%; padding: 0; border: 2px solid transparent; border-radius: 12px; background: #fff; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.viz-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.viz-tile-name { font-size: 11px; font-weight: 600; padding: 4px 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.viz-tile.is-on { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.ok-note { background: #E2F1E7; color: var(--ok); font-weight: 600; }
.qty form { display: contents; }
.qty-row { display: flex; gap: 12px; }
.qty-field { max-width: 220px; }
.cart-line form { margin: 0; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.unit-field { display: flex; align-items: center; gap: 8px; padding-right: 14px; }
.unit-field input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-weight: 700; font-size: 16px; height: 100%; }
.unit-field:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
.unit { color: var(--faint); font-weight: 500; }
.warn { padding: 8px 10px; border-radius: 10px; background: #FDF0E3; color: #8A4B08; font-size: 12px; font-weight: 600; }
.area-btn { flex: 1 1 52px; }

/* Member pages */
.narrow { max-width: 860px; }
details > summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.sub-details > summary { color: var(--red); }
.faq summary { font-size: 16px; }
.faq p { margin-top: 10px; }
.newcard { padding: 18px; flex-basis: 260px; }
.newcard:hover { border-color: var(--line); }
.proj-cover .badge { left: 10px; top: 10px; background: rgba(18,8,9,.82); color: #fff; }
.addr-row, .pref-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.addr-row .tag { margin-left: 8px; }
.switch { appearance: none; width: 46px; height: 28px; border-radius: 9999px; background: var(--sand); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.switch:checked { background: var(--red); }
.switch:checked::after { left: 21px; }
.danger { color: var(--red-dark); border-color: var(--red-line); }
.order-items { display: flex; flex-wrap: wrap; gap: 10px; }
.order-items li { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 10px 6px 6px; border-radius: 12px; background: var(--cream); }
.order-items img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.cart-sw img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.reviews { display: flex; flex-direction: column; gap: 10px; }
.stars { color: var(--orange); letter-spacing: 2px; }
.star-pick { border: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.star-pick legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field.area { height: auto; padding: 12px 14px; resize: vertical; }
a.right { align-self: flex-end; }
.addr-pick { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.addr-pick legend { margin-bottom: 6px; }
.addr-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; background: #fff; }
.addr-option:hover { border-color: var(--ink); }
.addr-option:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.addr-option input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.addr-option .tag { margin-left: 8px; }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(30,13,14,.14); max-height: 280px; overflow-y: auto; padding: 4px; }
.ac-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 400; }
.ac-item:hover, .ac-item.is-on { background: var(--cream); }
.ac-spin { position: absolute; right: 14px; top: 40px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--red-tint); border-top-color: var(--red); animation: spin .8s linear infinite; }

/* Pattern editor */
.pe { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pe-stage { flex: 999 1 520px; min-width: 0; }
.pe-canvas { border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); aspect-ratio: 1 / 1; max-height: 72vh; }
.pe-svg { width: 100%; height: 100%; display: block; }
.pe-panel { flex: 1 1 340px; min-width: 0; max-width: 100%; position: sticky; top: 16px; }
.pe-parts { display: flex; flex-direction: column; gap: 6px; }
.pe-part { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; }
.pe-part.is-on { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.pe-part-sw { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; display: block; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; }
.swatch-btn.is-on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--red); }
.is-disabled { pointer-events: none; opacity: .5; }
.pattern-card > a { display: block; }

/* ---------- Visualizer guides (animated illustrations) ---------- */
.g-how { display: flex; flex-direction: column; gap: 18px; }
.g-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.g-how.compact .g-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-step { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.g-step-text { display: flex; gap: 10px; padding: 14px 16px 16px; align-items: flex-start; }
.g-how.compact .g-step-text { padding: 10px 12px; }
.g-num { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--red-tint); color: var(--red); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.g-scene { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #4A3936; }
.g-room { position: absolute; inset: 0; overflow: hidden; background: #4A3936; }
.g-room .rs-1 { height: 50%; } .g-room .rs-2 { height: 44%; } .g-room .rs-3 { height: 54%; }
.g-floor { position: absolute; left: -30%; right: -30%; top: 0; height: 200%; transform: rotateX(58deg); transform-origin: 50% 0;
  background: linear-gradient(rgba(70,60,55,.5) 2px, transparent 2px) 0 0/40px 40px, linear-gradient(90deg, rgba(70,60,55,.5) 2px, transparent 2px) 0 0/40px 40px, linear-gradient(150deg, #F2EEE8, #DDD3C6); }
.g-floor.is-bare { background: linear-gradient(150deg, #9C8C80, #7D6E64); }
.g-pill { position: absolute; padding: 5px 10px; border-radius: 9999px; background: rgba(18,8,9,.85); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

/* 1 upload */
.g-upload { background: var(--cream); display: flex; align-items: center; justify-content: center; }
.g-drop { position: absolute; inset: 14% 18%; border: 2px dashed #C9B9AB; border-radius: 16px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8%; color: var(--faint); }
.g-photo { position: absolute; width: 46%; aspect-ratio: 4 / 3; left: 27%; top: 22%; border-radius: 10px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(30,13,14,.25); animation: g-photo 4.4s ease-in-out infinite; }
.g-photo .g-room { position: absolute; }
.g-check { position: absolute; right: 22%; top: 16%; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; animation: g-pop 4.4s ease-in-out infinite; }
@keyframes g-photo { 0%, 8% { transform: translate(60%, -90%) rotate(12deg); opacity: 0; } 30% { opacity: 1; } 45%, 85% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes g-pop { 0%, 48% { opacity: 0; transform: scale(.4); } 56%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

/* 2 detect */
.g-scanline { position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, #F26A1E, transparent); box-shadow: 0 0 14px 4px rgba(242,106,30,.55); animation: g-scan 3.6s ease-in-out infinite; }
.g-mask { position: absolute; left: 0; right: 0; top: 40%; bottom: 0; background: rgba(181,29,31,.38); outline: 2px solid #F9A06A; outline-offset: -2px; opacity: 0; animation: g-mask 3.6s ease-in-out infinite; }
.g-area { left: 50%; bottom: 14%; transform: translateX(-50%); opacity: 0; animation: g-mask 3.6s ease-in-out infinite; }
@keyframes g-scan { 0% { top: 0; opacity: 1; } 55% { top: 100%; opacity: 1; } 56%, 100% { top: 100%; opacity: 0; } }
@keyframes g-mask { 0%, 45% { opacity: 0; } 60%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* 3 lay tiles */
.g-laying { clip-path: inset(0 0 100% 0); animation: g-lay 4s steps(8, end) infinite; }
.g-tilechip { left: 10px; top: 10px; }
.g-sw { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(118deg, transparent 38%, rgba(150,120,70,.4) 41%, transparent 45%), #EEE8E0; }
@keyframes g-lay { 0% { clip-path: inset(0 0 100% 0); } 70%, 92% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }

/* 4 direction */
.g-floor-rot { position: absolute; inset: 0; perspective: 420px; }
.g-rotating { transform-style: preserve-3d; animation: g-rot 6s ease-in-out infinite; }
.g-arrow { position: absolute; left: 50%; top: 40%; width: 4px; height: 38%; margin-left: -2px; background: #F26A1E; border-radius: 2px; transform-origin: 50% 0; animation: g-arrow 6s ease-in-out infinite; }
.g-arrow-head { position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-top: 12px solid #F26A1E; }
.g-finger { position: absolute; left: 50%; bottom: -26px; margin-left: -11px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 6px rgba(255,255,255,.3); }
.g-angle { right: 10px; top: 10px; }
.g-angle { display: inline-grid; }
.g-angle > span { grid-area: 1 / 1; opacity: 0; }
.g-angle-0 { animation: g-l0 6s infinite; } .g-angle-45 { animation: g-l45 6s infinite; } .g-angle-90 { animation: g-l90 6s infinite; }
@keyframes g-rot { 0%, 15% { transform: rotateX(58deg) rotateZ(0); } 40%, 55% { transform: rotateX(58deg) rotateZ(45deg); } 80%, 95% { transform: rotateX(58deg) rotateZ(90deg); } 100% { transform: rotateX(58deg) rotateZ(0); } }
@keyframes g-arrow { 0%, 15% { transform: rotate(0); } 40%, 55% { transform: rotate(-45deg); } 80%, 95% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@keyframes g-l0 { 0%, 27% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes g-l45 { 0%, 27% { opacity: 0; } 28%, 67% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes g-l90 { 0%, 67% { opacity: 0; } 68%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* photo tips */
.g-tips-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.g-tip { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.g-tip.is-bad { opacity: .92; }
.g-mini { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.g-mini.is-bright .g-room { filter: brightness(1.12) saturate(1.05); }
.g-mini.is-close .g-room { transform: scale(2.4); transform-origin: 50% 95%; }
.g-mini.is-dark .g-room { filter: brightness(.35) blur(1.5px); }
.g-tip-badge { position: absolute; left: 14px; top: 14px; padding: 3px 8px 3px 6px; border-radius: 9999px; font-size: 11px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; color: #fff; }
.g-tip.is-good .g-tip-badge { background: var(--ok); }
.g-tip.is-bad .g-tip-badge { background: var(--red); }

/* direction guide dialog */
.g-dialog { position: fixed; inset: 0; z-index: 50; background: rgba(30,13,14,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.g-dialog-card { width: 100%; max-width: 440px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(30,13,14,.35); }
.g-dialog-card .g-scene { border-radius: 0; }
.g-dialog-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.g-dialog-body ol { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .g-photo, .g-check, .g-scanline, .g-mask, .g-area, .g-laying, .g-rotating, .g-arrow, .g-angle > span { animation: none !important; }
  .g-photo { transform: none; opacity: 1; } .g-check, .g-mask, .g-area { opacity: 1; } .g-laying { clip-path: none; }
  .g-rotating { transform: rotateX(58deg) rotateZ(45deg); } .g-arrow { transform: rotate(-45deg); } .g-angle-45 { opacity: 1; }
}

/* Visualizer stage demo + layout fixes */
.viz-left { width: 100%; min-width: 0; }
.viz-left > .viz-stage { flex: none; }
.viz-stage { min-height: 360px; }
.viz-drop { z-index: 2; background: rgba(30,13,14,.55); backdrop-filter: blur(1px); }
.viz-drop .strong { color: #fff; }
.g-demo { position: absolute; inset: 0; }
.g-demo-frame { position: absolute; inset: 0; opacity: 0; animation: g-demo 20s infinite; }
.g-demo-frame .g-scene { position: absolute; inset: 0; aspect-ratio: auto; }
.g-demo-1 { animation-delay: 5s; } .g-demo-2 { animation-delay: 10s; } .g-demo-3 { animation-delay: 15s; }
.g-demo-cap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; padding: 6px 12px; border-radius: 9999px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
@keyframes g-demo { 0% { opacity: 0; } 3%, 23% { opacity: 1; } 26%, 100% { opacity: 0; } }
/* keep the drop UI readable over the demo: lift it above the caption */
.viz-drop { inset: 16px 16px 64px; }
/* compact tips in the side panel */
.viz-panel .g-tips-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.viz-panel .g-tip { padding: 6px 6px 10px; gap: 6px; border-radius: 12px; }
.viz-panel .g-tip .muted { display: none; }
.viz-panel .g-tip-badge { left: 10px; top: 10px; font-size: 10px; }
.g-how.compact .g-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g-how.compact .g-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .g-demo-frame { animation: none; } .g-demo-0 { opacity: 1; } }
.g-dialog-card.wide { max-width: 880px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.g-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 12px; }
.g-dialog-scroll { padding: 0 20px 16px; overflow-y: auto; }
.g-dialog-scroll .g-how h2 { display: none; }
.g-dialog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.g-dialog-foot .check-label { color: var(--ink); font-size: 14px; }
.g-dialog-scroll .g-tips-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .g-dialog-scroll .g-tips-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Tile direction picker (mirrors the app's TileDirectionPickerDialog) ── */
.dir-open { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.dir-open:hover:not(:disabled) { border-color: var(--red-line); }
.dir-open:disabled { opacity: .6; cursor: not-allowed; }
.dir-open .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dir-mini { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--sand); position: relative; }
.dir-mini-arrow { position: absolute; left: 50%; top: 5px; width: 3px; height: 13px; margin-left: -1.5px; background: var(--red); border-radius: 2px; transform-origin: 50% 13px; }
.dir-mini-arrow::before { content: ''; position: absolute; left: -4px; top: -5px; border: 5.5px solid transparent; border-bottom: 7px solid var(--red); border-top: 0; }
.dir-card { max-width: 460px; }
.dir-body { align-items: center; }
.dir-readout { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.dir-ai { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--red-tint); color: var(--red-dark); font-size: 12px; font-weight: 700; }
.dir-dial { position: relative; width: 220px; height: 220px; margin: 0 auto; border-radius: 50%; background: var(--sand); box-shadow: inset 0 0 0 1px var(--line); touch-action: none; cursor: grab; user-select: none; }
.dir-dial.is-drag { cursor: grabbing; }
.dir-dial:focus-visible { outline: 3px solid var(--red-line); outline-offset: 4px; }
.dir-tick { position: absolute; left: 50%; top: 6px; width: 2px; height: 8px; margin-left: -1px; background: var(--faint); border-radius: 1px; transform-origin: 1px 104px; opacity: .6; }
.dir-tick.major { height: 13px; width: 3px; margin-left: -1.5px; background: var(--ink); transform-origin: 1.5px 104px; opacity: .8; }
.dir-face { position: absolute; inset: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .08s linear; }
.dir-dial.is-drag .dir-face { transition: none; }
.dir-tile { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 16px rgba(30,13,14,.25); pointer-events: none; }
.dir-arrow { position: absolute; left: 50%; top: -4px; width: 4px; height: 52px; margin-left: -2px; background: var(--red); border-radius: 2px; }
.dir-arrow::before { content: ''; position: absolute; left: -8px; top: -12px; border: 10px solid transparent; border-bottom: 14px solid var(--red); border-top: 0; }
.dir-ai-mark { position: absolute; left: 50%; top: -2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px #fff; transform-origin: 5px 112px; }
.dir-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dir-chip { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font: 600 13px var(--font); color: var(--ink); cursor: pointer; }
.dir-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.dir-fine { display: flex; align-items: center; gap: 12px; width: 100%; }
.dir-fine .icon-btn { width: auto; min-width: 48px; padding: 0 10px; font-weight: 700; font-size: 13px; }
.dir-range { flex: 1; accent-color: var(--red); }
.g-dialog-foot .btn-ghost { margin-right: auto; }

/* ── On-photo direction arrow (mirrors the app's TileRotationFloorArrow) ── */
.viz-photo { position: relative; display: inline-block; line-height: 0; max-width: 100%; }
.viz-photo .viz-img { width: auto; max-width: 100%; height: auto; max-height: 72vh; }
.viz-arrow { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; overflow: visible; }
.viz-arrow.is-drag { cursor: grabbing; }
.viz-tr { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.dir-pill { height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--red); color: #fff; display: inline-flex; align-items: center; gap: 6px; font: 700 16px var(--font); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.dir-pill.is-on, .dir-pill:hover { background: var(--red-dark); }
.dir-pill > svg { opacity: .8; }
.dir-pill-arrow { display: inline-flex; transition: transform .15s; }
.viz-round { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; background: rgba(18,8,9,.82); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.viz-round.is-on { border-color: var(--orange); color: var(--orange); }
.dir-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: var(--r-pill); background: rgba(18,8,9,.82); color: #fff; }
.dir-bar-text { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.33; }
.dir-bar-undo { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dir-bar-btn { height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--red); color: #fff; font: 700 12px var(--font); cursor: pointer; flex: none; }
.dir-bar-btn.ghost { background: rgba(255,255,255,.16); padding: 0 12px; }
@media (max-width: 560px) { .dir-bar-text { display: none; } }

/* ── Select tile button + picker dialog ── */
.tile-open { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.tile-open:hover:not(:disabled) { border-color: var(--red-line); }
.tile-open:disabled { opacity: .6; cursor: not-allowed; }
.tile-open .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tile-open-thumb { width: 56px; height: 56px; flex: none; border-radius: 12px; object-fit: cover; background: var(--sand); }
.tile-open-thumb.empty { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.tile-open-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; flex: none; }
.tile-card { max-width: 860px; }
.tile-search-row { padding: 0 20px 12px; }
.tile-grid.viz-tiles { max-height: none; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.viz-tile-price { font-size: 11px; color: var(--muted); padding: 0 6px 6px; }

/* ── Legal pages ── */
.legal { line-height: 1.65; }
.legal h2 { scroll-margin-top: 90px; }
.legal-sec { padding-top: 8px; }
.legal-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.legal-toc li { break-inside: avoid; padding: 2px 0; }
.legal-toc a { color: var(--ink); }
.legal-toc a:hover { color: var(--red); }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-note { padding: 14px 16px; border-radius: 14px; background: var(--sand); font-size: 13px; line-height: 1.55; }
.legal-related { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.chip-link:hover { border-color: var(--red-line); color: var(--red); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.shade-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.shade-card { display: flex; flex-direction: column; gap: 6px; }
.shade-badge { align-self: flex-start; padding: 3px 10px; border-radius: var(--r-pill); font-weight: 700; font-size: 12px; color: #fff; }
.shade-v1 { background: #8F7F77; } .shade-v2 { background: #B07A4E; } .shade-v3 { background: #C25A2A; } .shade-v4 { background: var(--red); }
.prop65 { padding: 16px 18px; border-radius: 16px; border: 2px solid #E0A100; background: #FFF8E1; display: flex; flex-direction: column; gap: 8px; }
.prop65-title { font-weight: 800; letter-spacing: .02em; }
.prop65 a { color: var(--ink); text-decoration: underline; }
.footer-policies { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-policies a { color: inherit; text-decoration: none; opacity: .85; }
.footer-policies a:hover { opacity: 1; text-decoration: underline; }
/* Official store badges: same visual height. Google's PNG includes its own
   clear space (≈ 41/250 of the height), so it is drawn larger and the
   padding is pulled in with negative margins. */
.store-row { align-items: center; }
.store-badge { display: block; height: 48px; width: auto; }
.store-badge.google { height: 71px; margin: -11.5px -11.5px; }
.catalog-search { flex: none; width: 100%; max-width: 560px; height: 48px; margin-top: 8px; background: #fff; }
.empty-search { padding: 24px; }

/* Accessibility options (lib/components/accessibility_widget.dart).
   Each option is an `a11y-<key>-<level>` class on <html>. */
@font-face { font-family: 'OpenDyslexic'; src: url('/fonts/opendyslexic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'OpenDyslexic'; src: url('/fonts/opendyslexic-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

.a11y-launcher { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(30,13,14,.3); }
.a11y-launcher:hover { background: var(--red); }
.a11y-panel { position: fixed; left: 0; top: 0; bottom: 0; z-index: 70; width: 420px; max-width: 100vw; background: var(--cream); display: flex; flex-direction: column; box-shadow: 0 0 60px rgba(30,13,14,.35); font: 400 15px/1.4 var(--font); }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; background: var(--ink); color: #fff; }
.a11y-head h2 { font: 700 18px/1.3 var(--display); }
.a11y-close { width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.a11y-close:hover { background: rgba(255,255,255,.15); }
.a11y-head :focus-visible { outline-color: #fff; }
.a11y-body { flex: 1; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 24px; }
.a11y-body h3 { font: 700 15px/1.3 var(--display); margin-bottom: 10px; }
.a11y-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.a11y-opt { min-height: 104px; padding: 12px 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-weight: 700; font-size: 13px; line-height: 1.25; cursor: pointer; }
.a11y-opt svg { color: var(--red); }
.a11y-opt:hover { border-color: var(--red-line); }
.a11y-opt.is-on { border-color: var(--red); background: var(--red-tint); }
.a11y-steps { display: flex; gap: 4px; }
.a11y-steps span { width: 22px; height: 5px; border-radius: 3px; background: var(--line); }
.a11y-steps span.is-on { background: var(--red); }
.a11y-foot { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--white); }
.a11y-foot .btn { gap: 8px; }
@media (max-width: 380px) { .a11y-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.a11y-line, .a11y-mask, .a11y-tip { position: fixed; z-index: 80; pointer-events: none; }
.a11y-line, .a11y-mask { display: none; left: 0; right: 0; }
.a11y-line { top: calc(var(--a11y-y, 50vh) - 4px); height: 8px; background: var(--ink); border: 2px solid #FFD400; }
.a11y-mask { background: rgba(0,0,0,.7); }
.a11y-mask-top { top: 0; height: max(0px, calc(var(--a11y-y, 50vh) - 70px)); }
.a11y-mask-bottom { top: calc(var(--a11y-y, 50vh) + 70px); bottom: 0; }
.a11y-line-1 .a11y-line, .a11y-mask-1 .a11y-mask { display: block; }
.a11y-tip { max-width: 260px; padding: 6px 10px; border-radius: 8px; background: var(--night); color: #fff; font: 600 14px/1.35 var(--font); box-shadow: 0 4px 14px rgba(30,13,14,.3); }

.a11y-text-1 .page { zoom: 1.1; } .a11y-text-2 .page { zoom: 1.2; } .a11y-text-3 .page { zoom: 1.35; }
.a11y-lh-1 .page * { line-height: 1.7 !important; } .a11y-lh-2 .page * { line-height: 2 !important; } .a11y-lh-3 .page * { line-height: 2.4 !important; }
.a11y-cursor-1, .a11y-cursor-1 * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.8L10 20z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, auto !important; }
.a11y-noimg-1 .page img, .a11y-noimg-1 .page video, .a11y-noimg-1 .page picture { visibility: hidden !important; }
.a11y-readable-1 .page, .a11y-readable-1 .page * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: normal !important; }
.a11y-dyslexic-1 .page, .a11y-dyslexic-1 .page * { font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif !important; letter-spacing: normal !important; }
.a11y-still-1 *, .a11y-still-1 *::before, .a11y-still-1 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.a11y-still-1 .g-photo { transform: none; opacity: 1; } .a11y-still-1 .g-check, .a11y-still-1 .g-mask, .a11y-still-1 .g-area { opacity: 1; } .a11y-still-1 .g-laying { clip-path: none; }
.a11y-still-1 .g-rotating { transform: rotateX(58deg) rotateZ(45deg); } .a11y-still-1 .g-arrow { transform: rotate(-45deg); } .a11y-still-1 .g-angle-45, .a11y-still-1 .g-demo-0 { opacity: 1; }
.a11y-links-1 .page a { text-decoration: underline !important; outline: 2px solid var(--orange); outline-offset: 2px; }

/* Colour options combine into one filter on the root element (a root filter
   does not break position: fixed). */
html[class*="a11y-invert-"], html[class*="a11y-bright-"], html[class*="a11y-contrast-"], html[class*="a11y-sat-"], html[class*="a11y-gray-"] {
  filter: invert(var(--a11y-invert, 0)) brightness(var(--a11y-bright, 1)) contrast(var(--a11y-contrast, 1)) saturate(var(--a11y-sat, 1)) grayscale(var(--a11y-gray, 0));
}
.a11y-invert-1 { --a11y-invert: 1; background: #fff; }
.a11y-invert-1 .page img, .a11y-invert-1 .page video, .a11y-invert-1 .page canvas { filter: invert(1); }
.a11y-bright-1 { --a11y-bright: 1.15; } .a11y-bright-2 { --a11y-bright: 1.3; }
.a11y-contrast-1 { --a11y-contrast: 1.25; } .a11y-contrast-2 { --a11y-contrast: 1.5; }
.a11y-sat-1 { --a11y-sat: .4; } .a11y-sat-2 { --a11y-sat: 1.8; }
.a11y-gray-1 { --a11y-gray: 1; }
@media print { .a11y { display: none; } }
