/* frontend/shared/kit.css — the unified UI's component kit (docs/redesign/unified-ui/PLAN.md, wave 1).
 *
 * Every host screen is drawn from these parts: the capsule, the secondary pill, the field, the chip,
 * the switch, the sheet, the popover and its menu, the toast and the confirm. The parts Stefan approved
 * on the option 1 screens (docs/redesign/simple-flow/screens/frame/dim.css and app.css) are restated here
 * on the product's own tokens, and two things come with them.
 *
 * First, the classes the shipped screens already use (.btn, .btn-primary, .btn-secondary, bare inputs,
 * .tab, .switch-slider, .ig-dialog, .ig-toast, .bar-button, .bar-menu) are given the same materials, so
 * a screen is restyled by loading this file and without a layout change: a control keeps its size and
 * only what it is made of moves. Second, the mockup's own class names (dn-cap, dn-fld, dn-chip, ap-btn,
 * ap-sw-row, ap-sheet, ap-pop, ap-mi, ap-toast) are kept, so the screen specs read as instructions for
 * the build and a later wave takes a part by the name the spec gives it.
 *
 * Nothing here is written as a literal colour, so the file adds nothing to scripts/ui_audit.mjs's count and
 * follows the look (cream, dark) and the event's colour for free. Everything sits under [data-look], which
 * only a host page sets, so the guest and seat pages that load styles.css are not touched. Load this file
 * after styles.css and before a screen's own stylesheet. */

[data-look] {
  /* What a free standing paper object wears: a stroke, and a contact shadow under it. */
  --kit-ring: inset 0 0 0 1.5px var(--stroke), 0 10px 18px -14px color-mix(in srgb, var(--shadow-color) 50%, transparent);
  --kit-field: inset 0 0 0 1.5px var(--stroke), 0 14px 26px -20px color-mix(in srgb, var(--shadow-color) 60%, transparent);
  /* A field with the cursor in it, and any control that has the keyboard's focus. */
  --kit-focus: inset 0 0 0 2.5px var(--primary), 0 0 0 5px color-mix(in srgb, var(--primary) 16%, transparent);
  /* The one filled thing on a screen: the main colour, lit from above, standing on its own shadow. */
  --kit-fill: linear-gradient(180deg, var(--primary-hi), var(--primary));
  --kit-cap: inset 0 1.5px 0 color-mix(in srgb, var(--primary-ink) 34%, transparent), inset 0 -2px 0 color-mix(in srgb, var(--shadow-color) 14%, transparent), 0 2px 4px color-mix(in srgb, var(--primary) 30%, transparent), 0 18px 28px -12px color-mix(in srgb, var(--primary) 62%, transparent);
  /* What floats over a screen, and the page itself frosted behind it. */
  --kit-float: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent), 0 4px 8px color-mix(in srgb, var(--shadow-color) 8%, transparent), 0 40px 70px -22px color-mix(in srgb, var(--shadow-color) 50%, transparent);
  --kit-dim: color-mix(in srgb, var(--surface) 58%, transparent);
  /* A row or a menu item under the pointer. */
  --kit-wash: color-mix(in srgb, var(--ink) 6%, transparent);
  --kit-press: color-mix(in srgb, var(--ink) 9%, transparent);
}

/* ---------- Type ---------- */
[data-look] :is(h1, h2, h3, .display) { font-weight: 800; letter-spacing: -0.03em; }
/* The wordmark is the brand's own drawing of its name, so it keeps the serif and its weight. */
[data-look] .topbar__logo { font-family: var(--font-logo); font-weight: 500; letter-spacing: 0; }
[data-look] .dn-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-look] .dn-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- The main action: one capsule ---------- */
/* .btn-primary keeps the size it has on every screen and takes the material; .dn-cap is the same material at the size of
   the flow's own capsule. */
