.poker-device-bar{position:sticky;top:0;z-index:30;max-width:680px;margin:0 auto;display:flex;align-items:center;gap:10px;padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top));background:#102d40;border-bottom:1px solid #31596b;color:#ecf8ff;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.poker-device-bar button{font:inherit;color:inherit;cursor:pointer;border:0;background:transparent;min-height:44px}.poker-device-current{display:flex;align-items:center;gap:10px;text-align:left;flex:1;min-width:0;padding:0}.poker-device-current>span:nth-child(2){flex:1;min-width:0}.poker-device-current small{display:block;color:#9ec5d3;font-size:11px;line-height:1.5}.poker-device-current strong{display:block;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5}.poker-device-icon{font-size:29px;color:#80d7ed}.poker-device-add{flex-shrink:0;font-size:13px!important;border:1px solid #3c6980!important;border-radius:9px!important;padding:7px 10px!important;background:#1b4058!important}.poker-device-layer{position:fixed;inset:0;z-index:10000;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,8,17,.7);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#ebf5ff;padding:16px 12px;box-sizing:border-box}.poker-device-sheet{box-sizing:border-box;background:#112335;border:1px solid #35536d;border-radius:20px;max-width:540px;width:100%;max-height:90dvh;overflow:auto;padding:22px 20px;padding-bottom:max(22px,env(safe-area-inset-bottom));box-shadow:0 10px 70px #020b16}.poker-device-sheet *{box-sizing:border-box}.poker-device-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.poker-device-sheet h2{font-size:20px;line-height:1.5;margin:0;color:#f0f7ff}.poker-device-sheet button{font:inherit;color:inherit;cursor:pointer;min-height:42px}.poker-device-sheet button:disabled,.poker-device-bar button:disabled{opacity:.55;cursor:wait}.poker-device-close{border:0!important;background:transparent!important;padding:4px 10px!important;font-size:28px!important;color:#a9c0d5!important}.poker-device-tip{font-size:13px;color:#a4bace;line-height:1.75;margin:12px 0 18px}.poker-device-row{display:flex;align-items:center;gap:4px;border:1px solid #334c65;border-radius:12px;margin-bottom:10px;background:#172d42;overflow:hidden}.poker-device-row.is-current{border-color:#5badce;background:#1a3b50}.poker-device-pick{display:flex;align-items:center;gap:10px;flex:1;min-width:0;border:0;background:transparent;text-align:left;padding:14px 12px!important}.poker-device-pick>span:nth-child(2){flex:1;min-width:0}.poker-device-pick strong{display:block;overflow-wrap:anywhere;font-size:16px}.poker-device-pick small{display:block;font-size:12px;color:#9db4ca;margin-top:5px}.poker-device-settings{border:0!important;border-left:1px solid #38516b!important;background:transparent!important;color:#a9d8ed!important;padding:8px 12px!important;font-size:12px!important;border-radius:0!important;flex-shrink:0}.poker-device-dot{width:8px;height:8px;border-radius:50%;background:#6d7f91;flex-shrink:0}.poker-device-dot.is-online{background:#40d4a8;box-shadow:0 0 0 4px #40d4a811}.poker-device-primary{display:block;width:100%;padding:13px 16px!important;border:1px solid #2491d5!important;border-radius:10px!important;background:#087fc3!important;color:#fff!important;font-weight:600!important;margin-top:16px}.poker-device-secondary{border:1px solid #47657e!important;border-radius:9px!important;background:#203e57!important;padding:9px 14px!important;color:#d6efff!important}.poker-device-sheet label{display:block;font-size:13px;color:#b3cada;margin:20px 0 9px}.poker-device-sheet input{display:block;width:100%;font:inherit;font-size:16px;padding:13px;border:1px solid #48637e;border-radius:9px;background:#0c192b;color:#e6f4ff;min-width:0}.poker-device-rename-row{display:flex;gap:8px}.poker-device-rename-row input{flex:1}.poker-device-rename-row button{white-space:nowrap}.poker-device-code{padding:18px 10px;background:#0b192b;border:1px dashed #527b98;border-radius:12px;text-align:center;letter-spacing:1px;font:600 clamp(16px,4.4vw,24px) ui-monospace,SFMono-Regular,Consolas,monospace;color:#8be9f9;word-break:break-all;user-select:text;margin-bottom:12px}.poker-device-form-error{color:#ffc3af;font-size:13px;line-height:1.7}.poker-device-form-error:empty{display:none}#poker-device-notice{position:fixed;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:11000;max-width:calc(100% - 32px);width:max-content;padding:12px 17px;border-radius:10px;background:#285670;color:#f3fbff;box-shadow:0 4px 25px #00101e66;font:14px/1.6 -apple-system,BlinkMacSystemFont,sans-serif}#poker-device-notice[hidden]{display:none}@media(min-width:700px){.poker-device-layer{align-items:center}}@media(max-width:360px){.poker-device-bar{padding-left:10px;padding-right:10px}.poker-device-icon{display:none}.poker-device-sheet{padding:18px 14px}.poker-device-rename-row{flex-wrap:wrap}.poker-device-rename-row button{width:100%}}

