.native-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.native-heading h2{margin:0}.native-create,.native-bind{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.native-create input{flex:2;min-width:180px}.native-create select,.native-bind select{flex:1;min-width:160px}.native-accounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,450px),1fr));gap:18px;margin-top:18px}.native-account details{margin:18px 0}.native-account summary{cursor:pointer;font-weight:600;padding:10px 0}.native-timers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.native-timers>div{padding:16px;border-radius:12px;background:#f4f7fa}.native-timers small,.native-timers strong{display:block}.native-timers strong{font-size:16px;margin-top:8px}.native-policy{border:1px solid #dde5ed;border-radius:12px;margin:16px 0;padding:16px}.native-policy input[type=checkbox]{width:auto;margin-right:8px}.native-policy legend{font-weight:600;padding:0 8px}.native-priority{padding-left:24px}.native-priority li{padding:7px 0;display:flex;gap:6px;align-items:center}.native-priority li span{flex:1}.native-priority button{padding:4px 7px;border:1px solid #d5dfeb;border-radius:6px;background:white;cursor:pointer}.native-card-select{min-width:0;flex:1}.native-auth{padding:18px;border:1px solid #dae3ef;border-radius:12px;margin-top:18px}.native-qr{width:240px;max-width:100%;display:block;margin:12px auto}.native-auth form{display:grid;gap:12px;max-width:500px}.native-auth>button{margin-top:14px}.native-save-status{margin-left:12px;color:#218066}@media(max-width:600px){.native-timers{grid-template-columns:1fr}.native-create>*{width:100%}}
.native-browser-image{width:960px;max-width:100%;display:block;cursor:pointer;border:1px solid #dce4ef;border-radius:8px;margin-bottom:16px}.native-browser-controls{flex-wrap:wrap;margin-top:12px}.native-browser-controls button{border:1px solid #d6e0eb;background:white;padding:8px 12px;border-radius:8px;cursor:pointer}
.native-create input:not([type=hidden]),.native-create select,.native-bind select,.native-card-select,.native-auth input,.native-auth select{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;color:var(--ink)}.profile-row{padding:18px 0;border-bottom:1px solid var(--line)}.profile-row:last-child{border-bottom:0}#native-root summary{cursor:pointer;padding:12px 0;font-weight:600}.role-list{padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.role-list li{display:flex;gap:12px;justify-content:space-between;padding:10px 12px;background:#f5f7fb;border-radius:8px}.role-list span{color:var(--muted)}.native-policy label{display:flex;align-items:center}.native-timers strong{font-variant-numeric:tabular-nums}.native-heading .muted{margin:6px 0}.native-account>h2{margin-bottom:5px}

.native-browser-image{touch-action:none;user-select:none;-webkit-user-drag:none}
.native-auth.expanded{position:fixed;inset:18px;z-index:1000;background:#fff;border-radius:16px;box-shadow:0 0 0 100vmax #17241fcc;overflow:auto;padding:24px}.native-auth.expanded .native-browser-image{max-width:100%;max-height:calc(100vh - 310px);width:auto;object-fit:contain}.native-browser-image{touch-action:none;cursor:crosshair}[data-browser-pending]{font-size:13px;color:#52796f}#native-browser-input{position:sticky;bottom:0;background:#fff;padding:12px 0;z-index:1}
.channel-login{border:1px solid #dbe5e0;border-radius:16px;background:white;overflow:hidden;max-width:1040px;margin:16px auto}.channel-login header,.channel-login footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px}.channel-login header p{font-size:13px;margin:5px 0 0;color:#52675d}.channel-login footer{font-size:13px;color:#64736d}.channel-stage{position:relative;width:100%;background:#f6f7f8;line-height:0}.channel-screen{display:block;width:100%;height:auto;touch-action:none;user-select:none;cursor:pointer}.channel-fields{position:absolute;inset:0;pointer-events:none}.channel-fields input{position:absolute;box-sizing:border-box;pointer-events:auto;border:1px solid transparent;border-radius:3px;background:#fff;color:#222;padding:2px 8px;margin:0;min-height:0;font-size:clamp(11px,1.4vw,17px);outline:none}.channel-fields input:focus{border:2px solid #50806b;box-shadow:0 0 0 2px #50806b22}.channel-login.expanded{position:fixed;inset:12px;z-index:1100;max-width:none;overflow:auto;box-shadow:0 0 0 100vmax #122b2099}.channel-login.expanded .channel-stage{max-width:1200px;margin:auto}.channel-login.expanded header{position:sticky;top:0;z-index:2;background:white}.channel-login.expanded footer{position:sticky;bottom:0;background:white}@media(max-width:640px){.channel-login header,.channel-login footer{padding:10px}.channel-login footer span{display:none}.channel-login.expanded{inset:4px}}
/* Stable inputs on desktop; readable form controls on phones. */
.channel-scroll{overflow:auto;max-height:75vh}.channel-field{position:absolute;display:block;pointer-events:auto;margin:0;padding:0}.channel-field-label{display:none}.channel-fields .channel-field input{position:static;width:100%;height:100%;font-size:16px}.channel-buttons{display:flex;gap:8px;flex-wrap:wrap;padding:12px 18px;border-top:1px solid #e6ebe8}.channel-buttons:empty{display:none}.channel-buttons button{white-space:normal;min-height:42px;text-align:left}.channel-login header{flex-wrap:wrap}.channel-login header>div{flex:1;min-width:160px}.channel-login footer button{min-height:40px}
@media(max-width:640px){.channel-scroll{max-height:none}.channel-fields{position:static;padding:12px;display:grid;gap:12px;pointer-events:auto;line-height:1.5}.channel-field{position:static;width:100%!important;height:auto!important}.channel-field-label{display:block;font-size:14px;color:#3c5548;margin-bottom:5px}.channel-fields .channel-field input{height:46px;border:1px solid #c6d5ce;border-radius:8px;padding:8px 12px;font-size:16px}.channel-buttons{padding:12px}.channel-buttons button{flex:1 1 auto}.channel-login.expanded .channel-screen{width:960px;max-width:none}.channel-login.expanded .channel-scroll{overflow:auto}.channel-login.expanded .channel-fields{position:sticky;left:0;width:100%;box-sizing:border-box}}
/* Player workspace: persistent forms, legible timers and contextual settings. */
.native-heading{flex-wrap:wrap;gap:10px}.native-heading>div:first-child{flex:1;min-width:180px}.native-heading .ghost{font-size:13px}.native-accounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:20px;align-items:start}.native-account{padding:24px}.native-account+.native-account{margin:0}.account-heading{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:16px}.account-heading h2{font-size:16px;margin:0}.account-heading p{margin:3px 0 0;font-size:13px;color:#718168}.role-avatar{display:grid;place-items:center;width:41px;height:41px;border:1px solid #e3e9d7;background:#f1f5e9;border-radius:12px;font-family:"KaiTi",serif;font-size:21px;color:#879c6e}.native-state-line{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#718168}.native-timers{grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.native-timers>div{border:1px solid #e9eedf;border-radius:11px;padding:16px;background:#f7f9f1}.native-timers .own_card{background:#faf8f0;border-color:#eeeadd}.timer-label{display:flex;align-items:center;gap:7px;font-size:13px;color:#889674}.timer-label .icon{width:14px;height:14px}.native-timers strong{font-size:16px;line-height:1.5;color:#516544;font-weight:600;margin:10px 0 7px;letter-spacing:-.4px}.native-timers small{font-size:12px;color:#718168}.automation-flags{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:#718168}.automation-flags span{display:flex;align-items:center;gap:5px}.automation-flags i{width:4px;height:4px;background:currentColor;border-radius:50%}.automation-flags .enabled{color:#769761}.account-schedule{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#718168;padding:17px 0}.account-schedule span{display:flex;justify-content:space-between}.account-schedule b{font-weight:400;color:#79886a}.account-message{display:flex;align-items:flex-start;gap:7px;font-size:13px;line-height:1.7;color:#8a997a;background:#f8faf3;border-radius:7px;padding:9px 11px;margin:0 0 17px}.account-message .icon{width:14px;margin-top:2px}.native-account>[data-run]{width:100%;font-size:13px}.native-account>[data-run]+p{font-size:12px;margin:9px 0 20px;text-align:center}.native-account details{margin:0}.native-account summary,#native-root summary{font-size:13px;padding:16px 0}.native-policy{border:1px solid #e4eadb;border-radius:11px;padding:15px;margin:15px 0 20px}.native-policy legend{font-size:13px;color:#667d53;padding:0 7px}.native-policy label{font-size:13px;line-height:1.8;gap:5px}.native-policy p{font-size:12px}.native-priority{padding:0;list-style:none;counter-reset:priority}.native-priority li{counter-increment:priority;gap:6px;border-bottom:1px solid #edf1e5;padding:8px 0;font-size:13px}.native-priority li:before{content:counter(priority,decimal-leading-zero);color:#b1baa2;font-size:11px;padding-right:3px}.native-priority button{font-size:12px;border:1px solid #e2e8d8;border-radius:5px;color:#94a380;background:#fcfdf9;min-width:27px;min-height:28px}.native-card-select{min-width:0;font-size:13px}.policy-save{position:sticky;bottom:0;background:#ffffffed;backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding:13px 0 0;z-index:2}.native-save-status{margin:0;font-size:13px;color:#7d9a67}.policy-save button{font-size:13px}.native-bind{display:flex;flex-direction:column;margin:0 0 15px;gap:12px}.native-bind>select{width:100%;min-width:0;flex:none;font-size:13px}.native-quick{margin:0}.native-quick label:has(select){display:flex;flex-direction:column;align-items:stretch;margin-top:13px;gap:6px}.native-quick select{min-width:0;width:100%;font-size:13px}.player-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:8px 0 0}.player-toolbar h2{margin:0;font-size:16px}.player-toolbar p{margin:5px 0 0;font-size:13px;color:#8f9d82}.player-toolbar .search-field{max-width:220px;min-width:150px}.player-toolbar .actions{flex-wrap:nowrap}.player-toolbar .ghost{min-height:42px;font-size:13px}.profile-workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:22px;align-items:start}.profile-aside .panel h2{font-size:19px;margin:8px 0}.profile-aside>.panel>p{font-size:13px;margin:0 0 23px}.profile-aside .native-create{display:block;margin:0}.native-create .field{display:flex;flex-direction:column;align-items:stretch;margin-bottom:18px}.native-create input,.native-create select{width:100%;min-width:0;flex:none}.native-create .primary{width:100%}.native-create .field>span{font-size:13px}.profile-row{padding:22px 0;border-color:#edf0e7}.profile-row .native-heading b{font-size:14px}.profile-row .native-heading .muted{font-size:12px}.profile-row details{border:0;margin-top:3px}.profile-row details summary{font-size:13px!important;font-weight:400!important;color:#91a17d}.role-list{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:7px}.role-list li{background:#f7f9f2;border:1px solid #e9eede;padding:9px;font-size:13px;border-radius:7px;flex-wrap:wrap}.setup-guide{padding:23px 10px;color:#80936d}.setup-guide h3{font-size:13px;font-weight:500;margin:0 0 21px}.setup-guide ol{list-style:none;padding:0;margin:0}.setup-guide li{display:flex;gap:14px;margin:0 0 20px}.setup-guide li>span{font-size:12px;color:#a3b293;padding-top:1px}.setup-guide b{font-size:13px;font-weight:500}.setup-guide p{font-size:12px;color:#718168;margin:3px 0 0}.native-auth{border-color:#e0e8d6;background:#f9fbf5;border-radius:13px;padding:20px}.native-auth h3{font-size:15px}.native-auth>p{font-size:13px;color:#849b6d}.native-auth input{width:100%}.native-qr{border:10px solid white;border-radius:14px;width:240px}.refresh-status:empty{display:none}.refresh-status{border:1px solid #ebdfc7;background:#fffaf0;padding:12px;border-radius:8px;font-size:13px!important;color:#ad925f!important}.records-secondary{display:grid;grid-template-columns:1.2fr 1fr;gap:22px;margin-top:22px}.records-secondary>.panel+.panel{margin-top:0}.account-onboarding{background:#f6f9ee;border-radius:9px;padding:18px;margin-bottom:15px;font-size:13px}.account-onboarding .primary{font-size:13px}
/* Fleet tools share the same cards on desktop and stacked records on phones. */
.fleet-workspace>[class=actions]{margin-bottom:22px;border-bottom:1px solid var(--line);padding-bottom:14px;gap:9px}.fleet-workspace [data-tab]{background:transparent;border-color:transparent;font-size:13px}.fleet-workspace [data-tab][aria-pressed=true]{background:#eaf1e2!important;color:#4c7441;border-color:#dde7d3!important}.fleet-workspace [data-fleet-refresh]{margin-left:auto;font-size:13px}.fleet-workspace [data-fleet-connection]{font-size:12px;color:#718168}.fleet-workspace [data-key=queue]{grid-template-columns:repeat(3,minmax(0,1fr))}.fleet-workspace [data-key=connection]{padding:0 22px;margin-bottom:22px}.fleet-workspace [data-key=connection] details{border:0}.fleet-workspace [data-key=connection] summary{font-size:13px;flex-wrap:wrap}.fleet-workspace [data-key=connection] summary small{font-size:12px;font-weight:400}.fleet-workspace [data-key=connection] p{font-size:13px;color:#8e9c7c}.fleet-workspace [data-fleet-content]>p{font-size:13px;color:#718168;margin-bottom:20px}.fleet-host h2{font-size:15px;display:flex;align-items:center;gap:10px}.fleet-host h2 small{font-size:12px;font-weight:400}.fleet-host>p{font-size:13px;color:#718168}.fleet-host>p button{min-height:30px;padding:5px 9px;font-size:12px;margin-left:8px}.fleet-host input[type=checkbox]{width:19px;height:19px;min-height:0;accent-color:var(--brand)}.fleet-credential{max-width:min(850px,calc(100vw - 24px));max-height:90vh;max-height:90dvh;border:1px solid #dbe6cf;border-radius:15px;padding:24px;background:#fff;color:var(--ink)}.fleet-credential pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:65vh;max-height:65dvh;overflow:auto;font-size:13px;color:#71865f;background:#f7faf2;padding:17px;border-radius:8px}.fleet-workspace [data-key=profiles]>p{font-size:13px;color:#718168}.fleet-workspace [data-key=profiles]>label{display:flex;align-items:center;gap:12px;font-size:13px;color:#718661;margin:20px 0}.fleet-workspace [data-key=profiles] select{font-size:13px}.fleet-workspace [data-key=profiles] table{min-width:0}.fleet-workspace [data-key=logins]{margin-top:22px}.fleet-workspace [data-login-profile]{display:grid;gap:8px;min-width:190px;max-width:290px}.fleet-workspace [data-login-profile] select{min-width:0;width:100%;padding:8px 24px 8px 10px;min-height:36px}.fleet-workspace [data-login-profile] button{font-size:13px;min-height:34px}.fleet-workspace [data-login-profile] small{font-size:11px}.fleet-workspace #fleet-key{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.fleet-workspace #fleet-key label{display:grid;gap:6px;flex:0 1 380px;min-width:0;font-size:13px}.fleet-workspace #fleet-key input{width:100%;font-size:13px}.fleet-workspace #fleet-key button{font-size:13px}
.channel-login{border-color:#e0e8d5;box-shadow:0 5px 22px #557c3505}.channel-login header,.channel-login footer{background:#fafcf6}.channel-login header p{color:#8b9e78}.channel-buttons{border-color:#e6ecd9}.channel-fields .channel-field input:focus{border-color:#6d9971;box-shadow:0 0 0 2px #8cac6820}
@media(max-width:1180px){.native-accounts{grid-template-columns:1fr}.profile-workspace{grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr)}.records-secondary{grid-template-columns:1fr}.fleet-workspace [data-key=profiles] table{font-size:13px}.fleet-workspace [data-key=profiles] table td{padding:14px 8px}}
@media(max-width:760px){.native-accounts{gap:17px;margin-top:17px}.native-account{padding:19px}.account-heading h2{font-size:15px}.native-timers{grid-template-columns:1fr 1fr;gap:9px}.native-timers>div{padding:12px}.native-timers strong{font-size:14px;letter-spacing:-.5px}.timer-label{font-size:12px;gap:4px}.native-timers small{font-size:11px}.account-schedule{font-size:12px}.native-account>[data-run]{min-height:42px}.native-account summary,#native-root summary{min-height:48px;font-size:13px}.native-policy{padding:12px}.native-policy label{font-size:13px;align-items:flex-start}.native-policy input[type=checkbox]{width:18px;min-height:18px;margin-top:2px}.native-priority li{flex-wrap:wrap;font-size:13px}.native-priority button{min-width:34px;min-height:36px;font-size:13px}.native-priority li span{min-width:70px}.native-policy .actions{flex-wrap:nowrap;align-items:stretch}.native-policy .actions select{width:0;flex:1;font-size:13px!important}.native-policy .actions .ghost{min-width:52px;font-size:13px;padding:8px 10px}.policy-save{bottom:calc(65px + env(safe-area-inset-bottom));padding:12px 0}.policy-save button{min-height:42px}.native-save-status{font-size:12px}.native-bind>select{font-size:13px!important}.native-quick select{font-size:13px!important}.player-toolbar{align-items:flex-start;flex-wrap:wrap}.player-toolbar h2{font-size:15px}.player-toolbar p{font-size:12px}.player-toolbar>.actions{width:100%}.player-toolbar .search-field{min-width:0;max-width:none;flex:1}.player-toolbar .search-field input{font-size:13px!important}.player-toolbar .ghost{min-height:44px}.profile-workspace{display:flex;flex-direction:column;gap:17px}.profile-main,.profile-aside{width:100%}.profile-main:has(.empty){order:1}.profile-aside{order:2}.profile-row .native-heading{gap:7px}.profile-row .native-heading>div{flex-basis:100%}.profile-row .native-heading .ghost{font-size:13px;flex:1;min-height:40px}.native-create input{min-width:0}.setup-guide{padding:23px 5px}.native-auth{padding:15px}.native-auth h3{font-size:14px}.native-auth>p{font-size:13px}.native-qr{width:230px;max-width:100%}.fleet-workspace>[class=actions]{gap:7px}.fleet-workspace [data-tab]{font-size:13px;min-height:42px;padding:8px 10px}.fleet-workspace [data-fleet-refresh]{margin-left:0;min-height:42px}.fleet-workspace [data-fleet-connection]{width:100%;font-size:12px}.fleet-workspace [data-key=connection]{padding:0 17px}.fleet-workspace [data-key=connection] summary small{display:none}.fleet-workspace #fleet-key label{flex-basis:100%}.fleet-workspace #fleet-key button{width:100%;min-height:44px}.fleet-workspace [data-login-profile]{width:100%;max-width:none;min-width:0}.fleet-workspace [data-login-profile] select{min-height:44px;font-size:14px!important}.fleet-workspace [data-login-profile] button{min-height:44px;font-size:13px}.fleet-workspace [data-login-profile] small{font-size:12px}.fleet-workspace [data-key=profiles]>label{flex-wrap:wrap}.fleet-workspace #fleet-user{flex:1;min-width:120px;font-size:14px!important}.fleet-host .table td:first-child{display:flex;align-items:center;justify-content:space-between}.fleet-host .table td:first-child:before{content:'允许接收任务';font-size:13px}.fleet-host h2{font-size:15px}.records-secondary{gap:17px;margin-top:17px}.channel-login.expanded{inset:5px;max-height:calc(100vh - 10px);max-height:calc(100dvh - 10px)}.native-auth.expanded{inset:6px;padding:16px;max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px)}.channel-buttons button{min-height:44px}.channel-fields .channel-field input{min-height:46px;font-size:16px}.channel-login footer{gap:5px}.channel-login header button{font-size:13px;min-height:40px}}

.service-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start;max-width:1000px}.service-pass{position:relative;overflow:hidden;min-height:325px;padding:32px;border:1px solid #dce6cc;background:#edf3e2;border-radius:16px}.service-pass h2{font-size:23px;font-weight:500;margin:15px 0}.service-days{display:flex;align-items:baseline;gap:12px;margin:27px 0 15px}.service-days strong{font-size:54px;line-height:1.1;font-weight:450;color:#567845}.service-days span,.service-pass p{font-size:13px;color:#90a17c}.pass-leaf{position:absolute;right:-15px;bottom:-22px;color:#cad8b7}.pass-leaf .icon{width:170px;height:170px;stroke-width:.5}.service-pass .badge{position:relative;z-index:1}.service-layout>.panel{margin:0}.service-layout form>.primary{width:100%;margin-top:6px}.service-layout .form-note{margin:23px 0 0}@media(max-width:960px){.service-layout{grid-template-columns:1fr;max-width:600px}.service-pass{min-height:270px}.service-days{margin:20px 0 14px}}@media(max-width:760px){.service-layout{gap:17px}.service-pass{padding:25px}.service-pass h2{font-size:22px}.service-days strong{font-size:48px}}

.fleet-search-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.fleet-search-row [data-fleet-match]{font-size:12px;color:#748265}.fleet-search-row .search-field{max-width:390px}.table[data-responsive=cards] .badge{justify-self:start}.service-pass .eyebrow{color:#698155}@media(max-width:760px){.fleet-search-row{flex-wrap:wrap}.fleet-search-row .search-field{max-width:none;flex:1;min-width:100%}.fleet-search-row input{font-size:14px!important}.native-accounts .timer-label{font-size:12px}.native-timers small{font-size:11px}.native-timers strong{font-size:15px}.native-timers strong{overflow-wrap:normal}.policy-save{gap:6px}.policy-save .native-save-status{font-size:12px}}
/* Directory selection keeps local paths readable on desktop and small screens. */
.directory-import-dialog{max-height:90vh;max-height:90dvh;overflow:auto}
.directory-import-dialog[open]{display:flex;flex-direction:column}
.directory-import-dialog>.dialog-heading,.directory-import-dialog>.dialog-description,.directory-import-dialog>.dialog-actions{flex-shrink:0}
.directory-import-dialog>.dialog-body{min-height:0;overflow:auto}
.directory-import-history .empty-state{padding:20px}
.directory-import-controls{display:flex;gap:16px;align-items:end;flex-wrap:wrap}
.directory-import-controls .field{flex:1;min-width:190px}
.directory-import-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0;max-height:280px;overflow:auto}
.directory-import-option{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line,#dce4dd);border-radius:12px;cursor:pointer}
.directory-import-option b,.directory-import-option small,.directory-import-result small{display:block;overflow-wrap:anywhere}
.directory-import-option small,.directory-import-result small{opacity:.7;margin-top:4px}
.directory-import-option:has(input:checked){background:#edf5ef;border-color:#8ab69b}
.directory-import-option:has(input:disabled){opacity:.55;cursor:default}
.directory-import-history{margin-top:28px}
.directory-import-result{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line,#dce4dd)}
.directory-import-result>div:first-child{min-width:0;overflow-wrap:anywhere}
.directory-import-result p{font-size:13px;margin:6px 0;color:var(--muted,#647267)}
@media(max-width:600px){.directory-import-options{grid-template-columns:1fr}.directory-import-result{align-items:flex-start}.directory-import-controls{align-items:stretch}.directory-import-controls button{width:100%}}

/* Detailed diagnostics stay in the administrator device workspace. */
.fleet-health{border-left:3px solid #6b8aaf;padding-left:14px;margin:12px 0}.fleet-diagnostic{margin:10px 0;padding:12px;background:var(--surface,#f7f9fc);border:1px solid #dce4ed;border-radius:10px;overflow-wrap:anywhere}.fleet-diagnostic summary{cursor:pointer}.fleet-error{padding:8px 0;border-bottom:1px solid #dce4ed}.fleet-error pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.fleet-diagnostic p{max-width:100%}

.fleet-workspace .cards{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:900px){.fleet-workspace .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Admin-only maintenance stays compact and retains form drafts during polling. */
.fleet-maintenance { margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--border, #dce3ea); }
.fleet-maintenance > summary { cursor: pointer; font-weight: 600; }
.fleet-maintenance form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 12px 0; }
.fleet-maintenance form label { flex: 1 1 220px; }
.fleet-maintenance pre { max-height: 340px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.role-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.role-actions button{min-height:44px}.role-plan-summary{padding:12px 16px;background:#f1f5f1;border-radius:12px;font-size:13px;line-height:1.8}.role-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.role-rule{border:1px solid #dbe5df;border-radius:14px;padding:16px;margin:14px 0}.role-rule legend{padding:0 8px;font-weight:650}.role-stars{display:flex;gap:15px;flex-wrap:wrap}.role-stars label,.role-switch{display:flex;align-items:center;gap:8px}.role-stars input,.role-switch input{width:18px;min-height:18px}.role-switch{margin:18px 0 10px;font-weight:600}.role-history{padding:12px 0;border-bottom:1px solid #e7ece8}.role-history time{font-size:12px;margin-right:12px;color:#6b786e}.role-history p{margin:6px 0}.dialog-body textarea{width:100%;box-sizing:border-box;font:inherit;padding:12px;border:1px solid #cedbd1;border-radius:10px}.role-billing-note{line-height:1.8;color:#566b5f;margin-top:18px}
@media(max-width:600px){.role-field-grid{grid-template-columns:1fr;gap:10px}.role-stars{gap:8px 16px}.role-rule{padding:12px}.role-actions button{flex:1 1 40%;font-size:13px}.player-toolbar>.actions{flex-wrap:wrap}.player-toolbar .search-field{flex-basis:100%}.role-history time{display:block;margin-bottom:6px}}
.role-dialog{padding:20px!important;overflow:hidden;width:min(720px,calc(100vw - 24px))!important;border-radius:8px!important}
.role-dialog>form{display:flex;flex-direction:column;max-height:calc(100vh - 92px);max-height:calc(100dvh - 92px);min-height:0}
.role-dialog .dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:8px}
.role-dialog .dialog-heading,.role-dialog .dialog-description,.role-dialog .dialog-actions,.role-dialog .form-error{flex-shrink:0}
.role-dialog .dialog-actions{position:static;padding:14px 0 0;margin-top:14px}
.role-dialog .dialog-heading h2{font-size:20px;letter-spacing:0}
.role-dialog .role-rule{min-width:0;border-radius:8px}
.role-dialog .role-stars label{min-height:32px}
.role-dialog .role-stars input,.role-dialog .role-switch input{min-height:18px!important}
.role-plan-summary{border-radius:0;background:transparent;border-top:1px solid var(--line);padding:12px 0}
.native-timers strong{letter-spacing:0}
.server-picker{position:relative;min-width:0;align-self:start}
.server-picker>label{display:block;font-size:14px;margin-bottom:8px}
.server-options{position:absolute;top:100%;left:0;right:0;z-index:20;margin-top:4px;max-height:min(220px,30vh);max-height:min(220px,30dvh);overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #b9cbbf;border-radius:6px;box-shadow:0 6px 16px #203c2520}
.server-options[hidden]{display:none}
.server-options button{display:block;width:100%;min-height:44px;border:0;border-radius:0;background:#fff;padding:10px 12px;text-align:left;font:inherit;color:#263d30;overflow-wrap:anywhere}
.server-options button:hover,.server-options button[aria-selected=true]{background:#eaf3ed;color:#235f42}
.server-options p{margin:0;padding:12px;font-size:14px;color:#66736c}
.role-dialog button{white-space:normal}
@media(max-width:600px){.role-dialog .dialog-actions button[type=submit]{flex:2;white-space:nowrap}.role-dialog .dialog-actions button[type=button]{flex:1}}

.remember-account-notice{margin:16px 0;padding:14px 18px;border:2px solid #c57d10;border-radius:12px;background:#fff4ce;color:#7a3d00;text-align:center;font-size:clamp(18px,3vw,24px);font-weight:800;line-height:1.5}.pause-choice{display:flex;align-items:center;gap:10px;margin:16px 0;font-weight:600}.pause-choice input{width:18px;height:18px;accent-color:#28664f}.ui-dialog .role-rule{margin:16px 0;padding:16px;border:1px solid #dce5de;border-radius:12px}.ui-dialog .role-stars{display:flex;flex-wrap:wrap;gap:14px}.ui-dialog .role-field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.ui-dialog .role-switch{display:block;margin:16px 0}.ui-dialog .role-rule input[type=checkbox],.ui-dialog .role-switch input[type=checkbox]{width:18px;height:18px;margin-right:6px}
.native-auth p.remember-account-notice,.channel-login p.remember-account-notice{color:#7a3d00!important;font-size:clamp(18px,3vw,24px)!important;font-weight:800!important;line-height:1.5;margin:16px 0;padding:14px 18px}

/* Native modal dialogs must not inherit absolute document positioning from the legacy polyfill. */
.ui-dialog{position:fixed;inset:0;margin:auto}

/* Accepted native channel form: separate from remote screenshot overlays. */
.channel-login.native-form{max-width:460px;width:100%;min-width:0;margin:0 auto;background:#fff;border:1px solid #e5e9f0;border-radius:20px;color:#24324a;overflow:visible}
.channel-login.native-form header{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:24px 24px 0}
.channel-login.native-form header>div{flex:1 1 180px;min-width:0}
.channel-login.native-form [hidden]{display:none!important}
.channel-login.native-form footer{padding:16px 24px 24px;font-size:12px;line-height:1.6}
.tt-channel-form{padding:20px 24px;font:15px/1.6 system-ui;min-width:0;text-align:left}
.tt-channel-form *{box-sizing:border-box}
.tt-channel-form .tt-channel-field{display:block;position:static;width:100%;height:auto;margin:0 0 18px;min-width:0}
.tt-channel-form .tt-channel-label{display:block;position:static;font-size:14px;font-weight:500;line-height:1.6;margin-bottom:7px}
.tt-channel-form input{display:block;position:static;width:100%;height:48px;min-height:48px;max-height:none;padding:12px 14px;margin:0;border:1px solid #dce2ec;border-radius:10px;background:#fff;color:#24324a;font:16px/1.4 system-ui;outline:none}
.tt-channel-form input:focus{border-color:#527be0;box-shadow:0 0 0 3px #527be014}
.tt-channel-form button{position:static;display:inline-block;height:auto;min-height:44px;max-height:none;padding:10px 14px;border:1px solid #dce2ec;border-radius:10px;background:#fff;color:#405473;font:14px/1.5 system-ui;white-space:normal;cursor:pointer}
.tt-channel-form button:disabled{opacity:.5;cursor:default}
.tt-channel-tabs{display:flex;gap:4px;padding:4px;background:#f2f5fa;border-radius:12px;margin-bottom:22px}
.tt-channel-tabs .tt-channel-tab{flex:1;border:0;background:transparent}
.tt-channel-tabs .tt-channel-tab[aria-pressed=true]{background:#fff;color:#315cc0;box-shadow:0 2px 6px #24324a0c}
.tt-channel-form .tt-channel-primary{display:block;width:100%;background:#456fd1;border-color:#456fd1;color:white;font-weight:600;margin:12px 0}
.tt-channel-code{display:flex;align-items:center;gap:10px;min-width:0}
.tt-channel-code input{flex:1;width:0;min-width:0}
.tt-channel-code button{flex:0 0 auto;max-width:52%;font-size:13px}
.tt-channel-form .tt-channel-agreement{display:block;width:100%;text-align:left;font-size:13px;margin:8px 0}
.tt-channel-support,.tt-channel-legal{display:flex;flex-wrap:wrap;gap:8px 14px}
.tt-channel-legal{border-top:1px solid #edf0f5;margin-top:24px;padding-top:14px}
.tt-channel-form .tt-channel-link{border:0;padding:2px 0;background:none;font-size:12px;color:#78869b}
.tt-channel-form details{margin-top:16px;color:#78869b;font-size:12px}
.tt-channel-form .tt-channel-secondary{margin:6px 5px 6px 0}
@media(max-width:520px){.channel-login.native-form{border-radius:16px}.channel-login.native-form header{padding:18px 16px 0}.tt-channel-form{padding:20px 16px}.channel-login.native-form footer{padding:12px 16px 18px}}

.tt-channel-state{padding:24px!important;margin:0!important;min-height:120px;line-height:1.7!important;color:#80551d!important;background:#fff8e8}.tt-channel-state[hidden]{display:none!important}
.tt-channel-state.tt-channel-official-notice{min-height:0;padding:14px 24px!important}
.tt-channel-processing{position:sticky;top:8px;z-index:5;display:flex;align-items:center;gap:12px;margin:16px 16px 0!important;padding:15px 18px!important;border:2px solid #b57712;border-radius:12px;background:#fff4d8;color:#714506!important;font:700 16px/1.6 system-ui!important;box-shadow:0 4px 14px #71450618}
.tt-channel-processing::before{content:'';flex:0 0 18px;width:18px;height:18px;border:3px solid #d8bc88;border-top-color:#87560a;border-radius:50%;animation:tt-processing-spin .9s linear infinite}
.tt-channel-processing[hidden]{display:none!important}
@keyframes tt-processing-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.tt-channel-processing::before{animation:none}}
.own-card-notice{margin:16px 0;padding:16px;border:1px solid #c38a31;border-left:5px solid #a96913;border-radius:10px;background:#fff4d9;color:#69420b;line-height:1.7}
.own-card-notice strong{display:block;font-size:16px;color:#69420b}.own-card-notice p{margin:6px 0 12px;font-size:14px;overflow-wrap:anywhere}.own-card-notice .ghost{color:#69420b;border-color:#c38a31;background:#fffdf5;min-height:44px}