[data-look] :is(.btn-primary, .dn-cap) {
  border: 0;
  background: var(--kit-fill);
  color: var(--primary-ink);
  letter-spacing: -0.01em;
  box-shadow: var(--kit-cap);
  transition: transform 500ms var(--spring-soft), box-shadow var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
[data-look] .dn-cap {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 64px; padding: 0 40px; border-radius: var(--radius-full); cursor: pointer; text-decoration: none;
  font-family: var(--font-ui); font-size: var(--text-md); font-weight: 700; line-height: 1;
}
[data-look] .dn-cap .dn-i { width: 22px; height: 22px; stroke-width: 2.4; }
[data-look] :is(.btn-primary, .dn-cap):active:not(:disabled):not([aria-disabled="true"]) { transform: scale(0.96); transition-duration: 120ms; }
[data-look] :is(.btn-primary, .dn-cap)[aria-busy="true"] { cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  [data-look] :is(.btn-primary, .dn-cap):hover:not(:disabled):not([aria-disabled="true"]) { transform: translateY(-2px); box-shadow: var(--kit-cap); }
}
/* Resting: sunk paper with a hairline, so a capsule that cannot be pressed yet does not look pressed or coloured. */
[data-look] :is(.btn-primary, .dn-cap):is(:disabled, [aria-disabled="true"]) {
  opacity: 1; cursor: not-allowed; transform: none; background: var(--surface-sunken); color: var(--ink-faint); box-shadow: inset 0 0 0 1.5px var(--line);
}
/* A destructive capsule is red words in a red outline on paper, never a filled red, so the only filled colour on a screen is the event's own. */
[data-look] .dn-cap.is-danger {
  color: var(--err); background: var(--surface-raised);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--err) 72%, transparent), 0 14px 24px -16px color-mix(in srgb, var(--shadow-color) 45%, transparent);
}
[data-look] .dn-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: kit-spin 700ms linear infinite; }
@keyframes kit-spin { to { transform: rotate(360deg); } }

/* ---------- The second action: a white pill with a stroke ---------- */
[data-look] :is(.btn-secondary, .ap-btn) {
  border: 0;
  background: var(--surface-raised);
  color: var(--ink);
  letter-spacing: -0.01em;
  box-shadow: var(--kit-ring);
  transition: transform 500ms var(--spring-soft), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
[data-look] .ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius-full); cursor: pointer; text-decoration: none;
  font-family: var(--font-ui); font-size: var(--text-base); font-weight: 650; line-height: 1;
}
[data-look] .ap-btn.is-sm { min-height: 44px; padding: 0 18px; font-size: var(--text-sm); }
[data-look] .ap-btn.is-quiet { padding: 0 18px; background: none; box-shadow: none; }
[data-look] .ap-btn.is-danger { color: var(--err); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--err) 55%, transparent); }
[data-look] .ap-btn.is-danger.is-quiet { box-shadow: none; }
[data-look] :is(.btn-secondary, .ap-btn):active:not(:disabled):not([aria-disabled="true"]) { transform: scale(0.96); transition-duration: 120ms; }
[data-look] .ap-btn:is(:disabled, [aria-disabled="true"]) { cursor: not-allowed; color: var(--ink-faint); background: var(--surface-sunken); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (hover: hover) and (pointer: fine) {
  [data-look] :is(.btn-secondary, .ap-btn):hover:not(:disabled):not([aria-disabled="true"]) { background: var(--surface-raised); transform: translateY(-2px); }
  [data-look] .ap-btn.is-quiet:hover:not(:disabled) { background: var(--kit-wash); transform: none; }
}
/* An icon button: a round 48px target with no box until it is lit. */
[data-look] .ap-ib { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink); background: none; transition: background-color var(--dur-fast) var(--ease-out), transform 120ms var(--ease-out); }
[data-look] .ap-ib.is-ring { background: var(--surface-raised); box-shadow: var(--kit-ring); }
[data-look] .ap-ib:active { transform: scale(0.96); }
[data-look] .ap-ib:disabled { cursor: not-allowed; opacity: 0.4; }
@media (hover: hover) and (pointer: fine) { [data-look] .ap-ib:not(:disabled):hover { background: var(--kit-wash); } }

/* ---------- Fields ---------- */
/* A field the screens already draw keeps its height and takes the material: paper, an inset stroke, the main colour when it has the cursor. */
[data-look] :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="number"], input[type="search"], input[type="url"], textarea, select, .modern-input) {
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--kit-field);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
[data-look] :is(input, textarea, select, .modern-input):focus { outline: 0; border: 0; box-shadow: var(--kit-focus); }
[data-look] :is(input, textarea, select)[aria-invalid="true"] { box-shadow: inset 0 0 0 2.5px var(--err), 0 14px 26px -20px color-mix(in srgb, var(--shadow-color) 60%, transparent); }
/* The flow's field: 68px with its label inside, which lifts to the top edge once there is a value or the cursor. The placeholder is a single
   space, which is only there so the stylesheet can tell an empty field from a filled one. */
