/* Shared visual system for the console, pages and device tools. */
:root{--green:#3159db;--line:#e2e7f0;--muted:#718096;color:#202c42;background:#f1f4f9;font-size:14px}
body{background:#f1f4f9}button,input,select,textarea{font:inherit}button{padding:9px 13px;border-radius:9px;min-height:36px;font-size:12px;transition:background .15s,border-color .15s}button:hover{background:#edf2ff;border-color:#c5d2f5}.primary{background:#3159db;border-color:#3159db}.primary:hover{background:#2448bb;border-color:#2448bb}.danger{color:#bc3d4c}.danger:hover{background:#fff0f2;border-color:#f0c4cb}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a8bcff;outline-offset:3px}button:disabled{opacity:.5}input,select,textarea{border-color:#dce3ed;border-radius:9px;background:white;padding:9px 11px;color:#28374f}input:focus,select:focus,textarea:focus{border-color:#3159db}label{color:#526078;line-height:1.6}input[type=checkbox]{accent-color:#3159db}h1{font-size:25px;letter-spacing:-.5px;font-weight:700}h2{font-size:20px}h3{font-size:15px}.eyebrow{font-size:10px;letter-spacing:1.2px;color:#718096;margin-bottom:8px}.mono{font-size:11px}small{font-size:11px;color:#718096}.muted{color:#718096}
.sidebar{width:216px;padding:24px 14px;background:#152039;color:#c1cbe0;border:0;z-index:40}.brand{font-size:19px;color:#fff;padding:0 6px}.brand-icon{background:#4468e8;border-radius:10px}.brand small{color:#8fa2c8}.workspace{background:#202e49;border:1px solid #31405c;margin:26px 0 22px;color:#e4ebf8;padding:12px 9px}.workspace small{color:#91a2be}.workspace-mark{border-color:#41516e;color:#b8c8e4}.nav-label{color:#8092b6}.nav-item{color:#b9c7de;padding:12px 10px;border-radius:9px}.nav-item:hover{color:white;background:#23324f}.nav-item.active{background:#3159db;color:white}.nav-item.active b{background:#ffffff29;color:white}.nav-item svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;flex-shrink:0}.nav-item b{background:#2e405f;color:#c1cee5}.mini-status{border-color:#31405c;color:#9daecb}.user-block{background:transparent;color:#dbe4f5}.user-block:hover{background:#253550}.user-block small{color:#8da2c9}.avatar{background:#e7edfc;color:#3159db}.main{margin-left:216px;min-width:0}.topbar{height:62px;padding:0 24px;position:sticky;top:0;z-index:25;box-shadow:0 1px 8px #202c4205;font-size:12px;background:#ffffffed;backdrop-filter:blur(10px)}.topbar-left{display:flex;align-items:center;min-width:0;gap:8px}.topbar-right{gap:10px}.local-badge{font-size:11px;color:#5d6d87;letter-spacing:0}.shell-button{font-size:12px;padding:7px 10px}.menu-toggle{display:none}.menu-backdrop{display:none}main#content{padding:22px 24px;max-width:none;min-width:0}.main>footer{padding:15px 24px;font-size:10px;color:#8190a7}.main>#section-tabs{margin:0;padding:12px 24px;border-bottom:1px solid var(--line);background:#fff;display:flex;gap:7px;overflow-x:auto}.main>#section-tabs button{flex-shrink:0;border-color:transparent;background:transparent;color:#72809a;padding:7px 12px;font-size:12px}.main>#section-tabs button.active{background:#eaf0ff;color:#3159db;border-color:#dbe5ff}.page-heading{margin-bottom:20px;align-items:flex-start}.page-heading p{font-size:12px;line-height:1.7;max-width:720px}.heading-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.panel{border-radius:12px;border-color:var(--line);box-shadow:0 2px 6px #20355c03}.panel+.panel{margin-top:18px}.panel-head{padding:15px 18px}.toolbar{padding:12px 18px}.notice{background:#edf2ff;border-color:#dce5fc;color:#54678d;padding:11px 14px;font-size:12px;line-height:1.7;margin-bottom:17px}.metrics{gap:12px;margin-bottom:18px}.metric{padding:16px;border-color:var(--line);border-radius:12px}.metric-value{font-size:29px;margin:10px 0}.metric-icon{background:#edf2ff;color:#3159db}.metric-top{font-size:12px}.metric-foot{font-size:11px}.table-wrap{max-height:65vh;overflow:auto}table{font-size:12px}thead{position:sticky;top:0;z-index:2}th{font-size:11px;letter-spacing:0;background:#f7f9fc;color:#6b7a92;padding:12px 15px}td{padding:13px 15px;border-color:#edf0f6}tbody tr:hover{background:#f7faff}td>button{font-size:11px;min-height:32px;padding:6px 10px}.badge{font-size:11px;border-radius:6px;padding:4px 8px}.badge.online,.badge.completed{background:#e8f7ef;color:#19865d}.badge.running{background:#eaf0ff;color:#3159db}.badge.failed{background:#ffedf0;color:#be4054}.badge.queued,.badge.pending{background:#fff5df;color:#a8791b}.empty{padding:42px 20px}.empty-symbol{background:#edf2ff;color:#3159db;border-color:#dce6ff}.empty p{font-size:12px}.panel-foot{padding:12px 18px;font-size:11px}.list-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);background:white}.list-controls input{flex:1;min-width:180px;max-width:480px;font-size:12px}.list-controls select{width:auto;max-width:240px;font-size:12px}.list-reset{margin-left:auto}.list-pagination{display:flex;align-items:center;gap:8px;padding:11px 16px;border-top:1px solid var(--line);font-size:11px;background:white}.list-pagination>span{margin-right:auto;color:#718096}.list-pagination label{display:flex;align-items:center;gap:8px;margin:0;font-size:11px}.list-pagination select{width:68px;margin:0;font-size:11px}.list-pagination button{min-height:30px;padding:4px 10px}.list-no-results{text-align:center;color:#718096;padding:30px;margin:0}.sort-column{border:0;border-radius:4px;background:transparent;color:inherit;font-size:11px;padding:0;min-height:24px}.sort-column:hover{background:#eaf0ff}.guide-card,.guide-note{padding:20px}.guide-grid{gap:14px}.step{background:#eaf0ff;color:#3159db}.guide-note{font-size:12px}.quick-start{background:#edf2ff;border-color:#dce5fc}.activity-list{padding:4px 18px}.activity{font-size:12px}
/* Compact full-width fleet and screen wall. */
main#content:has(.fleet-console),main#content:has(.screens-console){padding:18px 20px}.fleet-console,.screens-console{padding:0;background:transparent}.fleet-heading,.screens-heading{border-radius:12px;border:1px solid var(--line);padding:17px 18px;margin-bottom:15px;background:#fff}.fleet-heading h1,.screens-heading h1{font-size:22px}.fleet-overview{gap:12px;margin-bottom:15px}.fleet-count{padding:16px;border-radius:12px;border:1px solid var(--line)}.fleet-count strong{font-size:25px}.fleet-symbol{background:#edf2ff;color:#3159db}.fleet-release{gap:8px;font-size:12px}.fleet-release>button,.fleet-release>a{font-size:11px}.fleet-search{margin:0 0 14px;max-width:none;width:100%;justify-content:flex-start;flex-wrap:wrap;gap:8px}.fleet-search>input{max-width:450px;flex:1;min-width:200px}.fleet-search select,.fleet-search #version-filter{max-width:200px;min-width:130px;width:auto}.fleet-commandbar{border:1px solid var(--line);border-radius:12px 12px 0 0;background:white;gap:8px;padding:11px 14px}.fleet-commandbar button{font-size:11px}.fleet-console .fleet-table-wrap{max-height:calc(100vh - 355px)}.fleet-console table td{font-size:12px;padding:12px 14px}.fleet-console table th{font-size:11px}.fleet-console .device-name{font-size:12px}.fleet-console .fleet-progress{font-size:11px;min-width:185px;max-width:260px}.fleet-console .panel-foot{background:#fff;border:1px solid var(--line);border-radius:0 0 12px 12px}.fleet-quick-actions{display:flex;flex-wrap:wrap;gap:6px}.fleet-tools{border-color:var(--line)}.screens-metrics{gap:12px}.screen-metric{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff}.screens-toolbar{background:white;padding:12px 14px;border-radius:12px;border:1px solid var(--line);margin-bottom:12px}.screens-console .screen-tile{border-color:var(--line);border-radius:12px}.wall-pagination{background:white;border:1px solid var(--line);border-radius:10px;padding:10px}.screens-results{font-size:11px}.wall-live{color:#19865d}
/* Shared dialogs, forms, automation and login. */
dialog{max-height:90dvh;border-radius:15px;border-color:var(--line);box-shadow:0 24px 100px #15203933}dialog::backdrop{background:#101b3860;backdrop-filter:blur(4px)}.modal-head{padding:17px 20px;background:#fff;position:sticky;top:0;z-index:3}.modal-head h2{font-size:18px}.modal-head .icon-button{font-size:25px;min-height:30px}.modal-head .icon-button:hover{background:#f0f3fa}#modal-body{padding:20px}.form-row{gap:12px}.form-actions{flex-wrap:wrap;margin-top:18px}.help{font-size:12px;line-height:1.7}.code,pre.result{background:#f3f6fb;border-color:var(--line);font-size:12px}.check-label{padding:8px 10px;border-radius:7px;background:#f7f9fc;margin-bottom:6px}.facebook-post-card{border-color:var(--line);border-radius:10px;padding:16px}.facebook-post-info h3{font-size:15px}.facebook-post-info a{overflow-wrap:anywhere}.facebook-post-actions{gap:7px}.facebook-post-actions button{font-size:11px}.facebook-post-list{padding:12px}#facebook-workflow-devices{max-height:320px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#facebook-workflow-form .facebook-post-info{display:grid;grid-template-columns:1fr 1.2fr 2fr .6fr .6fr;gap:10px;align-items:end}#facebook-workflow-form .facebook-post-info label{margin-bottom:0}#facebook-workflow-jobs{font-size:12px}#facebook-workflow-status{padding:10px;background:#edf2ff;border-radius:8px}#facebook-workflow-status:empty{display:none}.agent-update-modal .au-footer{flex-wrap:wrap;gap:12px}.au-footer>label{display:flex;gap:8px;align-items:center;flex-basis:100%;margin:0;font-size:12px}.au-footer>label input{margin:0}.au-footer p{font-size:12px}.au-body{padding:20px}.au-release,.au-metric{border-color:var(--line);border-radius:10px}.au-toolbar{gap:10px}.au-guide p{font-size:12px}.login-wrap{background:#f8faff}.login-card{width:390px}.login-card h1{font-size:31px}.login-card input{padding:13px}.login-card button{padding:13px;background:#3159db}.login-card>small{font-size:11px}.login-art{background:linear-gradient(145deg,#172443,#234898)}.orbit{border-color:#ffffff17}.art-core{background:#5379f0;box-shadow:20px 25px 0 #ffffff12}.art-caption{color:#cedbfd;font-size:25px}.login-card .brand-icon{background:#3159db}#toast{background:#203354;border-color:#314668;font-size:12px;z-index:100}
@media(min-width:1600px){.fleet-search>input{max-width:550px}.fleet-console .fleet-table-wrap{max-height:calc(100vh - 330px)}}
@media(max-width:1100px){.sidebar{width:190px}.main{margin-left:190px}.topbar{padding:0 18px}main#content{padding:18px}.fleet-overview{flex-wrap:wrap}.fleet-release{flex:1;min-width:240px}.fleet-search #version-filter{max-width:180px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.heading-actions{flex-direction:row}#facebook-workflow-form .facebook-post-info{grid-template-columns:1fr 1fr}.topbar-right .avatar{display:none}}
@media(max-width:720px){.sidebar{position:fixed;width:240px;inset:0 auto 0 0;height:100dvh;transform:translateX(-100%);transition:transform .2s;display:flex;padding:24px 14px}.sidebar nav{display:grid}.sidebar-bottom,.workspace,.nav-label{display:block}.sidebar-bottom{margin-top:auto}.workspace{display:flex}.nav-item{font-size:13px;display:flex}.nav-item svg{display:block}.menu-open .sidebar{transform:translateX(0)}.menu-open .menu-backdrop{display:block;position:fixed;inset:0;background:#10203980;z-index:35;border:0;border-radius:0}.main{margin-left:0}.menu-toggle{display:inline-flex;font-size:20px;padding:4px 10px}.topbar{height:58px;padding:0 12px}.topbar-left>.muted,.topbar-left>.slash{display:none}#breadcrumb{font-size:11px;max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-right{gap:5px}.topbar-right .local-badge,#quick-screens{display:none}.shell-button{font-size:11px;padding:6px 8px}main#content,main#content:has(.fleet-console),main#content:has(.screens-console){padding:12px}.main>#section-tabs{padding:9px 12px}.page-heading{gap:10px;flex-wrap:wrap;margin-bottom:15px}.page-heading h1{font-size:22px}.heading-actions{width:100%;justify-content:flex-start}.metrics{gap:8px}.metric{padding:13px}.metric-value{font-size:25px}.panel-head{padding:13px;flex-wrap:wrap}.list-controls{padding:10px;gap:6px}.list-controls input{min-width:100%;font-size:16px}.list-controls select{flex:1;max-width:none}.list-pagination{padding:10px;gap:6px;flex-wrap:wrap}.list-pagination>span{min-width:130px}.table-wrap{max-height:65dvh}.fleet-heading,.screens-heading{padding:14px}.fleet-heading h1,.screens-heading h1{font-size:20px}.fleet-count{padding:12px}.fleet-count strong{font-size:22px}.fleet-release{justify-content:flex-start}.fleet-search>input{min-width:100%;max-width:none;font-size:16px}.fleet-search select,.fleet-search #version-filter{flex:1;min-width:calc(50% - 8px);max-width:none;font-size:12px}.fleet-commandbar{padding:10px}.fleet-console .fleet-table-wrap{max-height:60dvh}.fleet-quick-actions{width:100%}.fleet-quick-actions button{flex:1}.screens-toolbar{padding:10px}.screens-metrics{gap:8px}.guide-grid{grid-template-columns:1fr}.guide-card,.guide-note{padding:16px}.main>footer{padding:14px 12px;font-size:9px}.login-wrap{display:flex;align-items:center;justify-content:center}.login-art{display:none}.login-card{padding:24px 0}.login-card h1{font-size:28px}dialog{max-width:calc(100vw - 20px);max-height:92dvh}.modal-head{padding:15px}#modal-body{padding:16px}dialog input:not([type=checkbox]),dialog textarea{font-size:16px}.form-row{gap:10px}.facebook-post-card{padding:13px}#facebook-workflow-devices{grid-template-columns:1fr}#facebook-workflow-form .facebook-post-info{grid-template-columns:1fr 1fr}#facebook-workflow-form .facebook-post-info label:nth-child(3){grid-column:1/-1}.au-body{padding:14px}.au-footer{padding:14px}.au-footer>label{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.guide-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.guide-permissions>div{padding:14px;border:1px solid var(--line);border-radius:9px;background:#f8faff}.guide-permissions p{color:#718096;margin:6px 0 0;font-size:12px}.workflow-device-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.workflow-device-toolbar input{max-width:350px;flex:1;min-width:180px}.workflow-device-toolbar span{font-size:12px;color:#718096;margin-left:auto}.fleet-quick-actions{margin-bottom:12px}.fleet-console .table-wrap{max-height:calc(100dvh - 420px)}.fleet-console .fleet-search{display:flex;flex-wrap:wrap}.fleet-console .fleet-search select{max-width:180px}.list-controls+ .facebook-post-list{max-height:65dvh;overflow:auto}@media(max-width:720px){.guide-permissions{grid-template-columns:1fr}.workflow-device-toolbar input{min-width:100%}.workflow-device-toolbar span{width:100%;margin:0}.fleet-console .table-wrap{max-height:60dvh}.fleet-console .fleet-search select{max-width:none;flex:1}.fleet-console .fleet-search #group-filter,.fleet-console .fleet-search #readiness-filter{min-width:calc(50% - 8px)}}
.sidebar .nav-item{background:transparent;color:#b9c7de}.sidebar .nav-item:hover{background:#23324f;color:#fff}.sidebar .nav-item.active{background:#3159db;color:#fff}.main>#section-tabs{width:100%;max-width:none;border-radius:0;border-left:0;border-right:0;border-top:0;flex-wrap:nowrap;box-shadow:none}.fleet-main-actions .primary{background:#3159db;border-color:#3159db}.fleet-main-actions .primary:hover{background:#2448bb}.fleet-main-actions .danger{background:#fff0f2;color:#bc3d4c;border:1px solid #f0c4cb}.fleet-selection{background:#edf2ff;color:#3159db}.fleet-commandbar #fleet-tools>summary{background:#edf2ff;color:#3159db;border:1px solid #dbe5fc}.fleet-main-actions>button:first-child{background:#edf2ff;color:#3159db}.fleet-console table tbody tr:has(input:checked){background:#edf2ff}@media(max-width:720px){.fleet-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.fleet-count{min-width:0;width:auto;flex:none}.fleet-count em{font-size:12px}.fleet-release{grid-column:1/-1;margin:0;min-width:0;flex:none}.fleet-count small{font-size:10px}.fleet-symbol{flex-shrink:0}.fleet-commandbar{flex-wrap:wrap}.fleet-commandbar #fleet-tools{margin-left:auto}}
.connection-error{color:#bc3d4c;background:#fff0f2;padding:5px 9px;border-radius:6px}.sidebar{box-shadow:none}@media(max-width:720px){.sidebar{left:0;right:auto;box-shadow:none}.menu-open .sidebar{box-shadow:12px 0 40px #10203930}}
.profile-panel{padding:18px}.profile-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:16px}.profile-toolbar label{flex:1;min-width:220px;max-width:430px;margin:0}.profile-toolbar label select{margin-top:5px}.profile-toolbar button{align-self:flex-end}.profile-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.profile-field{padding:12px 14px;background:#f7f9fc;border:1px solid var(--line);border-radius:9px;min-width:0}.profile-field>span{display:block;font-size:11px;color:#718096;margin-bottom:7px}.profile-field strong{font-size:13px;font-weight:550;overflow-wrap:anywhere;white-space:pre-wrap}.profile-field em{font-style:normal;color:#98a4b8;font-size:11px}#profile-reported{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0}#profile-reported>div{padding:12px;background:#edf2ff;border-radius:8px}#profile-reported span{display:block;font-size:11px;color:#718096;margin-bottom:5px}#profile-reported strong{font-size:13px;overflow-wrap:anywhere}#profile-status{padding:10px 12px;background:#f3f6fb;border-radius:8px;font-size:12px;margin:0}#profile-status[data-state=failed],#profile-status[data-state=verification_required]{color:#b23a4b;background:#fff0f2}#profile-status[data-state=reading],#profile-status[data-state=changing]{color:#3159db;background:#edf2ff}#profile-captured{margin:15px 0 0}.profile-source{font-size:11px}@media(max-width:1000px){.profile-values{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.profile-panel{padding:12px}.profile-toolbar label{max-width:none;flex-basis:100%}.profile-toolbar button{font-size:11px}.profile-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.profile-field{padding:10px}.profile-field strong{font-size:12px}#profile-reported{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.profile-toolbar select{font-size:16px}}

/* Bulk Changer reader: keep controls visible and give device names room. */
#profile-read-modal{width:min(1280px,94vw);max-width:94vw;height:88dvh;max-height:94dvh;padding:0;overflow:hidden}
#profile-read-modal[open]{display:flex;flex-direction:column}
#profile-read-modal>.au-head{position:static;flex:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 26px;border-bottom:1px solid var(--line)}
#profile-read-modal .au-head h2{font-size:22px!important;line-height:1.4;margin-bottom:4px!important}
#profile-read-modal .au-head p{font-size:13px}
#profile-read-modal>.au-body{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:18px 26px;gap:12px}
#profile-read-modal .au-toolbar{flex:none;align-items:center;gap:8px;margin:0;flex-wrap:wrap}
#profile-read-modal .au-toolbar button{min-height:40px;padding:9px 14px;font-size:13px;white-space:nowrap}
#profile-read-modal #pr-search{flex:1;min-width:180px;width:auto;margin-left:auto;min-height:40px}
#profile-read-modal .au-body>p{flex:none;margin:0;font-size:12px;line-height:1.7;color:#71829b}
#profile-read-modal #pr-list{flex:1;min-height:0;overflow:auto;border:1px solid var(--line);border-radius:10px}
#profile-read-modal #pr-list table{display:table;table-layout:fixed;width:100%;min-width:0}
#profile-read-modal #pr-list thead{display:table-header-group;position:sticky;top:0;z-index:1;background:#f7f9fc}
#profile-read-modal #pr-list th:first-child{width:56px}
#profile-read-modal #pr-list th:nth-child(2){width:43%}
#profile-read-modal #pr-list th:nth-child(3){width:31%}
#profile-read-modal #pr-list th{padding:12px 14px;font-size:12px;white-space:nowrap}
#profile-read-modal #pr-list td{padding:13px 14px;font-size:13px;line-height:1.6;vertical-align:middle}
#profile-read-modal #pr-list td strong{font-size:14px;line-height:1.5}
#profile-read-modal #pr-list td small{margin-top:3px;font-size:12px}
#profile-read-modal #pr-list input[type=checkbox]{width:18px;height:18px;margin:0;vertical-align:middle}
#profile-read-modal>.au-footer{flex:none;flex-direction:row;align-items:center;flex-wrap:wrap;padding:14px 26px;gap:12px}
#profile-read-modal .au-footer p{font-size:13px;min-width:220px}
#profile-read-modal .au-footer button{width:auto;min-height:42px;padding:10px 18px}
@media(max-width:700px){
 #profile-read-modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:94dvh;max-height:94dvh;border-radius:12px}
 #profile-read-modal>.au-head{padding:15px;gap:10px}
 #profile-read-modal .au-head h2{font-size:19px!important}
 #profile-read-modal>.au-body{padding:12px;gap:10px}
 #profile-read-modal #pr-search{flex-basis:100%;margin:0;font-size:16px}
 #profile-read-modal .au-toolbar button{flex:1;padding:9px 6px;font-size:12px}
 #profile-read-modal #pr-list table,#profile-read-modal #pr-list tbody{display:block}
 #profile-read-modal #pr-list thead{display:none}
 #profile-read-modal #pr-list tr{display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:13px;margin:0}
 #profile-read-modal #pr-list td{display:block;padding:0;border:0;grid-column:2;font-size:12px}
 #profile-read-modal #pr-list td:first-child{grid-column:1;grid-row:1/4;padding:2px 0;border:0}
 #profile-read-modal #pr-list td::before{display:none}
 #profile-read-modal>.au-footer{padding:12px;gap:8px}
 #profile-read-modal .au-footer p{flex-basis:100%;font-size:12px}
 #profile-read-modal .au-footer button{flex:1;font-size:12px;padding:10px}
}
#profile-read-modal #pr-list th:nth-child(2){width:35%}
#profile-read-modal #pr-list th:nth-child(3){width:25%}
#profile-read-modal .pr-value{padding:4px 0;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
#profile-read-modal .pr-value span{font-size:11px;color:#71829b}
#profile-read-modal #pr-list .pr-value strong{font-size:12px;font-weight:500}
#profile-read-modal #pr-list td:last-child button{font-size:12px;padding:6px 10px;margin-top:6px}
.remote-scroll-buttons{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:12px}.remote-scroll-buttons button{padding:8px 11px;font-size:12px;min-height:36px;background:#f8faff;color:#20324e;border-color:#dce4ef}.command-busy .remote-scroll-buttons{opacity:.55;pointer-events:none}

/* Keep the entire device image visible while its tools scroll independently. */
#remote-modal{width:calc(100vw - 32px);max-width:1440px;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:0;overflow:hidden}
#remote-modal[open]{display:flex;flex-direction:column}
#remote-modal>.modal-head{flex:none;position:relative}
#remote-modal .remote-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 360px;gap:16px;padding:16px;overflow:hidden}
#remote-modal .remote-display{min-height:0;min-width:0;padding:12px;overflow:hidden}
#remote-modal .remote-image-frame{flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
#remote-modal #remote-screen{max-width:100%;max-height:100%;width:auto;height:auto;flex:none}
#remote-modal #remote-screen[hidden]{display:none}
#remote-modal .remote-scroll-buttons,#remote-modal .screen-caption{flex:none}
#remote-modal .screen-caption{margin-top:8px;text-align:center;font-size:12px}
#remote-modal .remote-tools{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding-right:6px}
@media(max-width:700px){
 #remote-modal{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
 #remote-modal>.modal-head{padding:10px 12px}
 #remote-modal #remote-name{font-size:16px}
 #remote-modal .remote-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,2fr) minmax(100px,1fr);padding:8px;gap:8px}
 #remote-modal .remote-display{padding:8px}
 #remote-modal .remote-scroll-buttons{margin-top:6px;gap:4px}
 #remote-modal .remote-scroll-buttons button{padding:5px 8px;min-height:30px;font-size:11px}
 #remote-modal .remote-tools{padding:8px;border:1px solid #dce4ef;border-radius:10px}
}

#remote-modal #remote-screen{cursor:grab}
#remote-modal #remote-screen.dragging{cursor:grabbing}
#remote-modal.command-busy #remote-screen{cursor:progress}

/* Administrator welcome screen. */
#login{min-height:100dvh;padding:32px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 10% 0%,#e5ebfb,transparent 50%),#f3f5f9;color:#17233b}
#login[hidden]{display:none}
#login .login-surface{width:100%;max-width:1180px;min-height:700px;display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid #e4e9f1;border-radius:26px;overflow:hidden;box-shadow:0 18px 64px #1b2c4b0a}
#login .login-entry{padding:42px 56px 28px;display:flex;flex-direction:column;min-width:0}
#login .login-brand{display:flex;gap:12px;align-items:center;font-size:21px;font-weight:750;letter-spacing:-.5px}
#login .login-brand .brand-icon{width:42px;height:44px;border-radius:12px;background:#3159db;box-shadow:0 5px 12px #3159db20}
#login .login-brand small{font-size:9px;letter-spacing:2px;margin-top:3px;color:#8793a8;font-weight:550}
#login .login-card{width:100%;max-width:420px;margin:58px auto 48px;padding:0;align-self:auto;justify-self:auto}
#login .login-access{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid #e5eaf3;background:#f8faff;border-radius:7px;font-size:11px;color:#60728c;margin-bottom:22px}
#login svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#login .login-access svg{width:14px;height:14px}
#login .login-card h1{font-size:34px;line-height:1.45;font-weight:750;letter-spacing:-1px;margin:0 0 14px}
#login .login-card h1 span{display:block;font-size:20px;font-weight:500;letter-spacing:-.4px;color:#64748e;margin-top:5px}
#login .login-intro{font-size:14px;line-height:1.8;color:#8792a5;margin-bottom:30px}
#login .login-card label{margin:0 0 9px;font-size:13px;font-weight:600;color:#293953}
#login .login-token-field{display:flex;align-items:center;gap:10px;border:1px solid #dce3ee;border-radius:11px;padding:0 14px;background:#fff;transition:border-color .15s,box-shadow .15s}
#login .login-token-field:focus-within{border-color:#3159db;box-shadow:0 0 0 4px #3159db0c}
#login .login-token-field>svg{color:#96a2b6;width:18px;height:18px}
#login #login-token{flex:1;min-width:0;width:100%;margin:0;padding:16px 0;border:0;border-radius:0;font-size:15px;background:transparent;box-shadow:none;outline:none;color:#20314e}
#login #login-token::placeholder{color:#a2adbf}
#login #login-reveal{width:44px;min-height:44px;flex-shrink:0;margin:0;padding:6px;background:transparent;border:0;display:flex;align-items:center;justify-content:center;border-radius:6px;color:#8794ab}
#login #login-reveal:hover{background:#f0f4fc;color:#3159db}
#login #login-hint{margin-top:10px;font-size:11px;color:#8c98ad}
#login #login-error{margin:12px 0 0;color:#bd3e4d;font-size:12px;line-height:1.7}
#login #login-error:empty{display:none}
#login .login-token-field:has([aria-invalid=true]){border-color:#d16a75;background:#fffafb}
#login #login-submit{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;margin-top:24px;padding:13px 18px;border:1px solid #3159db;border-radius:11px;color:#fff;background:#3159db;font-size:14px;font-weight:600;box-shadow:0 5px 12px #3159db16}
#login #login-submit:hover{background:#264cc6;border-color:#264cc6}
#login .login-note{display:flex;gap:7px;align-items:center;justify-content:center;margin-top:18px;font-size:10px;color:#8c98ad;line-height:1.6}
#login .login-note svg{width:14px;height:14px}
#login .login-entry-footer{margin-top:auto;font-size:10px;color:#9aa5b6;letter-spacing:.3px}
#login .login-entry-footer span{margin:0 8px}
#login .login-art{display:flex;flex-direction:column;justify-content:center;align-items:stretch;min-width:0;padding:50px 48px 26px;position:relative;background:radial-gradient(ellipse at 95% 10%,#314b8b80,transparent 60%),linear-gradient(150deg,#182747,#101b34);overflow:hidden}
#login .login-art-grid{position:absolute;inset:0;background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px);background-size:38px 38px;pointer-events:none}
#login .login-art-content{position:relative;z-index:1}
#login .login-art-kicker{display:flex;align-items:center;gap:8px;color:#9eafd1;letter-spacing:1.8px;font-size:9px;font-weight:600;margin-bottom:24px}
#login .login-art-kicker>span{width:6px;height:6px;border-radius:50%;background:#9eaef8;box-shadow:0 0 0 4px #8a9ee916}
#login .login-art h2{font-size:40px;font-weight:650;line-height:1.45;letter-spacing:-1px;color:#f5f7ff;margin-bottom:14px}
#login .login-art h2>span{display:block;font-size:17px;font-weight:400;color:#aebfe1;letter-spacing:0;margin-top:12px}
#login .login-art-content>p{font-size:12px;color:#8598bc;line-height:1.9;margin-bottom:28px}
#login .login-preview{border:1px solid #ffffff1e;border-radius:13px;background:#ffffff08;box-shadow:0 20px 40px #050b182a;transform:perspective(1000px) rotateY(-5deg) rotateX(3deg);overflow:hidden;margin:28px 0}
#login .login-preview-head{padding:11px 14px;border-bottom:1px solid #ffffff10;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#a8b8d4;background:#ffffff04}
#login .login-window-dots{font-size:6px;letter-spacing:3px;color:#64799e}
#login .login-preview-body{display:flex;min-height:200px}
#login .login-preview-nav{width:45px;border-right:1px solid #ffffff10;padding:14px 10px;display:flex;align-items:center;flex-direction:column;gap:16px;background:#0d172521}
#login .login-preview-mark{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#577bef;color:#fff;font-weight:650;font-size:12px}
#login .login-preview-nav i{width:12px;height:12px;border:1px solid #778bb256;border-radius:3px}
#login .login-preview-nav i:first-of-type{background:#577bef40;border-color:#7798ff}
#login .login-preview-main{padding:18px;flex:1;min-width:0}
#login .login-preview-title{font-size:11px;color:#dce6fa;display:flex;justify-content:space-between;align-items:center;gap:5px}
#login .login-preview-title span{font-size:6px;letter-spacing:1px;color:#7d92b5}
#login .login-preview-devices{display:flex;gap:14px;justify-content:center;margin:20px 0 12px}
#login .login-phone{width:56px;height:92px;border:1px solid #8a9ec85c;border-radius:9px;position:relative;display:flex;flex-direction:column;align-items:center;padding:6px;background:linear-gradient(150deg,#53658a38,#152444)}
#login .login-phone>span{width:13px;height:2px;background:#6b7c9b;border-radius:2px;margin-bottom:13px}
#login .login-phone i{width:28px;height:30px;border-radius:6px;background:linear-gradient(135deg,#7793f5,#4968c3);box-shadow:0 3px 15px #4d73f32f}
#login .login-phone:nth-child(2) i{background:linear-gradient(135deg,#93b9d5,#486b94)}
#login .login-phone:nth-child(3) i{background:linear-gradient(135deg,#ac9dda,#74689f)}
#login .login-phone b{width:25px;height:3px;background:#63759468;border-radius:2px;margin-top:10px}
#login .login-preview-line{display:flex;justify-content:space-around;gap:8px;font-size:7px;color:#9badcc}
#login .login-capabilities{display:flex;gap:8px;flex-wrap:wrap;margin-top:25px}
#login .login-capabilities span{font-size:10px;color:#b6c5e0;padding:7px 10px;border:1px solid #ffffff14;border-radius:7px;background:#ffffff03}
#login .login-art-footer{position:relative;display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:40px;font-size:7px;letter-spacing:1.8px;color:#627999}
#login .login-art-footer>span:last-child{font-size:18px;font-weight:700;letter-spacing:-1px;color:#8499bd}
@media(max-width:1000px){#login{padding:24px}#login .login-entry{padding:32px}#login .login-art{padding:40px 30px 24px}#login .login-art h2{font-size:34px}#login .login-card h1{font-size:30px}}
@media(max-width:720px){#login{padding:20px 16px;align-items:center}#login .login-surface{display:block;min-height:0;max-width:460px;border-radius:20px}#login .login-art{display:none}#login .login-entry{padding:30px 26px 24px}#login .login-card{margin:42px auto 32px;max-width:none}#login .login-card h1{font-size:29px}#login .login-card h1 span{font-size:18px}#login .login-intro{font-size:13px;margin-bottom:26px}#login #login-token{font-size:16px}#login .login-note{font-size:10px}#login .login-entry-footer{text-align:center;font-size:9px}}
@media(max-height:760px) and (min-width:721px){#login .login-surface{min-height:620px}#login .login-card{margin-top:36px;margin-bottom:30px}#login .login-art{padding-top:30px}#login .login-art h2{font-size:34px}#login .login-preview-body{min-height:180px}}

/* Workspace navigation: restrained color, consistent hierarchy and spacing. */
#main-sidebar{width:240px;height:100dvh;padding:24px 16px 16px;background:#fff;border-right:1px solid #e4e9f1;display:flex;flex-direction:column;color:#52627a;overflow:hidden;box-shadow:none}
#main-sidebar .brand{padding:0 8px;gap:10px;font-size:17px;font-weight:750;letter-spacing:-.5px;color:#20304b;flex:none;min-height:42px}
#main-sidebar .sidebar-logo{width:36px;height:36px;border-radius:10px;flex-shrink:0}
#main-sidebar .brand>span{min-width:0;white-space:nowrap}
#main-sidebar .brand small{font-size:8px;font-weight:550;letter-spacing:1.6px;color:#96a1b3;margin-top:4px}
#main-sidebar .workspace{flex:none;padding:12px;margin:26px 0 24px;border:1px solid #e9edf4;border-radius:10px;background:#f8faff;gap:10px;color:#394a65;font-size:12px;font-weight:600}
#main-sidebar .workspace small{font-size:10px;font-weight:400;color:#8a98ae;margin-top:3px}
#main-sidebar .workspace-mark{width:32px;height:32px;border:1px solid #e0e7f5;border-radius:8px;display:grid;place-items:center;background:#fff;padding:0;color:#6b80a4;flex:none}
#main-sidebar svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#main-sidebar .workspace-mark svg{width:17px;height:17px}
#main-sidebar .nav-label,#main-sidebar .nav-group-label{font-size:10px;font-weight:550;letter-spacing:0;color:#99a5b7;padding:0 12px}
#main-sidebar .nav-label{flex:none;margin-bottom:10px}
#main-sidebar nav{display:grid;gap:5px;align-content:start;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:3px;scrollbar-width:thin}
#main-sidebar .nav-group-label{margin:20px 0 5px}
#main-sidebar .nav-item{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:11px 12px;border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:500;color:#64748d;background:transparent;position:relative;text-align:left}
#main-sidebar .nav-item:hover{background:#f5f7fb;color:#304568;border-color:transparent}
#main-sidebar .nav-item.active{background:#eef3ff;border-color:#e2eaff;color:#3159db;font-weight:650}
#main-sidebar .nav-item.active::before{content:"";position:absolute;left:-3px;top:12px;bottom:12px;width:3px;border-radius:3px;background:#3159db}
#main-sidebar .nav-item svg{width:18px;height:18px;opacity:.85}
#main-sidebar .nav-item.active svg{opacity:1}
#main-sidebar .nav-item b{margin-left:auto;min-width:24px;text-align:center;font-size:10px;font-weight:600;line-height:1.5;padding:2px 5px;border-radius:5px;background:#f0f3f8;color:#8492a8}
#main-sidebar .nav-item.active b{background:#dfe9ff;color:#3159db}
#main-sidebar .sidebar-bottom{flex:none;margin-top:18px;border-top:1px solid #edf0f5;padding-top:12px}
#main-sidebar .mini-status{padding:8px 11px 12px;gap:7px;border:0;font-size:10px;line-height:1.5;color:#8a98ab}
#main-sidebar .mini-status .live-dot{width:5px;height:5px}
#main-sidebar .user-block{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:1px solid #ebeff5;background:#fff;border-radius:10px;color:#40516c;text-align:left;font-size:12px}
#main-sidebar .user-block:hover{background:#f7f9fc;border-color:#dce4f1}
#main-sidebar .user-block .avatar{width:32px;height:32px;border-radius:9px;color:#61779c;background:#edf2fb;font-size:10px;font-weight:600;flex-shrink:0}
#main-sidebar .sidebar-user-info{flex:1;min-width:0;font-weight:550}
#main-sidebar .user-block small{font-size:10px;color:#97a3b5;font-weight:400;margin-top:2px}
#main-sidebar .user-block>svg{width:16px;height:16px;color:#95a2b5}
#shell>.main{margin-left:240px}
@media(max-width:720px){
 #main-sidebar{width:264px;max-width:calc(100vw - 48px);padding:22px 16px 16px;left:0;right:auto;transform:translateX(-100%);transition:transform .2s ease}
 .menu-open #main-sidebar{transform:translateX(0);box-shadow:14px 0 48px #1b2c4b26}
 #shell>.main{margin-left:0}
 #main-sidebar .nav-item{font-size:13px;min-height:46px}
 #main-sidebar .workspace{margin:24px 0}
}
@media(prefers-reduced-motion:reduce){#main-sidebar{transition:none}}

@media(max-width:720px){body.menu-open{overflow:hidden}}

#main-sidebar .nav-item,#main-sidebar .nav-item.active{box-shadow:none}
#main-sidebar .user-block .avatar{border:0}