.poker-device-account{display:block;text-align:center;color:#a4c7ea;font-size:13px;padding:8px;text-decoration:none}

.poker-device-pair-input{font-size:32px!important;text-align:center;letter-spacing:8px;font-weight:700}.poker-device-sheet select{box-sizing:border-box;width:100%;padding:13px;margin-top:10px;background:#0a172a;color:#eaf3ff;border:1px solid #46617d;border-radius:10px;font:inherit}.poker-device-success{font-size:28px;color:#83e9c2;text-align:center}.poker-device-sheet button.poker-device-account{width:100%;border:0;background:transparent;cursor:pointer}.poker-device-settings{padding-left:10px;padding-right:10px}

.poker-device-bar{flex-wrap:wrap;background:#102923;border-bottom-color:#31584b}.poker-subsystem-brand{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:4px 0 12px;border-bottom:1px solid #ffffff18;margin-bottom:2px}.poker-subsystem-brand small{display:block;font-size:10px;color:#91baa8;letter-spacing:1.5px;margin-bottom:4px}.poker-subsystem-brand b{display:block;font-size:18px;line-height:1.4;overflow-wrap:anywhere}.poker-subsystem-brand em{flex-shrink:0;font-size:11px;font-style:normal;background:#244b3f;border-radius:20px;padding:5px 9px;color:#bce4cf}.poker-subsystem-brand>span{min-width:0}.poker-device-add{background:#255640!important;border-color:#4b8369!important}.poker-device-icon{color:#9fdec4}

.poker-branding-settings{padding:7px 12px!important;white-space:nowrap}
@media(max-width:360px){.poker-device-bar{gap:7px}.poker-device-add{padding-left:8px!important;padding-right:8px!important}.poker-branding-settings{padding-left:10px!important;padding-right:10px!important}}

/* V2 local preview: match the mobile control console. */
.poker-device-bar{max-width:560px;background:#152330;border-bottom:1px solid #334555;color:#f7f4ec}
.poker-subsystem-brand{border-bottom-color:#ffffff20}
.poker-subsystem-brand small,.poker-device-current small{color:#aebcc8}
.poker-subsystem-brand em{background:#3d3529;color:#f1d09a}
.poker-device-icon{color:#e2bb78}
.poker-device-add,.poker-branding-settings{background:#243545!important;border-color:#536574!important;color:#f6f2e9!important}
.poker-device-add:hover,.poker-branding-settings:hover{background:#30485a!important}
.poker-device-layer{background:rgba(4,10,16,.78)}
.poker-device-sheet{background:#162634;border-color:#536574;color:#f7f4ec}
.poker-device-sheet h2{color:#f7f4ec}
.poker-device-tip{color:#b4c3ce}
.poker-device-row{background:#1d3040;border-color:#405669}
.poker-device-row.is-current{background:#273a48;border-color:#d6b476}
.poker-device-pick small{color:#b4c3ce}
.poker-device-settings{border-left-color:#425b6b!important;color:#e9c588!important}
.poker-device-dot.is-online{background:#e4bf80;box-shadow:0 0 0 4px #e4bf8022}
.poker-device-primary{background:#dfb979!important;border-color:#dfb979!important;color:#172532!important}
.poker-device-secondary{background:#263a4c!important;border-color:#607181!important}
.poker-device-sheet input,.poker-device-sheet select{background:#101e2b;border-color:#536b7d;color:#f7f4ec}
.poker-device-code{background:#0f1d2a;border-color:#8f784e;color:#f2cf94}
.poker-device-account{color:#e8c68e}

/* Shared black and gold treatment for formal and one-day trial control entries. */
.poker-device-bar{background:#11100d;border-bottom-color:#665034;color:#f6f0e5}
.poker-subsystem-brand{border-bottom-color:#b8905940}
.poker-subsystem-brand small,.poker-device-current small{color:#c4b49b}
.poker-subsystem-brand em{border:1px solid #755937;background:#302416;color:#efce92}
.poker-device-icon{color:#e7c58d}
.poker-device-add,.poker-branding-settings{border-color:#836640!important;background:#272016!important;color:#f7e8cb!important}
.poker-device-add:hover,.poker-branding-settings:hover{border-color:#cfab71!important;background:#3a2b19!important}
.poker-device-layer{background:#050403d9;backdrop-filter:blur(5px)}
.poker-device-sheet{border-color:#765e3f;background:#17140f;color:#f7f0e4;box-shadow:0 20px 70px #000b}
.poker-device-sheet h2{color:#fff3df}
.poker-device-close{color:#cfbd9e!important}
.poker-device-tip,.poker-device-sheet label{color:#c8bba5}
.poker-device-row{border-color:#54442f;background:#201a12}
.poker-device-row.is-current{border-color:#d8b474;background:#362917;box-shadow:inset 0 0 0 1px #d8b47444}
.poker-device-pick:hover,.poker-device-settings:hover{background:#49351f!important}
.poker-device-pick small{color:#bba98e}
.poker-device-settings{border-left-color:#665038!important;color:#eacc94!important}
.poker-device-dot{background:#9b8d79}
.poker-device-dot.is-online{background:#dfbc7f;box-shadow:0 0 0 4px #dfbc7f2b}
.poker-device-primary{border-color:#e4c58e!important;background:linear-gradient(135deg,#c89e5e,#e7c78c)!important;color:#21180d!important;font-weight:750!important}
.poker-device-primary:hover{background:linear-gradient(135deg,#d6aa69,#f1d69e)!important}
.poker-device-secondary{border-color:#846949!important;background:#2b2318!important;color:#f4e7d0!important}
.poker-device-secondary:hover{border-color:#cba96e!important;background:#392b1a!important}
.poker-device-sheet input,.poker-device-sheet select{border-color:#695537;background:#0e0c09;color:#fcf4e9}
.poker-device-sheet input:focus,.poker-device-sheet select:focus{border-color:#e3c083}
.poker-device-code{border-color:#a88350;background:#100d09;color:#f0d093}
.poker-device-account{color:#e8c68e}
.poker-device-success{color:#e8ca8e}
#poker-device-notice{border:1px solid #a48250;background:#2a2115;color:#fff0d4;box-shadow:0 8px 30px #0009}
.poker-device-bar button:focus-visible,.poker-device-sheet button:focus-visible,.poker-device-sheet input:focus-visible,.poker-device-sheet select:focus-visible,.poker-device-account:focus-visible{outline:2px solid #f2d69f;outline-offset:3px}
.poker-device-offline{width:100%;box-sizing:border-box;margin:2px 0 0;padding:9px 11px;border:1px solid #9a7040;border-radius:9px;background:#2c2013;color:#f6d9aa;font-size:12px;line-height:1.55}.poker-device-offline[hidden]{display:none}.poker-device-bar.is-offline .poker-device-current small{color:#efc27e}

/* Managed mirror televisions: one tournament can drive several named displays. */
.poker-device-mirror-add{min-width:68px}.poker-device-row button:disabled{cursor:not-allowed;opacity:.42}.poker-mirror-manager{margin:14px 0 20px;padding:14px;border:1px solid #665038;border-radius:14px;background:#201a12}.poker-mirror-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.poker-mirror-heading>span{min-width:0}.poker-mirror-heading small{display:block;margin-bottom:3px;color:#bba98e;font-size:11px;line-height:1.5}.poker-mirror-heading strong{display:block;color:#fff3df;font-size:17px;line-height:1.45}.poker-mirror-heading .poker-device-secondary{flex-shrink:0;padding:7px 10px!important;font-size:12px!important}.poker-mirror-row{display:flex;align-items:center;gap:9px;padding:11px 0;border-top:1px solid #665038}.poker-mirror-row:first-of-type{border-top:0}.poker-mirror-info{flex:1;min-width:0}.poker-mirror-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.poker-mirror-info small{display:block;margin-top:3px;color:#bba98e;font-size:11px}.poker-mirror-action{min-height:36px!important;padding:6px 9px!important;font-size:12px!important;flex-shrink:0}.poker-mirror-action.is-danger{border-color:#8d5045!important;color:#f0aa9c!important}.poker-mirror-action.is-danger:hover{border-color:#c86c5a!important;background:#422219!important}.poker-mirror-empty{margin:4px 0 0;color:#bba98e;font-size:12px;line-height:1.65}.poker-legacy-connect{margin-top:20px;border-top:1px solid #665038;padding-top:14px}.poker-legacy-connect summary{cursor:pointer;color:#bba98e;font-size:12px;line-height:1.6}.poker-legacy-connect .poker-device-code{margin-top:12px}.poker-mirror-remove-icon{width:48px;height:48px;margin:18px auto 4px;display:grid;place-items:center;border:1px solid #9a5749;border-radius:50%;background:#3a201a;color:#efb0a3;font-weight:800;font-size:24px}.poker-danger-primary{border-color:#b65c4b!important;background:linear-gradient(135deg,#85382d,#b65745)!important;color:#fff4ee!important}.poker-danger-primary:hover{background:linear-gradient(135deg,#9a4033,#c96a56)!important}
@media(max-width:420px){.poker-device-row{align-items:stretch;flex-wrap:wrap}.poker-device-pick{flex-basis:100%;border-bottom:1px solid #54442f!important}.poker-device-settings{flex:1;border-left:0!important;min-height:38px!important}.poker-device-settings+.poker-device-settings{border-left:1px solid #665038!important}.poker-mirror-heading{align-items:flex-start}.poker-mirror-row{flex-wrap:wrap}.poker-mirror-info{min-width:calc(100% - 22px)}.poker-mirror-action{flex:1}.poker-mirror-row .poker-device-dot+.poker-mirror-info{flex-basis:calc(100% - 22px)}}

.poker-device-delete{display:block;width:100%;margin-top:24px;padding:12px!important;border:1px solid #975747!important;border-radius:10px!important;background:#301a14!important;color:#ffc4b4!important}.poker-device-delete:hover{background:#47231b!important}.poker-device-remove-title{margin:20px 0 0;text-align:center;overflow-wrap:anywhere;font-size:17px;font-weight:650}