[data-look] .dn-fld { position: relative; }
[data-look] .dn-fld input { display: block; width: 100%; height: 68px; padding: 26px 60px 6px 20px; border-radius: var(--radius-lg); font-size: var(--text-md); font-weight: 500; line-height: 1.2; }
[data-look] .dn-fld input::placeholder { color: transparent; }
[data-look] .dn-fld label { position: absolute; left: 20px; top: 0; height: 68px; display: flex; align-items: center; margin: 0; font-size: var(--text-md); font-weight: 500; line-height: 1; color: var(--ink-muted); pointer-events: none; transform-origin: 0 50%; transition: transform 280ms var(--ease-out), color var(--dur-fast) var(--ease-out); }
[data-look] .dn-fld input:focus ~ label, [data-look] .dn-fld input:not(:placeholder-shown) ~ label { transform: translateY(-16px) scale(0.76); font-weight: 650; }
[data-look] .dn-fld input:focus ~ label { color: var(--primary-strong); }
[data-look] .dn-fld input[aria-invalid="true"] ~ label { color: var(--err); }
[data-look] .dn-err { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-left: 4px; font-size: var(--text-sm); font-weight: 650; line-height: 1.3; color: var(--err); }
[data-look] .dn-err[hidden] { display: none; }

/* ---------- A choice among a few: a chip that lifts when it is the one ---------- */
[data-look] .dn-chips { display: flex; flex-wrap: wrap; gap: 12px; }
[data-look] :is(.dn-chip, .tab) {
  position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: var(--radius-full); cursor: pointer;
  background: var(--surface-raised); color: var(--ink); box-shadow: var(--kit-ring); letter-spacing: -0.01em;
  transition: transform 500ms var(--spring-soft), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
[data-look] .dn-chip { min-height: 52px; padding: 0 24px; font-size: var(--text-base); font-weight: 650; }
/* The tick enters on the chip that is the one: scale, opacity and blur on one beat, the way every icon here swaps. */
[data-look] .dn-chip .dn-i { width: 0; height: 18px; opacity: 0; transform: scale(0.25); filter: blur(4px); stroke-width: 2.6; transition: width 200ms var(--icon-ease), opacity 200ms var(--icon-ease), transform 200ms var(--icon-ease), filter 200ms var(--icon-ease); }
[data-look] .dn-chip:has(input:checked) .dn-i { width: 18px; opacity: 1; transform: scale(1); filter: blur(0); }
[data-look] .dn-chip:has(input:checked), [data-look] .tab.active {
  background: var(--kit-fill); color: var(--primary-ink);
  box-shadow: inset 0 1.5px 0 color-mix(in srgb, var(--primary-ink) 30%, transparent), 0 14px 24px -12px color-mix(in srgb, var(--primary) 60%, transparent);
}
[data-look] .dn-chip:has(input:checked) { transform: translateY(-3px); }
[data-look] .dn-chip:active { transform: scale(0.96); transition-duration: 120ms; }
[data-look] .dn-chip:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  [data-look] .dn-chip:hover { transform: translateY(-2px); }
  [data-look] .dn-chip:has(input:checked):hover { transform: translateY(-4px); }
  [data-look] .tab:hover { border: 0; }
}

