/* D8 Backstage — shared styles (visual direction v2 by Aron; dark and light D8 themes, Nov 2026) */

/* D8 Sans is owned by D8. Only the weights in use are included (converted from the .otf files). */
@font-face { font-family: "D8 Sans Headline"; src: url(../fonts/D8SansHeadline-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "D8 Sans Text"; src: url(../fonts/D8SansText-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "D8 Sans Text"; src: url(../fonts/D8SansText-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
	/* Dark theme (default). Every colour below has a light twin in [data-theme="light"]. */
	color-scheme: dark;
	--bg: #08080a;
	--bg-deep: #060607;
	--ink: #f3f3f0;
	--ink-soft: #c9c9c4;
	--ink-muted: #9b9b9f;
	--ink-faint: #8a8a8e;
	--line: rgba(255, 255, 255, .12);
	/* Washes and hairlines are drawn in --fg (white on dark, ink on light); shadows in --shade.
	   The -k factors soften them per theme. */
	--fg: 255, 255, 255;
	--fg-k: 1;
	--shade: 0, 0, 0;
	--shade-k: 1;
	--surface: rgba(30, 30, 34, .9);
	--surface-2: rgba(18, 18, 22, .96);
	--dock-bg: rgba(30, 30, 34, .55);
	--header-bg: rgba(8, 8, 10, .55);
	--field: #141416;
	--frame: #0b0b0b;
	--well: #151517;
	--check-a: #202024;
	--check-b: #18181b;
	--card-a: rgba(37, 37, 40, .85);
	--card-b: rgba(25, 25, 28, .85);
	--panel-a: rgba(255, 255, 255, .10);
	--panel-b: rgba(255, 255, 255, .03);
	--panel-hover-a: rgba(255, 255, 255, .16);
	--panel-hover-b: rgba(255, 255, 255, .05);
	--panel-border: rgba(255, 255, 255, .14);
	--panel-shine: rgba(255, 255, 255, .22);
	/* Accent. Dark: D8 yellow. Light: yellow into orange (see below). */
	--yellow: #ffc21a;
	--orange: #ff6a13;
	--orange-deep: #e8461a;
	--accent: linear-gradient(100deg, #ffdd55, var(--yellow) 60%, #ffae00);
	--accent-solid: var(--yellow);
	--accent-edge: rgba(255, 228, 140, .7);
	--accent-text: #ffd34d;
	--on-accent: #1a1300;
	--accent-glow: rgba(255, 194, 26, .28);
	--accent-tint: rgba(255, 194, 26, .12);
	--accent-tint-edge: rgba(255, 194, 26, .45);
	--glow-1: rgba(255, 194, 26, .32);
	--glow-2: rgba(255, 224, 120, .2);
	--blob-1: rgba(255, 194, 26, .14);
	--blob-2: rgba(255, 224, 120, .08);
	/* Today on Forecast: one colour per project, biggest first */
	--day-1: #ffc21a;
	--day-2: #f3f3f0;
	--day-3: #ffe08a;
	--day-4: #9b9b9f;
	--day-5: #ff9e3d;
	--day-6: #5f5f63;
	--ok: #c8ffd9;
	--bad: #ffa8a8;
	--warn: #ffd59a;
	--info: #ffc98f;
	/* Background render of the D8 eight, faded in at the top of signed-in pages */
	--render: url(../img/render-dark.jpg);
	--render-opacity: .55;
	--font-head: "D8 Sans Headline", "Helvetica Neue", Arial, sans-serif;
	--font-text: "D8 Sans Text", "Helvetica Neue", Arial, sans-serif;
	--rainbow: linear-gradient(120deg, #ff3d6e, #ffb21e, #f4ff5a, #2bff9e, #23c4ff, #8a5cff, #ff3d6e);
	--ease: cubic-bezier(.2, .8, .2, 1);
}

/* Light theme: the D8 deck look, near-black ink on light grey with white cards */
[data-theme="light"] {
	color-scheme: light;
	--bg: #efefed;
	--bg-deep: #e8e8e5;
	--ink: #141414;
	--ink-soft: #3b3b39;
	--ink-muted: #5d5d5a;
	--ink-faint: #75756f;
	--line: rgba(20, 20, 20, .12);
	--fg: 20, 20, 20;
	--fg-k: .7;
	--shade: 40, 32, 24;
	--shade-k: .32;
	--surface: rgba(255, 255, 255, .94);
	--surface-2: rgba(250, 250, 248, .97);
	--dock-bg: rgba(255, 255, 255, .7);
	--header-bg: rgba(239, 239, 237, .75);
	--field: #ffffff;
	--frame: #f8f8f6;
	--well: #e6e6e3;
	--check-a: #e2e2df;
	--check-b: #f2f2ef;
	--card-a: rgba(255, 255, 255, .92);
	--card-b: rgba(250, 250, 248, .92);
	--panel-a: rgba(255, 255, 255, .92);
	--panel-b: rgba(255, 255, 255, .72);
	--panel-hover-a: rgba(255, 255, 255, 1);
	--panel-hover-b: rgba(255, 255, 255, .9);
	--panel-border: rgba(20, 20, 20, .08);
	--panel-shine: rgba(255, 255, 255, .9);
	--accent: linear-gradient(100deg, var(--yellow), var(--orange) 70%, var(--orange-deep));
	--accent-solid: var(--orange);
	--accent-edge: rgba(255, 220, 160, .6);
	--accent-text: #c2410c;
	--on-accent: #1c0c00;
	--accent-glow: rgba(255, 106, 19, .22);
	--accent-tint: rgba(255, 106, 19, .12);
	--accent-tint-edge: rgba(255, 106, 19, .45);
	--glow-1: rgba(255, 106, 19, .55);
	--glow-2: rgba(255, 194, 26, .4);
	--blob-1: rgba(255, 106, 19, .22);
	--blob-2: rgba(255, 194, 26, .14);
	--day-1: #ff6a13;
	--day-2: #141414;
	--day-3: #ffc21a;
	--day-4: #8a8a85;
	--day-5: #e8461a;
	--day-6: #ffb070;
	--ok: #17703a;
	--bad: #c0262d;
	--warn: #9a5a00;
	--info: #b4470c;
	--render: url(../img/render-light.jpg);
	--render-opacity: .8;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

/* In-page links (e.g. Recent) glide instead of jumping */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 24px; }

body {
	min-height: 100vh;
	background: var(--bg);
	color: var(--ink);
	font: 400 15px/1.4 var(--font-text);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--ink); }

.wordmark { display: flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; }
.wordmark b { font: 500 26px/1 var(--font-head); letter-spacing: -.05em; }
.wordmark span { font: 500 17px/1 var(--font-head); color: var(--ink-soft); }

/* Glass pill buttons */
.glass {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 52px; padding: 0 24px; border-radius: 999px;
	background: rgba(var(--fg), calc(.09 * var(--fg-k)));
	-webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
	border: 1px solid rgba(var(--fg), calc(.18 * var(--fg-k)));
	box-shadow: inset 0 1px 0 rgba(var(--fg), calc(.35 * var(--fg-k))), inset 0 -1px 0 rgba(var(--shade), calc(.25 * var(--shade-k))), 0 10px 30px rgba(var(--shade), calc(.35 * var(--shade-k)));
	color: var(--ink); text-decoration: none; font: 500 15px/1 var(--font-text);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.glass:hover { background: rgba(var(--fg), calc(.14 * var(--fg-k))); transform: translateY(-1px); color: var(--ink); }
.glass:focus-visible { outline: 2px solid rgba(var(--fg), calc(.8 * var(--fg-k))); outline-offset: 3px; }
.glass--quiet { background: rgba(var(--fg), calc(.04 * var(--fg-k))); border-color: rgba(var(--fg), calc(.12 * var(--fg-k))); color: var(--ink-soft); box-shadow: inset 0 1px 0 rgba(var(--fg), calc(.22 * var(--fg-k))), 0 10px 30px rgba(var(--shade), calc(.3 * var(--shade-k))); }
.glass--small { height: auto; padding: 9px 16px; font-size: 14px; color: var(--ink-soft); background: rgba(var(--fg), calc(.06 * var(--fg-k))); border-color: var(--line); box-shadow: none; }

/* The 3D eight */
/* A still image shows until WebGL draws its first frame, and stays if WebGL is unavailable */
.eight { position: relative; }
.eight canvas, .eight__still { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.eight__still { object-fit: contain; transition: opacity .4s ease; }
.eight canvas { opacity: 0; transition: opacity .4s ease; }
.eight.is-live canvas { opacity: 1; }
.eight.is-live .eight__still { opacity: 0; }
/* The still is the old rainbow glass, so it only shows when WebGL isn't available; otherwise the 8 fades in */
.eight__still { visibility: hidden; }
.eight.no-gl .eight__still { visibility: visible; }

/* Small "not live yet" message */
.notice {
	position: fixed; left: 50%; bottom: 32px; z-index: 10;
	translate: -50% 0; padding: 10px 18px; border-radius: 999px;
	background: var(--surface); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
	border: 1px solid rgba(var(--fg), calc(.16 * var(--fg-k))); color: var(--ink-soft); font-size: 13px;
	opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.notice.is-on { opacity: 1; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Landing + sign in: one page, two states ---------- */

.entry {
	--mx: .5; --my: .5;
	position: relative; min-height: 100vh; overflow: clip;
	display: grid; background: var(--bg-deep);
}
.entry__bg { position: absolute; inset: 0; pointer-events: none; transition: opacity .8s ease; }
.entry__bg--signin { background: var(--bg); }
[data-state="signin"] .entry__bg--landing, [data-state="landing"] .entry__bg--signin { opacity: 0; }
.landing__grid {
	position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(var(--fg), calc(.035 * var(--fg-k))) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--fg), calc(.035 * var(--fg-k))) 1px, transparent 1px);
	background-size: 96px 96px; background-position: center;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}
.landing__glow {
	position: absolute; left: 50%; top: 42%; width: 0; height: 0; pointer-events: none;
	transform: translate(calc((var(--mx) - .5) * 140px), calc((var(--my) - .5) * 110px));
	transition: transform 1.4s var(--ease);
}
.landing__glow div {
	/* A soft yellow-and-orange glow that slowly turns. Plain gradients, no live CSS blur:
	   a blur would be recomputed every frame, which kept the fans busy. */
	position: absolute; left: -600px; top: -560px; width: 1200px; height: 1120px;
	opacity: .5;
	background:
		radial-gradient(closest-side at 38% 42%, var(--glow-1), transparent),
		radial-gradient(closest-side at 64% 60%, var(--glow-2), transparent);
	will-change: transform;
	animation: glow-turn 18s steps(540) infinite; /* steps: ~30 updates/s */
}
.landing__ring {
	position: absolute; left: 50%; top: 42%; aspect-ratio: 1; translate: -50% -50%;
	border-radius: 50%; pointer-events: none;
}
.landing__ring--outer { width: min(78vh, 92vw); border: 1px solid rgba(var(--fg), calc(.07 * var(--fg-k))); }
.landing__ring--inner { width: min(56vh, 70vw); border: 1px solid rgba(var(--fg), calc(.045 * var(--fg-k))); }
.landing__orbit { position: absolute; inset: -1px; border-radius: 50%; animation: orbit 48s steps(1440) infinite; }
.landing__orbit span {
	position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px;
	border-radius: 50%; background: var(--ink); box-shadow: 0 0 18px 4px rgba(var(--fg), calc(.45 * var(--fg-k)));
}
.signin__blob {
	position: absolute; border-radius: 50%; pointer-events: none;
	will-change: transform, opacity;
	animation: breathe 9s steps(135) infinite;
}
.signin__blob--violet { left: -10%; top: -260px; width: 70%; height: 620px; background: radial-gradient(closest-side, var(--blob-1), transparent); filter: blur(60px); }
.signin__blob--cyan { right: -15%; bottom: -240px; width: 60%; height: 560px; background: radial-gradient(closest-side, var(--blob-2), transparent); filter: blur(70px); animation-delay: -4s; }

/* Both views share one grid cell. The inactive one is inert: faded out, but still laid out,
   so the script can measure where the eight should go. */
.entry__view {
	grid-area: 1 / 1; position: relative; z-index: 2;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.entry__view--landing { gap: 22px; padding: 48px 16px 120px; }
.entry__view--signin { gap: 8px; padding: 96px 16px 88px; }
.entry__view--landing h1 { margin: 0; font: 500 clamp(40px, 5vw, 64px)/1 var(--font-head); letter-spacing: -.03em; }
.entry__slot { flex: none; }
.entry__slot--landing { height: min(56vh, 80vw); aspect-ratio: 400 / 470; margin-bottom: -46px; }
.entry__slot--signin { width: 170px; height: 200px; margin-bottom: -8px; }

/* Show/hide per state: fade out fast, fade in after the eight has started moving */
.entry [data-for] { transition: opacity .5s ease .2s, transform .7s var(--ease) .2s, visibility 0s; }
.entry [data-for][inert] { opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .4s ease, visibility 0s .4s; }
/* Taken out of the grid so a long sign-in card doesn't stretch the landing (and vice versa) */
.entry__view[inert] { position: absolute; inset: 0; }
.entry__view--landing[inert] { transform: translateY(24px); }
.entry__view--signin[inert] { transform: translateY(48px); }

/* The one eight: placed on the landing slot, moved and scaled onto the sign-in slot */
.entry__eight {
	position: absolute; z-index: 1; left: 0; top: 0;
	transform-origin: 0 0; pointer-events: none; user-select: none;
	transition: transform .8s var(--ease);
	will-change: transform;
}

.landing__nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.landing__note { margin: 0; font-size: 12px; color: var(--ink-faint); }
.landing__d8 { position: absolute; z-index: 3; left: 32px; bottom: 28px; font: 500 22px/1 var(--font-head); letter-spacing: -.05em; }
.landing__ver { position: absolute; z-index: 3; right: 32px; bottom: 30px; font-size: 11px; letter-spacing: .12em; color: var(--ink-faint); }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .035; pointer-events: none; } /* no blend mode: blending re-mixes the whole page every frame */
.signin__header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 32px; }
.entry .signin__header { position: absolute; z-index: 3; top: 0; left: 0; right: 0; }
.entry .signin__footer { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; }

/* ---------- Sign in card ---------- */

.card {
	width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px;
	padding: 32px; border-radius: 28px;
	background: linear-gradient(180deg, var(--card-a), var(--card-b));
	-webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
	box-shadow: 0 30px 80px rgba(var(--shade), calc(.55 * var(--shade-k))), inset 0 1px 0 rgba(var(--fg), calc(.08 * var(--fg-k)));
}
.card__head { display: flex; flex-direction: column; gap: 6px; text-align: center; margin-bottom: 8px; }
.card h1 { margin: 0; font: 500 34px/1.05 var(--font-head); letter-spacing: -.03em; }
.card h1:focus { outline: none; } /* focused by script when the card appears, for screen readers */
.card__head p { margin: 0; color: var(--ink-muted); font-size: 14px; }
.card__error { margin: 0; padding: 12px 16px; border-radius: 14px; background: rgba(255, 95, 120, .1); border: 1px solid rgba(255, 95, 120, .35); color: var(--bad); font-size: 13px; text-align: center; }
.card .glass { width: 100%; background: rgba(var(--fg), calc(.08 * var(--fg-k))); border-color: rgba(var(--fg), calc(.16 * var(--fg-k))); box-shadow: inset 0 1px 0 rgba(var(--fg), calc(.25 * var(--fg-k))); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(var(--fg), calc(.1 * var(--fg-k))); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.field input {
	height: 50px; border-radius: 14px; border: 1px solid var(--line);
	background: rgba(var(--fg), calc(.04 * var(--fg-k))); color: var(--ink); padding: 0 16px;
	font: 400 15px/1 var(--font-text);
	transition: border-color .2s ease, background .2s ease;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { outline: none; border-color: rgba(var(--fg), calc(.45 * var(--fg-k))); background: rgba(var(--fg), calc(.07 * var(--fg-k))); }
.go {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	height: 54px; margin-top: 6px; border-radius: 999px; border: 1px solid var(--accent-edge);
	background: radial-gradient(120% 90% at 50% 120%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 55%), var(--accent);
	color: var(--on-accent); font: 500 15px/1 var(--font-text); cursor: pointer;
	box-shadow: 0 10px 34px var(--accent-glow);
	transition: transform .2s ease, filter .2s ease;
}
.go:hover { transform: translateY(-1px); filter: brightness(1.06); }
.go:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.card__help { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--ink-faint); }
.signin__footer { position: relative; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 32px; font-size: 12px; color: var(--ink-faint); }

/* ---------- Signed-in pages ---------- */

.app { position: relative; min-height: 100vh; overflow: clip; }
/* A D8 render of the eight, faded in at the top of the page (dark or light version per theme) */
.app::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 900px; pointer-events: none;
	background: var(--render) center 30% / cover no-repeat; opacity: var(--render-opacity);
	-webkit-mask-image: linear-gradient(#000 20%, transparent 100%); mask-image: linear-gradient(#000 20%, transparent 100%);
}
.app .signin__blob { display: none; }

.app-header { position: relative; z-index: 5; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 20px 32px; }
.app-header__spacer { flex: 1; }
.app-nav {
	display: flex; gap: 4px; padding: 4px; border-radius: 999px;
	background: rgba(var(--fg), calc(.06 * var(--fg-k))); border: 1px solid rgba(var(--fg), calc(.1 * var(--fg-k)));
	-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.pill { padding: 9px 16px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: background .2s ease; }
.pill:hover { background: rgba(var(--fg), calc(.12 * var(--fg-k))); color: var(--ink); }
.pill.is-active { background: rgba(var(--fg), calc(.14 * var(--fg-k))); color: var(--ink); }
.pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.status-pill {
	display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 999px;
	background: rgba(var(--fg), calc(.06 * var(--fg-k))); border: 1px solid var(--line);
	-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
	font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.status-pill__time { font: 500 15px/1 var(--font-head); color: var(--ink); }
.status-pill__sun { fill: var(--accent-solid); }
.status-pill__cloud { fill: var(--ink-soft); }
.status-pill__sep { width: 1px; height: 16px; background: rgba(var(--fg), calc(.15 * var(--fg-k))); }

.account { position: relative; }
.account__avatar {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; padding: 0;
	border: 1px solid rgba(var(--fg), calc(.2 * var(--fg-k))); background: var(--accent);
	color: var(--on-accent); font: 500 13px/1 var(--font-text); cursor: pointer;
}
.account__avatar:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.account__menu {
	position: absolute; z-index: 10; right: 0; top: calc(100% + 10px); min-width: 240px;
	display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px;
	background: var(--surface); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
	border: 1px solid rgba(var(--fg), calc(.14 * var(--fg-k))); box-shadow: 0 20px 50px rgba(var(--shade), calc(.5 * var(--shade-k)));
}
.account__menu[hidden] { display: none; }
.account__menu strong { font-weight: 500; }
.account__menu span { font-size: 13px; color: var(--ink-faint); overflow-wrap: anywhere; }
.account__menu form { margin: 10px 0 0; }
.account__menu .glass { width: 100%; }

.eyebrow { font: 500 13px/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.tag { font-size: 12px; color: var(--ink-faint); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }

/* Glass panel used by Today and the tool cards */
.panel {
	border-radius: 24px; color: var(--ink); text-decoration: none;
	background: linear-gradient(160deg, var(--panel-a), var(--panel-b));
	-webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
	border: 1px solid var(--panel-border);
	box-shadow: inset 0 1px 0 var(--panel-shine), 0 18px 40px rgba(var(--shade), calc(.35 * var(--shade-k)));
}

.hub { position: relative; max-width: 1240px; margin: 0 auto; padding: 48px 32px 96px; display: flex; flex-direction: column; gap: 72px; }
.hub__hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hub .eight { width: 200px; height: 235px; margin: -20px 0 -14px; }
.hub h1 { margin: 0; max-width: 900px; font: 500 clamp(40px, 5.4vw, 76px)/1 var(--font-head); letter-spacing: -.04em; }
.hub__hint { margin: 0; font-size: 12px; color: var(--ink-faint); }

.ask {
	width: 100%; max-width: 760px; margin-top: 12px;
	display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 24px;
	border-radius: 999px; border: 1.5px solid transparent;
	background: linear-gradient(var(--field), var(--field)) padding-box, var(--accent) border-box;
	box-shadow: 0 20px 60px rgba(var(--shade), calc(.5 * var(--shade-k)));
}
.ask input { flex: 1; min-width: 0; height: 52px; border: 0; outline: none; background: transparent; color: var(--ink); font: 400 17px/1 var(--font-text); }
.ask input::placeholder { color: var(--ink-faint); }
.ask:focus-within { box-shadow: 0 20px 60px rgba(var(--shade), calc(.5 * var(--shade-k))), 0 0 0 4px var(--accent-glow); }
.ask__go { flex: none; height: 52px; margin: 0; padding: 0 26px; box-shadow: 0 8px 30px var(--accent-glow); }

/* The ask bar works as a search bar for now: find a tool, or a command like "npo fort alpha" */
.hub__hero { position: relative; z-index: 2; }
.search { position: relative; padding-left: 20px; }
.search__glass { flex: none; color: var(--ink-faint); }
.search__key {
	flex: none; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line);
	font: 500 12px/1 var(--font-text); color: var(--ink-faint);
}
.search__panel {
	position: absolute; top: calc(100% + 10px); left: 0; right: 0;
	max-height: min(380px, 60vh); overflow-y: auto; padding: 8px; text-align: left;
	border-radius: 24px; border: 1px solid rgba(var(--fg), calc(.14 * var(--fg-k)));
	background: linear-gradient(160deg, var(--surface), var(--surface-2));
	backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
	box-shadow: inset 0 1px 0 rgba(var(--fg), calc(.18 * var(--fg-k))), 0 24px 60px rgba(var(--shade), calc(.55 * var(--shade-k)));
}
.search__results { list-style: none; margin: 0; padding: 0; }
.search__result { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; cursor: pointer; }
.search__result[aria-selected="true"] { background: rgba(var(--fg), calc(.08 * var(--fg-k))); }
.search__icon { flex: none; display: flex; width: 36px; height: 36px; }
.search__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.search__text strong { font: 500 15px/1.2 var(--font-text); color: var(--ink); }
.search__text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--ink-faint); }
.search__tag { flex: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; color: var(--ink-muted); }
.search__empty { margin: 0; padding: 14px 12px; font-size: 14px; color: var(--ink-soft); }
.search__label { margin: 0; padding: 8px 12px 4px; font: 500 11px/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.search__label[hidden] { display: none; }
.search__try { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.search__chip {
	padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--fg), calc(.04 * var(--fg-k)));
	font: 400 12px/1.2 var(--font-text); color: var(--ink-soft); cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.search__chip:hover, .search__chip:focus-visible { background: rgba(var(--fg), calc(.1 * var(--fg-k))); color: var(--ink); }
@media (hover: none) { .search__key { display: none; } }

/* Today on Forecast: a small card that floats at the top right on wide screens (see the media query below) */
.today { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 16px; }
.today__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.today__toggle { display: inline-flex; align-items: center; gap: 6px; margin: -4px -6px; padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: var(--ink-muted); cursor: pointer; white-space: nowrap; text-align: left; }
.today__toggle .eyebrow { font-size: 12px; letter-spacing: .12em; }
.today__toggle:hover { color: var(--ink); background: rgba(var(--fg), calc(.06 * var(--fg-k))); }
.today__toggle:hover .eyebrow { color: var(--ink); }
.today__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.today__toggle svg { transition: transform .25s var(--ease); }
.today__body { display: flex; flex-direction: column; gap: 12px; }
.today.is-folded .today__body { display: none; }
.today.is-folded .today__toggle svg { transform: rotate(-90deg); }
.today__date { font-size: 12px; color: var(--ink-faint); white-space: nowrap; text-decoration: none; }
a.today__date:hover { color: var(--ink); }
.today__title { display: flex; flex-direction: column; gap: 4px; }
.today__title strong { font: 500 21px/1.15 var(--font-head); letter-spacing: -.02em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.today__title span { font-size: 13px; color: var(--ink-soft); }
.today__bar { display: flex; height: 6px; gap: 3px; border-radius: 999px; overflow: hidden; }
.today__list { list-style: none; margin: 0; padding: 0; }
.today__list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(var(--fg), calc(.08 * var(--fg-k))); }
.today__list b { font: 500 14px/1 var(--font-head); }
.today__item { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today__more .today__item, .today__more b { color: var(--ink-faint); }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 10px var(--dot); }
@media (min-width: 1001px) {
	/* Lined up with the header (32px from the window edge), not with the 1240px hub: on wide screens the
	   hub is centred, so step out by the gap beside it */
	.hub > .today { --today-edge: calc(32px - max(0px, (100vw - 1240px) / 2)); position: absolute; z-index: 3; top: 16px; right: var(--today-edge); width: 300px; }
	.hub > .today.is-left { right: auto; left: var(--today-edge); }
	.hub > .today.is-grabbable { cursor: grab; }
	.hub > .today .today__head { touch-action: none; }
	.hub > .today.is-dragging, .hub > .today.is-dragging * { cursor: grabbing; }
	.hub > .today.is-dragging { box-shadow: 0 24px 60px rgba(var(--shade), calc(.55 * var(--shade-k))); }
}


.hub__section { display: flex; flex-direction: column; gap: 24px; }
.hub__section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hub__section-head h2 { margin: 0; font: 500 32px/1.1 var(--font-head); letter-spacing: -.03em; }
.hub__section-head > span:not(.tag) { font-size: 13px; color: var(--ink-faint); }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.tool {
	display: flex; align-items: center; gap: 22px; min-height: 140px; padding: 26px 28px;
	transition: background .25s ease, transform .4s var(--ease);
}
.tool:hover { color: var(--ink); background: linear-gradient(160deg, var(--panel-hover-a), var(--panel-hover-b)); transform: translateY(-3px); }
.tool:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.tool__icon { flex: none; overflow: visible; transition: transform .5s var(--ease); }
.tool:hover .tool__icon { transform: scale(1.08) rotate(-8deg); }
.tool__text { display: flex; flex-direction: column; gap: 8px; }
.tool__name { font: 500 22px/1.12 var(--font-head); letter-spacing: -.02em; }
.tool__text small { font-size: 12px; color: var(--ink-faint); }
/* Not live yet: faded, at the end of the list */
.tool--soon, .app-card--soon, .dock__item--soon { opacity: .5; transition: opacity .25s ease, background .25s ease, transform .4s var(--ease); }
.tool--soon:hover, .app-card--soon:hover, .dock__item--soon:hover { opacity: .75; }
.tool--soon .tool__name { color: var(--ink-muted); }

.hub__footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(var(--fg), calc(.08 * var(--fg-k))); font-size: 12px; color: var(--ink-faint); }

/* ---------- MXF QC Check ---------- */

.qc { max-width: 1080px; margin: 0 auto; padding: 40px 24px 56px; display: flex; flex-direction: column; gap: 22px; }
.qc-preset { padding: 7px 14px; font-size: 13px; }
.qc-drop {
	display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 24px; text-align: center;
	border-radius: 24px; border: 1.5px dashed rgba(var(--fg), calc(.22 * var(--fg-k))); background: rgba(var(--fg), calc(.03 * var(--fg-k)));
	color: var(--ink-faint); transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.qc-drop strong { font: 500 22px/1.1 var(--font-head); color: var(--ink); }
.qc-drop span { font-size: 13px; }
.qc-drop.is-over { background: var(--accent-tint); border-color: var(--accent-solid); color: var(--accent-text); }
.qc__scope { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-faint); }
.qc__summary { font-size: 14px; color: var(--ink-soft); }
.qc__summary[hidden] { display: none; }
.qc__files { display: flex; flex-direction: column; gap: 12px; }

.qc-file { padding: 0; overflow: clip; }
.qc-file__head {
	width: 100%; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 22px;
	border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.qc-file.is-busy .qc-file__head { cursor: default; }
.qc-file__head:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 24px; }
.qc-file__name { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qc-file__name strong { font: 500 17px/1.2 var(--font-head); overflow-wrap: anywhere; }
.qc-file__name small { font-size: 12px; color: var(--ink-faint); }
.qc-chip { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; background: rgba(var(--fg), calc(.06 * var(--fg-k))); border: 1px solid var(--line); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.qc-file.is-busy .qc-chip { animation: qc-pulse 1.6s ease-in-out infinite; }
.qc-chip--pass { color: var(--ok); border-color: rgba(200, 255, 217, .35); background: rgba(200, 255, 217, .08); }
.qc-chip--fail { border-color: rgba(255, 168, 168, .35); background: rgba(255, 168, 168, .08); color: var(--bad); }
.qc-chip--warning { border-color: rgba(255, 213, 154, .35); background: rgba(255, 213, 154, .08); color: var(--warn); }
.qc-chip__fail { color: var(--bad); }
.qc-chip__warning { color: var(--warn); }
.qc-file__body { padding: 0 22px 18px; }
.qc-file__body[hidden] { display: none; }
.qc-file__error { margin: 0; font-size: 14px; color: var(--bad); }

.qc-checks { list-style: none; margin: 0; padding: 0; }
.qc-check { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(var(--fg), calc(.08 * var(--fg-k))); }
.qc-icon { flex: none; margin-top: 1px; }
.qc-icon--pass { color: var(--ok); }
.qc-icon--fail { color: var(--bad); }
.qc-icon--warning { color: var(--warn); }
.qc-icon--error { color: var(--ink-soft); }
.qc-check__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qc-check__label { font-size: 13px; color: var(--ink-faint); }
.qc-check__measured { font: 400 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); overflow-wrap: anywhere; }
.qc-check--fail .qc-check__label { color: var(--ink); }
.qc-check--fail .qc-check__measured { color: var(--bad); font-weight: 600; }
.qc-check__detail { font-size: 12px; color: var(--ink-faint); }
.qc-check__expected { flex: 0 1 220px; font: 400 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-faint); text-align: right; }

@keyframes qc-pulse { 50% { opacity: .55; } }

/* ---------- Mac app page (after the design's "D8 Start a Project") ---------- */

.appinfo { position: relative; max-width: 1240px; margin: 0 auto; padding: 32px 32px 96px; display: flex; flex-direction: column; gap: 28px; }
.appinfo__back { align-self: flex-start; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.appinfo__back:hover { color: var(--ink); }
.appinfo__hero { display: flex; align-items: center; gap: 36px; padding: 8px 0 4px; }
.appinfo__icon {
	flex: none; display: flex; align-items: center; justify-content: center; width: 148px; height: 148px; border-radius: 36px;
	background: linear-gradient(160deg, var(--panel-a), var(--panel-b));
	border: 1px solid var(--panel-border);
	box-shadow: inset 0 1px 0 var(--panel-shine), 0 18px 40px rgba(var(--shade), calc(.35 * var(--shade-k)));
}
.appinfo__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.appinfo__intro h1 { margin: 0; font: 500 clamp(44px, 5.4vw, 68px)/1 var(--font-head); letter-spacing: -.04em; }
.appinfo__intro p { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.45; color: var(--ink-soft); }
.appinfo__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
/* .go is the sign-in form's full-width button; here it sits next to a .glass button, so match its size */
.appinfo__actions .go { display: inline-flex; gap: 10px; height: 52px; margin: 0; padding: 0 28px 0 24px; text-decoration: none; }
.appinfo__meta { font-size: 13px; color: var(--ink-faint); }
.appinfo__status { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 22px; font-size: 14px; color: var(--ink-soft); }
.appinfo__status b { color: var(--ink); }
.appinfo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.appinfo__panel { display: flex; flex-direction: column; gap: 6px; padding: 26px 28px; }
.appinfo__panel--wide { grid-column: 1 / -1; }
.appinfo__panel h2 { margin: 0 0 10px; font: 500 28px/1.1 var(--font-head); letter-spacing: -.03em; }
.appinfo__list, .appinfo__steps { list-style: none; margin: 0; padding: 0; }
.appinfo__list li, .appinfo__steps li { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(var(--fg), calc(.08 * var(--fg-k))); }
.appinfo__list svg { flex: none; margin-top: 2px; }
.appinfo__check { color: var(--ok); }
.appinfo__list span, .appinfo__steps li > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.appinfo__list strong, .appinfo__steps strong { font: 500 15px/1.3 var(--font-text); }
.appinfo__list small, .appinfo__steps small { font-size: 13px; line-height: 1.45; color: var(--ink-faint); }
.appinfo__steps small b { color: var(--ink-soft); font-weight: 500; }
.appinfo__num {
	flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
	border: 1px solid rgba(var(--fg), calc(.18 * var(--fg-k))); background: rgba(var(--fg), calc(.05 * var(--fg-k))); font: 500 13px/1 var(--font-text); color: var(--ink-soft);
}

/* ---------- Apps catalogue ---------- */

.catalogue { position: relative; max-width: 1240px; margin: 0 auto; padding: 40px 32px 96px; display: flex; flex-direction: column; gap: 32px; }
.catalogue__head { display: flex; flex-direction: column; gap: 12px; }
.catalogue__head h1 { margin: 0; font: 500 clamp(40px, 5vw, 64px)/1 var(--font-head); letter-spacing: -.04em; }
.catalogue__head p { margin: 0; font-size: 17px; color: var(--ink-soft); }
.catalogue__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
	height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
	background: transparent; border: 1px solid var(--line); color: var(--ink-soft); font: 400 14px/1 var(--font-text);
	transition: background .2s ease, color .2s ease;
}
.filter:hover { background: rgba(var(--fg), calc(.08 * var(--fg-k))); color: var(--ink); }
.filter[aria-pressed="true"] { background: rgba(var(--fg), calc(.16 * var(--fg-k))); border-color: rgba(var(--fg), calc(.3 * var(--fg-k))); color: var(--ink); }
.filter:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.catalogue__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }

.app-card { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 26px; }
.app-card[hidden] { display: none; }
.app-card__head { display: flex; align-items: center; gap: 18px; }
.app-card__icon {
	flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px;
	background: linear-gradient(160deg, var(--panel-a), var(--panel-b));
	border: 1px solid var(--panel-border); box-shadow: inset 0 1px 0 var(--panel-shine), 0 18px 40px rgba(var(--shade), calc(.35 * var(--shade-k)));
}
.app-card__icon svg { overflow: visible; transition: transform .5s var(--ease); }
.app-card:hover .app-card__icon svg { transform: scale(1.08) rotate(-8deg); }
.app-card__title { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.app-card__title h2 { margin: 0; font: 500 22px/1.1 var(--font-head); letter-spacing: -.02em; }
.app-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(var(--fg), calc(.06 * var(--fg-k))); border: 1px solid rgba(var(--fg), calc(.14 * var(--fg-k))); color: var(--ink-soft); }
.chip--live { background: var(--accent-tint); border-color: var(--accent-tint-edge); color: var(--accent-text); }
.app-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.app-card__actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.app-card__actions .glass { height: 44px; padding: 0 20px; }
.app-card__open { height: 44px; margin: 0; padding: 0 22px; text-decoration: none; }
.app-card__open:hover { color: var(--on-accent); }

/* ---------- Tool opened inside Backstage (app shell + dock) ---------- */

.shell-header {
	position: relative; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	padding: 14px 24px; border-bottom: 1px solid rgba(var(--fg), calc(.08 * var(--fg-k)));
	background: var(--header-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.shell-header__icon {
	flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
	background: linear-gradient(160deg, var(--panel-a), var(--panel-b));
	border: 1px solid var(--panel-border); box-shadow: inset 0 1px 0 var(--panel-shine), 0 18px 40px rgba(var(--shade), calc(.35 * var(--shade-k)));
}
.shell-header__icon svg { overflow: visible; }
.shell-header__name { display: flex; flex-direction: column; gap: 3px; }
.shell-header__name b { font: 500 16px/1 var(--font-head); }
.shell-header__name span { font-size: 12px; color: var(--ink-faint); }
.shell-header__time { font: 500 14px/1 var(--font-head); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.shell-header .account__avatar { width: 36px; height: 36px; font-size: 12px; }

.shell__main { position: relative; padding: 20px 24px 140px; }
.shell__frame {
	position: relative; min-height: 640px; border-radius: 22px; overflow: clip;
	background: var(--frame); border: 1px solid rgba(var(--fg), calc(.14 * var(--fg-k))); box-shadow: 0 30px 80px rgba(var(--shade), calc(.55 * var(--shade-k)));
}
.shell__bar { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.shell__wordmark { display: flex; align-items: baseline; gap: 10px; }
.shell__wordmark b { font: 500 22px/1 var(--font-head); letter-spacing: -.05em; }
.shell__wordmark span { font: 500 15px/1 var(--font-head); color: var(--ink-soft); }

.dock {
	position: fixed; z-index: 8; left: 50%; bottom: 24px; translate: -50% 0;
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 26px;
	background: var(--dock-bg); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
	border: 1px solid rgba(var(--fg), calc(.16 * var(--fg-k))); box-shadow: inset 0 1px 0 rgba(var(--fg), calc(.22 * var(--fg-k))), 0 20px 50px rgba(var(--shade), calc(.5 * var(--shade-k)));
}
.dock__item {
	position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
	background: rgba(var(--fg), calc(.08 * var(--fg-k))); border: 1px solid rgba(var(--fg), calc(.14 * var(--fg-k))); box-shadow: inset 0 1px 0 rgba(var(--fg), calc(.25 * var(--fg-k)));
	color: var(--ink); text-decoration: none; transition: transform .25s var(--ease);
}
.dock__item svg { overflow: visible; }
.dock__item:hover { transform: translateY(-8px) scale(1.12); }
.dock__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dock__item--home { font: 500 19px/1 var(--font-head); letter-spacing: -.05em; }
.dock__label {
	position: absolute; left: 50%; bottom: calc(100% + 12px); translate: -50% 4px; scale: .9;
	padding: 6px 10px; border-radius: 9px; white-space: nowrap; pointer-events: none;
	background: var(--surface); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
	border: 1px solid rgba(var(--fg), calc(.16 * var(--fg-k))); box-shadow: 0 10px 30px rgba(var(--shade), calc(.4 * var(--shade-k)));
	font: 400 12px/1 var(--font-text); letter-spacing: 0; color: var(--ink);
	opacity: 0; transition: opacity .15s ease, translate .15s ease;
}
.dock__item:hover .dock__label, .dock__item:focus-visible .dock__label { opacity: 1; translate: -50% 0; }
.dock__item.is-open::after {
	content: ""; position: absolute; bottom: -9px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px;
	border-radius: 50%; background: var(--ink);
}
.dock__sep { width: 1px; height: 34px; margin: 0 2px; background: rgba(var(--fg), calc(.15 * var(--fg-k))); }

/* ---------- NPO Visuals ---------- */

.npo { max-width: 1080px; margin: 0 auto; padding: 40px 24px 56px; display: flex; flex-direction: column; gap: 22px; }
.npo__head { display: flex; flex-direction: column; gap: 10px; }
.npo__head h1 { margin: 0; font: 500 clamp(32px, 4vw, 44px)/1 var(--font-head); letter-spacing: -.03em; }
.npo__head p { margin: 0; color: var(--ink-muted); }
.npo__search { max-width: none; margin-top: 4px; padding: 6px 10px 6px 20px; color: var(--ink-faint); box-shadow: 0 16px 40px rgba(var(--shade), calc(.4 * var(--shade-k))); }
.npo__search input { height: 48px; }
.npo__search input::-webkit-search-cancel-button { display: none; }
.npo__clear {
	flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0;
	background: rgba(var(--fg), calc(.08 * var(--fg-k))); color: var(--ink-soft); font: 400 20px/1 var(--font-text); cursor: pointer;
}
.npo__clear:hover { background: rgba(var(--fg), calc(.14 * var(--fg-k))); color: var(--ink); }
.npo__clear[hidden] { display: none; }
.npo__status { margin: 0; min-height: 20px; font-size: 14px; color: var(--ink-faint); }
.npo__results { display: flex; flex-direction: column; gap: 16px; }

.npo-card { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.npo-card__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.npo-card__title { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.npo-card__title strong { font: 500 24px/1.1 var(--font-head); letter-spacing: -.02em; }
.npo-card__title small { font-size: 12px; color: var(--ink-faint); }
.npo-card__empty { margin: 0; font-size: 14px; color: var(--ink-faint); }
.npo-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.npo-image { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(var(--fg), calc(.04 * var(--fg-k))); border: 1px solid rgba(var(--fg), calc(.08 * var(--fg-k))); }
.npo-image__preview {
	display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
	background: var(--well);
}
/* Logos are transparent: show them on a checkerboard so white logos stay visible */
.npo-image--title .npo-image__preview {
	background: repeating-conic-gradient(var(--check-a) 0 25%, var(--check-b) 0 50%) 0 0 / 16px 16px;
}
.npo-image__preview img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: grab; }
.npo-image__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.npo-image__foot span { font-size: 13px; color: var(--ink-soft); }
.npo-save { flex: none; height: 34px; padding: 0 14px; font-size: 13px; }
.npo-save.is-done { color: var(--ok); border-color: rgba(200, 255, 217, .35); }
.npo-save[aria-busy="true"] { pointer-events: none; opacity: .7; }

/* NPO Downloader */
.dl { max-width: 1080px; margin: 0 auto; padding: 40px 24px 56px; display: flex; flex-direction: column; gap: 22px; }
.dl__drop {
	display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 24px;
	border: 1.5px dashed rgba(var(--fg), calc(.22 * var(--fg-k))); background: rgba(var(--fg), calc(.03 * var(--fg-k)));
	transition: border-color .2s ease, background .2s ease;
}
.dl__paste {
	width: 100%; min-height: 150px; resize: vertical; padding: 16px 18px; border-radius: 16px;
	border: 1px solid var(--line); background: var(--field); color: var(--ink);
	font: 400 15px/1.5 var(--font-text);
}
.dl__drop.is-filled .dl__paste { min-height: 64px; height: 64px; }
.dl__paste::placeholder { color: var(--ink-faint); }
.dl__paste:focus { outline: none; border-color: rgba(var(--fg), calc(.45 * var(--fg-k))); }
.dl__result { display: flex; flex-direction: column; gap: 16px; }
.dl__result[hidden] { display: none; }
.dl__panel { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.dl__expiry { padding: 12px 16px; border-radius: 14px; font-size: 14px; color: var(--ink-soft); background: rgba(200, 255, 217, .07); border: 1px solid rgba(200, 255, 217, .2); }
.dl__expiry b { color: var(--ok); font-weight: 500; }
.dl__expiry.is-soon { background: rgba(255, 227, 158, .08); border-color: rgba(255, 227, 158, .3); }
.dl__expiry.is-soon b { color: var(--warn); }
.dl__expiry.is-expired { background: rgba(255, 120, 120, .09); border-color: rgba(255, 120, 120, .35); }
.dl__expiry.is-expired b { color: var(--bad); }
.dl__fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.dl__fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.dl__fields input {
	height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--fg), calc(.04 * var(--fg-k)));
	color: var(--ink); padding: 0 16px; font: 400 15px/1 var(--font-text);
}
.dl__fields input:focus { outline: none; border-color: rgba(var(--fg), calc(.45 * var(--fg-k))); background: rgba(var(--fg), calc(.07 * var(--fg-k))); }
.dl__path { margin: -6px 0 0; font-size: 13px; color: var(--ink-faint); overflow-wrap: anywhere; }
.dl__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dl__actions .go { height: 52px; margin: 0; padding: 0 28px; }
.dl__actions button:disabled { opacity: .4; pointer-events: none; }
.dl__how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.dl__how b { color: var(--ink); font-weight: 500; }
.dl__details { font-size: 13px; line-height: 1.55; color: var(--ink-faint); }
.dl__details summary { cursor: pointer; color: var(--ink-soft); }
.dl__details p { margin: 8px 0 0; max-width: 720px; }
.dl__details code { font-size: 12px; color: var(--ink-soft); }
.dl__list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dl__list-head h2 { margin: 0; font: 500 26px/1.1 var(--font-head); letter-spacing: -.02em; }
.dl__note { margin: -6px 0 0; font-size: 13px; color: var(--ink-faint); }
.dl__note[hidden] { display: none; }
.dl__clips { list-style: none; margin: 0; padding: 0; counter-reset: clip; }
.dl-clip { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(var(--fg), calc(.08 * var(--fg-k))); counter-increment: clip; }
.dl-clip::before { content: counter(clip, decimal-leading-zero); flex: none; width: 24px; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.dl-clip__text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-clip__text strong { font: 500 15px/1.3 var(--font-text); overflow-wrap: anywhere; }
.dl-clip__text small { font-size: 12px; color: var(--ink-faint); overflow-wrap: anywhere; }
.dl-clip__host { flex: none; font-size: 12px; color: var(--ink-faint); }
.dl-clip__get { flex: none; font-size: 13px; color: var(--ink-soft); }
.dl-clip__get:hover { color: var(--ink); }


@media (max-width: 1000px) {
	.hub > .today { display: none; }
}

@media (max-width: 860px) {
	.appinfo__grid { grid-template-columns: minmax(0, 1fr); }
	.app-header__spacer:first-of-type { display: none; }
	.app-nav { order: 10; width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
	.dl { padding: 28px 16px 40px; }
	.dl__panel { padding: 20px 18px; }
	.dl__fields { grid-template-columns: minmax(0, 1fr); }
	.dl__actions .go { width: 100%; }
	.dl-clip__host { display: none; }
	.shell-header { flex-wrap: nowrap; gap: 10px; }
	.shell-header .pill { padding: 9px 10px; }
	.shell-header__name span, .shell-header__time { display: none; }
	.shell-header__name b { white-space: nowrap; }
	.dock { gap: 6px; padding: 8px; bottom: 16px; }
	.dock__item { width: 44px; height: 44px; border-radius: 13px; }
	.dock__item svg { width: 24px; height: 24px; }
	.npo-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.npo-image { padding: 8px; }
	.npo-save { padding: 0 10px; }
	.catalogue__grid { grid-template-columns: minmax(0, 1fr); }
	.qc-check { flex-wrap: wrap; }
	.qc-check__expected { flex-basis: 100%; padding-left: 30px; text-align: left; }
	.qc-preset { display: none; }
	.app-header { padding: 16px; gap: 12px; }
	.hub { padding: 32px 16px 64px; gap: 48px; }
	.ask { padding-left: 16px; }
	.search__key { display: none; }
	.ask__go { padding: 0 18px; }
	.tool { padding: 22px 20px; }
	.shell-header { padding: 12px 16px; }
	.shell__main { padding: 12px 12px 120px; }
	.npo { padding: 28px 16px 40px; }
	.catalogue { padding: 32px 16px 64px; gap: 24px; }
	.appinfo { padding: 24px 16px 64px; gap: 20px; }
	.appinfo__hero { flex-direction: column; align-items: flex-start; gap: 20px; }
	.appinfo__icon { width: 104px; height: 104px; border-radius: 28px; }
	.appinfo__icon svg { width: 60px; height: 60px; }
	.appinfo__panel { padding: 22px 20px; }
	.qc { padding: 28px 16px 40px; }
	.app-card { padding: 22px 20px; }
	.npo-card { padding: 18px 16px; }
}

@media (max-width: 600px) {
	.signin__header, .signin__footer { padding-left: 16px; padding-right: 16px; }
	.card { padding: 24px; }
	.landing__d8 { left: 16px; }
	.landing__ver { right: 16px; }
}

@keyframes glow-turn { to { transform: rotate(360deg); } }
@keyframes orbit { to { rotate: 360deg; } }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .8; transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
	.qc-file.is-busy .qc-chip { animation: none; }
	.landing__glow div, .landing__orbit, .entry__eight > *, .signin__blob { animation: none; }
	.entry__eight, .entry__bg, .entry [data-for] { transition: none !important; }
	.landing__glow { transition: none; }
}

/* Leaving for Google: everything but the chosen button fades, the eight spins up */
.is-leaving .glass:not(.is-chosen), .is-leaving .landing__note, .is-leaving .divider,
.is-leaving .field, .is-leaving .go, .is-leaving .card__help, .is-leaving .card__error {
	opacity: 0; transform: translateY(8px);
	transition: opacity .3s ease, transform .3s ease;
}
.glass.is-chosen { pointer-events: none; }

/* Theme choice in the account menu */
.theme-pick { display: flex; gap: 2px; margin-top: 10px; padding: 3px; border-radius: 999px; background: rgba(var(--fg), calc(.06 * var(--fg-k))); border: 1px solid var(--line); }
.theme-pick button {
	flex: 1; height: 30px; border: 0; border-radius: 999px; background: none; cursor: pointer;
	font: 400 13px/1 var(--font-text); color: var(--ink-soft);
}
.theme-pick button:hover { color: var(--ink); }
.theme-pick button[aria-checked="true"] { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.theme-pick button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* The tool icons are pastel glass made for a dark page; on light they get a bit more colour */
[data-theme="light"] .tool__icon { filter: saturate(1.7) brightness(.86); }

/* ---------- Transfer (transfer.d8.studio, its own site that shares these styles) ---------- */
.pill--soon { opacity: .45; cursor: default; }
.pill--soon:hover { background: none; color: var(--ink-soft); }
.transfer__back { white-space: nowrap; }

/* Send: a solid panel floating on the left, the big line as background on the right (as on WeTransfer) */
.send { position: relative; display: flex; align-items: center; gap: 48px; min-height: calc(100vh - 92px); padding: 16px 32px 72px; }
.send__panel {
	position: relative; z-index: 2; flex: none; width: 380px; display: flex; flex-direction: column; gap: 0;
	padding: 12px; border-radius: 28px; background: var(--surface-2); border: 1px solid var(--panel-border);
	box-shadow: 0 30px 80px rgba(var(--shade), calc(.5 * var(--shade-k))), inset 0 1px 0 rgba(var(--fg), calc(.06 * var(--fg-k)));
}
.send__add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.send__tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	height: 108px; border-radius: 18px; background: var(--accent-tint); color: var(--ink);
	font: 500 15px/1 var(--font-text); cursor: pointer; transition: background .2s ease;
}
.send__tile:hover { background: rgba(var(--fg), calc(.10 * var(--fg-k))); }
.send__tile:focus-within { outline: 2px solid var(--accent-solid); outline-offset: 2px; }
.send__tile-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-solid); color: var(--on-accent); }
.send__tile-icon--folder { border-radius: 10px; }
.send__hint { margin: 12px 0 4px; text-align: center; font-size: 13px; color: var(--ink-faint); }
.send__files { margin: 10px 4px 2px; }
.send__list { list-style: none; margin: 0; padding: 0; max-height: 168px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.send__list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 13px; }
.send__list li:hover { background: rgba(var(--fg), calc(.05 * var(--fg-k))); }
.send__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.send__size { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.send__remove { width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: var(--ink-faint); font-size: 17px; line-height: 1; cursor: pointer; }
.send__remove:hover { background: rgba(var(--fg), calc(.1 * var(--fg-k))); color: var(--ink); }
.send__summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 0 10px; }
.send__total { margin: 0; font-size: 12px; color: var(--ink-muted); }
.send__clear {
	padding: 6px 10px; border: 0; border-radius: 999px; background: none; color: var(--ink-muted);
	font: 500 12px/1 var(--font-text); cursor: pointer; transition: background .2s ease, color .2s ease;
}
.send__clear:hover { background: rgba(var(--fg), calc(.08 * var(--fg-k))); color: var(--ink); }
.send__clear:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 1px; }
.send__clear[hidden] { display: none; }
.send__from {
	display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 4px;
	margin-top: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.send__from span { grid-column: 1 / -1; font-size: 12px; color: var(--ink-muted); }
.send__from strong { font-weight: 400; font-size: 16px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.send__from svg { color: var(--accent-text); }
.send__field { display: block; border-bottom: 1px solid var(--line); }
.send__field input, .send__field textarea {
	display: block; width: 100%; padding: 16px; border: 0; background: none; color: var(--ink);
	font: 400 16px/1.4 var(--font-text); resize: none;
}
.send__field input::placeholder, .send__field textarea::placeholder { color: var(--ink-faint); }
.send__field input:focus, .send__field textarea:focus { outline: none; background: rgba(var(--fg), calc(.04 * var(--fg-k))); }
.send__field--password { display: flex; align-items: center; }
.send__field--password input { flex: 1; min-width: 0; height: 54px; padding-top: 0; padding-bottom: 0; padding-right: 4px; }
/* Bigger dots once something is typed, so they sit in proportion with the rest of the panel */
/* Password fields are text fields with masked characters (no "save password?" from the browser) */
input.is-masked:not(:placeholder-shown) { -webkit-text-security: disc; text-security: disc; }
.send__field--password input.is-masked:not(:placeholder-shown) { font-size: 26px; letter-spacing: .12em; line-height: 1; }
.send__field-actions { display: flex; gap: 2px; padding-right: 8px; }
.send__icon-button {
	display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px;
	background: none; color: var(--ink-muted); cursor: pointer; transition: background .2s ease, color .2s ease;
}
.send__icon-button:hover:not(:disabled) { background: rgba(var(--fg), calc(.08 * var(--fg-k))); color: var(--ink); }
.send__icon-button:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 1px; }
.send__icon-button:disabled { opacity: .35; cursor: default; }
.send__icon-button .icon-eye-off, .send__field--password.is-visible .icon-eye { display: none; }
.send__field--password.is-visible .icon-eye-off { display: block; }
.send__foot { display: flex; flex-direction: column; gap: 10px; padding: 14px 4px 4px; }
.send__expiry { position: relative; }
.send__expiry-button {
	position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 54px; padding: 0 44px 0 16px;
	border: 1px solid var(--line); border-radius: 18px; background: none; color: var(--accent-text);
	font: 400 16px/1 var(--font-text); text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.send__expiry-button:hover { background: rgba(var(--fg), calc(.04 * var(--fg-k))); }
.send__expiry-button:focus-visible, .send__expiry.is-open .send__expiry-button { outline: none; border-color: rgba(var(--fg), calc(.45 * var(--fg-k))); }
.send__expiry-button::after {
	content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
	border: solid var(--ink-soft); border-width: 0 1.6px 1.6px 0; rotate: 45deg; transition: rotate .2s ease, margin .2s ease;
}
.send__expiry.is-open .send__expiry-button::after { rotate: 225deg; margin-top: -2px; }
.send__expiry-list {
	position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 5; margin: 0; padding: 6px; list-style: none;
	border-radius: 18px; background: var(--surface-2); border: 1px solid var(--panel-border);
	-webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
	box-shadow: 0 18px 50px rgba(var(--shade), calc(.5 * var(--shade-k)));
	animation: expiry-in .16s ease;
}
.send__expiry-list:focus { outline: none; }
.send__expiry-list li {
	display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px;
	border-radius: 12px; color: var(--ink); font-size: 15px; cursor: pointer;
}
.send__expiry-list li.is-active { background: rgba(var(--fg), calc(.08 * var(--fg-k))); }
.send__expiry-list li[aria-selected="true"] { color: var(--accent-text); }
.send__expiry-list li[aria-selected="true"]::after {
	content: ""; width: 10px; height: 5px; border: solid currentColor; border-width: 0 0 1.8px 1.8px; rotate: -45deg; translate: 0 -2px;
}
@keyframes expiry-in { from { opacity: 0; translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .send__expiry-list { animation: none; } }
.send__go { margin-top: 0; font-size: 16px; }
.send__headline {
	flex: 1; margin: 0; text-align: center; font: 500 clamp(56px, 8vw, 128px)/.95 var(--font-head); letter-spacing: -.05em;
	color: var(--ink); opacity: .92; pointer-events: none;
}
.send__status { position: absolute; left: 32px; right: 32px; bottom: 24px; margin: 0; font-size: 12px; color: var(--ink-faint); text-align: right; }
.send__drop-overlay {
	position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
	background: rgba(var(--shade), calc(.45 * var(--shade-k))); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	border: 3px dashed var(--accent-solid); pointer-events: none;
}
.send__drop-overlay[hidden] { display: none; }
.send__drop-overlay span { font: 500 40px/1 var(--font-head); letter-spacing: -.03em; color: var(--ink); }

@media (max-width: 900px) {
	.send { flex-direction: column; align-items: stretch; gap: 24px; min-height: 0; padding: 8px 16px 32px; }
	.send__panel { width: 100%; max-width: 480px; margin: 0 auto; }
	.send__headline { order: -1; font-size: 44px; }
	.send__status { position: static; text-align: center; }
}
@media (max-width: 640px) {
	.transfer__back { display: none; }
}

/* Transfer download page (/t/<code>) and the result of sending: reuses the Send panel */
.get { gap: 0; padding: 20px 12px 12px; }
.get__head { display: flex; flex-direction: column; gap: 8px; padding: 6px 10px 14px; border-bottom: 1px solid var(--line); }
.get__head h2 { margin: 0; font: 500 26px/1.1 var(--font-head); letter-spacing: -.03em; color: var(--ink); overflow-wrap: anywhere; }
.get__from { margin: 0; font-size: 14px; color: var(--ink-muted); }
.get__from strong { font-weight: 500; color: var(--ink); }
.get__from span { display: block; font-size: 12px; color: var(--ink-faint); }
.get__message { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); overflow-wrap: anywhere; }
.get__list { max-height: 320px; margin: 10px 0 0; }
.get__list .send__icon-button { width: 30px; height: 30px; color: var(--accent-text); text-decoration: none; }
.get__total { margin: 8px 10px 0; }
.get__note { margin: 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--ink-faint); }
.send__go { text-decoration: none; }
.send__go.is-waiting { opacity: .6; cursor: progress; filter: saturate(.6); }
.get__empty { border-bottom: 0; padding: 18px 10px; }
.get__empty p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.get__lock { display: flex; flex-direction: column; gap: 12px; padding: 8px 6px 4px; }
.get__lock h2 { margin: 0; font: 500 24px/1.15 var(--font-head); letter-spacing: -.03em; }
.get__lock p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.get__lock-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-solid); color: var(--on-accent); }
.get__password { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }

/* Send: uploading and done states inside the panel */
.send__compose[hidden], .send__progress[hidden], .send__done[hidden] { display: none; }
.send__error { margin: 10px 4px 0; }
.send__error[hidden] { display: none; }
.send__progress, .send__done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 16px 20px; text-align: center; }
.send__ring { position: relative; width: 168px; height: 168px; }
.send__ring svg { width: 100%; height: 100%; rotate: -90deg; }
.send__ring circle { fill: none; stroke-width: 7; stroke: rgba(var(--fg), calc(.1 * var(--fg-k))); }
.send__ring .send__ring-bar { stroke: var(--accent-solid); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .4s ease; }
.send__ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 500 36px/1 var(--font-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.send__progress-title { margin: 6px 0 0; font: 500 18px/1.2 var(--font-text); color: var(--ink); }
.send__progress-detail { margin: 0; min-height: 1.4em; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.send__done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-solid); color: var(--on-accent); }
.send__done h2 { margin: 4px 0 0; font: 500 26px/1.1 var(--font-head); letter-spacing: -.03em; }
.send__done h2:focus { outline: none; }
.send__done p { margin: 0; font-size: 13px; color: var(--ink-muted); }
.send__link { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 6px; padding: 4px 6px 4px 14px; border: 1px solid var(--line); border-radius: 16px; }
.send__link input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; color: var(--ink); font: 400 14px/1 var(--font-text); }
.send__link input:focus { outline: none; }
.send__done-actions { display: flex; gap: 8px; margin-top: 6px; }
.send__done-actions .glass { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .send__ring .send__ring-bar { transition: none; } }

/* Transfer → My transfers */
.mine { gap: 24px; max-width: 1040px; }
.mine .hub__section-head .glass { text-decoration: none; }
.mine__empty { margin: 0; color: var(--ink-muted); font-size: 15px; }
.mine__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mine__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 16px 18px; }
.mine__item[hidden] { display: none; }
.mine__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mine__main strong { font-weight: 500; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine__main span { font-size: 13px; color: var(--ink-muted); }
.mine__downloads { font-size: 13px; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mine__actions { display: flex; align-items: center; gap: 6px; }
.mine__actions .glass { text-decoration: none; }
.mine__item.is-ready .mine__state { color: var(--on-accent); background: var(--accent-solid); border-color: transparent; }
.mine__item.is-expired, .mine__item.is-deleted { opacity: .55; }
@media (max-width: 720px) {
	.mine__item { grid-template-columns: minmax(0, 1fr) auto; }
	.mine__downloads { grid-column: 1; }
	.mine__actions { grid-column: 1 / -1; }
}

.mine__password { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.mine__password-label { font-size: 12px; color: var(--ink-muted); margin-right: 6px; }
.mine__password-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink); letter-spacing: .04em; margin-right: 4px; }
.mine__password .send__icon-button { width: 30px; height: 30px; }
.mine__password .icon-eye-off, .mine__password.is-visible .icon-eye { display: none; }
.mine__password.is-visible .icon-eye-off { display: block; }

/* Confirm dialog (Transfer), in the panel style */
.dialog {
	width: min(400px, calc(100vw - 32px)); margin: auto; padding: 28px 24px 20px; border: 1px solid var(--panel-border);
	border-radius: 24px; background: var(--surface-2); color: var(--ink); text-align: center;
	box-shadow: 0 30px 80px rgba(var(--shade), calc(.55 * var(--shade-k)));
}
.dialog[open] { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: dialog-in .18s ease; }
.dialog::backdrop { background: rgba(var(--shade), calc(.5 * var(--shade-k))); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 95, 120, .14); color: var(--bad); }
.dialog h2 { margin: 6px 0 0; font: 500 24px/1.15 var(--font-head); letter-spacing: -.03em; }
.dialog p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); overflow-wrap: anywhere; }
.dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 12px; }
.dialog__actions .glass { height: 46px; justify-content: center; }
.dialog__danger {
	height: 46px; border: 0; border-radius: 999px; background: #e5484d; color: #fff;
	font: 500 14px/1 var(--font-text); cursor: pointer; transition: filter .2s ease;
}
.dialog__danger:hover { filter: brightness(1.08); }
.dialog button:focus-visible { outline: 2px solid rgba(var(--fg), calc(.4 * var(--fg-k))); outline-offset: 2px; }
@keyframes dialog-in { from { opacity: 0; scale: .96; } }
@media (prefers-reduced-motion: reduce) { .dialog[open] { animation: none; } }
.mine__item { transition: opacity .25s ease, translate .25s ease; }
.mine__item.is-leaving { opacity: 0; translate: 0 -6px; }
.mine__empty[hidden] { display: none; }

