/* Arc foundation dark/neutral roles, kept local to the public access screen. */
:root { --background: oklch(0.148 0.004 228.8); --foreground: oklch(96% 0 0); --text-secondary: oklch(77% 0 0); --radius-control: 1.125rem; --control-height-md: 2.75rem; color-scheme: dark; font-family: ui-sans-serif, system-ui, sans-serif; color: var(--foreground); background: var(--background); }
:root[data-theme="light"] { --background: oklch(100% 0 0); --foreground: oklch(15% 0 0); --text-secondary: oklch(46% 0 0); color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
main { width: min(100%, 360px); }
.mark { width: 32px; height: 32px; margin-bottom: 20px; }
.label { color: var(--text-secondary); font-size: 14px; margin: 0 0 8px; }
h1 { font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.035em; margin: 0 0 16px; }
p { line-height: 1.5; }
#status { min-height: 48px; font-size: 16px; }
.detail { font-size: 12px; color: var(--text-secondary); margin-top: 28px; }
button { color: var(--background); background: var(--foreground); font: inherit; border: 0; border-radius: var(--radius-control); min-height: var(--control-height-md); padding: 0 16px; cursor: pointer; }
button:focus-visible { outline: none; opacity: .84; }
@media (hover: hover) and (pointer: fine) { button:hover:not(:disabled) { opacity: .91; } }
button:active:not(:disabled) { opacity: .84; }
button:disabled { opacity: .55; cursor: wait; }
[hidden] { display: none !important; }
/* Pairing screen additions. */
body { place-items: start center; }
h2 { font-size: 16px; font-weight: 500; margin: 28px 0 12px; }
ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-control); background: color-mix(in oklch, var(--foreground) 6%, transparent); }
li .name { font-size: 14px; overflow-wrap: anywhere; }
li .state { grid-column: 1; font-size: 12px; color: var(--text-secondary); }
li .state[data-online="true"]::before { content: "● "; color: oklch(72% .17 150); }
li .state[data-online="false"]::before { content: "○ "; }
li .actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; }
button.secondary, li button { color: var(--foreground); background: color-mix(in oklch, var(--foreground) 12%, transparent); }
li button { min-height: 2.75rem; padding: 0 12px; font-size: 13px; }
pre { margin: 8px 0 12px; padding: 12px 14px; border-radius: var(--radius-control); background: color-mix(in oklch, var(--foreground) 8%, transparent); font: 12px/1.5 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font: 12px ui-monospace, monospace; }
.step { font-size: 14px; margin: 12px 0 0; }
#status { min-height: 24px; }
input { width: 100%; margin: 8px 0 12px; padding: 0 14px; min-height: var(--control-height-md); border-radius: var(--radius-control); border: 1px solid color-mix(in oklch, var(--foreground) 22%, transparent); background: transparent; color: var(--foreground); font: 14px ui-monospace, monospace; }
input:focus-visible { outline: none; border-color: var(--foreground); }
label.step { display: block; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin: 16px 0 0; font-size: 14px; line-height: 1.4; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; accent-color: var(--foreground); }
/* Morphing title: each letter is its own box so it can slide, appear or leave; the line never wraps. */
#title { position: relative; min-height: 1.2em; white-space: nowrap; }
.morph-letter { display: inline-block; white-space: pre; will-change: transform, opacity, filter; }
.morph-leaving { position: absolute; pointer-events: none; }
/* Pôle 11 (25 Oct.): the app's own dark background (arc/foundation.css), and nothing shown on an ordinary opening. */
body[data-quiet] main { visibility: hidden; }
/* A slow opening (2 s): its one line only, never the page around it. */
body[data-quiet][data-slow] #status { visibility: visible; }