/* ---------- A switch, and the row that holds it ---------- */
/* Off is a ring with a small knob in the muted ink, which holds 3 to 1 against the page; on is the main colour with the white knob. */
[data-look] .ap-sw-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 8px 4px; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; font-size: inherit; font-weight: inherit; }
[data-look] .ap-sw-t { display: grid; gap: 2px; min-width: 0; }
[data-look] .ap-sw-t b { font-size: var(--text-base); font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
[data-look] .ap-sw-t small { font-size: var(--text-sm); font-weight: 500; line-height: 1.35; color: var(--ink-muted); text-wrap: pretty; }
[data-look] .ap-sw { position: relative; flex: none; width: 56px; height: 34px; border-radius: var(--radius-full); background: var(--surface-raised); box-shadow: inset 0 0 0 2px var(--ink-muted); transition: background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
[data-look] .ap-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-muted); transform: scale(0.68); transition: transform 450ms var(--spring-soft), background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
[data-look] .ap-sw-row:has(input:checked) .ap-sw { background: var(--kit-fill); box-shadow: inset 0 1.5px 0 color-mix(in srgb, var(--primary-ink) 30%, transparent); }
[data-look] .ap-sw-row:has(input:checked) .ap-sw::after { background: var(--primary-ink); box-shadow: 0 2px 4px color-mix(in srgb, var(--shadow-color) 30%, transparent); transform: translateX(22px); }
[data-look] .ap-sw-row:active .ap-sw::after { transform: scale(0.62); }
[data-look] .ap-sw-row:has(input:checked):active .ap-sw::after { transform: translateX(22px) scale(0.94); }
[data-look] .ap-sw-row:has(input:focus-visible) .ap-sw { outline: 3px solid var(--ink); outline-offset: 3px; }
/* The switch the screens already draw, restyled in place at the size it has. */
[data-look] .switch-slider { background: var(--surface-raised); box-shadow: inset 0 0 0 2px var(--ink-muted); }
[data-look] .switch-slider:before { background: var(--ink-muted); transform: scale(0.68); transition: transform 450ms var(--spring-soft), background-color 200ms var(--ease-out); box-shadow: none; }
[data-look] .switch-control input:checked + .switch-slider { background: var(--kit-fill); box-shadow: none; }
[data-look] .switch-control input:checked + .switch-slider:before { background: var(--primary-ink); transform: translateX(20px); box-shadow: 0 2px 4px color-mix(in srgb, var(--shadow-color) 30%, transparent); }
[data-look] .switch-control input:focus-visible + .switch-slider { outline: 3px solid var(--ink); outline-offset: 3px; }

/* The shared setting row (shared/settingRow.js): a picture, the switch's sentence, and under it the tray the choice needs. */
[data-look] .setting-group { display: grid; gap: 4px; }
[data-look] .setting-group__summary { margin: 0 0 8px; font-size: var(--text-sm); font-weight: 650; line-height: 1.35; color: var(--ink-muted); }
[data-look] .setting-group__summary.is-warn { color: var(--err); }
[data-look] .setting-row { display: grid; }
[data-look] .setting-row__head { display: flex; align-items: center; gap: 12px; }
[data-look] .setting-row__head > .ap-sw-row { flex: 1; min-width: 0; }
[data-look] .setting-row__pic { flex: none; width: 40px; height: 40px; object-fit: contain; -webkit-user-drag: none; user-select: none; }
[data-look] .setting-row__tray { display: grid; gap: 12px; padding: 4px 4px 12px 56px; }
[data-look] .setting-row__tray[hidden] { display: none; }

/* ---------- What opens over a screen ---------- */
/* One scrim stands behind each panel: a press on it closes the panel and reaches nothing under it. */
[data-look] .ap-scrim { position: fixed; inset: 0; background: transparent; opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease-out); }
[data-look] .ap-scrim.is-on { opacity: 1; pointer-events: auto; }
[data-look] .ap-scrim.is-dim { background: var(--kit-dim); -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15); }
[data-look] .ap-layer { position: fixed; display: flex; flex-direction: column; max-width: 100vw; color: var(--ink); background: var(--surface-raised); box-shadow: var(--kit-float); opacity: 0; visibility: hidden; pointer-events: none; outline: 0; transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s 200ms; }
[data-look] .ap-layer.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity 200ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s; }
/* A popover stands under the button that opened it and grows from it. */
[data-look] .ap-pop { padding: 8px; overflow: auto; border-radius: var(--radius-xl); transform-origin: var(--po, 100% 0); transform: scale(0.96) translateY(-6px); }
[data-look] .ap-pop[data-side="above"] { transform: scale(0.96) translateY(6px); }
[data-look] .ap-pop.is-on, [data-look] .ap-pop[data-side="above"].is-on { transform: none; transition: opacity 180ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s; }
/* A menu item: its corners run parallel to the panel's, the panel's radius less the padding between item and edge. */
[data-look] .ap-mi { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 6px 12px; border: 0; border-radius: var(--radius-md); cursor: pointer; text-align: left; text-decoration: none; font-size: var(--text-base); font-weight: 650; line-height: 1.2; color: var(--ink); background: none; transition: background-color 140ms var(--ease-out); }
[data-look] .ap-mi > .dn-i:first-child { width: 22px; height: 22px; color: var(--ink-muted); }
[data-look] .ap-mi .ap-mi-ck { width: 20px; height: 20px; margin-left: auto; stroke-width: 2.6; opacity: 0; transform: scale(0.25); filter: blur(4px); transition: opacity 200ms var(--icon-ease), transform 200ms var(--icon-ease), filter 200ms var(--icon-ease); }
[data-look] .ap-mi:is([aria-selected="true"], [aria-checked="true"]) .ap-mi-ck { opacity: 1; transform: scale(1); filter: blur(0); }
[data-look] .ap-mi.is-danger, [data-look] .ap-mi.is-danger > .dn-i:first-child { color: var(--err); }
[data-look] .ap-mi:disabled { cursor: default; opacity: 0.5; }
[data-look] .ap-mi:active { background: var(--kit-press); }
[data-look] .ap-mi-rule { height: 1px; margin: 6px 12px; background: var(--line); }
@media (hover: hover) and (pointer: fine) { [data-look] .ap-mi:not(:disabled):hover { background: var(--kit-wash); } }
/* A sheet is a side sheet on a computer and the bottom of the screen on a phone. */
[data-look] .ap-sheet { top: 12px; right: 12px; bottom: 12px; width: min(520px, calc(100vw - 24px)); border-radius: var(--radius-xl); transform: translateX(28px); }
[data-look] .ap-sh-grip { display: none; width: 40px; height: 5px; margin: 10px auto 0; border-radius: var(--radius-full); background: color-mix(in srgb, var(--ink) 18%, transparent); }
[data-look] .ap-sh-head { display: flex; align-items: center; gap: 12px; padding: 20px 14px 8px 28px; }
[data-look] .ap-sh-title { flex: 1; margin: 0; font-size: var(--text-lg); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
[data-look] .ap-sh-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 8px 28px 28px; }
[data-look] .ap-sh-foot { flex: none; display: flex; align-items: flex-start; justify-content: flex-end; gap: 12px; padding: 16px 28px 24px; box-shadow: 0 -1px 0 var(--line); }
/* A toast says what just happened and goes by itself: the foot of a computer's screen, the top of a phone's. */
[data-look] .ap-toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: 28px; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px)); min-height: 56px; padding: 8px 12px 8px 14px; border-radius: var(--radius-full); color: var(--inverse-ink); background: var(--inverse); box-shadow: 0 24px 40px -14px color-mix(in srgb, var(--shadow-color) 60%, transparent); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 14px); transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s 200ms; }
[data-look] .ap-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 200ms var(--ease-out), transform 400ms var(--spring-soft), visibility 0s; }
[data-look] .ap-toast-tx { font-size: var(--text-base); font-weight: 600; line-height: 1.3; text-wrap: pretty; }
@media (max-width: 760px) {
  [data-look] .ap-pop, [data-look] .ap-sheet { inset: auto 0 0 0; width: 100%; height: auto; max-height: 88dvh; margin: 0; padding-bottom: env(safe-area-inset-bottom); border-radius: var(--radius-xl) var(--radius-xl) 0 0; transform-origin: 50% 100%; transform: translateY(100%); }
  [data-look] .ap-pop[data-side="above"] { transform: translateY(100%); }
  [data-look] .ap-pop[data-side="above"].is-on { transform: none; }
  [data-look] .ap-layer.is-on { transition: opacity 200ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s; }
  [data-look] .ap-sh-grip { display: block; }
  [data-look] .ap-sh-head { padding-top: 8px; padding-left: 24px; }
  [data-look] .ap-sh-body { padding: 8px 24px 24px; }
  [data-look] .ap-sh-foot { flex-direction: column-reverse; align-items: stretch; padding: 14px 24px calc(18px + env(safe-area-inset-bottom)); }
  [data-look] .ap-toast { bottom: auto; top: 68px; transform: translate(-50%, -14px); }
}

