.athena-devices-dialog{box-sizing:border-box;width:min(680px,calc(100% - 24px));max-width:680px;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #a4b5cf40;border-radius:20px;background:#121722;color:#edf1f7;overflow:auto;overscroll-behavior:contain}
.athena-devices-dialog::backdrop{background:#050811b8;backdrop-filter:blur(5px)}
.device-panel{padding:20px;min-width:0}.device-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.device-panel h2{font-size:20px;margin:0 0 16px}.device-panel h3{font-size:16px;overflow-wrap:anywhere;margin:0}.device-panel p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.device-panel button{min-height:42px;color:inherit;font:inherit;cursor:pointer}.device-panel button:disabled{opacity:.4;cursor:default}.device-panel [data-device-list]{display:grid;gap:12px}.device-card{box-sizing:border-box;width:100%;min-width:0;padding:16px;border:1px solid #9eb6dc35;border-radius:15px;background:#ffffff05}.device-card__info{color:#b6c0d1}.device-card__actions{display:flex;flex-wrap:wrap;gap:8px}.device-card__actions>button{flex:1 1 120px;min-width:0;white-space:normal}.device-remote{display:grid;gap:12px;margin-top:15px}.device-remote[hidden]{display:none}.device-volume{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;text-align:center;gap:12px}.device-volume output{font-size:20px}.device-panel [data-device-status]{min-height:20px}
@media(max-width:700px){.device-panel{padding:14px}.device-card{padding:13px}.athena-devices-dialog{width:calc(100% - 24px)}.device-card__actions>button{flex-basis:100px;font-size:12px}}
.device-samsung-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.device-samsung-keys>button{min-width:0;min-height:48px;padding:10px 6px;white-space:normal;overflow-wrap:anywhere;font-size:13px}
.device-samsung-keys [data-device-key="KEY_ENTER"]{border-color:#a4c9ef70;background:#a4c9ef18;font-weight:700}
/* The existing agent can use the phone view, desktop view or the full TV width. */
html[data-agent-display="phone"] #athenaMobileFrame{display:block;position:fixed;inset:0;width:100%;height:100dvh;border:0;background:#090b12;z-index:2147483646}
html[data-agent-display="desktop"] #athenaMobileFrame,html[data-agent-display="tv"] #athenaMobileFrame{display:none!important}
html:is([data-agent-display="desktop"],[data-agent-display="tv"]) body{overflow-y:auto!important}
html[data-agent-display="tv"] .agent-shell{max-width:none;width:100%}
html[data-agent-display="tv"] .agent-page{box-sizing:border-box;width:100%;min-height:100dvh;padding:clamp(12px,2vw,48px)}
.device-eyebrow{display:block;margin-bottom:8px;color:#a7bce1;font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.agent-display-dialog{width:min(780px,calc(100% - 24px));max-width:780px;background:radial-gradient(ellipse at top,#253552,#111722 65%);box-shadow:0 26px 90px #0009}
.agent-display-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-block:20px}
.agent-display-options>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-width:0;min-height:190px;padding:22px 14px;border:1px solid #b0c8ee3b;border-radius:20px;background:linear-gradient(145deg,#94c9ff12,#ffffff03);color:inherit;text-align:center}
.agent-display-options>button:hover,.agent-display-options>button[aria-pressed="true"]{border-color:#9cc9f4;background:#a4caff1a}
.agent-display-options>button:focus-visible{outline:2px solid #aed9ff;outline-offset:3px}
.agent-display-options>button>span{display:grid;place-items:center;width:54px;height:54px;border:1px solid #c6ddff38;border-radius:16px;background:#bad6ff0b;color:#b9d9ff;font-size:34px;line-height:1}
.agent-display-options strong{font-size:17px}.agent-display-options small{color:#b1bed2;font-size:12px;line-height:1.6}
.agent-display-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px}.agent-display-actions>a{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:none}
/* Both entry pages use the same dark controls instead of the browser's ButtonFace. */
.agent-display-dialog{color-scheme:dark}
.athena-devices-dialog.agent-display-dialog .ghost-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:10px 14px;border:1px solid #a4bedc59;border-radius:12px;background:#1a2638;color:#edf1f7;font:inherit;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;appearance:none;cursor:pointer}
.athena-devices-dialog.agent-display-dialog .ghost-btn:hover{background:#293c57;color:#fff;border-color:#aed9ff}
.athena-devices-dialog.agent-display-dialog .ghost-btn:focus-visible{outline:2px solid #aed9ff;outline-offset:3px}
.agent-display-dialog [data-agent-mode-close]{flex:0 0 44px;min-width:44px;padding:0;font-size:24px;line-height:1}

.is-screen-picker .device-card{position:relative;border-color:#9ac9f34d;background:linear-gradient(130deg,#b4d2ff12,#ffffff03)}
.is-screen-picker .device-card [data-device-action="connect-mirror"]{border-color:#b3dfff88;background:#a7d8ff1f;min-height:48px}
@media(max-width:600px){.agent-display-options{grid-template-columns:minmax(0,1fr)}.agent-display-options>button{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:14px;min-height:100px;padding:15px;text-align:left}.agent-display-options>button>span{grid-row:1/3}.agent-display-options strong,.agent-display-options small{grid-column:2}.agent-display-options small{align-self:start}.agent-display-options strong{align-self:end}}

.device-extended-workspace{position:fixed;z-index:18000;left:16px;bottom:16px;box-sizing:border-box;width:min(350px,calc(100vw - 32px));padding:12px;border:1px solid #b5d7ff60;border-radius:20px;background:#111b2bf2;color:#edf3ff;box-shadow:0 15px 70px #0008;font:13px system-ui,sans-serif}.device-extended-workspace header{display:flex;align-items:center;justify-content:space-between;gap:8px}.device-extended-workspace button{min-width:36px;min-height:36px;padding:4px 10px;border:1px solid #b5d7ff40;border-radius:10px;background:#ffffff08;color:inherit;font:inherit;cursor:pointer}.device-extended-screens{display:grid;grid-template-columns:1fr 1.3fr;gap:10px;margin-top:10px}.device-extended-screens>div{min-height:76px;display:grid;place-items:center;gap:4px;padding:10px;border:1px solid #a2c8ff33;border-radius:14px;background:#ffffff04;text-align:center}.device-extended-screens [data-tv-drop]{border-style:dashed;border-color:#8fcfff7a;transition:background .15s,border-color .15s}.device-extended-screens [data-tv-drop].is-over{background:#8fcfff30;border-color:#c7e9ff}.device-extended-workspace p{font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:8px 0}.device-extended-workspace code{font-size:23px;letter-spacing:.18em}.device-extended-workspace a{color:#b9dfff}.device-transfer-ghost{position:fixed;z-index:200000;max-width:240px;padding:13px 18px;border:1px solid #b9d8ff88;border-radius:15px;background:#183556ed;color:#fff;pointer-events:none;font:14px system-ui,sans-serif;box-shadow:0 10px 35px #0008}body.device-transfer-active{user-select:none;touch-action:none}.device-transfer-active [data-tv-drop]{box-shadow:0 0 22px #8fcfff33}

.device-extended-workspace{z-index:2147483647}.device-transfer-ghost{z-index:2147483647;box-sizing:border-box;width:min(260px,65vw);max-height:280px;overflow:hidden;padding:16px;border-radius:22px;background:linear-gradient(145deg,#244b73ee,#121c32f5);box-shadow:0 28px 65px #0009,0 0 28px #8ac9ff35;transform:rotate(-3deg);will-change:transform,opacity;backdrop-filter:blur(15px)}.device-transfer-ghost img{display:block;width:100%;height:112px;object-fit:cover;border-radius:12px;margin-bottom:10px}.device-transfer-ghost strong{display:block;font-size:16px;line-height:1.3}.device-transfer-ghost p{margin:8px 0;line-height:1.4;font-size:12px;max-height:65px;overflow:hidden}.device-transfer-ghost small{display:block;margin-top:12px;color:#b2d9ff;font-size:11px}.device-transfer-active [data-tv-drop]{background:#70bbff22;box-shadow:0 0 32px #8fcfff55;transform:scale(1.03)}

/* Leave a usable part of every card uncovered while the TV is connected. */
@media(max-width:700px){.device-extended-workspace.is-connected{left:auto;right:12px;bottom:12px;width:200px;padding:10px}.device-extended-workspace.is-connected header strong{font-size:12px}.device-extended-workspace.is-connected .device-extended-screens{gap:6px;margin-top:7px}.device-extended-workspace.is-connected .device-extended-screens>div{min-height:62px;padding:7px;font-size:11px}.device-extended-workspace.is-connected .device-extended-screens small{font-size:9px}.device-extended-workspace.is-connected p{font-size:11px;line-height:1.35;margin:6px 0 0}}

.athena-devices-dialog .device-panel,.athena-devices-dialog .device-panel *{box-sizing:border-box}
.athena-devices-dialog .device-panel>header{margin-bottom:16px}.athena-devices-dialog .device-panel>header h2{min-width:0;margin:0;overflow-wrap:anywhere;flex:1}
.athena-devices-dialog [data-device-close]{flex:0 0 44px;width:44px;height:44px;padding:0}
.device-discovery-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.5fr);gap:10px}
.athena-devices-dialog .device-panel .ghost-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;padding:10px 14px;white-space:normal;overflow-wrap:anywhere;border:1px solid #9dbde04d;border-radius:12px;background:#17263b;color:#eaf3ff}
.device-panel [data-device-glasses] svg{width:24px;height:24px;flex:none}
@media(max-width:600px){.athena-devices-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:18px}.athena-devices-dialog .device-panel{padding:14px}.device-discovery-actions{grid-template-columns:minmax(0,1fr)}.device-panel>header h2{font-size:19px}.device-panel .device-card__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.device-panel .device-card__actions>button{width:100%;font-size:13px}}
.athena-devices-dialog .device-panel{text-align:center}
.athena-devices-dialog .device-panel>header{position:relative;justify-content:center;min-height:44px;padding-inline:48px}
.athena-devices-dialog .device-panel>header h2{text-align:center}
.athena-devices-dialog .device-panel>header [data-device-close]{position:absolute;right:0;top:0}
.athena-devices-dialog .device-discovery-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.device-panel .device-discovery-actions svg{width:24px;height:24px;flex:none}
.device-panel [data-device-status]:empty,.device-panel [data-device-list]:empty{display:none}