/* Transfer → Receive */
.receive__intro { display: flex; align-items: center; gap: 14px; padding: 14px 16px 6px; }
.receive__intro p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.receive__intro .send__tile-icon { flex: none; }
.deliver__head { margin-bottom: 8px; }

/* Transfer → My transfers: kinds, and the received files page */
.mine__kind { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; color: var(--ink-soft); background: rgba(var(--fg), calc(.08 * var(--fg-k))); }
.mine__item.is-open .mine__state { color: var(--on-accent); background: var(--accent-solid); border-color: transparent; }
.mine__new { display: flex; gap: 8px; }
.mine__new .glass, .mine__files { text-decoration: none; }
.received .hub__section-head { align-items: flex-end; }
.received .hub__section-head > div { display: flex; flex-direction: column; gap: 6px; }
.received .hub__section-head > div > span { font-size: 13px; color: var(--ink-muted); }
.received__back { font-size: 13px; color: var(--ink-muted); text-decoration: none; }
.received__back:hover { color: var(--ink); }
.received__all { min-width: 200px; padding: 0 24px; text-decoration: none; margin-top: 0; }
.received__all.is-waiting { opacity: .6; cursor: progress; }
.received__upload { padding: 16px 18px 10px; }
.received__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.received__who strong { font-weight: 500; font-size: 16px; }
.received__who a { font-size: 13px; color: var(--accent-text); text-decoration: none; }
.received__who span { font-size: 13px; color: var(--ink-muted); }
.received .get__list { max-height: none; }
.deliver__sent { margin: 0 4px 10px; padding: 10px 6px 6px; border-radius: 16px; background: rgba(var(--fg), calc(.04 * var(--fg-k))); }
.deliver__sent[hidden] { display: none; }
.deliver__sent-title { margin: 0 8px 4px; font-size: 13px; font-weight: 500; color: var(--ink); }
.deliver__sent-title span { font-weight: 400; color: var(--ink-muted); }
.deliver__sent-list { max-height: 140px; }
.deliver__sent-list .send__name { color: var(--ink-soft); }
.deliver__check { width: 22px; text-align: center; color: var(--accent-text); font-size: 13px; }