/* ---------- The questions and messages the product already asks (shared/dialog.js) ---------- */
/* The logic stays in dialog.js; only what it is made of moves. A confirm is paper floating over the page frosted, its main answer the
   capsule and its way out the white pill. An answer that takes something away is the main answer of its question and looks like every
   other one (Stefan, 4 October 2026); red is left for what went wrong. */
[data-look] .ig-dialog { border-radius: var(--radius-xl); background: var(--surface-raised); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--kit-float); }
[data-look] .ig-dialog[open] { padding: 24px 22px 20px; }
[data-look] .ig-dialog::backdrop { background: var(--kit-dim); -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15); }
[data-look] .ig-dialog__title { font-size: var(--text-md); font-weight: 800; letter-spacing: -0.025em; }
[data-look] .ig-dialog__body { font-size: var(--text-sm); color: var(--ink-muted); }
[data-look] .ig-dialog__require-input, [data-look] .ig-dialog :is(input:not([type="checkbox"], [type="radio"]), textarea, select) { border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: var(--kit-field); color: var(--ink); }
[data-look] .ig-dialog__require-input:focus, [data-look] .ig-dialog :is(input, textarea, select):focus { box-shadow: var(--kit-focus); }
[data-look] .ig-dialog__btn { min-height: 52px; background: var(--surface-raised); color: var(--ink); box-shadow: var(--kit-ring); letter-spacing: -0.01em; transition: transform 500ms var(--spring-soft), background-color var(--dur-fast) var(--ease-out); }
[data-look] .ig-dialog__btn:active:not(:disabled) { transform: scale(0.96); transition-duration: 120ms; }
/* One quiet ring in the kit's focus colour, set outside the button so it adds to every variant's own edge instead of replacing it. dialog.js focuses the cancelling choice on open and asks for the ring, so it is the first thing a person sees and must not be loud. */
[data-look] .ig-dialog__btn:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { [data-look] .ig-dialog__btn:hover:not(:disabled) { background: var(--surface-raised); transform: translateY(-2px); } }
[data-look] .ig-dialog__btn--primary,
[data-look] .ig-dialog__btn--primary:hover:not(:disabled) { background: var(--kit-fill); color: var(--primary-ink); box-shadow: var(--kit-cap); }
/* An answer that takes something away is the same red words in a red outline as every other destructive button (Stefan's review, 15 November 2026), so the capsule stays the event's alone. */
[data-look] .ig-dialog__btn--danger,
[data-look] .ig-dialog__btn--danger:hover:not(:disabled) { background: var(--surface-raised); color: var(--err); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--err) 72%, transparent); }
[data-look] .ig-toast { background: var(--inverse); color: var(--inverse-ink); font-size: var(--text-sm); font-weight: 600; box-shadow: 0 24px 40px -14px color-mix(in srgb, var(--shadow-color) 60%, transparent); }
[data-look] .ig-toast--error { background: var(--err); color: var(--primary-ink); }

