/* The owner cabinet shares its three section colours with the selected Cards layout. */
body.playing{--ink:#29242e;--muted:#655e69;--line:#d4cdd9;background:#eeecf1;color:var(--ink)}
.playing main,.playing header{width:min(1040px,calc(100% - 56px))}
.playing main{padding:20px 0 48px}.playing header{border-color:var(--line);min-height:64px}
.playing .brand{color:var(--ink)}.playing .brand-face{background:#28232c}.playing .brand-face i{background:#f5f0f8}
.pilot-title{margin:0 0 14px}.pilot-title h1{font-size:clamp(24px,3vw,37px);font-weight:600;letter-spacing:-.055em}
.screen-banner{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,31%) minmax(0,1fr);align-items:center;gap:18px;min-height:200px;padding:22px 32px;border-radius:22px;color:#f9f5fa;background:radial-gradient(ellipse at 63% 132%,#595164,transparent 63%),radial-gradient(ellipse at 85% -70%,#53445a,transparent 57%),#282432}
.screen-figure{margin:0;justify-self:center;display:grid;justify-items:center}.screen-figure figcaption{font-size:.8rem;color:#e2dbe7;margin-top:5px}.screen-banner h2{font-size:clamp(32px,4vw,60px);margin:7px 0 5px;line-height:1.08;letter-spacing:-.065em;font-weight:550;overflow-wrap:anywhere}
.eyebrow{font-size:.88rem;color:var(--muted);line-height:1.35}.screen-banner .eyebrow,.screen-banner .pilot-top{color:#e0d7e4}.screen-banner .pilot-top{justify-content:flex-start;margin-top:14px;flex-wrap:wrap;gap:8px;font-size:.875rem}
.screen-banner .pilot-display{position:relative;width:clamp(130px,17vw,188px);aspect-ratio:1;height:auto;justify-self:center;border:1px solid #47414b;border-radius:50%;background:#000;box-shadow:0 12px 25px #120e1a52}
#pilot-clock{color:#e8d7ee;font:600 clamp(15px,2.2vw,28px)/1.15 system-ui;text-align:center;overflow-wrap:anywhere;max-width:90%}.timed-eyes #pilot-eyes{position:absolute;top:-6%;width:82%;height:82%}.timed-eyes #pilot-clock{position:absolute;bottom:17%;font-variant-numeric:tabular-nums;color:#ffcfb6}
.banner-tools{display:grid;justify-content:end;gap:9px}.banner-tools button{border:1px solid #c6b8ce9c;border-radius:24px;padding:10px 16px;color:#faf6fc;background:transparent;font-family:inherit;font-weight:500;font-size:.94rem}.banner-tools button:first-child{background:#f5edf9;color:#34293b;border-color:transparent}
#pilot-note{color:#63516f;min-height:0;margin:6px 5px;font-size:.9rem}#pilot-note:empty{display:none}
#device-tools,.card-detail{border-radius:17px;background:#faf8fc;padding:18px 24px;margin-top:12px}
#tool-nav,#history-scopes,.dialog-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#tool-nav{padding:0 0 12px;margin-bottom:12px;border-bottom:1px solid var(--line)}#tool-nav button,#history-scopes button{background:transparent;font:inherit;font-size:.9rem;color:var(--ink);border:0;border-radius:20px;padding:9px 11px}
#tool-nav button[aria-pressed=true],#history-scopes button[aria-pressed=true]{color:#fff;background:#332b3b}#close-tools{margin-left:auto}
.pilot-pages button{background:#ede7ef;color:#39303e;box-shadow:none;border:1px solid #d4ccd9}.pilot-pages button[aria-pressed=true]{background:#dbcae6;box-shadow:none}
.look-choice{border:0;padding:0;margin:14px 0}.look-choice legend{font-weight:600;padding:0}.look-rail{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}.look-rail button{background:#efebf1;border:1px solid #d6cddb;border-radius:13px;display:flex;align-items:center;gap:6px;padding:5px 9px 5px 5px;font:inherit;font-size:.9rem}.look-rail img{width:36px;height:36px;object-fit:contain;border-radius:50%}.look-rail button[aria-pressed=true]{border:2px solid #483852;padding:4px 8px 4px 4px}
.preferences{margin:23px 0 0}.preferences>h2{margin:0 0 12px;font-size:clamp(21px,3vw,28px);font-weight:590;letter-spacing:-.045em}.playing #list{margin:0}
.pref-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pref-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;isolation:isolate;overflow:hidden;height:132px;padding:15px 17px 13px;border:none;border-radius:16px;font-family:inherit;color:inherit}
.pref-tile[aria-expanded=true]{box-shadow:inset 0 0 0 2px currentColor}.pref-tile.voice,.sound-sample{background:#c6ded5;color:#1b392e}.pref-tile.weather,.weather-sample{background:#d6dbef;color:#2d3356}.pref-tile.account{background:#e2d2eb;color:#3d2c49}
.tile-title{font-size:.94rem;font-weight:550}.tile-title:after{content:'';position:absolute;right:17px;top:19px;width:7px;height:7px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg)}.pref-tile[aria-expanded=true] .tile-title:after{transform:rotate(225deg)}
.pref-tile strong{font-size:clamp(18px,2.1vw,30px);font-weight:560;letter-spacing:-.05em;line-height:1.15;margin-top:auto;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pref-tile small{line-height:1.3;font-size:.86rem;margin-top:3px}.tile-art,.wave-mark{position:absolute;right:17px;top:32px;width:40px;height:40px;border-radius:50%;object-fit:contain;z-index:-1}.wave-mark{left:17px;right:auto;width:76px;height:20px;top:42px;display:flex;gap:3px;align-items:center}.wave-mark i{width:3px;height:25%;background:#40775e;border-radius:2px}.wave-mark i:nth-child(3n){height:80%}.wave-mark i:nth-child(4n){height:55%}.wave-mark i:nth-child(5n){height:100%}
.card-detail>h2,.dialog-head h2{font-size:clamp(20px,2vw,27px);letter-spacing:-.045em;margin:0;font-weight:600}.card-detail>h2{padding-bottom:12px;margin-bottom:15px;border-bottom:1px solid var(--line)}
.detail-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(18px,4vw,48px);align-items:start}
.sound-sample,.weather-sample{border-radius:13px;padding:17px 18px}.sound-sample h3,.weather-sample h3,.account-sample h3{margin:5px 0 8px;font-size:clamp(20px,2.4vw,31px);line-height:1.14;letter-spacing:-.045em;font-weight:550;overflow-wrap:anywhere}.sound-sample .eyebrow,.weather-sample .eyebrow{color:inherit}.sound-sample audio{display:block;width:100%;height:35px;margin:9px 0}.sound-sample .quiet{margin:0;background:#ffffff8f;color:#15352b}.weather-sample p{margin:5px 0 0}.account-sample{display:flex;gap:14px;align-items:center;padding:8px 0}.avatar{width:64px;height:64px;border-radius:50%}
.quiet,.danger-button{border:0;border-radius:10px;padding:10px 13px;min-height:40px;background:#eeeaf0;color:#39333f;font:500 .94rem system-ui}
.setting-action{display:flex;width:100%;min-height:49px;padding:10px 2px;gap:12px;align-items:center;justify-content:space-between;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;color:inherit;font:inherit}.setting-action strong,.setting-action select{font-size:.95rem;font-weight:540;text-align:right}.setting-action strong{color:#51425b;max-width:60%;overflow-wrap:anywhere}.setting-action select{max-width:60%;background:#f0ebf3;border:1px solid #d5ccd9;border-radius:8px;padding:6px}.setting-action input[type=checkbox]{width:20px}
.account-extra{margin:8px 0 0;border:0;padding:5px 0}.account-extra summary{color:var(--muted)}.danger{color:#923c47}.danger-button{background:#963e48;color:white}
.activity{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.activity>button{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-top:1px solid #bdb5c4;background:transparent;padding:16px 4px;text-align:left;color:var(--ink);font:inherit}.activity>button span{font-size:1.05rem;font-weight:620}.activity>button strong{font-size:.88rem;font-weight:500;color:#62556b;text-align:right}
.playing button:focus-visible,.playing select:focus-visible,.playing summary:focus-visible,dialog button:focus-visible{outline:3px solid #765389;outline-offset:3px}
body dialog{--ink:#29242e;--muted:#655e69;--line:#d4cdd9;color:#29242e;border:1px solid #c8c0cf;border-radius:20px;background:#fcfafd;padding:24px;max-height:85dvh;overflow-y:auto;width:min(460px,calc(100% - 28px));max-width:calc(100% - 28px);box-shadow:0 18px 90px #211b2a40}body dialog::backdrop{background:#241d3078}
body dialog .primary{background:#3e3148;justify-content:center}body dialog .secondary{background:#eae4ed;color:#312737}.dialog-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:10px}.subtle{color:var(--muted);font-size:.92rem;line-height:1.4}
.metric{padding:18px 0;border-top:1px solid var(--line);margin-top:12px}.metric span,.metric strong{display:block}.metric strong{font-size:1.75rem;letter-spacing:-.045em;margin:5px 0}.metric p{font-size:.94rem;color:var(--muted)}
#history-dialog{width:min(670px,calc(100% - 28px))}#history-scopes{margin:10px 0}.message{display:grid;gap:5px;padding:12px 14px;border-radius:13px;background:#e8e2ec;margin:8px 12% 8px 0}.message.user{margin:8px 0 8px 12%;background:#dce9e2}.message-head{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:.87rem}.message time{color:#595461;font-size:.8rem}.message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:0}#history-clear,#clear-confirm{margin-top:14px}#clear-confirm p,#rename-note,#history-note{line-height:1.45;margin:10px 0}#history-note:empty{display:none}#rename-form label{margin-top:16px}.dialog-actions .primary{width:auto;margin:0}
@media(max-width:680px){.playing main,.playing header{width:calc(100% - 24px)}.screen-banner{grid-template-columns:minmax(0,1fr) 118px;padding:16px;gap:10px;min-height:0}.screen-banner .pilot-display{width:116px}.banner-tools{grid-column:1/-1;display:flex;justify-content:space-between}.banner-tools button{font-size:.88rem;padding:9px 12px}.preferences{margin-top:18px}.pref-tiles,.detail-columns{gap:9px}.pref-tile{height:123px;padding:12px 9px}.pref-tile strong{font-size:1rem;letter-spacing:-.035em;white-space:normal;overflow-wrap:anywhere}.pref-tile small{font-size:.79rem}.tile-title{font-size:.83rem}.tile-title:after{right:9px;top:15px}.tile-art{height:23px;width:23px;top:31px;right:9px}.wave-mark{top:35px;left:10px;width:44px;gap:1.5px}.detail-columns{grid-template-columns:1fr}.activity{grid-template-columns:1fr;gap:0;margin-top:10px}#device-tools,.card-detail{padding:14px}.card-detail>h2{margin-bottom:10px}.playing .pilot-pages{grid-template-columns:repeat(3,minmax(0,1fr))}.activity>button{padding:14px 4px}#close-tools{margin-left:0}}
@media(max-width:420px){.pref-tiles{grid-template-columns:1fr}.pref-tile{height:auto;min-height:64px;display:grid;grid-template-columns:1fr minmax(0,1.5fr);align-content:center;column-gap:8px;padding:10px 32px 10px 13px}.tile-title{grid-row:1/3;align-self:center;font-size:.98rem}.pref-tile strong,.pref-tile small{text-align:right;justify-self:end}.tile-art,.wave-mark{display:none}.tile-title:after{right:14px;top:calc(50% - 4px)}.activity>button strong{max-width:53%}}