/* My transfers: Sent vs Received. Sent = D8 yellow arrow up, Received = a cool blue arrow down. */
.mine__filter { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 4px; border-radius: 999px; background: rgba(var(--fg), calc(.06 * var(--fg-k))); border: 1px solid var(--line); align-self: flex-start; }
.mine__filter-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); font: 500 14px/1 var(--font-text); cursor: pointer; }
.mine__filter-tab:hover { color: var(--ink); }
.mine__filter-tab.is-active { background: rgba(var(--fg), calc(.14 * var(--fg-k))); color: var(--ink); }
.mine__filter-tab:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 2px; }
.mine__count { font-weight: 400; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.mine__icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.mine__icon--row { width: 42px; height: 42px; border-radius: 14px; }
.mine__icon--send { background: var(--accent-tint); color: var(--accent-text); }
.mine__icon--receive { --receive: #6fb6ff; background: rgba(111, 182, 255, .14); color: var(--receive); }
[data-theme="light"] .mine__icon--receive { --receive: #1d6fd6; background: rgba(29, 111, 214, .1); }
.mine__item--receive.is-open .mine__state, .mine__item--receive.is-ready .mine__state { color: #06213d; background: #6fb6ff; }
[data-theme="light"] .mine__item--receive.is-open .mine__state { color: #fff; background: #1d6fd6; }
@media (max-width: 720px) {
	.mine__item { grid-template-columns: auto minmax(0, 1fr) auto; }
	.mine__downloads { grid-column: 2; }
	.mine__actions { grid-column: 1 / -1; }
}

/* My transfers: how full the transfer disk is (shared with the SFTP accounts) */
.storage { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line); background: rgba(var(--fg), calc(.03 * var(--fg-k))); }
.storage__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.storage__head strong { font: 500 18px/1.2 var(--font-head); letter-spacing: -.02em; }
.storage__head span { font-size: 13px; color: var(--ink-muted); }
.storage__bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(var(--fg), calc(.08 * var(--fg-k))); }
.storage__part { display: block; height: 100%; min-width: 0; }
.storage__part[style*="width: 0.00%"] { display: none; }
.storage__part--mine, .storage__dot--mine { background: var(--accent-solid); }
.storage__part--transfer, .storage__dot--transfer { background: color-mix(in srgb, var(--accent-solid) 45%, transparent); }
.storage__part--other, .storage__dot--other { background: rgba(var(--fg), calc(.32 * var(--fg-k))); }
.storage__dot--free { background: rgba(var(--fg), calc(.08 * var(--fg-k))); box-shadow: inset 0 0 0 1px var(--line); }
.storage__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.storage__legend li { display: inline-flex; align-items: center; gap: 6px; }
.storage__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.storage.is-filling .storage__head strong { color: var(--warn); }
.storage.is-full .storage__head strong { color: var(--bad); }

/* Transfer → Admin */
.admin__people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.admin__person { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(var(--fg), calc(.03 * var(--fg-k))); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.admin__person:hover { background: rgba(var(--fg), calc(.07 * var(--fg-k))); }
.admin__person.is-active { border-color: var(--accent-tint-edge); background: var(--accent-tint); }
.admin__person:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 2px; }
.admin__person strong { font-weight: 500; font-size: 14px; }
.admin__person span { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.admin__owner { color: var(--ink-soft) !important; }
.admin__person[hidden] { display: none; }

/* Compact storage meter, bottom right on Send (links to My transfers, where the full one is) */
.storage-mini { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--fg), calc(.04 * var(--fg-k))); color: var(--ink-muted); font-size: 12px; text-decoration: none; transition: background .2s ease, color .2s ease; }
.storage-mini:hover { background: rgba(var(--fg), calc(.08 * var(--fg-k))); color: var(--ink-soft); }
.storage-mini:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 2px; }
.storage-mini__bar { display: flex; width: 72px; height: 5px; border-radius: 999px; overflow: hidden; background: rgba(var(--fg), calc(.1 * var(--fg-k))); }
.storage-mini__text strong { font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.storage-mini.is-filling .storage-mini__text strong { color: var(--warn); }
.storage-mini.is-full .storage-mini__text strong { color: var(--bad); }

/* ---------- Share (share.d8.studio) ---------- */
.shares__new { margin-top: 0; height: 46px; padding: 0 22px; text-decoration: none; }
.mine__icon--share { background: rgba(var(--fg), calc(.08 * var(--fg-k))); color: var(--ink-soft); font: 600 12px/1 var(--font-text); letter-spacing: .04em; }
.shares__item .mine__main strong a { color: inherit; text-decoration: none; }
.shares__item .mine__main strong a:hover { text-decoration: underline; }
.shares__item.is-active .mine__state, .share-item.is-approved .mine__state { color: var(--on-accent); background: var(--accent-solid); border-color: transparent; }
.share-item.is-changes .mine__state { color: #2a0a00; background: #ff9e3d; border-color: transparent; }
.shares__item.is-archived, .shares__item.is-expired { opacity: .6; }
.share-manage__title { display: flex; flex-direction: column; gap: 6px; }
.share-manage__title > span { font-size: 13px; color: var(--ink-muted); }
.share-manage .hub__section-head { align-items: flex-end; }
.share-access { display: flex; flex-direction: column; padding: 6px 18px; }
.share-access__row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.share-access__row:last-child { border-bottom: 0; }
.share-access__label { width: 90px; font-size: 13px; color: var(--ink-muted); }
.share-access__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.share-access__row .icon-eye-off, .share-access__row.is-visible .icon-eye { display: none; }
.share-access__row.is-visible .icon-eye-off { display: block; }
.share-upload { padding: 18px; display: flex; flex-direction: column; gap: 10px; border-style: dashed; border-color: var(--accent-tint-edge); }
.share-upload__drop { display: flex; align-items: center; gap: 14px; color: var(--accent-text); }
.share-upload__drop div { display: flex; flex-direction: column; gap: 4px; color: var(--ink-soft); font-size: 14px; }
.share-upload__drop strong { color: var(--ink); font-weight: 500; font-size: 16px; }
.share-upload__pick { color: var(--accent-text); text-decoration: underline; cursor: pointer; }
.share-upload__note { margin: 0; font-size: 12px; color: var(--ink-faint); }
.share-upload__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.share-upload__list:empty { display: none; }
.share-upload__list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 6px 10px; border-radius: 10px; background: rgba(var(--fg), calc(.04 * var(--fg-k))); font-size: 13px; }
.share-upload__state { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.share-upload__list li.is-done .share-upload__state { color: var(--accent-text); }
.share-upload__list li.is-error .share-upload__state { color: var(--bad); }
.share-item__version { cursor: pointer; }

/* Review page */
.review { gap: 32px; max-width: 1320px; }
.review__head { display: flex; flex-direction: column; gap: 10px; }
.review__head h1 { margin: 0; font: 500 clamp(32px, 4vw, 52px)/1.05 var(--font-head); letter-spacing: -.03em; }
.review__message { margin: 0; max-width: 720px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.review__who { margin: 0; font-size: 13px; color: var(--ink-muted); }
.review__who[hidden] { display: none; }
.review__link { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; text-decoration: underline; cursor: pointer; }
.review__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.review__item { display: flex; flex-direction: column; gap: 12px; padding: 16px; scroll-margin-top: 24px; }
.review__item.is-approved { border-color: var(--accent-tint-edge); }
.review__item.is-changes { border-color: rgba(255, 158, 61, .55); }
.review__item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review__item-head h2 { margin: 0; font: 500 18px/1.25 var(--font-head); letter-spacing: -.01em; }
.review__item-head span { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.review__version select { height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: 500 13px/1 var(--font-text); }
.review__stage { display: grid; place-items: center; min-height: 160px; padding: 16px; border-radius: 14px; background:
	repeating-conic-gradient(var(--check-a) 0% 25%, var(--check-b) 0% 50%) 50% / 20px 20px; overflow: hidden; }
.review__stage img, .review__stage video { display: block; max-width: 100%; max-height: 70vh; border-radius: 4px; }
.review__frame { position: relative; overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.review__frame iframe { display: block; border: 0; background: #fff; transform-origin: 0 0; }
.review__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review__status { font-size: 13px; color: var(--ink-muted); }
.review__item.is-approved .review__status { color: var(--accent-text); }
.review__item.is-changes .review__status { color: #ff9e3d; }
.review__approve { height: 36px; margin-top: 0; padding: 0 18px; font-size: 14px; }
.review__item.is-approved .review__approve { outline: 2px solid var(--accent-solid); outline-offset: 2px; }
.review__item.is-changes .review__changes { border-color: #ff9e3d; color: #ff9e3d; }
.review__comments { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.review__comments ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.review__comments ul:empty { display: none; }
.review__comments li { padding: 10px 12px; border-radius: 12px; background: rgba(var(--fg), calc(.05 * var(--fg-k))); }
.review__comments li.is-team { background: var(--accent-tint); }
.review__comments li strong { font-weight: 500; font-size: 13px; }
.review__comments li span { margin-left: 8px; font-size: 12px; color: var(--ink-faint); }
.review__comments li p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); overflow-wrap: anywhere; }
.review__form { display: flex; gap: 8px; align-items: flex-end; }
.review__form textarea { flex: 1; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: 400 14px/1.4 var(--font-text); resize: vertical; }
.review__form textarea:focus { outline: none; border-color: rgba(var(--fg), calc(.45 * var(--fg-k))); }
.review__name form { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.review__name .send__field { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.review__name .dialog__actions { grid-template-columns: 1fr auto; }
.review__name .go { height: 44px; margin-top: 0; padding: 0 22px; }
.review__tools [data-replay][hidden] { display: none; }
a.mine__filter-tab { text-decoration: none; }
/* Receive: FileZilla option; client page: the SFTP login */
.receive__option { display: flex; gap: 12px; align-items: flex-start; margin: 4px 4px 2px; padding: 12px 14px; border-radius: 16px; cursor: pointer; background: rgba(var(--fg), calc(.04 * var(--fg-k))); }
.receive__option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--yellow); }
.receive__option span { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.receive__option strong { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.deliver__sftp { margin: 12px 4px 0; padding: 4px 14px; border-radius: 16px; background: rgba(var(--fg), calc(.04 * var(--fg-k))); }
.deliver__sftp[open] { padding-bottom: 14px; }
.deliver__sftp summary { padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.deliver__sftp > p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.deliver__sftp .get__note { margin-top: 10px; text-align: left; }
.deliver__login { display: grid; gap: 2px; margin: 0 0 12px; }
.deliver__login div { display: grid; grid-template-columns: 84px 1fr; align-items: center; min-height: 36px; }
.deliver__login dt { font-size: 13px; color: var(--ink-muted); }
.deliver__login dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; min-width: 0; }
.deliver__login code { font: 500 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
