/* AmbientOS Tilt sheet (assets/tilt-sheet.js). Approved board v2-studio-web-tilt: one fluid sheet over the blurred
   canvas, Tilts grouped by what the piece does in columns (three at desktop, two on a phone), the chosen Tilt tinted,
   then draft, check and record in the same sheet. Glass on the sheet and on tappable rows only.
   Reads --aosh-* tokens when the host has them. Copyright © 2026 Slate HQ Ltd. All rights reserved and asserted. */
.aot-scrim,.aot-screen{--aot-ink:var(--aosh-ink,#171a20);--aot-ink2:var(--aosh-ink2,#52565e);--aot-sep:var(--aosh-sep,rgba(34,39,51,.13));--aot-track:var(--aosh-track,rgba(34,39,51,.1));
  --aot-sheet:color-mix(in srgb,var(--aos-ground) 92%,transparent);--aot-row:color-mix(in srgb,var(--aos-glass-tile) 60%,transparent);--aot-on:color-mix(in srgb,var(--aos-hub-movement) 14%,transparent);--aot-on-ink:var(--aos-hub-movement);--aot-btn:var(--aosh-btn,var(--aos-ink));--aot-btn-ink:var(--aosh-btn-ink,var(--aos-ground))}
.aot-scrim{position:fixed;inset:0;z-index:2147483600;display:flex;align-items:flex-end;justify-content:center;padding:24px 16px 96px;box-sizing:border-box;
  background:rgba(240,244,248,.35);-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2);
  --aot-ink:var(--aosh-ink,#171a20);--aot-ink2:var(--aosh-ink2,#52565e);--aot-sep:var(--aosh-sep,rgba(34,39,51,.13));--aot-track:var(--aosh-track,rgba(34,39,51,.1));
  --aot-sheet:color-mix(in srgb,var(--aos-ground) 92%,transparent);--aot-row:color-mix(in srgb,var(--aos-glass-tile) 60%,transparent);--aot-on:color-mix(in srgb,var(--aos-hub-movement) 14%,transparent);--aot-on-ink:var(--aos-hub-movement);--aot-btn:var(--aosh-btn,var(--aos-ink));--aot-btn-ink:var(--aosh-btn-ink,var(--aos-ground))}
html[data-theme="dark"] .aot-scrim{background:rgba(17,19,21,.45)}
html.aot-open{overflow:hidden}
.aot-sheet{position:relative;width:min(880px,100%);max-height:min(720px,calc(100vh - 120px));overflow:auto;box-sizing:border-box;padding:14px 28px 26px;border-radius:28px;
  background:var(--aot-sheet);box-shadow:0 4px 20px rgba(30,36,50,.07),0 24px 70px rgba(30,36,50,.18);color:var(--aot-ink);font-family:var(--aos-font,-apple-system,system-ui,sans-serif)}
.aot-grab{display:block;width:40px;height:5px;border-radius:3px;background:var(--aot-track);margin:0 auto 10px}
.aot-head{display:flex;align-items:baseline;gap:12px;margin-bottom:14px}
.aot-head h2{font-size:20px;letter-spacing:-.015em;margin:0;flex:none}
.aot-ctx{flex:1;text-align:right;font-size:12px;color:var(--aot-ink2)}
.aot-close{flex:none;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:var(--aot-track);color:var(--aot-ink);cursor:pointer;align-self:center}
.aot-groups{columns:3;column-gap:24px}
.aot-group{display:flex;flex-direction:column;gap:4px;margin-bottom:14px;break-inside:avoid}
.aot-group-h{font-size:12px;color:var(--aot-ink2);margin:0 0 4px;font-weight:600}
.aot-tilt,.aot-chosen,.aot-done{display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;border:0;border-radius:16px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.aot-tilt:hover,.aot-tilt:focus-visible{background:var(--aot-row)}
.aot-tilt:focus-visible,.aot-btn:focus-visible,.aot-change:focus-visible,.aot-close:focus-visible{outline:2px solid var(--aot-ink);outline-offset:2px}
.aot-tilt[aria-pressed="true"]{background:var(--aot-on)}
.aot-dot{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--aot-row);box-shadow:inset 0 0 0 .75px var(--aot-sep);color:var(--aot-ink2)}
.aot-tilt[aria-pressed="true"] .aot-dot,.aot-dot.is-on{background:var(--aot-on-ink);color:#fff;box-shadow:none}
.aot-tilt-t{flex:1;min-width:0}
.aot-tilt-t b{display:block;font-size:15px;font-weight:600}
.aot-tilt-t small{display:block;font-size:12px;color:var(--aot-ink2);margin-top:1px}
.aot-chosen,.aot-done{cursor:default;padding:4px 0;margin-bottom:10px}
.aot-change{flex:none;border:0;background:var(--aot-track);color:var(--aot-ink);border-radius:999px;padding:7px 13px;font:600 13px inherit;font-family:inherit;cursor:pointer}
.aot-steps{display:flex;gap:18px;list-style:none;margin:0 0 18px;padding:0 0 12px;border-bottom:1px solid var(--aot-sep);font-size:13px;color:var(--aot-ink2)}
.aot-steps li{display:flex;align-items:center;gap:7px}
.aot-steps li span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--aot-track);font-size:11px;font-weight:700}
.aot-steps li.is-now{color:var(--aot-ink);font-weight:600}
.aot-steps li.is-now span{background:var(--aot-btn);color:var(--aot-btn-ink)}
.aot-steps li.is-done span{background:var(--aot-on-ink);color:#fff}
.aot-form{display:flex;flex-direction:column;gap:14px;max-width:560px}
.aot-field{display:flex;flex-direction:column;gap:6px}
.aot-field label{font-size:13px;font-weight:600}
.aot-opt{font-weight:400;color:var(--aot-ink2)}
.aot-field input,.aot-field select,.aot-field textarea{font:inherit;font-size:15px;color:var(--aot-ink);background:var(--aot-row);border:1px solid var(--aot-sep);border-radius:14px;padding:10px 12px;min-height:44px;box-sizing:border-box}
.aot-field textarea{resize:vertical}
.aot-field small{font-size:12px;color:var(--aot-ink2)}
.aot-summary{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 16px;margin:0 0 14px;font-size:14px;max-width:560px}
.aot-summary dt{color:var(--aot-ink2)}.aot-summary dd{margin:0;overflow-wrap:anywhere}
.aot-checks{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-direction:column;gap:6px;font-size:14px}
.aot-checks li{display:flex;gap:8px;align-items:baseline}
.aot-checks li span{flex:none;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;font-size:11px;font-weight:700;color:#fff;background:#2f7e70}
.aot-checks li.is-no span{background:#b04f55}
.aot-acts{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;max-width:560px}
.aot-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border:0;border-radius:999px;font:600 14px inherit;font-family:inherit;text-decoration:none;cursor:pointer}
.aot-btn.p{background:var(--aot-btn);color:var(--aot-btn-ink)}
.aot-btn.q{background:var(--aot-track);color:var(--aot-ink)}
.aot-btn:disabled{opacity:.45;cursor:not-allowed}
.aot-muted{color:var(--aot-ink2);font-size:14px}
.aot-err{color:#b04f55;font-size:14px}
@media (max-width:640px){
  .aot-scrim{padding:0;align-items:flex-end;inset:auto 0 0 0;height:100vh;height:100dvh}
  /* Above the shell bar (z-index 2147483000) so a sheet is never hidden behind the two-row phone bar. */
  .aot-sheet{width:100%;max-height:calc(100vh - 56px);max-height:calc(100dvh - 56px);border-radius:24px 24px 0 0;padding:12px 18px calc(24px + env(safe-area-inset-bottom))}
  .aot-groups{columns:2;column-gap:12px}
  .aot-tilt small{display:none}
  .aot-tilt{padding:7px 6px;gap:10px}
  .aot-steps{gap:12px}
}
@media (prefers-reduced-motion:no-preference){.aot-sheet{animation:aot-rise .22s ease-out}@keyframes aot-rise{from{transform:translateY(18px);opacity:.6}to{transform:none;opacity:1}}}
.aox-lead{font-size:14px;color:var(--aot-ink2);margin:0 0 12px}
.aox-formats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;margin-bottom:12px}
.aox-format{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:14px;cursor:pointer}
.aox-format:hover{background:var(--aot-row)}
.aox-format input{margin-top:3px;width:18px;height:18px;accent-color:var(--aot-btn)}
.aox-format b{display:block;font-size:14px}.aox-format small{display:block;font-size:12px;color:var(--aot-ink2)}
@media (max-width:640px){.aox-formats{grid-template-columns:1fr}}
/* The sheet's actions stay in view while its body scrolls. */
.aot-sheet .aot-acts{position:sticky;bottom:0;padding:10px 0 2px;margin-bottom:-2px;background:linear-gradient(to bottom,transparent,var(--aot-sheet) 30%)}

/* A Tilt's own screen on the canvas (presentation 'screen'): the room steps aside and the Tilt takes the canvas, flat
   on the gradient (no sheet box, no scrim); the briefing rides along as an embed; Back returns to the room. */
.aot-screen-host > :not(.aot-screen){display:none!important}
.aot-screen{position:relative;inset:auto;transform:none;opacity:1;visibility:visible;width:auto;max-width:720px;max-height:none;height:auto;margin:0;padding:0 0 24px;
  background:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;border:0;border-radius:0;grid-column:1/-1;view-transition-name:aot-screen;animation:aot-screen-in .28s ease-out}
.aot-screen .aot-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:0 0 10px}
.aot-screen .aot-head h2{flex-basis:100%;order:2;font-size:clamp(30px,5vw,40px);letter-spacing:-.02em;margin:6px 0 0}
.aot-screen .aot-ctx{order:3;flex-basis:100%;font-size:13px;color:var(--aosh-ink2,#5c606a)}
.aot-back{order:1;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px 0 10px;border:0;border-radius:999px;cursor:pointer;font:600 14px var(--aos-font);
  color:var(--aosh-ink,#171a20);background:var(--aosh-glass-2,rgba(255,255,255,.82));-webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4);
  box-shadow:inset 0 0 0 .75px var(--aosh-rim,rgba(255,255,255,.75)),0 1px 3px rgba(20,24,32,.06)}
.aot-back:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.aot-embed{margin:4px 0 18px;padding:0 0 14px;border-bottom:1px solid var(--aosh-sep,rgba(20,24,32,.1));font-size:16px;line-height:1.5;color:var(--aosh-ink,#171a20)}
.aot-embed p{margin:0}
.aot-screen .aot-body{padding:0}
@keyframes aot-screen-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.aot-screen{animation:none}}
.aot-screen .aot-ctx{margin:0;text-align:left;align-self:auto}
.aot-screen .aot-acts{position:static;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;margin:18px 0 0;padding:0;border:0}
html.aot-screen-on .aos-footer{display:none!important} /* a Tilt screen is a screen of its own: no page footer under it */
.aot-screen{padding-bottom:calc(140px + env(safe-area-inset-bottom,0px))} /* the last action (Finish, Record) clears the shell bar at every width */