/* ---------- The bar's buttons and their menus ---------- */
[data-look] .bar-button { border: 0; background: var(--surface-raised); box-shadow: var(--kit-ring); font-weight: 650; transition: transform 500ms var(--spring-soft), background-color var(--dur-fast) var(--ease-out); }
[data-look] .bar-button:hover, [data-look] .bar-button[aria-expanded="true"] { border: 0; background: var(--surface-raised); }
[data-look] .bar-button:focus-visible { box-shadow: var(--kit-focus); }
[data-look] .bar-menu { border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--kit-float); }
[data-look] .bar-menu__option { border-radius: var(--radius-sm); color: var(--ink); }
[data-look] .bar-menu__option[aria-checked="true"] { background: var(--primary-soft); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { [data-look] .bar-menu__option:not([aria-checked="true"]):hover { background: var(--kit-wash); } }

/* ---------- Motion that is not wanted ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-look] :is(.btn-primary, .dn-cap, .btn-secondary, .ap-btn, .dn-chip, .tab, .ig-dialog__btn, .bar-button) { transition-duration: 0.01ms; }
  [data-look] .ap-sw::after, [data-look] .switch-slider:before { transition-duration: 0.01ms; }
  [data-look] :is(.btn-primary, .dn-cap, .btn-secondary, .ap-btn, .dn-chip, .ig-dialog__btn):hover { transform: none; }
  [data-look] .ap-layer, [data-look] .ap-layer.is-on, [data-look] .ap-pop[data-side="above"], [data-look] .ap-pop[data-side="above"].is-on { transform: none; transition-duration: 120ms; }
  [data-look] .ap-toast, [data-look] .ap-toast.is-on { transform: translateX(-50%); transition-duration: 120ms; }
  [data-look] .dn-spin { animation-duration: 1.4s; }
}

/* ---------- The studios' loading (loadingDots.js) ---------- */
/* Three dots in the ink rise and brighten in turn; under reduced motion they only brighten. */
.loading-dots { display: flex; gap: 8px; pointer-events: none; }
.loading-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: 0.18;
  animation: loading-dots 1.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 160ms; }
.loading-dots span:nth-child(3) { animation-delay: 320ms; }
@keyframes loading-dots { 0%, 70%, 100% { opacity: 0.18; transform: translateY(0); } 30% { opacity: 0.75; transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .loading-dots span { animation-name: loading-dots-calm; } }
@keyframes loading-dots-calm { 0%, 70%, 100% { opacity: 0.18; } 30% { opacity: 0.75; } }
/* A studio's root holds this until the studio draws; loadingDots.js moves the dots across to the middle of the window. */
.studio-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.studio-loading > .loading-dots { translate: var(--to-middle, 0px) 0; }
