/* The home page: one URL box over a mesh gradient, a short tour below, then the full report. Builds on /style.css. */

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.print-page { font-size: 16px; min-height: 100svh; display: flex; flex-direction: column; }
.print-page main { flex: 1; position: relative; z-index: 1; }
[hidden] { display: none !important; }

/* First screen: a mesh gradient, four soft orbs in the brand colours drifting
   behind the title, fading into the page at the bottom. Browsers without
   color-mix() get the glow below instead. */
.mesh { display: none; }
@supports (background: color-mix(in oklab, red 50%, transparent)) {
  .mesh { --lift: 0%; --tone: 1; position: absolute; top: 0; left: 0; z-index: 0; display: block; width: 100%; height: 100vh; height: 100svh; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .mesh::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='g' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='4 0 0 0 -1.5 4 0 0 0 -1.5 4 0 0 0 -1.5 0 0 0 0 .035'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 256px 256px; }
  .orb { --ink: color-mix(in oklab, var(--c), white var(--lift)); position: absolute; background: radial-gradient(closest-side, color-mix(in oklab, var(--ink) calc(var(--a) * var(--tone)), transparent) 0%, color-mix(in oklab, var(--ink) calc(var(--a) * .88 * var(--tone)), transparent) 18%, color-mix(in oklab, var(--ink) calc(var(--a) * .66 * var(--tone)), transparent) 36%, color-mix(in oklab, var(--ink) calc(var(--a) * .42 * var(--tone)), transparent) 54%, color-mix(in oklab, var(--ink) calc(var(--a) * .2 * var(--tone)), transparent) 71%, color-mix(in oklab, var(--ink) calc(var(--a) * .06 * var(--tone)), transparent) 87%, transparent 100%); animation: orb-drift var(--time) ease-in-out infinite; }
  .orb-1 { --c: #FF4F22; --a: 46%; --p1: 5% 4%; --p2: 6% -3%; --p3: -2% 5%; --s1: 1.05; --s2: .96; --s3: 1.02; --time: 60s; width: 112%; height: 112%; top: -38%; left: -40%; }
  .orb-2 { --c: #FFB27A; --a: 52%; --p1: -6% 5%; --p2: -3% -2%; --p3: 2% 4%; --s1: 1.06; --s2: .97; --s3: 1; --time: 80s; width: 108%; height: 108%; top: -38%; left: 32%; }
  .orb-3 { --c: #FF5C93; --a: 40%; --p1: -4% -5%; --p2: -6% 2%; --p3: 3% -4%; --s1: 1.04; --s2: 1.08; --s3: .98; --time: 90s; width: 110%; height: 110%; top: 31%; left: 29%; }
  .orb-4 { --c: #4D7CFF; --a: 30%; --p1: 6% -6%; --p2: -3% 4%; --p3: 5% 3%; --s1: .96; --s2: 1.08; --s3: 1.02; --time: 70s; width: 104%; height: 104%; top: 32%; left: -38%; }
  :root[data-theme="dark"] .mesh { --lift: 10%; --tone: 1.2; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mesh { --lift: 10%; --tone: 1.2; } }
  :root:not(.is-report) .aurora { display: none; }
}
@keyframes orb-drift { 0%, 100% { translate: 0; scale: 1; } 25% { translate: var(--p1); scale: var(--s1); } 50% { translate: var(--p2); scale: var(--s2); } 75% { translate: var(--p3); scale: var(--s3); } }
.is-report .mesh { display: none; }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* Fallback and report background: warm glows drifting, a dot grid and grain. */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transition: opacity .8s; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .62; will-change: transform; }
.glow-1 { width: 62vmax; height: 62vmax; left: 50%; top: 58%; margin-left: -31vmax; background: radial-gradient(circle, #FF4F22 0%, rgba(255, 79, 34, 0) 68%); animation: drift-a 22s ease-in-out infinite alternate; }
.glow-2 { width: 46vmax; height: 46vmax; left: 4%; top: 46%; background: radial-gradient(circle, #FFB27A 0%, rgba(255, 178, 122, 0) 66%); animation: drift-b 26s ease-in-out infinite alternate; }
.glow-3 { width: 44vmax; height: 44vmax; right: 2%; top: 50%; background: radial-gradient(circle, #FF5C93 0%, rgba(255, 92, 147, 0) 66%); animation: drift-c 24s ease-in-out infinite alternate; }
.glow-4 { width: 40vmax; height: 40vmax; left: 30%; top: 82%; background: radial-gradient(circle, #4D7CFF 0%, rgba(77, 124, 255, 0) 64%); opacity: .45; animation: drift-d 30s ease-in-out infinite alternate; }
@keyframes drift-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6vw, -4vh) scale(1.12); } 100% { transform: translate(5vw, -8vh) scale(.94); } }
@keyframes drift-b { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(14vw, -10vh) scale(1.18); } }
@keyframes drift-c { 0% { transform: translate(0, 0) scale(1.05); } 100% { transform: translate(-16vw, -6vh) scale(.9); } }
@keyframes drift-d { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(12vw, -14vh) scale(1.25); } }
.dots-grid { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.4px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 0%, transparent 75%); opacity: .5; }
.grain { position: absolute; inset: -50%; opacity: .11; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } 100% { transform: translate(0, 0); } }
:root[data-theme="dark"] .glow { opacity: .42; }
:root[data-theme="dark"] .glow-4 { opacity: .32; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .glow { opacity: .42; }
  :root:not([data-theme="light"]) .glow-4 { opacity: .32; }
}
.is-report .aurora { opacity: .28; }
@media (prefers-reduced-motion: reduce) {
  .glow, .grain { animation: none; }
}

/* Header: no bar, it floats on the glow. */
.print-header { position: relative; z-index: 2; }
.print-header-inner { display: flex; align-items: center; gap: 20px; width: min(1320px, calc(100% - 48px)); height: 76px; margin-inline: auto; }
.print-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ext-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px; background: var(--button); color: var(--on-button); font-size: 16px; font-weight: 700; transition: transform .18s, box-shadow .18s; }
.ext-link:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--brand); }
.nav-plain { padding: 8px 14px; border-radius: 999px; font-size: 16px; font-weight: 650; color: var(--muted); }
.nav-plain:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.print-header-inner > .theme-switch { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }

/* The launch: title, one line, the box. */
.launch { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: min(900px, calc(100% - 32px)); min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); margin-inline: auto; padding-block: 24px 9vh; transition: padding .5s cubic-bezier(.2, .8, .2, 1); }
.launch-title { max-width: 900px; font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 780; }
.title-crow { display: inline-block; vertical-align: -.12em; margin-inline: .02em; }
.title-crow img { width: 1.35em; height: auto; }
.launch-sub { margin-top: 18px; max-width: 600px; color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); font-weight: 550; line-height: 1.45; }
.prompt-box { position: relative; width: 100%; max-width: 780px; margin-top: 40px; padding: 18px 18px 14px 22px; border-radius: 28px; background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); box-shadow: 0 30px 70px -36px rgba(25, 25, 24, .45), 0 2px 6px rgba(25, 25, 24, .05); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); text-align: left; transition: box-shadow .25s, border-color .25s; }
.prompt-box:focus-within { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: 0 30px 70px -36px rgba(255, 79, 34, .55), 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.prompt-box.busy::before { content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: 30px; padding: 2px; background: conic-gradient(from var(--spin, 0deg), #FF4F22, #FFB27A, #FF5C93, #4D7CFF, #FF4F22); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 1.6s linear infinite; }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --spin: 360deg; } }
.prompt-field { display: flex; align-items: center; gap: 2px; }
.prompt-scheme { color: var(--muted); font-size: 22px; font-weight: 550; user-select: none; opacity: .7; }
.prompt-field input { flex: 1; min-width: 0; height: 52px; padding: 0 2px; border: 0; outline: 0; background: transparent; color: var(--text); font: 600 22px -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; }
.prompt-field input::placeholder { color: var(--muted); opacity: .55; }
.prompt-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.prompt-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 30px; color: var(--muted); font-size: 14px; font-weight: 600; }
.prompt-try button { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; line-height: 1; font-family: inherit; color: var(--text); border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 14px; font-weight: 650; cursor: pointer; transition: border-color .2s, color .2s; }
.prompt-try button:hover { border-color: var(--brand); color: var(--brand-text); }
.prompt-send { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: var(--button); color: var(--on-button); cursor: pointer; transition: transform .18s, opacity .2s, background-color .2s; }
.prompt-send:hover:not(:disabled) { transform: translateY(-2px); background: var(--brand); color: var(--on-brand); }
.prompt-send:disabled { opacity: .3; cursor: default; }
.send-spinner { display: none; position: absolute; inset: 11px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.busy .prompt-send { opacity: 1; }
.busy .prompt-send svg { visibility: hidden; }
.busy .send-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.print-status { min-height: 26px; margin-top: 16px; color: var(--muted); font-size: 16px; font-weight: 650; }
.print-status.error { color: var(--brand-text); }
.launch .ph-badge { margin-top: 26px; }

/* The extension, in a corner: shown until closed. */
.corner-banner { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 290px; padding: 16px 18px 18px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); animation: corner-in .6s 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes corner-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.corner-close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.corner-close:hover { background: var(--surface-2); color: var(--text); }
.corner-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 750; }
.corner-title { margin-top: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.corner-text { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.corner-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 750; color: var(--brand-text); }
.corner-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.corner-banner.closed { display: none; }

/* Report mode: the box moves up and the title steps aside. */
.is-report .launch { min-height: 0; padding-block: 8px 20px; width: min(1320px, calc(100% - 48px)); }
.is-report .launch-title, .is-report .launch-sub, .is-report .launch .ph-badge { display: none; }
.is-report .prompt-box { max-width: 760px; margin-top: 0; padding: 8px 8px 8px 20px; border-radius: 22px; display: flex; align-items: center; gap: 12px; }
.is-report .prompt-box.busy::before { border-radius: 24px; }
.is-report .prompt-field { flex: 1; min-width: 0; }
.is-report .prompt-field input, .is-report .prompt-scheme { font-size: 18px; }
.is-report .prompt-field input { height: 44px; }
.is-report .prompt-row { margin: 0; }
.is-report .prompt-try { display: none; }
.is-report .print-status { min-height: 0; margin-top: 10px; }
.is-report .print-status:empty { display: none; }

/* Report layout */
.report { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; width: min(1320px, calc(100% - 48px)); margin: 8px auto 64px; animation: rise .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.report-nav { position: sticky; top: 16px; align-self: start; display: grid; gap: 2px; padding: 10px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.report-nav a { padding: 8px 12px; border-radius: 11px; color: var(--muted); font-size: 15px; font-weight: 650; transition: background-color .15s, color .15s; }
.report-nav a:hover { color: var(--text); background: var(--surface-2); }
.report-nav a.active { color: var(--text); background: var(--brand-subtle); box-shadow: inset 3px 0 0 var(--brand); }
.report-main { display: grid; gap: 20px; min-width: 0; }
.panel { min-width: 0; padding: 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 16px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 6px; }
.panel-head h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.025em; font-weight: 800; }
.panel-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.panel-hint { color: var(--muted); font-size: 14px; font-weight: 550; margin-bottom: 4px; }
.sub-title { margin: 22px 0 10px; font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sub-count { margin-left: 6px; text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .8; }
.panel-head .sub-count { font-size: 16px; color: var(--muted); }
.pill-button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer; transition: border-color .2s, background-color .2s, transform .15s; }
.pill-button:hover { border-color: var(--text); }
.pill-button:active { transform: scale(.97); }
.pill-button.small { min-height: 34px; padding: 6px 13px; font-size: 14px; }
.pill-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pill-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.segmented button { padding: 5px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 12px var(--mono); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* Overview */
.overview { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; }
.ov-site { display: flex; align-items: center; gap: 14px; }
.ov-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); padding: 4px; }
.ov-site h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; overflow-wrap: anywhere; }
.ov-url { color: var(--muted); font: 600 13px var(--mono); overflow-wrap: anywhere; }
.ov-url:hover { color: var(--brand-text); }
.ov-title { margin-top: 18px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.ov-desc { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ov-info { display: flex; flex-direction: column; min-height: 100%; }
.ov-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 10px; margin-top: auto; padding-top: 28px; }
.act { box-sizing: border-box; display: inline-flex; flex: none; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 14px; border: 0; background: color-mix(in srgb, var(--text) 9%, var(--surface)); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; transition: border-color .18s, background-color .18s, color .18s, transform .12s; }
.act:hover { background: color-mix(in srgb, var(--text) 15%, var(--surface)); }
.act:active { transform: scale(.97); }
.act:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.act svg { flex: none; }
.ov-actions .act:not(.act-quiet) { justify-content: center; width: 100%; }
.ov-actions .act-quiet { grid-column: 1 / -1; justify-self: start; height: 32px; padding-inline: 2px; }
.act-primary { background: var(--button); color: var(--on-button); }
.act-primary:hover { background: var(--brand); color: var(--on-brand); }
.act-quiet { background: transparent; color: var(--muted); }
.act-quiet:hover { background: transparent; color: var(--text); }
.ov-note { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--brand-subtle); color: var(--brand-text); font-size: 14px; font-weight: 650; }
.ov-preview { overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
.ov-preview .window-bar { font-size: 13px; }
.ov-preview-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-modes { display: inline-flex; gap: 2px; margin-left: auto; padding: 2px; border-radius: 8px; background: #2C2D2A; }
.preview-modes button { padding: 3px 9px; border: 0; border-radius: 6px; background: transparent; color: #A9A69E; font: 600 12px -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer; }
.preview-modes button[aria-pressed="true"] { background: #45443E; color: #FFFFFF; }
.preview-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.preview-stage iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; transform: scale(var(--scale, .5)); background: #FFFFFF; opacity: 0; transition: opacity .4s; }
.preview-stage iframe.ready { opacity: 1; }
.preview-stage > img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.preview-stage > img.shot { opacity: 0; transition: opacity .4s; }
.preview-stage > img.shot.ready { opacity: 1; }
.preview-stage .sample { height: 100%; border: 0; border-radius: 0; }
.preview-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }

/* Colors */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.role-grid-small { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.role { width: 100%; display: block; padding: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); text-align: left; cursor: pointer; transition: transform .15s, border-color .2s; }
.role:hover { transform: translateY(-2px); border-color: var(--text); }
.role-color { display: block; height: 76px; box-shadow: inset 0 -1px 0 rgba(127, 127, 127, .2); }
.role-grid-small .role-color { height: 48px; }
.role-name { display: block; padding: 9px 12px 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.role-value { display: block; padding: 2px 12px 10px; font: 650 13px var(--mono); overflow-wrap: anywhere; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.chip-grid + .chip-grid { margin-top: 6px; }
.chip { width: 100%; padding: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; transition: transform .15s; }
.chip:hover { transform: translateY(-2px); }
.chip i { display: block; height: 38px; }
.chip span { display: block; padding: 5px 7px; font: 600 11px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gradient-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gradient-grid button { width: 100%; padding: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; }
.gradient-grid i { display: block; height: 90px; }
.gradient-grid span { display: block; box-sizing: content-box; height: 2.8em; padding: 8px 10px; font: 600 11px/1.4 var(--mono); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.palette-group + .palette-group { margin-top: 18px; }
.palette-group h4 { margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.palette-group h4 span { margin-left: 4px; color: var(--muted); font-weight: 600; }

/* Copied: a brand ring and a check over the swatch. */
.role, .chip, .gradient-grid button { position: relative; }
.just-copied { position: relative; border-color: var(--brand) !important; box-shadow: 0 0 0 2px var(--brand); animation: copied-pop .12s ease-out; }
.just-copied::before { content: ''; position: absolute; top: 8px; right: 8px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); animation: check-in .1s ease-out; }
.token.just-copied::before, .size-token.just-copied::before { display: none; }
.chip.just-copied::before { top: 5px; right: 5px; width: 18px; height: 18px; background-size: 11px; }
@keyframes copied-pop { 0% { transform: scale(1); } 50% { transform: scale(.97); } 100% { transform: scale(1); } }
@keyframes check-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .just-copied, .just-copied::before { animation: none; } }

/* Type */
.style-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.style-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 4px 16px; width: 100%; padding: 10px 14px 10px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); text-align: left; cursor: pointer; transition: border-color .15s; }
.style-row:hover { border-color: color-mix(in srgb, var(--text) 45%, var(--line)); }
.style-label { grid-row: 1 / 3; color: var(--muted); font-size: 13px; font-weight: 700; }
.style-sample { display: block; overflow: hidden; padding: 4px 10px; border-radius: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.style-meta { padding-left: 10px; color: var(--muted); font: 600 12px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.size-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.size-token { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.size-token:hover { border-color: var(--text); }
.size-token b { font: 700 13px var(--mono); }
.size-token span { color: var(--muted); font-size: 12px; font-weight: 650; }
.fact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 20px; }
.fact { padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.fact h4 { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.fact p { font: 600 14px/1.5 var(--mono); overflow-wrap: anywhere; }

/* Fonts */
.font-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.font-card { display: grid; gap: 10px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); }
.font-glyph { font-size: 64px; line-height: 1; letter-spacing: -.02em; }
.font-name { font-size: 19px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.font-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-mini { padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; }
.tag-mini.role-tag { background: var(--brand-subtle); color: var(--brand-text); }
.font-weights { color: var(--muted); font: 600 12px var(--mono); }
.font-link { justify-self: start; color: var(--text); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.font-link:hover { color: var(--brand-text); }

/* Spacing and shape */
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; }
.space-list { display: grid; gap: 6px; }
.space-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; font: 650 13px var(--mono); color: var(--muted); }
.space-list i { display: block; height: 14px; border-radius: 4px; background: repeating-linear-gradient(45deg, var(--brand), var(--brand) 4px, color-mix(in srgb, var(--brand) 70%, transparent) 4px, color-mix(in srgb, var(--brand) 70%, transparent) 8px); min-width: 2px; }
.radius-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.radius-grid li { display: grid; justify-items: center; gap: 8px; font: 650 12px var(--mono); color: var(--muted); }
.radius-grid i { width: 64px; height: 64px; border: 2px solid var(--text); border-right-color: transparent; border-bottom-color: transparent; background: var(--brand-subtle); }
.token-row { display: flex; flex-wrap: wrap; gap: 6px; }
.token { padding: 6px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font: 650 13px var(--mono); cursor: pointer; }
.token:hover { border-color: var(--text); }
.token small { margin-left: 6px; color: var(--muted); font-size: 11px; }
.empty-line { color: var(--muted); font-size: 14px; font-weight: 600; }

/* Shadows and motion */
.shadow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); }
.shadow-grid button { display: grid; align-content: end; min-height: 110px; padding: 12px; border: 0; border-radius: 14px; background: var(--sample-surface, #FFFFFF); color: var(--sample-muted, #666); text-align: left; cursor: pointer; }
.shadow-grid span { font: 600 10.5px/1.4 var(--mono); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ease-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ease-grid li { display: flex; }
.ease-card { width: 100%; min-width: 0; display: grid; grid-template-rows: 70px 10px auto; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.ease-card svg { width: 100%; height: 70px; overflow: visible; }
.ease-track { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); }
.ease-track i { position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); transition: left .9s var(--ease); }
.ease-card:hover .ease-track i, .ease-card:focus-visible .ease-track i { left: calc(100% - 10px); }
.ease-name { overflow: hidden; font: 600 11px var(--mono); color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }

/* Breakpoints */
.ruler { position: relative; height: 74px; margin: 14px 0 16px; border-radius: 14px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%), var(--bg); }
.ruler-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand); }
.ruler-mark span { position: absolute; top: 8px; left: 6px; padding: 2px 6px; border-radius: 6px; background: var(--surface); font: 650 11px var(--mono); white-space: nowrap; }
.ruler-mark:nth-child(even) span { top: auto; bottom: 8px; }
.ruler-mark.max { background: #4D7CFF; }

/* Sample UI */
.sample { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 20px; background: var(--p-canvas); color: var(--p-text); border: 1px solid var(--line); font-family: var(--p-body); overflow: hidden; margin-top: 10px; }
.sp-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sp-logo { width: 26px; height: 26px; border-radius: min(var(--p-control), 8px); background: var(--p-accent); }
.sp-link { width: 54px; height: 9px; border-radius: 5px; background: var(--p-muted); opacity: .45; }
.sp-cta { margin-left: auto; padding: 7px 14px; border-radius: var(--p-control); border: 1px solid var(--p-border); font-size: 13px; font-weight: 600; }
.sp-kicker { color: var(--p-accent); font-size: 14px; font-weight: 650; }
.sp-title { font-family: var(--p-heading); font-weight: var(--p-weight); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.sp-body { max-width: 440px; color: var(--p-muted); font-size: 16px; line-height: 1.5; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-button, .sp-ghost { padding: 11px 18px; border-radius: var(--p-control); font-size: 15px; font-weight: 600; }
.sp-button { background: var(--p-accent); color: var(--p-on-accent); }
.sp-ghost { border: 1px solid var(--p-border); }
.sp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.sp-card { display: grid; gap: 4px; padding: 16px; border-radius: var(--p-radius); background: var(--p-surface); border: 1px solid var(--p-border); box-shadow: var(--p-shadow); }
.sp-card b { font-family: var(--p-heading); font-weight: var(--p-weight); font-size: 17px; }
.sp-card span { color: var(--p-muted); font-size: 14px; }
.sp-input { display: flex; gap: 8px; margin-top: 6px; }
.sp-input span { flex: 1; padding: 11px 14px; border-radius: var(--p-control); border: 1px solid var(--p-border); background: var(--p-surface); color: var(--p-muted); font-size: 14px; }

/* Assets */
.icon-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-row a { display: grid; justify-items: center; gap: 6px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 650; max-width: 200px; }
.icon-row a:hover { border-color: var(--text); }
.icon-row img { height: 48px; width: auto; max-width: 170px; object-fit: contain; }
.social-image { display: block; max-width: 560px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
.social-image img { width: 100%; height: auto; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.image-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2) repeating-conic-gradient(color-mix(in srgb, var(--line) 50%, transparent) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.image-grid img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.image-grid a:hover img { transform: scale(1.04); }

/* Tech */
.tech-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.tech-groups li { padding: 14px; border-radius: 16px; background: var(--bg); }
.tech-groups h3 { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.tech-groups p { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-groups b { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.facts-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 24px; margin: 0; }
.facts-table div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts-table dt { color: var(--muted); font-weight: 600; }
.facts-table dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; display: flex; align-items: center; gap: 6px; }
.facts-table dd i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }

/* Outline */
.count-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.count-row li { padding: 6px 12px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 650; }
.count-row b { color: var(--text); }
.outline { display: grid; gap: 2px; }
.outline li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 15px; }
.outline li[data-level="2"] { padding-left: 22px; }
.outline li[data-level="3"] { padding-left: 44px; color: var(--muted); }
.outline em { flex: none; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font: normal 700 11px var(--mono); }
.outline li[data-level="1"] { font-weight: 800; font-size: 17px; }
.outline li[data-level="1"] em { background: var(--brand-subtle); color: var(--brand-text); }

/* Variables */

/* Export */
.output-tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 12px; padding: 5px; border-radius: 16px; background: var(--surface-2); scrollbar-width: none; }
.output-tabs::-webkit-scrollbar { display: none; }
.output-tabs button { flex: none; padding: 9px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 700; cursor: pointer; }
.output-tabs button:hover { color: var(--text); }
.output-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.output-panel { margin-top: 12px; }
.output-what { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 5px 5px 5px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.output-what span { flex: none; font-size: 14px; font-weight: 700; color: var(--muted); }
.output-what input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--surface); color: var(--text); font: 600 15px -apple-system, BlinkMacSystemFont, sans-serif; outline: 0; }
.output-what input:focus { box-shadow: 0 0 0 2px var(--brand); }
.output-panel .code-window pre { max-height: 460px; margin: 0; padding: 18px 20px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #E8E5DD; font: 13.5px/1.6 var(--mono); }
.code-button { flex: none; padding: 5px 13px; border-radius: 8px; border: 1px solid #45443E; background: #2A2A27; color: #E8E5DD; font: 600 13px -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer; }
#output-download { margin-left: auto; }
.code-button:hover { border-color: var(--brand); }
.code-button-main { background: var(--brand); border-color: var(--brand); color: #FFFFFF; padding-inline: 18px; }
.output-how { margin-top: 12px; color: var(--muted); font-size: 15px; font-weight: 550; line-height: 1.55; }
.output-how code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); font: 600 .9em var(--mono); overflow-wrap: anywhere; }

/* The call to the extension */
.ext-callout { display: flex; align-items: center; gap: 28px; padding: 28px 30px; border-radius: 26px; background: var(--surface); border: 2px solid var(--brand); }
.ext-callout h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.ext-callout p { margin-top: 8px; max-width: 680px; color: var(--muted); font-size: 16px; }
.ext-callout .button { flex: none; margin-left: auto; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ext-callout .button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

/* Below the first screen: what a print holds, sites to start from, a note. */
.below { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 48px; }
.is-report .below { display: none; }
.below h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.035em; font-weight: 780; }
.below-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.below-head p { max-width: 44ch; color: var(--muted); font-size: 17px; line-height: 1.5; }
.below-head a { flex: none; font-size: 16px; font-weight: 700; color: var(--brand-text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.spec-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.spec-col { padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.spec-col h3 { font-size: 22px; font-weight: 780; letter-spacing: -.02em; }
.spec-col > p { margin-top: 8px; max-width: 46ch; color: var(--muted); font-size: 15px; line-height: 1.5; }
.spec-list { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.spec-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: center; }
.spec-list b { display: block; font-size: 16px; font-weight: 720; }
.spec-list span:not(.spec-tile) { display: block; margin-top: 2px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.spec-list code { font: 600 .92em var(--mono); }
.spec-tile { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.tile-palette { grid-template-columns: repeat(2, 12px); grid-template-rows: repeat(2, 12px); gap: 3px; place-content: center; }
.tile-palette i { border-radius: 4px; }
.tile-type { font: 700 19px Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.tile-space { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding-left: 11px; }
.tile-space i { height: 4px; border-radius: 2px; background: var(--brand); }
.tile-space i:nth-child(1) { width: 8px; }
.tile-space i:nth-child(2) { width: 15px; }
.tile-space i:nth-child(3) { width: 23px; }
.tile-shadow i { width: 20px; height: 20px; border-radius: 6px; background: var(--surface); box-shadow: 0 5px 10px -2px rgba(25, 25, 24, .35), 0 0 0 1px var(--line); }

.swatchbook { margin-top: 120px; }
.sw-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 16px; margin-top: 32px; padding: 0; list-style: none; }
.sw { display: block; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 1px 2px rgba(25, 25, 24, .06); }
.sw-ink { display: grid; place-items: center; aspect-ratio: 5 / 4; }
.sw-ink img { width: 48px; height: 48px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 8px 18px -8px rgba(0, 0, 0, .45); }
.sw-label { display: grid; gap: 1px; padding: 11px 12px 13px; }
.sw-label b { font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.sw-label span, .sw-label code { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sw-label code { font: 600 12px var(--mono); }
.sw:hover .sw-label b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sw:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; }


/* Account: sign in, the menu, and the sign-in and plan sheets. */
.account { position: relative; display: flex; align-items: center; }
.signin-button { min-height: 42px; padding: 8px 18px; border: 1px solid color-mix(in srgb, var(--text) 22%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); font-size: 16px; font-weight: 700; cursor: pointer; transition: border-color .15s, background-color .15s; }
.signin-button:hover { border-color: var(--text); background: var(--surface); }
.signin-button:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.account-button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 15px; font-weight: 800; cursor: pointer; }
.account-button:focus-visible, .account-menu button:focus-visible, .account-menu a:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
/* Signed in (or about to be): the theme picker lives in the account menu. */
.has-account .print-header-inner > .theme-switch { display: none; }
.account-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; display: grid; width: 280px; padding: 6px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .06); transform-origin: top right; animation: menu-in .16s cubic-bezier(.2, .8, .2, 1); }
.account-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.account-who { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 10px 14px; }
.account-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 17px; font-weight: 800; }
.account-email { font-size: 14.5px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-plan { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; }
.account-plan.is-pro { background: var(--brand-subtle); color: var(--brand-text); }
.account-group { display: grid; gap: 2px; padding: 6px 0; border-top: 1px solid var(--line); }
.account-menu a, .account-menu .account-group > button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font-size: 14.5px; font-weight: 650; text-align: left; cursor: pointer; transition: background-color .12s; }
.account-menu a[hidden], .account-menu .account-group > button[hidden] { display: none; }
.account-menu a svg, .account-menu .account-group > button svg { flex: none; color: var(--muted); }
.account-menu a:hover, .account-menu .account-group > button:hover { background: var(--surface-2); }
.account-menu a:hover svg, .account-menu .account-group > button:hover svg { color: var(--text); }
#account-upgrade svg { color: var(--brand); }
.account-theme { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 8px 6px 8px 10px; }
.account-theme > span { color: var(--text); font-size: 14.5px; font-weight: 650; }
.theme-switch-small { gap: 2px; padding: 3px; border-radius: 12px; }
.theme-switch-small button { width: 34px; height: 28px; border-radius: 9px; }
.theme-switch-small span { width: 24px; height: 18px; border-radius: 5px; }
.theme-switch-small i { left: 3px; right: 3px; height: 10px; }
.theme-switch-small b { top: 3px; right: 3px; width: 5px; height: 5px; }
@media (prefers-reduced-motion: reduce) { .account-menu { animation: none; } }

.sheet { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); color: var(--text); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5); }
.sheet::backdrop { background: rgba(17, 17, 15, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet h2 { padding-right: 28px; font-size: 26px; line-height: 1.15; letter-spacing: -.025em; font-weight: 800; overflow-wrap: anywhere; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.sheet-close:hover { background: var(--surface-2); color: var(--text); }
.sheet-lead { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.sheet-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); font-size: 16px; font-weight: 700; cursor: pointer; transition: border-color .15s; }
.sheet-google:hover { border-color: color-mix(in srgb, var(--text) 45%, var(--line)); }
.sheet-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.sheet-or::before, .sheet-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sheet-row { display: flex; gap: 8px; }
.sheet-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: 600 15px -apple-system, BlinkMacSystemFont, sans-serif; }
.sheet-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.sheet-button { flex: none; height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--button); color: var(--on-button); font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s; }
.sheet-button:hover:not(:disabled) { background: var(--brand); color: var(--on-brand); }
.sheet-button:disabled { opacity: .55; cursor: default; }
.sheet-wide { width: 100%; height: 52px; margin-top: 20px; font-size: 16px; }
.sheet-sent { padding: 14px 16px; border-radius: 14px; background: var(--brand-subtle); color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.sheet-link { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sheet-error { min-height: 20px; margin-top: 10px; color: var(--brand-text); font-size: 14px; font-weight: 650; }
.sheet-error:empty { min-height: 0; margin: 0; }
.sheet-fine { margin-top: 16px; color: var(--muted); font-size: 12.5px; }
.sheet-fine a { text-decoration: underline; text-underline-offset: 2px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 0; padding: 0; border: 0; }
.plan { position: relative; display: grid; gap: 2px; padding: 14px 14px 13px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); cursor: pointer; transition: border-color .15s; }
.plan:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.plan:has(input:focus-visible) { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-name { font-size: 14px; font-weight: 700; }
.plan-name em { margin-left: 4px; padding: 2px 7px; border-radius: 999px; background: var(--brand-subtle); color: var(--brand-text); font-size: 11.5px; font-style: normal; font-weight: 750; }
.plan-price { margin-top: 6px; color: var(--muted); font-size: 14px; }
.plan-price b { color: var(--text); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.plan-note { color: var(--muted); font-size: 12.5px; }
.pay-list { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.pay-list li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; }
.pay-list li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }
@media (max-width: 700px) {
  .sheet { padding: 24px 20px; }
  .plans { grid-template-columns: 1fr; }
  .sheet-row { flex-direction: column; }
}

/* Footer */
.print-footer { position: relative; z-index: 1; width: min(1120px, calc(100% - 48px)); margin: 40px auto 0; padding: 40px 0 28px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand .wordmark { font-size: 18px; }
.foot-brand p { max-width: 32ch; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.foot-col h2 { margin-bottom: 12px; font-size: 14px; font-weight: 750; }
.foot-col ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.foot-col a, .foot-base a { color: var(--muted); font-size: 14px; font-weight: 600; transition: color .15s; }
.foot-col a:hover, .foot-base a:hover { color: var(--text); }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-badge { display: inline-flex; align-items: center; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px !important; }
.is-report .print-footer { margin-top: 0; }

@media (max-width: 1100px) {
  .below-head { flex-direction: column; align-items: flex-start; }
  .sw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .report { grid-template-columns: minmax(0, 1fr); }
  .report-nav { top: 0; z-index: 3; display: flex; overflow-x: auto; scrollbar-width: none; border-radius: 0 0 18px 18px; }
  .report-nav::-webkit-scrollbar { display: none; }
  .report-nav a { flex: none; }
  .report-nav a.active { box-shadow: inset 0 -3px 0 var(--brand); }
  .overview { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .print-header-inner, .report, .is-report .launch, .below { width: calc(100% - 32px); }
  .spec-cols { grid-template-columns: minmax(0, 1fr); }
  .print-footer { width: calc(100% - 32px); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .spec-col { padding: 24px; }
  .swatchbook { margin-top: 80px; }
  .below-head { flex-direction: column; align-items: flex-start; }
  .sw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .nav-plain, .print-header-inner > .theme-switch { display: none; }
  .ext-link { font-size: 14px; padding-inline: 12px; }
  .prompt-box { padding: 14px 14px 12px 16px; border-radius: 24px; }
  .prompt-scheme, .prompt-field input { font-size: 18px; }
  .prompt-try button:nth-child(n+3) { display: none; }
  .panel { padding: 20px; border-radius: 22px; }
  .two-col { grid-template-columns: 1fr; }
  .sp-cards { grid-template-columns: 1fr; }
  .ext-callout { flex-direction: column; align-items: stretch; padding: 22px; }
  .corner-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 12px 14px; }
  .corner-text { display: none; }
  .ext-callout .button { margin-left: 0; }
  .panel-tools { margin-left: 0; }
}

/* Copy badge on tokens */
.is-copied { position: relative; }
.is-copied::after { content: 'Copied'; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; background: var(--button); color: var(--on-button); font: 700 12px -apple-system, BlinkMacSystemFont, sans-serif; white-space: nowrap; pointer-events: none; z-index: 5; }
.preview-stage .sample { margin: 0; border: 0; border-radius: 0; }
span.token { cursor: default; }
.preview-empty small { display: block; margin-top: 4px; font-size: 12px; font-weight: 550; opacity: .8; }
.shot-spinner { display: block; width: 30px; height: 30px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.tab-spin { display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; vertical-align: -1px; animation: spin .7s linear infinite; }


/* Pricing page */
.price-page { padding-top: 56px; }
.price-head { max-width: 720px; }
.price-head .launch-sub { max-width: 60ch; }
.price-col { display: flex; flex-direction: column; }
.price-col h2 { font-size: 24px; font-weight: 780; letter-spacing: -.02em; line-height: 1.2; }
.price-col > p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.price-col > .price-line { margin-top: 14px; color: var(--text); font-size: 18px; font-weight: 600; }
.price-line b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.price-col .spec-list { margin-bottom: 32px; }
.price-col .spec-tile { color: var(--brand-text); }
.price-cta { margin-top: auto; align-self: flex-start; }
.price-faq { margin-top: 80px; }
.price-faq .faq-list { margin-top: 28px; }
.price-more { margin-top: 24px; color: var(--muted); font-size: 16px; }
.price-more a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; font-weight: 650; }
@media (max-width: 700px) {
  .price-page { padding-top: 32px; }
  .price-cta { align-self: stretch; }
  .price-faq .faq-list p { font-size: 17px; }
}
.safari-icon { flex: none; display: inline-block; vertical-align: -.15em; }
.corner-tag .safari-icon, .foot-col .safari-icon { margin-right: 6px; }
.price-col h2 .safari-icon { margin-right: 10px; vertical-align: -4px; }

/* My prints */
.print-status a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.library { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 40px; }
.library-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.library-head h1 { font-size: clamp(30px, 3.2vw, 40px); font-weight: 780; letter-spacing: -.035em; }
.library-tabs button { padding: 7px 16px; font: 700 14px -apple-system, BlinkMacSystemFont, sans-serif; }
.library-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.library-empty, .library-locked { max-width: 520px; margin: 48px auto; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.library-empty h2, .library-locked h2 { font-size: 24px; font-weight: 780; letter-spacing: -.02em; }
.library-empty p, .library-locked p { margin: 10px 0 20px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.pill-button.danger:hover { border-color: #D93025; color: #D93025; }

.print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding: 0; list-style: none; }
.print-card { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.print-card-head { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.print-card-head img { flex: none; border-radius: 6px; }
.print-card-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 780; }
.print-card-head:hover b { text-decoration: underline; text-underline-offset: 3px; }
.print-strip { display: flex; height: 30px; overflow: hidden; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .25); }
.print-strip i { flex: 1; }
.print-meta { color: var(--muted); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.print-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.projects { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.project-list { display: grid; gap: 10px; }
.project-list ul { display: grid; gap: 6px; padding: 0; list-style: none; }
.project-list li button { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.project-list li button[aria-current="true"] { border-color: var(--brand); }
.project-list li b { font-size: 15px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-list li span { color: var(--muted); font-size: 13px; font-weight: 600; }
.project-hint { color: var(--muted); font-size: 14px; }
.project-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.project-fields { display: grid; gap: 14px; align-content: start; max-height: calc(100vh - 260px); overflow: auto; padding-right: 6px; }
.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); }
.field-group legend { padding: 0 0 4px; font-size: 14px; font-weight: 780; }
.field { display: grid; gap: 4px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.field-name { font-size: 13px; }
.field input, .field select { width: 100%; min-height: 36px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 600 14px -apple-system, BlinkMacSystemFont, sans-serif; }
.field-name input { font-size: 17px; font-weight: 750; }
.field-check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.field-check input { width: auto; min-height: 0; }
.color-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; grid-column: 1 / -1; }
.color-field { display: grid; grid-template-columns: 30px minmax(0, 1fr) 84px; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.color-field input[type="color"] { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.color-field input[data-color] { min-height: 30px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 600 13px var(--mono); }
.project-side { display: grid; gap: 12px; align-content: start; }
.project-preview { display: grid; gap: 10px; padding: 24px; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .25); overflow: hidden; }
.pv-kicker { font-size: 13px; font-weight: 700; }
.pv-display { margin: 0; letter-spacing: -.02em; }
.pv-body { margin: 0; line-height: 1.5; }
.pv-muted { font-size: .85em; }
.pv-row { display: flex; gap: 10px; margin-top: 4px; }
.pv-button, .pv-ghost { padding: 9px 16px; font-size: 14px; font-weight: 650; }
.pv-card { display: grid; gap: 4px; padding: 14px 16px; }
.project-status { min-height: 20px; color: var(--muted); font-size: 14px; font-weight: 650; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.agents { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
.agent-key, .agent-setup { display: grid; gap: 12px; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.agent-key h2, .agent-setup h2 { font-size: 20px; font-weight: 780; letter-spacing: -.02em; }
.agent-key p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.key-box { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--brand); }
.key-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 600 13px var(--mono); }
.key-note { color: var(--brand-text) !important; font-weight: 650; }
.agent-clients { flex-wrap: wrap; border-radius: 16px; }
.agent-clients button { font: 700 13px -apple-system, BlinkMacSystemFont, sans-serif; padding: 6px 12px; }
.agent-where { color: var(--muted); font-size: 14.5px; }
.agent-setup .code-window pre { max-height: 230px; overflow: auto; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-tools { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.agent-tools code { font: 600 12.5px var(--mono); color: var(--text); }
@media (max-width: 900px) {
  .projects, .project-editor, .agents { grid-template-columns: minmax(0, 1fr); }
  .project-fields { max-height: none; }
}
@media (max-width: 700px) {
  .library { width: calc(100% - 32px); }
  .library-head { flex-direction: column; align-items: flex-start; }
  .field-group, .color-fields { grid-template-columns: minmax(0, 1fr); }
}
