/* /dashboard/dashboard.css */
:root{color-scheme:light;--bg:#f6f8fa;--ink:#18282b;--muted:#6f8085;--line:#e5ecee;--green:#087f72;--green-soft:#e8f5f0;--red:#bf4a48;--amber:#a96b19;--radius:14px;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #5ac6b8;outline-offset:3px}button{border:0}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.7px;font-weight:650}h2{font-size:17px;font-weight:650}h3{font-size:15px}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}[hidden]{display:none!important}
.app-shell{display:flex;min-height:100vh}.sidebar{width:218px;background:#122d30;color:#bdced0;padding:30px 18px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0}.brand{display:flex;align-items:center;gap:12px;margin:0 14px 44px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;background:#2fa48e;border-radius:12px;color:#fff;font-size:22px;font-weight:700}.brand strong{font-size:21px;color:#fff;display:block;letter-spacing:2px}.brand span{font-size:11px;letter-spacing:2px;display:block;margin-top:4px;color:#8aa7a9}.nav-label{font-size:10px;color:#6c9598;letter-spacing:2px;margin:0 16px 14px}.nav-item{display:flex;align-items:center;width:100%;gap:13px;padding:13px 16px;color:#a6c0c2;background:transparent;border-radius:9px;text-align:left;margin-bottom:6px}.nav-item:hover{background:#1b3b3e;color:#fff}.nav-item.selected{background:#245052;color:#fff}.nav-icon{font-size:20px;width:20px}.nav-count{margin-left:auto;border-radius:6px;padding:2px 6px;background:#d89436;color:#fff;font-size:11px}.sidebar-bottom{margin-top:auto;padding:20px 14px 0;border-top:1px solid #29464a;font-size:11px}.sidebar-bottom p{margin:9px 0 0 12px;color:#6f9498;font-size:10px}.online-dot{width:6px;height:6px;border-radius:50%;background:#55c7a5;display:inline-block;margin-right:6px}
.workspace{margin-left:218px;width:calc(100% - 218px);padding:0 36px 24px;max-width:1900px}.topbar{height:76px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);font-size:12px}.breadcrumb{color:#8d9a9e}.breadcrumb span{color:var(--ink);margin-left:5px}.account{display:flex;gap:10px;align-items:center;color:#607579}.avatar{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#e5eeeb;color:var(--green);font-size:11px}.text-button{background:transparent;color:var(--muted);padding:5px}.text-button:hover{color:var(--green)}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:32px 0 26px}.eyebrow{font-size:10px;letter-spacing:2px;color:#8da2a4;font-weight:600;margin-bottom:8px}.page-heading p:last-child{color:var(--muted);margin-top:8px;font-size:12px}.heading-actions{display:flex;gap:10px}.button{border:1px solid #dbe4e5;border-radius:8px;padding:9px 15px;background:#fff;color:#52666b;font-size:12px;white-space:nowrap}.button:hover{background:#f0f5f4}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.primary:hover{background:#076f64}.button.danger{background:#fff0ef;border-color:#f1d4d1;color:var(--red)}.button.small{padding:6px 10px;font-size:11px}.text-link{border:0;background:transparent;color:var(--green);padding:0;text-align:left}.text-link:hover{text-decoration:underline}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:22px 23px}.stat-label{color:var(--muted);font-size:12px;display:flex;justify-content:space-between}.stat-icon{color:#8fa4a7;font-size:17px}.stat-value{font-size:34px;font-weight:650;letter-spacing:-1px;margin:16px 0 13px;font-variant-numeric:tabular-nums}.stat-value.green{color:var(--green)}.stat-value.amber{color:var(--amber)}.stat-meta{font-size:11px;color:#8a9a9d}.stat-meta b{font-weight:500;color:#4c7270}.overview-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:22px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:22px}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:21px 23px;border-bottom:1px solid #edf1f2}.panel-header p{font-size:11px;color:var(--muted);margin-top:6px}.panel-body{padding:22px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:10px;letter-spacing:.3px;color:#8a9b9e;font-weight:500;padding:13px 18px;background:#fbfcfd;border-bottom:1px solid var(--line)}td{font-size:12px;padding:17px 18px;border-bottom:1px solid #edf2f3}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafdfc}.subtext{font-size:10px;color:#92a0a2;margin-top:5px;max-width:180px;overflow:hidden;text-overflow:ellipsis}.mono{font-family:Consolas,monospace;font-variant-numeric:tabular-nums}.key-text{font-weight:600;letter-spacing:1px}.badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:500;border-radius:5px;padding:4px 7px;background:#f0f3f4;color:#809196}.badge.active,.badge.resolved{background:var(--green-soft);color:var(--green)}.badge.disabled,.badge.high{background:#fbebe9;color:var(--red)}.badge.warning{background:#fdf2e1;color:var(--amber)}.badge.open{background:#eef3fc;color:#657b9c}.badge.reviewed,.badge.ignored{background:#edf1f4;color:#687a85}.count{font-variant-numeric:tabular-nums;color:#556a6f}.risk-row{display:flex;align-items:flex-start;gap:11px;padding:16px 22px;border-bottom:1px solid #eff3f3}.risk-row:last-child{border-bottom:0}.risk-indicator{width:30px;height:30px;border-radius:8px;background:#fdf2e1;color:var(--amber);display:grid;place-items:center;flex-shrink:0}.risk-indicator.high{background:#fbebe9;color:var(--red)}.risk-row p{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.6}.risk-row .text-link{font-size:12px;font-weight:600}.risk-row .badge{margin-left:auto}.version-row{margin-bottom:20px}.version-row:last-child{margin:0}.version-top{display:flex;justify-content:space-between;font-size:12px;margin-bottom:9px}.version-top span:last-child{color:var(--muted);font-size:11px}.version-bar{height:5px;border-radius:5px;background:#edf3f1;overflow:hidden}.version-fill{height:100%;background:#53aa97;border-radius:5px}.empty{padding:32px 24px;text-align:center;color:#8c9da1;font-size:12px;line-height:1.8}.empty strong{display:block;color:#536e73;font-size:14px;margin-bottom:5px}.loading{padding:48px;color:var(--muted);text-align:center}.page-footer{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#96a5a8;padding:3px 0 0}.filter-bar{display:flex;align-items:center;gap:10px;padding:17px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.search-input{min-width:240px;flex:1;max-width:420px}.field,.filter-bar input,.filter-bar select{border:1px solid #dfe7e8;border-radius:7px;background:#fff;padding:9px 11px;color:#465e63;font-size:12px}.field{width:100%}.filter-bar input::placeholder{color:#9caaad}.pagination{display:flex;justify-content:space-between;align-items:center;padding:15px 22px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.pagination .buttons{display:flex;align-items:center;gap:12px}.info-strip{background:#eaf4f0;color:#5e7e72;border:1px solid #daebe3;border-radius:9px;padding:13px 17px;font-size:11px;line-height:1.7;margin-bottom:20px}.detail-heading{display:flex;align-items:center;gap:12px;margin-bottom:22px}.detail-heading .key-text{font-size:20px}.detail-heading .actions{margin-left:auto}.detail-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:0;padding:20px 0}.detail-stats div{padding:0 22px;border-right:1px solid var(--line)}.detail-stats div:last-child{border:0}.detail-stats span{font-size:11px;color:var(--muted);display:block}.detail-stats strong{display:block;font-size:23px;font-weight:600;margin-top:9px}.detail-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,.7fr);gap:22px}.note-form{display:flex;gap:12px;align-items:flex-start}.note-form .field{resize:vertical;min-height:66px}.event-row{display:flex;justify-content:space-between;gap:12px;font-size:11px;margin-bottom:16px}.event-row:last-child{margin-bottom:0}.event-row time{color:var(--muted)}.alert-actions{display:flex;gap:6px;margin-top:10px}.alert-note{white-space:normal;overflow-wrap:anywhere;color:#7a8a8e;font-size:11px;margin-top:5px}.uuid{font-size:11px}
dialog{border:1px solid var(--line);border-radius:18px;padding:28px;max-width:460px;width:calc(100% - 32px);box-shadow:0 24px 90px #122d3029;color:var(--ink)}dialog::backdrop{background:#122d3059;backdrop-filter:blur(3px)}dialog h2{font-size:20px;margin-bottom:12px}dialog p{color:var(--muted);font-size:12px;line-height:1.8;margin-bottom:18px}dialog label{display:block;font-size:12px;margin:18px 0 8px;color:#567076}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.issued-key{font-family:Consolas,monospace;font-size:40px;letter-spacing:8px;background:#eaf5f0;color:var(--green);text-align:center;padding:26px 12px;border-radius:12px;font-weight:700}.modal-error,#page-error{padding:12px 16px;background:#fff0ef;color:var(--red);font-size:12px;border-radius:9px;margin-bottom:16px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#173e39;color:#fff;border-radius:10px;padding:13px 22px;font-size:12px;z-index:10;box-shadow:0 8px 28px #173e3922;max-width:90vw}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 20%,#e2eee8,transparent 65%)}.login-card{width:460px;max-width:100%;background:#fff;padding:38px;border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 70px #122d300a}.login-card>.brand-mark{margin-bottom:24px}.login-card h1{font-size:26px}.login-card>p:not(.eyebrow){font-size:12px;color:var(--muted);line-height:1.8;margin-top:12px}.login-steps{display:grid;grid-template-columns:28px 1fr;gap:22px 12px;padding:26px 0}.step-number{width:25px;height:25px;border-radius:50%;background:var(--green-soft);display:grid;place-items:center;color:var(--green);font-size:11px}.login-steps strong{font-size:12px}.login-steps p{color:var(--muted);font-size:11px;margin-top:7px;line-height:1.8}.login-card>.button{width:100%}.muted{color:var(--muted)}
.version-progress{appearance:none;border:0;width:100%;height:5px;display:block;border-radius:5px;background:#edf3f1}.version-progress::-webkit-progress-bar{background:#edf3f1;border-radius:5px}.version-progress::-webkit-progress-value{background:#53aa97;border-radius:5px}.version-progress::-moz-progress-bar{background:#53aa97;border-radius:5px}
.detail-stats{grid-template-columns:repeat(6,1fr)}.badge.online{background:var(--green-soft);color:var(--green)}
.login-form{display:grid;gap:10px;margin-top:24px}.login-form label{font-size:12px;color:var(--muted)}.login-form .button{margin-top:8px}
.badge.pending{background:#fff4dd;color:var(--amber)}.badge.approved{background:var(--green-soft);color:var(--green)}.badge.rejected{background:#fff0ef;color:var(--red)}
@media(min-width:1500px){.workspace{padding-left:48px;padding-right:48px}.stat-card{padding:25px 28px}}
@media(max-width:1150px){.sidebar{width:190px}.workspace{margin-left:190px;width:calc(100% - 190px);padding:0 22px 22px}.overview-grid,.detail-columns{grid-template-columns:1fr}.stats-grid{gap:10px}.stat-card{padding:18px}.stat-value{font-size:29px}}
@media(max-width:720px){.app-shell{display:block}.sidebar{position:static;width:100%;padding:14px 18px}.brand{margin:0 0 15px}.brand-mark{width:32px;height:32px;font-size:17px}.brand strong{font-size:16px}.brand span{font-size:10px}.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:5px}.nav-item{margin:0;padding:9px 12px;justify-content:center;font-size:12px}.nav-icon{display:none}.workspace{margin:0;width:100%;padding:0 16px 20px}.topbar{height:60px}.page-heading{align-items:flex-start;padding:24px 0 20px;flex-direction:column}.heading-actions{width:100%}.heading-actions .primary{margin-left:auto}h1{font-size:24px}.stats-grid{grid-template-columns:1fr 1fr}.stat-label{font-size:11px}.stat-value{margin:12px 0 10px}.stat-meta{font-size:10px}.panel-header{padding:18px}.detail-stats{grid-template-columns:repeat(3,1fr);gap:20px}.detail-stats div{padding:0 14px}.detail-stats div:nth-child(3){border:0}.detail-heading{flex-wrap:wrap}.detail-heading .actions{width:100%;margin:5px 0 0}.page-footer{flex-direction:column;line-height:1.6}.search-input{min-width:160px}.login-card{padding:28px}.filter-bar{padding:16px}.note-form{flex-direction:column}}

.heading-actions{flex-wrap:wrap}.import-preview{max-height:320px;overflow:auto;margin-top:12px}.import-preview td{white-space:normal;overflow-wrap:anywhere;padding:10px;font-size:12px}.import-preview th{padding:10px}#apply-status{white-space:pre-line;font-size:14px}
.auth-mascot{width:70px;height:70px;object-fit:contain;margin-bottom:15px}.heading-mascot{width:34px;height:34px;object-fit:contain;align-self:center}
.playback-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.playback-stats>div>.stat-card{height:100%}.playback-charts{display:grid;grid-template-columns:1fr 1fr;gap:20px}.playback-line{display:block;width:100%;height:auto}.hourly-chart{height:180px;display:flex;align-items:end;gap:5px;overflow-x:auto}.hourly-group{min-width:24px;flex:1;text-align:center;color:#7c8fa5}.hourly-bars{height:145px;display:flex;align-items:end;justify-content:center;gap:2px}.hourly-bar{width:8px;border-radius:3px 3px 0 0;display:block}.hourly-bar.program{background:#235bd8}.hourly-bar.self-test{background:#69b8ef}.hourly-group small{font-size:10px}.chart-legend{display:flex;gap:16px;color:var(--muted);font-size:11px;margin-top:10px}.chart-legend span:before{content:"";display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:2px;background:#235bd8}.chart-legend .legend-self-test:before{background:#69b8ef}.inline-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.inline-form .field{width:auto;max-width:320px}.check-label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.playback-alerts{padding:14px 22px}.playback-alert{display:flex;justify-content:space-between;gap:12px;padding:16px;border:1px solid #e7eef2;border-radius:9px;margin-bottom:10px}.playback-alert:last-child{margin-bottom:0}.playback-alert.is-serious,.alert-table-row{background:#fff4f3}.playback-alert h3{font-size:13px}.playback-alert p,.playback-alert span{font-size:11px;color:var(--muted);margin-top:6px}.playback-alert strong{display:block;text-align:right;margin-top:5px;color:var(--red)}.admin-target-form,.release-form{display:grid;gap:9px}.admin-target-form label,.release-form label{font-size:12px;color:var(--muted);margin-top:6px}.admin-target-form .field,.release-form .field{max-width:650px}.admin-target-list{display:grid;gap:10px;margin-bottom:20px}.admin-target-card{padding:16px;border:1px solid var(--line);border-radius:10px;display:flex;justify-content:space-between;gap:18px}.admin-target-card p{font-size:11px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.target-actions,.release-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.release-actions{margin-top:8px;justify-content:space-between}.reporting-summary{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.reporting-summary span{background:#eff5ff;color:#42618d;border-radius:8px;padding:9px 12px;font-size:11px}.reporting-summary strong{color:#224fba}.level-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:20px 0}.level-item{border:1px solid #e1e9f6;border-radius:9px;padding:12px;display:grid;gap:5px;font-size:11px;color:#7385a0}.level-item strong{font-size:13px;color:#42629a}.level-item.is-effective{border-color:#5c8fea;background:#eff5ff}.level-item small{font-size:10px}.reporting-note{line-height:1.7;font-size:11px}.rollout-select{width:155px;margin-right:6px}.badge.paused{background:#fff4dd;color:var(--amber)}.badge.draft{background:#edf1f4;color:#687a85}
@media(max-width:1150px){.playback-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.level-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.sidebar nav{overflow-x:auto;padding-bottom:4px}.nav-item{flex:0 0 auto}.playback-charts{grid-template-columns:1fr}.admin-target-card{display:block}.admin-target-card .target-actions{margin-top:12px}.inline-form{padding:0}.inline-form .field{max-width:100%}.level-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* BV parse preview: display the same title, duration and public-counter snapshot used by the worker. */
.admin-bv-preview,.admin-bv-metadata{display:grid;gap:7px;margin:10px 0 0;padding:0;list-style:none}
.admin-bv-preview li,.admin-bv-metadata li{display:grid;gap:3px;padding:9px 11px;border:1px solid #dbe8f4;border-radius:9px;background:#f8fcff}
.admin-bv-preview li span,.admin-bv-metadata li span{font-size:12px;color:#68829d;overflow-wrap:anywhere}

/* Functional status feedback only; preserve approved OilUI imagery and layout. */
button.qa-user-ban { color: #bd283a; border-color: #dc7d88; }
button.qa-user-enable, button.qa-inclusion-on { color: #14734f; border-color: #61a88d; }
button.qa-inclusion-off { color: #ad6720; border-color: #dfac76; }
button[data-action="toggle-user-status"]:disabled,
button[data-action="toggle-user-playback-inclusion"]:disabled { opacity: .55; cursor: progress; }



/* /user/user.css */
:root{--user-blue:#1687f8;--user-blue-deep:#064da7;--user-blue-soft:#eaf6ff;--user-ink:#0d3c7d;--user-muted:#6d91b6;--user-line:#dbeaf7;--user-green:#18b985;--user-red:#ff655f;--user-shadow:0 16px 46px rgba(41,116,182,.12)}
*{box-sizing:border-box}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.user-seaside-body{margin:0;min-height:100vh;color:var(--user-ink);background:#eaf7ff}.user-seaside-body::selection{background:#bce2ff}

/* Login */
.user-auth-screen{position:relative;min-height:100vh;overflow:hidden;background:radial-gradient(circle at 16% 13%,rgba(255,255,255,.98) 0 2%,transparent 16%),radial-gradient(circle at 63% 10%,rgba(255,255,255,.7),transparent 18%),linear-gradient(180deg,#86d2ff 0,#bfeaff 42%,#68c7f6 43%,#3aa8e8 56%,#def4ff 57%,#f7fcff 100%)}
.user-auth-screen::before{content:"";position:absolute;left:-4%;right:-4%;bottom:-1%;height:32%;background:radial-gradient(circle at 7% 76%,#4fa8ff 0 6px,#c7edff 7px 14px,transparent 15px),radial-gradient(circle at 13% 66%,#6dc1ff 0 5px,#d8f3ff 6px 12px,transparent 13px),radial-gradient(circle at 91% 75%,#4ba9ff 0 6px,#c7edff 7px 14px,transparent 15px),radial-gradient(circle at 83% 63%,#7cc9ff 0 5px,#e4f7ff 6px 12px,transparent 13px),linear-gradient(180deg,rgba(255,255,255,0),rgba(223,246,255,.94));opacity:.92}
.user-auth-screen::after{content:"";position:absolute;left:0;right:0;top:43%;height:15%;background:repeating-linear-gradient(176deg,rgba(255,255,255,.6) 0 2px,transparent 3px 22px);opacity:.7;transform:skewY(-1deg)}
.user-auth-brand{position:absolute;z-index:3;top:32px;left:52px;display:flex;align-items:center;gap:12px}.user-auth-brand img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(25,108,187,.16))}.user-auth-brand strong,.user-auth-brand span{display:block}.user-auth-brand strong{font-size:22px;color:#064a99}.user-auth-brand span{font-size:10px;font-weight:800;letter-spacing:.8px;color:#4d7fb1;margin-top:3px}
.auth-scene-copy{position:absolute;z-index:2;left:19%;top:30%;transform:rotate(-7deg);color:#086fd2;text-align:center}.auth-scene-copy strong{font-family:"KaiTi","STKaiti",cursive;font-size:50px;line-height:1.22;font-weight:700;text-shadow:0 2px rgba(255,255,255,.3)}.auth-scene-copy span{display:block;margin-top:12px;font-family:cursive;font-size:23px;font-style:italic;color:#1889e8}.auth-scene-cat{margin:34px auto 0;width:150px;height:110px;border:7px solid #17466f;border-radius:44% 44% 48% 48%;background:#fff;display:grid;place-items:center;font-size:46px;color:#ff9cb6;box-shadow:0 18px 24px rgba(19,90,146,.12)}
.user-auth-card{position:absolute;z-index:4;right:10%;top:50%;transform:translateY(-50%);width:min(390px,calc(100vw - 36px));padding:56px 34px 30px;border:1px solid rgba(255,255,255,.86);border-radius:24px;background:rgba(255,255,255,.91);box-shadow:0 24px 70px rgba(20,100,170,.23);backdrop-filter:blur(16px)}.auth-card-mascot{position:absolute;width:88px;height:88px;object-fit:contain;top:-45px;left:50%;transform:translateX(-50%);filter:drop-shadow(0 8px 10px rgba(41,113,176,.16))}.user-auth-card h1{margin:0 0 8px;font-size:28px;color:#073f8d}.user-auth-card>p:not(.auth-switch):not(.modal-error){margin:0 0 22px;color:#6786a7}.user-login-form{display:grid;gap:12px}.field-shell{position:relative}.field-shell>span{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#1384ef;font-size:18px;pointer-events:none}.field-shell .field{width:100%;height:48px;padding-left:43px;border:1px solid #cee4f6;border-radius:11px;background:rgba(250,253,255,.92);box-shadow:inset 0 1px 2px rgba(25,88,145,.04)}.user-login-button{height:49px;margin-top:3px;border-radius:24px!important;background:linear-gradient(135deg,#46afff,#087cf0)!important;border-color:#1a8ef6!important;box-shadow:0 10px 20px rgba(20,126,239,.22)!important}.auth-switch{margin:12px 0 0!important;font-size:13px}.auth-switch a{color:#087be9;font-weight:700}.modal-error{color:#df4c55!important;background:#fff0f1;border:1px solid #ffd6d8;border-radius:9px;padding:9px 11px;margin:12px 0 0!important}

/* Portal shell */
.user-portal-shell{min-height:100vh;display:flex;background:linear-gradient(180deg,#edf9ff,#fbfdff 50%,#eef9ff)}.user-sidebar{position:fixed;z-index:8;inset:0 auto 0 0;width:205px;padding:22px 14px;background:linear-gradient(180deg,rgba(246,252,255,.98),rgba(225,244,255,.96));border-right:1px solid #d8ebf8;box-shadow:7px 0 30px rgba(41,116,182,.06);overflow:hidden}.user-brand{display:flex;align-items:center;gap:10px;padding:0 9px 26px}.user-brand img{width:47px;height:47px;object-fit:contain}.user-brand strong,.user-brand span{display:block}.user-brand strong{font-size:15px;color:#074483}.user-brand span{margin-top:3px;font-size:10px;color:#7397ba}.user-nav{display:grid;gap:7px}.user-nav-item{display:flex;align-items:center;gap:13px;width:100%;padding:12px 14px;border:0;border-radius:12px;background:transparent;color:#204c83;font:inherit;font-size:13px;font-weight:700;cursor:pointer;text-align:left}.user-nav-item span{width:18px;color:#0d75dd;font-size:18px;text-align:center}.user-nav-item:hover{background:#e9f6ff}.user-nav-item.selected{background:linear-gradient(90deg,#d9efff,#eef9ff);color:#076bdd;box-shadow:inset 3px 0 #1688f6}.user-sidebar-flowers{position:absolute;left:-18px;bottom:-6px;width:230px;height:145px;padding-top:28px;font-size:38px;line-height:1.5;color:#75baf4;transform:rotate(-7deg);opacity:.52;background:radial-gradient(circle at 50% 100%,rgba(120,203,255,.25),transparent 65%)}
.user-workspace{margin-left:205px;width:calc(100% - 205px);min-height:100vh;position:relative;padding-bottom:80px}.user-workspace::after{content:"";position:fixed;pointer-events:none;right:-40px;bottom:-30px;width:280px;height:170px;background:radial-gradient(circle at 15% 60%,#8bc9ff 0 6px,#e6f7ff 7px 15px,transparent 16px),radial-gradient(circle at 40% 80%,#58b0f6 0 5px,#d5f0ff 6px 14px,transparent 15px),radial-gradient(circle at 70% 65%,#8acbff 0 7px,#effaff 8px 16px,transparent 17px);opacity:.56}.user-topbar{height:74px;padding:0 26px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(108,176,225,.16);background:rgba(240,249,255,.67);backdrop-filter:blur(10px)}.user-top-brand{display:flex;align-items:center;gap:10px}.user-top-brand img{width:44px;height:44px;object-fit:contain}.user-top-brand strong,.user-top-brand span{display:block}.user-top-brand strong{font-size:14px;color:#064484}.user-top-brand span{margin-top:3px;font-size:10px;color:#7193b4}.user-logout{padding:8px 16px!important;border-radius:8px!important;color:#63819f!important;background:#fff!important;border-color:#d9e8f4!important}.user-view{padding:28px clamp(20px,3.5vw,48px)}
.latest-user-hero{position:relative;min-height:112px;display:flex;align-items:flex-start;gap:24px}.latest-user-hero h1,.secondary-heading h1{margin:0;color:#073f8d;font-size:30px}.latest-user-hero p,.secondary-heading p{margin:7px 0 0;color:#708fad;font-size:13px}.latest-user-hero small{display:block;margin-top:8px}.latest-user-slogan{margin-left:auto;margin-right:124px;transform:rotate(-6deg);color:#0875d8;text-align:center}.latest-user-slogan strong{font-family:"KaiTi","STKaiti",cursive;font-size:25px;line-height:1.08}.latest-user-slogan span{display:block;margin-top:5px;font-family:cursive;font-style:italic;color:#2d8ce0;font-size:12px}.latest-user-mascot{position:absolute;right:18px;top:-17px;width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(38,111,177,.14))}.user-hero-actions{position:absolute;right:0;bottom:0;display:flex;gap:8px;align-items:center}.user-hero-actions .button{border-radius:8px}.icon-refresh{width:36px;padding:8px!important}.secondary-heading{margin-bottom:22px}.secondary-heading .eyebrow{margin:0 0 6px;color:#4d86bd;font-weight:800;font-size:10px;letter-spacing:1px}
.latest-user-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:18px 0}.summary-card{display:flex;align-items:center;gap:16px;min-height:104px;padding:18px 22px;border:1px solid #deedf8;border-radius:14px;background:rgba(255,255,255,.92);box-shadow:0 8px 25px rgba(45,116,176,.06)}.summary-icon{width:43px;height:43px;flex:none;display:grid;place-items:center;border-radius:50%;background:#e8f4ff;color:#1586ef;font-size:19px}.summary-icon.bars{font-size:20px}.summary-card.danger .summary-icon{background:#fff0f0;color:#ff5c58}.summary-card>div>span,.summary-card small{display:block;color:#7693ae;font-size:12px}.summary-card strong{display:block;margin:3px 0;color:#073f8d;font-size:27px;font-variant-numeric:tabular-nums}.summary-card small{font-size:10px}.summary-card.danger small{color:#8098ae}
.instances-panel{position:relative}.latest-instance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.instance-card{position:relative;min-width:0;min-height:225px;padding:16px 16px 13px;border:1px solid #dcebf6;border-radius:13px;background:rgba(255,255,255,.95);box-shadow:0 8px 24px rgba(42,113,171,.06);overflow:hidden}.instance-card.instance-alert{background:linear-gradient(135deg,#fff7f6,#ffe3e1);border:2px solid #ff706b;box-shadow:0 12px 30px rgba(223,76,72,.18)}.instance-card.instance-alert h3,.instance-card.instance-alert .instance-metrics strong{color:#a52d32}.instance-card.instance-alert .instance-card-note{color:#b63136;font-weight:800}.instance-card .badge.high{background:#ffe0de;color:#b5262f;border:1px solid #ff928d}.instance-card .badge.online{background:#e5f8f0;color:#087855;border:1px solid #a5e4cc}.instance-card .badge.warning{background:#fff1d6;color:#9b6500;border:1px solid #f0cf91}.instance-card.instance-pause{border-color:#f0ddba}.instance-card-head{display:flex;align-items:center;gap:9px;margin-bottom:11px}.instance-number{font-size:11px;font-weight:800;color:#0d7ce9}.instance-card h3{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#123f78;font-size:13px}.instance-menu{margin-left:auto;border:0;background:transparent;color:#50779c;font-size:17px;cursor:pointer}.instance-badges{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.instance-badges .badge{font-size:10px;border-radius:8px;padding:4px 7px}.instance-script{margin:0 0 12px;color:#486c90;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.instance-script span{color:#89a1b7;margin-right:5px}.instance-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding:0!important;margin:0!important}.instance-metrics>div{background:transparent!important;border:0!important;padding:0!important}.instance-metrics span{display:block;color:#89a1b7;font-size:10px}.instance-metrics strong{display:block;margin-top:2px;color:#0a4185;font-size:17px;font-variant-numeric:tabular-nums}.instance-card-actions{display:grid;grid-template-columns:1fr 35px;gap:8px;margin-top:13px}.instance-replace{height:29px!important;padding:4px 10px!important;border:0!important;border-radius:7px!important;background:#e5f2ff!important;color:#1681e8!important;font-size:11px!important;font-weight:700}.instance-delete{height:29px!important;padding:3px!important;border:0!important;border-radius:7px!important;background:#fff0f0!important;color:#ff5b58!important}.instance-card-note{min-height:16px;margin:7px 0 0;color:#dd675f;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.instance-footer{display:flex;justify-content:space-between;gap:14px;padding:13px 4px 0;color:#7896b1;font-size:10px}.instance-hidden-metrics b{color:#3e668d}.empty{grid-column:1/-1;padding:36px;text-align:center;color:#7896b1;background:rgba(255,255,255,.8);border:1px dashed #cfdfeb;border-radius:13px}

/* Existing data / self-test content kept functional */
.user-view .panel{border-color:#dceaf5;background:rgba(255,255,255,.92);box-shadow:var(--user-shadow)}.playback-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:18px}.playback-metric{padding:16px;border:1px solid #e0edf7;border-radius:12px;background:#fafdff}.playback-metric span{display:block;color:#7c97b1;font-size:11px}.playback-metric strong{display:block;margin-top:8px;color:#0a4388;font-size:23px}.metric-alert{border-color:#ffd3d0;background:#fff7f6}.target-form{display:grid;gap:10px}.target-actions,.target-card-head,.target-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.target-card{padding:16px 20px;border-top:1px solid #e8f1f7}.target-card:first-child{border-top:0}.target-card-head{justify-content:space-between}.target-card h3{margin:0;color:#154675}.target-card p{margin:6px 0;color:#6887a6;font-size:11px}.target-url{word-break:break-all}.target-run{display:grid;gap:5px;margin:10px 0;padding:10px;border-radius:9px;background:#f2f9ff;color:#537596;font-size:11px}.target-detail{margin-top:12px}.target-videos p{display:flex;justify-content:space-between;gap:10px}.parse-result{margin-top:12px;padding:10px;border-radius:9px;background:#eaf7ff;color:#27699f}.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.guide-grid article{padding:24px;border:1px solid #dcebf6;border-radius:15px;background:rgba(255,255,255,.93);box-shadow:0 8px 24px rgba(42,113,171,.06)}.guide-grid article>span{display:inline-grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#e7f4ff;color:#0d79e3;font-weight:800}.guide-grid h2{color:#0b468a;font-size:16px}.guide-grid p{color:#708daa;font-size:12px;line-height:1.8}

@media(max-width:1050px){.latest-instance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.latest-user-slogan{display:none}.playback-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.user-auth-brand{left:22px;top:20px}.auth-scene-copy{display:none}.user-auth-card{right:50%;transform:translate(50%,-50%)}.user-sidebar{position:static;width:100%;height:auto;padding:12px 14px}.user-portal-shell{display:block}.user-brand{padding-bottom:10px}.user-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.user-nav-item{justify-content:center;padding:9px 5px;font-size:11px}.user-sidebar-flowers{display:none}.user-workspace{margin:0;width:100%}.user-topbar{height:62px;padding:0 16px}.user-view{padding:20px 14px}.latest-user-hero{padding-bottom:50px}.latest-user-mascot{width:72px;height:72px;right:3px}.user-hero-actions{left:0;right:auto}.latest-user-summary{grid-template-columns:1fr}.latest-instance-grid{grid-template-columns:1fr}.guide-grid{grid-template-columns:1fr}.playback-summary-grid{grid-template-columns:1fr 1fr}.instance-footer{display:block}.instance-hidden-metrics{display:block;margin-top:5px}}

/* Production BV review: read-only Bilibili metadata, user-selected monitor list. */
.bv-review-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0}
.bv-review-list{display:flex;flex-direction:column;gap:9px;max-height:480px;overflow:auto;margin:12px 0}
.bv-review-item{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px;border:1px solid #d8e7f4;border-radius:12px;background:rgba(241,249,255,.72)}
.bv-review-select{display:flex;align-items:flex-start;gap:12px;flex:1;min-width:0;cursor:pointer;font-weight:normal}
.bv-review-select input[type="checkbox"]{margin-top:5px;accent-color:#1763bd;flex-shrink:0}
.bv-review-select span{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
.bv-review-select strong{font-weight:700}
.bv-review-select small{font-size:12px;color:#51779c;line-height:1.5}
.bv-review-item button{white-space:nowrap;flex-shrink:0}
@media(max-width:640px){.bv-review-item{flex-wrap:wrap}.bv-review-item button{margin-left:30px}}


/* Network-only OFFLINE uses a neutral card until 72h; explicit UID logout keeps its separate red state. */
.instance-card.instance-offline-orange{background:linear-gradient(135deg,#fffaf0,#ffefd4);border:2px solid #e99d2f;box-shadow:0 10px 24px rgba(205,129,36,.12)}
.instance-card.instance-offline-orange .instance-card-note{color:#9a610f;font-weight:700}


/* /user/user-lifecycle.css */
.instance-favorite{max-width:42%;padding:3px 7px;border-radius:7px;background:#e8f4ff;color:#0878df;font-size:10px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}.instance-card-head h3{flex:1}.instance-card.instance-deleted{filter:grayscale(.5);background:linear-gradient(135deg,#f4f6f8,#e7ebef);border-color:#d7dee5;box-shadow:none;opacity:.78}.instance-card.instance-deleted .instance-favorite{background:#e1e5e9;color:#6f7e8c}.instance-card.instance-deleted h3,.instance-card.instance-deleted .instance-metrics strong{color:#617181}.instance-card.instance-deleted .instance-script,.instance-card.instance-deleted .instance-metrics span{color:#8c99a4}.instance-card.instance-deleted .instance-card-note{color:#788691}.instance-card.instance-deleted .instance-menu{visibility:hidden}.instance-history-label{grid-column:1/-1;display:block;height:29px;line-height:29px;border-radius:7px;background:#e4e8ec;color:#77838e;text-align:center;font-size:11px;font-weight:700}.deleted-history-panel{margin-top:16px;padding:0 16px 16px}.deleted-history-panel>summary{cursor:pointer;padding:14px 0;font-weight:800;color:#667887}.deleted-history-panel>p{margin:0 0 12px}.deleted-history-panel[open]>summary{border-bottom:1px solid #e6edf2;margin-bottom:12px}.instance-card.replace-selectable{outline:2px solid rgba(22,135,248,.3);outline-offset:2px}.instance-card.replace-selectable .instance-replace{background:#1687f8!important;color:#fff!important}.instance-action-success{color:#15966d!important;font-weight:700}@media(max-width:760px){.instance-favorite{max-width:48%}}

/* Account-level card: scoped nested records, no change to approved OilUI theme. */
.instance-members{grid-column:1/-1;width:100%;margin:6px 0;border-top:1px solid rgba(100,140,175,.15);padding-top:8px}
.instance-members>summary{cursor:pointer;font-size:11px;font-weight:700;color:#527c9c;line-height:1.6}
.instance-member-rows{display:grid;gap:6px;margin-top:8px}
.instance-member-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#586e7f;padding:6px 8px;background:rgba(255,255,255,.68);border-radius:9px}
.instance-member-row .button{flex:none;padding:5px 10px;min-height:27px;font-size:10px}
.unrecognized-offline-history{grid-column:1/-1;padding:10px 12px;border:1px dashed #b6c6d4;border-radius:12px;color:#64788b}
.unrecognized-offline-history>summary{cursor:pointer;font-weight:700}
.unrecognized-offline-history>.latest-instance-grid{margin-top:10px}



/* /assets/mascot/mascot-web.css */
/* /assets/ui/ui-scene.css */
/* Final artwork layer from the approved HangHang data-test UI package. */
:root{--hh-scene-blue:#76c7fb;--hh-scene-sky:#cfeeff;--hh-scene-ink:#0a63c8}
@keyframes hh-gull-drift{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(10px,-3px,0)}}
@keyframes hh-flower-sway{0%,100%{transform:rotate(0)}50%{transform:rotate(1.8deg)}}

/* Use the exact approved cat artwork for every brand image. */
.brand-mascot,.user-auth-brand img,.user-brand img,.user-top-brand img{content:url('/assets/mascot/mascot.png')!important;object-fit:contain!important}
#admin-login-mascot,#admin-heading-mascot,#user-login-card-mascot,#user-login-scene-mascot,#user-hero-mascot{background:url('/assets/mascot/mascot.png') center/contain no-repeat!important;border:0!important;box-shadow:none!important;font-size:0!important}
#admin-login-mascot canvas,#admin-login-mascot img,#admin-heading-mascot canvas,#admin-heading-mascot img,#user-login-card-mascot canvas,#user-login-card-mascot img,#user-login-scene-mascot canvas,#user-login-scene-mascot img,#user-hero-mascot canvas,#user-hero-mascot img{display:none!important}

/* Admin login: approved seaside scene + existing 70亿 signature. */
.login-screen{position:relative!important;overflow:hidden!important;isolation:isolate!important;display:block!important;background:linear-gradient(90deg,rgba(239,249,255,0) 0 58%,rgba(239,249,255,.50) 69%,#eef9ff 88%),url('/assets/ui/portal-seaside.webp') left center/cover no-repeat!important}
.login-screen::before{content:"";position:absolute;z-index:1;left:clamp(28px,5vw,78px);top:clamp(82px,15vh,145px);width:clamp(290px,31vw,420px);aspect-ratio:345/107;background:url('/assets/ui/slogan-70yi.svg') center/contain no-repeat;pointer-events:none}
.login-screen::after{content:"";position:absolute;z-index:1;left:clamp(330px,34vw,505px);top:clamp(45px,8vh,82px);width:82px;height:45px;background:url('/assets/ui/gulls.png') center/contain no-repeat;opacity:.88;animation:hh-gull-drift 7s ease-in-out infinite;pointer-events:none}
.login-screen .login-card{position:absolute!important;z-index:4!important;right:8%!important;top:50%!important;transform:translateY(-50%)!important;width:min(410px,calc(100vw - 34px))!important;padding:58px 34px 32px!important;border-radius:26px!important;background:rgba(255,255,255,.94)!important;border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 28px 80px rgba(30,100,165,.21)!important;backdrop-filter:blur(16px)!important}
.login-screen .login-card #admin-login-mascot{position:absolute!important;left:50%!important;top:-55px!important;transform:translateX(-50%)!important;width:105px!important;height:95px!important;margin:0!important}

/* Admin application shell. */
.app-shell{position:relative;isolation:isolate;background:linear-gradient(180deg,#edf9ff,#fbfdff 52%,#eef9ff)}
.app-shell::after{content:"";position:fixed;z-index:0;left:-16px;bottom:-18px;width:clamp(145px,15vw,220px);aspect-ratio:164/203;background:url('/assets/ui/flowers-corner.png') left bottom/contain no-repeat;pointer-events:none;transform-origin:left bottom;animation:hh-flower-sway 6.8s ease-in-out infinite}
.app-shell .sidebar,.app-shell .workspace{position:relative;z-index:1}
[data-view="analytics"] .hh-ui-analytics-header{background:url('/assets/ui/gulls.png') 58% 14px/80px auto no-repeat,linear-gradient(180deg,#90d6ff,#eaf8ff)!important}

/* User login: exact final seaside background, hand-written slogan and cat. */
.user-auth-screen{position:relative!important;overflow:hidden!important;isolation:isolate!important;background:linear-gradient(90deg,rgba(232,248,255,0) 0 56%,rgba(236,249,255,.55) 74%,#eef9ff 100%),url('/assets/ui/portal-seaside.webp') left center/cover no-repeat!important}
.user-auth-screen::before{content:""!important;position:absolute!important;z-index:1!important;left:-18px!important;bottom:-18px!important;right:auto!important;top:auto!important;width:clamp(160px,19vw,260px)!important;height:auto!important;aspect-ratio:164/203!important;background:url('/assets/ui/flowers-corner.png') left bottom/contain no-repeat!important;opacity:.98!important;animation:hh-flower-sway 6.8s ease-in-out infinite!important;pointer-events:none!important}
.user-auth-screen::after{content:""!important;position:absolute!important;z-index:1!important;left:auto!important;right:36%!important;top:8%!important;bottom:auto!important;width:80px!important;height:43px!important;background:url('/assets/ui/gulls.png') center/contain no-repeat!important;opacity:.8!important;transform:none!important;animation:hh-gull-drift 7s ease-in-out infinite!important;pointer-events:none!important}
.auth-scene-copy{position:absolute!important;z-index:3!important;left:14%!important;top:23%!important;width:310px!important;min-height:270px!important;transform:none!important;background:url('/assets/ui/slogan-cn-left-right.png') center top/249px 81px no-repeat!important;text-align:center!important}
.auth-scene-copy>strong,.auth-scene-copy>span{opacity:0!important;user-select:none!important}
.auth-scene-copy .auth-scene-cat.hh-mascot-stage{position:relative!important;margin:88px auto 0!important;width:190px!important;height:170px!important;background:url('/assets/mascot/mascot.png') center/contain no-repeat!important}
.user-auth-card{z-index:4!important;right:8%!important;width:min(410px,calc(100vw - 34px))!important;padding:58px 34px 30px!important;border-radius:26px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 28px 80px rgba(30,100,165,.21)!important}
.user-auth-card #user-login-card-mascot{position:absolute!important;left:50%!important;top:-55px!important;transform:translateX(-50%)!important;width:105px!important;height:95px!important}

/* Portal scene decorations use the exact package assets, overriding old SVG placeholders. */
.user-portal-shell.user-portal-shell::before{content:""!important;display:block!important;position:fixed!important;z-index:0!important;left:-20px!important;bottom:-20px!important;width:190px!important;height:auto!important;aspect-ratio:164/203!important;background:url('/assets/ui/flowers-corner.png') left bottom/contain no-repeat!important;opacity:.78!important;pointer-events:none!important;animation:hh-flower-sway 7s ease-in-out infinite!important}
.user-portal-shell .latest-user-slogan.latest-user-slogan{background:url('/assets/ui/slogan-cn-left-right.png') center/contain no-repeat!important}
.user-portal-shell .latest-user-hero.latest-user-hero::before{background:url('/assets/ui/gulls.png') center/contain no-repeat!important}
.secondary-heading::after{background:url('/assets/mascot/mascot.png') center/contain no-repeat!important}

@media(max-width:920px){
  .login-screen::before{left:22px;top:92px;width:300px}
  .auth-scene-copy{left:6%!important;top:22%!important;transform:scale(.9)!important;transform-origin:left top!important}
}
@media(max-width:760px){
  .login-screen{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.02) 72%,rgba(235,248,255,.28)),url('/assets/ui/portal-seaside.webp') center/cover no-repeat!important}
  .login-screen::before{left:22px;top:72px;width:250px}
  .login-screen .login-card{left:14px!important;right:14px!important;top:auto!important;bottom:22px!important;transform:none!important;width:auto!important}
  .user-auth-screen{background:linear-gradient(180deg,rgba(255,255,255,.01),rgba(255,255,255,.02) 70%,rgba(235,248,255,.25)),url('/assets/ui/portal-seaside.webp') center top/auto 45vh no-repeat,linear-gradient(180deg,#caedff,#eef9ff)!important}
  .user-auth-screen::before{width:150px!important}
  .user-auth-screen::after{right:16px!important;top:28px!important}
  .auth-scene-copy{display:block!important;left:50%!important;top:74px!important;width:270px!important;transform:translateX(-50%) rotate(-4deg)!important;background-size:248px 81px!important}
  .auth-scene-copy .auth-scene-cat.hh-mascot-stage{display:none!important}
  .user-auth-card{left:14px!important;right:14px!important;top:auto!important;bottom:22px!important;transform:none!important;width:auto!important}
  .user-portal-shell .user-workspace .user-topbar{height:280px!important;align-items:flex-start!important;padding:20px!important;background:url('/assets/ui/portal-seaside.webp') center/cover no-repeat!important}
}
@media(prefers-reduced-motion:reduce){.login-screen::after,.app-shell::after,.user-auth-screen::before,.user-auth-screen::after,.user-portal-shell.user-portal-shell::before{animation:none!important}}

/* Respect the dashboard auth state: the scene's display override must not reveal a hidden login screen. */
.login-screen[hidden] { display: none !important; }



.hh-mascot-stage{position:absolute;display:block;pointer-events:none;user-select:none;overflow:visible;z-index:4;--hh-base-transform:translate3d(0,0,0)}.hh-mascot-stage canvas,.hh-mascot-stage img{width:100%;height:100%;display:block;object-fit:contain;object-position:center center;filter:drop-shadow(0 7px 10px rgba(29,104,183,.13))}.hh-mascot-source-video{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.hh-mascot-canvas[hidden],.hh-mascot-image[hidden]{display:none!important}@keyframes hh-stage-float{0%,100%{transform:var(--hh-base-transform) translateY(0)}50%{transform:var(--hh-base-transform) translateY(-5px)}}.hh-mascot-stage.hh-float{animation:hh-stage-float 4.8s ease-in-out infinite;transform-origin:center bottom}.login-card .hh-mascot-stage.auth-mascot{position:relative;top:auto;left:auto;width:78px;height:78px;margin:-17px auto 5px;--hh-base-transform:translate3d(0,0,0)}.page-heading .hh-mascot-stage.heading-mascot{position:relative;inset:auto;width:72px;height:72px;margin-right:3px;--hh-base-transform:translate3d(0,0,0)}.auth-scene-copy .hh-mascot-stage.auth-scene-cat{position:relative;inset:auto;margin:34px auto 0;width:150px;height:110px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:0!important;display:block!important;--hh-base-transform:translate3d(0,0,0)}.user-auth-card .hh-mascot-stage.auth-card-mascot{top:-45px;left:50%;width:88px;height:88px;--hh-base-transform:translateX(-50%)}.latest-user-hero .hh-mascot-stage.latest-user-mascot{right:18px;top:-17px;left:auto;width:96px;height:96px;--hh-base-transform:translate3d(0,0,0)}@media(max-width:1150px){.page-heading .hh-mascot-stage.heading-mascot{width:64px;height:64px}}@media(max-width:720px){.page-heading .hh-mascot-stage.heading-mascot{width:58px;height:58px}.latest-user-hero .hh-mascot-stage.latest-user-mascot{right:8px;top:-10px;width:86px;height:86px}}@media(prefers-reduced-motion:reduce){.hh-mascot-stage.hh-float{animation:none;transform:var(--hh-base-transform)}}



/* /assets/oil-ui/oil-ui.css */
:root{
  --oil-navy:#063f91;
  --oil-navy-2:#0a4fa6;
  --oil-blue:#1687f8;
  --oil-blue-2:#51b6ff;
  --oil-sky:#dff4ff;
  --oil-sky-2:#f4fbff;
  --oil-line:rgba(85,151,207,.22);
  --oil-muted:#6c8cac;
  --oil-mint:#18b985;
  --oil-coral:#ff6464;
  --oil-shadow:0 16px 46px rgba(40,105,166,.12);
  --oil-shadow-soft:0 8px 24px rgba(40,105,166,.08);
  --oil-radius:18px;
}

/* Oil UI north star: 海边手账里的实时监控台。景深负责品牌，白色纸片负责数据。 */
html,body{background:#edf8ff;color:var(--oil-navy);}
body{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;}
button,input,select{font:inherit;}
button{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease;}
button:active{transform:scale(.98);}

@keyframes oil-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes oil-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes oil-drift{0%,100%{background-position:0 0}50%{background-position:18px 0}}

/* ---------- user login ---------- */
.user-auth-screen{
  isolation:isolate;
  background:
    radial-gradient(circle at 15% 8%,rgba(255,255,255,.95),transparent 18%),
    linear-gradient(180deg,#82ceff 0,#bfeaff 42%,#54b9ec 43%,#2d9ddd 57%,#e8f8ff 58%,#f7fcff 100%)!important;
}
.user-auth-screen::before{
  content:"";position:absolute;z-index:-2;inset:auto -4% 0 -4%;height:42%;opacity:.95;
  background:
    radial-gradient(circle at 6% 78%,#3c96ed 0 6px,#c9eeff 7px 14px,transparent 15px),
    radial-gradient(circle at 12% 62%,#72c3f7 0 5px,#e5f8ff 6px 12px,transparent 13px),
    radial-gradient(circle at 88% 75%,#4ca8ef 0 6px,#d7f2ff 7px 14px,transparent 15px),
    radial-gradient(circle at 82% 58%,#78c9fb 0 5px,#eaf9ff 6px 12px,transparent 13px),
    linear-gradient(180deg,transparent,rgba(224,247,255,.94));
}
.user-auth-screen::after{
  content:"";position:absolute;z-index:-1;left:0;right:0;top:42%;height:17%;opacity:.72;
  background:repeating-linear-gradient(177deg,rgba(255,255,255,.58) 0 2px,transparent 3px 24px);
}
.user-auth-brand{top:30px!important;left:48px!important;gap:12px!important;}
.user-auth-brand img{width:58px!important;height:58px!important;filter:drop-shadow(0 7px 12px rgba(25,91,151,.16));animation:oil-float 5s ease-in-out infinite;}
.user-auth-brand strong{font-size:22px!important;letter-spacing:.2px;color:#064589!important;}
.user-auth-brand span{font-size:10px!important;letter-spacing:1px!important;color:#4576a8!important;}
.auth-scene-copy{left:16%!important;top:28%!important;transform:rotate(-6deg)!important;}
.auth-scene-copy strong{font-size:46px!important;line-height:1.16!important;color:#0870d7!important;text-shadow:0 2px rgba(255,255,255,.35)!important;}
.auth-scene-copy span{margin-top:10px!important;font-size:22px!important;color:#1788e8!important;}
.auth-scene-cat{
  margin:28px auto 0!important;width:164px!important;height:125px!important;border:0!important;border-radius:0!important;
  background:url('/assets/mascot.png') center/contain no-repeat!important;box-shadow:none!important;color:transparent!important;font-size:0!important;
  filter:drop-shadow(0 15px 18px rgba(21,88,145,.14));animation:oil-float 4.6s ease-in-out infinite;
}
.user-auth-card{
  right:9%!important;width:min(400px,calc(100vw - 36px))!important;padding:58px 34px 30px!important;
  border:1px solid rgba(255,255,255,.88)!important;border-radius:26px!important;
  background:rgba(255,255,255,.94)!important;box-shadow:0 28px 80px rgba(27,96,157,.22)!important;
  backdrop-filter:blur(16px)!important;
}
.auth-card-mascot{width:92px!important;height:92px!important;top:-48px!important;filter:drop-shadow(0 9px 14px rgba(38,101,159,.17))!important;animation:oil-float 4.8s ease-in-out infinite;}
.user-auth-card h1{font-size:28px!important;letter-spacing:.2px!important;color:#073e88!important;}
.user-auth-card>p:not(.auth-switch):not(.modal-error){font-size:13px!important;line-height:1.7!important;color:#6d89a6!important;}
.field-shell .field{height:49px!important;border:1px solid #cae2f5!important;border-radius:12px!important;background:#fbfdff!important;box-shadow:inset 0 1px 2px rgba(23,79,128,.04)!important;}
.field-shell:focus-within .field{border-color:#67b6fb!important;box-shadow:0 0 0 3px rgba(22,135,248,.11)!important;}
.user-login-button{height:50px!important;border-radius:25px!important;background:linear-gradient(135deg,#46afff,#087cf0)!important;box-shadow:0 10px 22px rgba(20,126,239,.22)!important;}
.auth-switch{font-size:13px!important;}

/* ---------- user portal ---------- */
.user-portal-shell{background:linear-gradient(180deg,#eaf7ff 0,#fafdff 48%,#eef9ff 100%)!important;}
.user-sidebar{width:206px!important;padding:22px 14px!important;background:linear-gradient(180deg,rgba(247,252,255,.98),rgba(229,245,255,.97))!important;border-right:1px solid rgba(85,151,207,.18)!important;box-shadow:7px 0 28px rgba(49,112,170,.06)!important;}
.user-brand{padding:0 9px 25px!important;}
.user-brand img{width:48px!important;height:48px!important;filter:drop-shadow(0 6px 9px rgba(37,100,159,.12));}
.user-brand strong{font-size:15px!important;color:#064483!important;}
.user-nav-item{border-radius:13px!important;padding:12px 14px!important;color:#234d80!important;}
.user-nav-item.selected{background:linear-gradient(90deg,#d7eeff,#eff9ff)!important;box-shadow:inset 3px 0 #1688f6!important;color:#086bd8!important;}
.user-workspace{margin-left:206px!important;width:calc(100% - 206px)!important;}
.user-topbar{height:74px!important;padding:0 28px!important;background:rgba(238,249,255,.78)!important;border-bottom:1px solid rgba(102,169,220,.16)!important;backdrop-filter:blur(10px)!important;}
.user-top-brand img{width:45px!important;height:45px!important;}
.user-view{padding:28px clamp(22px,3.5vw,48px)!important;animation:oil-enter .42s ease both;}
.latest-user-hero{min-height:112px!important;align-items:flex-start!important;}
.latest-user-hero h1{font-size:31px!important;letter-spacing:.2px!important;color:#063d87!important;}
.latest-user-hero p{font-size:13px!important;color:#7190ad!important;}
.latest-user-slogan{margin-right:120px!important;color:#0875d8!important;}
.latest-user-slogan strong{font-size:25px!important;line-height:1.06!important;}
.latest-user-mascot{right:12px!important;top:-17px!important;width:104px!important;height:104px!important;filter:drop-shadow(0 9px 14px rgba(35,101,160,.15))!important;animation:oil-float 4.6s ease-in-out infinite;}
.latest-user-summary{gap:14px!important;margin:18px 0 19px!important;}
.summary-card{min-height:104px!important;padding:18px 20px!important;border:1px solid rgba(108,171,219,.22)!important;border-radius:16px!important;background:rgba(255,255,255,.95)!important;box-shadow:var(--oil-shadow-soft)!important;}
.summary-card strong{font-size:28px!important;color:#073f8d!important;}
.summary-icon{width:44px!important;height:44px!important;background:#e6f4ff!important;color:#1484ed!important;}
.latest-instance-grid{gap:14px!important;}
.instance-card{min-height:220px!important;border:1px solid rgba(108,171,219,.22)!important;border-radius:15px!important;background:rgba(255,255,255,.96)!important;box-shadow:var(--oil-shadow-soft)!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;}
.instance-card:hover{transform:translateY(-2px);box-shadow:0 15px 32px rgba(42,109,168,.12)!important;border-color:rgba(22,135,248,.24)!important;}
.instance-card.instance-alert{background:linear-gradient(135deg,#eef2f5,#e1e6ea)!important;}
.instance-card-actions button{min-height:31px!important;}

/* ---------- admin login ---------- */
.login-screen{
  background:
    radial-gradient(circle at 18% 12%,rgba(255,255,255,.96),transparent 22%),
    linear-gradient(180deg,#82ceff 0,#bce9ff 43%,#55b9ec 44%,#329fdf 58%,#e5f7ff 59%,#f8fcff 100%)!important;
}
.login-screen::before{
  content:"70亿，\A 少你们也不行！";white-space:pre;position:absolute;left:7%;top:18%;z-index:0;
  font-family:"KaiTi","STKaiti",cursive;font-size:clamp(38px,5vw,72px);line-height:1.05;font-weight:700;color:#0871d7;
  transform:rotate(-6deg);text-shadow:0 2px rgba(255,255,255,.35);
}
.login-screen::after{
  content:"Left & Right";position:absolute;left:22%;top:49%;z-index:0;font-family:cursive;font-style:italic;font-size:24px;color:#1788e8;transform:rotate(-5deg);
}
.login-card{position:relative;z-index:2;width:min(410px,calc(100vw - 36px))!important;padding:58px 34px 30px!important;border-radius:26px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 28px 80px rgba(27,96,157,.22)!important;backdrop-filter:blur(16px)!important;}
.auth-mascot{width:86px!important;height:86px!important;margin:-18px auto 4px!important;filter:drop-shadow(0 9px 14px rgba(38,101,159,.17))!important;animation:oil-float 4.8s ease-in-out infinite;}
.login-card h1{font-size:30px!important;color:#073f91!important;}
.login-card .field{height:48px!important;border-radius:12px!important;border-color:#cae2f5!important;}
.login-card .button.primary{border-radius:24px!important;background:linear-gradient(135deg,#47afff,#087cf0)!important;box-shadow:0 10px 22px rgba(20,126,239,.22)!important;}

/* ---------- admin dashboard ---------- */
.sidebar{background:linear-gradient(180deg,rgba(248,253,255,.98),rgba(231,246,255,.96))!important;border-right:1px solid rgba(85,151,207,.18)!important;}
.workspace{background:linear-gradient(180deg,rgba(237,249,255,.9),#fbfdff 48%,#eef9ff)!important;}
.topbar{background:rgba(240,249,255,.72)!important;backdrop-filter:blur(10px)!important;}
.page-heading h1{font-size:29px!important;letter-spacing:.15px!important;}
.stat-card,.panel{border:1px solid rgba(108,171,219,.22)!important;background:rgba(255,255,255,.95)!important;box-shadow:var(--oil-shadow-soft)!important;}
.stat-card{border-radius:17px!important;}
.panel{border-radius:18px!important;}
.button.primary{background:linear-gradient(135deg,#45adff,#087cf0)!important;box-shadow:0 9px 20px rgba(18,125,236,.2)!important;}

/* ---------- mobile ---------- */
@media(max-width:720px){
  .user-auth-brand{top:22px!important;left:22px!important;}
  .user-auth-brand img{width:50px!important;height:50px!important;}
  .user-auth-brand strong{font-size:18px!important;}
  .auth-scene-copy{left:8%!important;top:18%!important;transform:rotate(-5deg) scale(.82)!important;transform-origin:left top!important;}
  .user-auth-card{right:50%!important;top:auto!important;bottom:24px!important;transform:translateX(50%)!important;width:calc(100vw - 28px)!important;padding:52px 22px 24px!important;border-radius:24px!important;}

  .user-sidebar{position:fixed!important;z-index:20!important;left:16px!important;right:16px!important;top:auto!important;bottom:14px!important;width:auto!important;height:64px!important;padding:8px!important;border:1px solid rgba(120,177,220,.25)!important;border-radius:22px!important;background:rgba(255,255,255,.92)!important;box-shadow:0 15px 40px rgba(43,103,158,.16)!important;backdrop-filter:blur(16px)!important;overflow:visible!important;}
  .user-brand,.user-sidebar-flowers{display:none!important;}
  .user-nav{height:100%!important;display:block!important;}
  .user-nav-item{height:100%!important;justify-content:center!important;gap:8px!important;border-radius:15px!important;background:linear-gradient(135deg,#e3f3ff,#f3fbff)!important;box-shadow:none!important;font-size:13px!important;}
  .user-workspace{margin:0!important;width:100%!important;padding:0 0 96px!important;}
  .user-topbar{height:322px!important;padding:20px 22px!important;align-items:flex-start!important;background:
    radial-gradient(circle at 10% 18%,rgba(255,255,255,.9),transparent 18%),
    linear-gradient(180deg,#74c9ff 0,#bce8ff 45%,#4eb7ec 46%,#2e9cdc 66%,#e8f7ff 67%,#f8fcff 100%)!important;
  }
  .user-top-brand{align-items:flex-start!important;}
  .user-top-brand img{width:58px!important;height:58px!important;animation:oil-float 5s ease-in-out infinite;}
  .user-top-brand strong{font-size:19px!important;}
  .user-top-brand span{font-size:10px!important;}
  .user-logout{margin-top:4px!important;background:rgba(255,255,255,.88)!important;}
  .user-view{margin-top:-24px!important;padding:28px 18px 24px!important;border-radius:28px 28px 0 0!important;background:linear-gradient(180deg,rgba(248,253,255,.97),#f7fbff 28%,#eef8ff)!important;}
  .latest-user-hero{min-height:92px!important;}
  .latest-user-hero h1{font-size:30px!important;}
  .latest-user-slogan{display:none!important;}
  .latest-user-mascot{top:-118px!important;right:38px!important;width:150px!important;height:150px!important;}
  .user-hero-actions{right:0!important;bottom:8px!important;}
  .latest-user-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;}
  .summary-card{min-height:92px!important;padding:13px 10px!important;gap:8px!important;align-items:flex-start!important;}
  .summary-icon{width:34px!important;height:34px!important;}
  .summary-card strong{font-size:22px!important;}
  .summary-card>div>span{font-size:10px!important;}
  .summary-card small{font-size:9px!important;}
  .latest-instance-grid{grid-template-columns:1fr!important;gap:13px!important;}
  .instance-card{min-height:0!important;padding:17px!important;border-radius:17px!important;}
  .instance-card h3{font-size:16px!important;}
  .instance-script{white-space:normal!important;line-height:1.55!important;}
  .instance-card-actions{grid-template-columns:1fr 1fr!important;}
  .instance-delete,.instance-replace{height:36px!important;}
  .instance-footer{padding-bottom:8px!important;}

  .login-screen::before{left:7%;top:15%;font-size:42px;}
  .login-screen::after{left:22%;top:38%;font-size:20px;}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;}
}



/* /assets/oil-ui/oil-ui-fix.css */
/* Oil UI screenshot-review pass 2.
   Loaded after oil-ui.css. Fixes the largest visual deltas without touching APIs. */

/* --- Login composition: use the approved seaside artwork as the atmosphere layer. --- */
.user-auth-screen,
.login-screen{
  background:linear-gradient(180deg,#caedff 0%,#eaf8ff 55%,#f8fcff 100%)!important;
}

.user-auth-screen::before{
  content:""!important;
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:min(62vw,880px)!important;
  height:100%!important;
  z-index:0!important;
  opacity:1!important;
  background:url('/assets/oil-ui/user-login-scene.webp') center/cover no-repeat!important;
  transform:none!important;
}
.user-auth-screen::after{
  content:""!important;
  position:absolute!important;
  inset:0 0 0 auto!important;
  width:49%!important;
  height:100%!important;
  z-index:1!important;
  opacity:1!important;
  background:linear-gradient(90deg,rgba(228,247,255,0),rgba(233,248,255,.88) 18%,#edf9ff 60%,#f7fcff)!important;
  transform:none!important;
}
.auth-scene-copy{display:none!important;}
.user-auth-brand{z-index:3!important;}
.user-auth-card{z-index:4!important;right:clamp(28px,6vw,92px)!important;}

.login-screen::before{
  content:""!important;
  white-space:normal!important;
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:min(62vw,880px)!important;
  height:100%!important;
  z-index:0!important;
  background:url('/assets/oil-ui/admin-login-scene.webp') center/cover no-repeat!important;
  transform:none!important;
  text-shadow:none!important;
}
.login-screen::after{
  content:""!important;
  position:absolute!important;
  inset:0 0 0 auto!important;
  width:49%!important;
  height:100%!important;
  z-index:1!important;
  background:linear-gradient(90deg,rgba(228,247,255,0),rgba(233,248,255,.88) 18%,#edf9ff 60%,#f7fcff)!important;
  transform:none!important;
}
.login-screen{justify-content:flex-end!important;padding-right:clamp(28px,6vw,92px)!important;}
.login-card{z-index:3!important;}

/* Keep forms readable at laptop heights instead of growing beyond the viewport. */
.user-auth-card,.login-card{max-height:calc(100vh - 64px);overflow:auto;scrollbar-width:thin;}
.login-steps{margin-top:14px!important;}

/* --- User workspace: stop the 1440px view from becoming a sea of empty space. --- */
.user-view{width:min(100%,1220px)!important;margin-inline:auto!important;}
.latest-user-hero{padding-top:2px!important;}
.instances-panel{padding-bottom:24px;}
.latest-instance-grid{align-items:stretch;}

/* Real user.js cards currently expose account / video / error / last-seen / instance-id.
   These classes are applied by oil-ui-patch.js; no fake playback data or dead buttons. */
.instance-card.oil-live-card{min-height:205px!important;padding:15px 16px 14px!important;display:flex;flex-direction:column;gap:9px;}
.oil-instance-head{display:flex;align-items:center;gap:9px;min-width:0;}
.oil-instance-index{flex:none;font-size:11px;font-weight:800;color:#0d7ce9;letter-spacing:.4px;}
.oil-instance-head h3{margin:0!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px!important;color:#123f78;}
.oil-instance-head .badge{margin-left:auto;flex:none;}
.oil-instance-meta{margin:0!important;color:#5c7897!important;font-size:11px!important;line-height:1.48;overflow:hidden;text-overflow:ellipsis;}
.oil-instance-video{padding:10px 11px;border-radius:10px;background:#f4faff;color:#315f8e!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal!important;}
.oil-instance-error{padding:8px 10px;border-radius:9px;background:#fff1f1;color:#d94e52!important;}
.oil-instance-id{margin-top:auto!important;padding-top:5px;color:#8ca3b8!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:9px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.instance-card.oil-live-card.instance-alert{border-color:#efcfd1!important;background:linear-gradient(145deg,#fff,#fff7f7)!important;}

/* --- Mobile review fixes --- */
@media(max-width:720px){
  .user-auth-screen::before,.login-screen::before{
    width:100%!important;
    height:45vh!important;
    background-position:center center!important;
  }
  .user-auth-screen::after,.login-screen::after{
    inset:auto 0 0 0!important;width:100%!important;height:62vh!important;
    background:linear-gradient(180deg,rgba(239,250,255,0),#f5fbff 18%,#f8fcff 100%)!important;
  }
  .auth-scene-copy{display:none!important;}
  .user-auth-card{bottom:18px!important;max-height:61vh;}
  .login-screen{padding:0 14px 18px!important;align-items:flex-end!important;justify-content:center!important;}
  .login-card{width:100%!important;max-width:430px!important;max-height:61vh;}

  .user-view{width:100%!important;margin:0!important;}
  .latest-user-summary{width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;}
  .summary-card{min-width:0!important;padding:11px 8px!important;gap:6px!important;overflow:hidden;}
  .summary-card>div{min-width:0!important;overflow:hidden;}
  .summary-icon{width:30px!important;height:30px!important;font-size:14px!important;}
  .summary-card strong{font-size:clamp(17px,5.4vw,21px)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .summary-card>div>span,.summary-card small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .instance-card.oil-live-card{min-height:0!important;}
  .oil-instance-video{-webkit-line-clamp:3;}
}

@media(min-width:721px) and (max-width:1050px){
  .user-auth-screen::before,.login-screen::before{width:57%!important;}
  .user-auth-card,.login-screen{--oil-card-edge:24px;}
  .user-auth-card{right:24px!important;}
  .login-screen{padding-right:24px!important;}
  .latest-instance-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}



/* /assets/oil-ui/oil-ui-hero.css */
/* Oil UI screenshot-review pass 3: scenic user portal hero.
   This layer only changes presentation; data/API behavior stays in the existing user.js. */

@keyframes oil-gulls-drift{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(10px,-2px,0)}
}

.user-sidebar-flowers{
  left:-16px!important;
  bottom:-16px!important;
  width:184px!important;
  height:220px!important;
  padding:0!important;
  font-size:0!important;
  color:transparent!important;
  opacity:.78!important;
  background:url('/assets/oil-ui/flowers-corner.png') left bottom/contain no-repeat!important;
  transform:rotate(-2deg)!important;
}

.latest-user-hero{
  position:relative!important;
  min-height:168px!important;
  padding:22px 24px!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.88)!important;
  border-radius:22px!important;
  background:
    linear-gradient(90deg,rgba(255,255,255,.93) 0%,rgba(255,255,255,.77) 33%,rgba(255,255,255,.12) 62%,rgba(236,249,255,.08) 100%),
    url('/assets/oil-ui/portal-seaside.webp') center/cover no-repeat!important;
  box-shadow:0 14px 36px rgba(38,106,166,.12)!important;
}
.latest-user-hero::before{
  content:"";
  position:absolute;
  z-index:1;
  top:12px;
  left:52%;
  width:72px;
  height:39px;
  opacity:.88;
  background:url('/assets/oil-ui/gulls.png') center/contain no-repeat;
  animation:oil-gulls-drift 7s ease-in-out infinite;
}
.latest-user-hero>div:first-child{
  position:relative;
  z-index:2;
  width:min(420px,48%);
  padding:13px 15px 14px;
  border:1px solid rgba(255,255,255,.75);
  border-radius:15px;
  background:rgba(255,255,255,.78);
  box-shadow:0 9px 22px rgba(47,112,169,.08);
  backdrop-filter:blur(8px);
}
.latest-user-hero h1{font-size:30px!important;}
.latest-user-hero p{margin-top:6px!important;color:#587c9e!important;}
.latest-user-hero small{color:#6789a8!important;}

.latest-user-slogan{
  position:absolute!important;
  z-index:3!important;
  top:19px!important;
  right:148px!important;
  width:166px!important;
  height:64px!important;
  margin:0!important;
  background:url('/assets/oil-ui/slogan-cn-left-right.png') center/contain no-repeat!important;
  transform:rotate(-4deg)!important;
  filter:drop-shadow(0 2px 2px rgba(255,255,255,.4));
}
.latest-user-slogan strong,
.latest-user-slogan span{display:none!important;}

.latest-user-mascot{
  z-index:4!important;
  top:23px!important;
  right:24px!important;
  width:126px!important;
  height:126px!important;
}
.user-hero-actions{
  z-index:5!important;
  right:18px!important;
  bottom:14px!important;
}
.user-hero-actions .button{
  border:1px solid rgba(255,255,255,.78)!important;
  background:rgba(255,255,255,.84)!important;
  box-shadow:0 6px 16px rgba(38,105,164,.11)!important;
  backdrop-filter:blur(8px);
}
.latest-user-summary{margin:16px 0 18px!important;}

@media(max-width:720px){
  .user-topbar{
    position:relative!important;
    height:305px!important;
    padding:18px 18px!important;
    overflow:hidden!important;
    border:0!important;
    background:
      linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.03) 68%,rgba(232,248,255,.72) 100%),
      url('/assets/oil-ui/portal-seaside.webp') center/cover no-repeat!important;
  }
  .user-topbar::before{
    content:"";
    position:absolute;
    top:24px;
    left:48%;
    width:62px;
    height:34px;
    background:url('/assets/oil-ui/gulls.png') center/contain no-repeat;
    opacity:.9;
    animation:oil-gulls-drift 7s ease-in-out infinite;
  }
  .user-topbar::after{
    content:"";
    position:absolute;
    inset:auto 0 0;
    height:72px;
    background:linear-gradient(180deg,rgba(236,249,255,0),rgba(240,250,255,.88));
    pointer-events:none;
  }
  .user-top-brand,
  .user-logout{position:relative;z-index:2!important;}
  .user-top-brand{
    padding:7px 10px!important;
    border:1px solid rgba(255,255,255,.72);
    border-radius:16px;
    background:rgba(255,255,255,.65);
    backdrop-filter:blur(8px);
  }
  .user-top-brand img{width:48px!important;height:48px!important;}
  .user-top-brand strong{font-size:16px!important;}
  .user-logout{
    padding:8px 13px!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.78)!important;
    backdrop-filter:blur(8px);
  }

  .user-view{
    margin-top:-28px!important;
    padding:27px 16px 26px!important;
    border-radius:28px 28px 0 0!important;
    background:linear-gradient(180deg,rgba(249,253,255,.98),#f8fcff 22%,#eef8ff)!important;
    position:relative;
    z-index:3;
  }
  .latest-user-hero{
    min-height:112px!important;
    padding:0 0 8px!important;
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    background:none!important;
    box-shadow:none!important;
  }
  .latest-user-hero::before{display:none!important;}
  .latest-user-hero>div:first-child{
    width:100%!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
  }
  .latest-user-hero h1{font-size:29px!important;}
  .latest-user-slogan{
    display:block!important;
    top:-160px!important;
    right:145px!important;
    width:126px!important;
    height:56px!important;
    transform:rotate(-5deg)!important;
  }
  .latest-user-mascot{
    top:-176px!important;
    right:12px!important;
    width:145px!important;
    height:145px!important;
  }
  .user-hero-actions{
    top:66px!important;
    right:0!important;
    bottom:auto!important;
  }
  .user-sidebar-flowers{display:none!important;}
  .latest-user-summary{margin:13px 0 16px!important;}
}

@media(min-width:721px) and (max-width:1050px){
  .latest-user-hero{min-height:158px!important;}
  .latest-user-hero>div:first-child{width:52%;}
  .latest-user-slogan{right:124px!important;width:142px!important;}
  .latest-user-mascot{right:15px!important;width:112px!important;height:112px!important;}
}

@media(prefers-reduced-motion:reduce){
  .latest-user-hero::before,
  .user-topbar::before{animation:none!important;}
}



/* /user/user-mobile-v2.css */
/* Mobile-first presentation layer for the existing user system.
   Business logic, API calls, realtime state and playback/self-test code stay unchanged. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .user-seaside-body {
    background: #eef9ff;
  }

  .user-auth-screen,
  .user-portal-shell,
  .user-workspace,
  .user-view,
  .latest-user-hero,
  .latest-user-summary,
  .latest-instance-grid,
  .guide-grid,
  .playback-summary-grid,
  .panel {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  img,
  canvas,
  video {
    max-width: 100%;
  }

  /* Clean mobile login scene: use the verified seaside asset directly.
     Do not use a retouched bitmap with filled/blurred foreground areas. */
  .user-auth-screen {
    min-height: 100svh !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.03) 68%, rgba(235,248,255,.42)),
      url('/assets/oil-ui/portal-seaside.webp') center 43% / cover no-repeat !important;
  }

  .user-auth-screen::before,
  .user-auth-screen::after {
    display: none !important;
  }

  .user-auth-brand {
    left: 16px !important;
    top: 18px !important;
    z-index: 7 !important;
    gap: 8px !important;
    padding: 6px 9px !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,.72) !important;
    backdrop-filter: blur(8px);
  }

  .user-auth-brand img {
    width: 40px !important;
    height: 40px !important;
  }

  .user-auth-brand strong {
    font-size: 14px !important;
  }

  .user-auth-brand span {
    font-size: 8px !important;
  }

  .auth-scene-copy {
    display: block !important;
    position: absolute !important;
    z-index: 5 !important;
    left: 50% !important;
    top: 74px !important;
    width: 270px !important;
    height: 112px !important;
    transform: translateX(-50%) rotate(-4deg) !important;
    background: url('/assets/oil-ui/slogan-cn-left-right.png') center / contain no-repeat !important;
    pointer-events: none !important;
  }

  .auth-scene-copy > strong,
  .auth-scene-copy > span,
  .auth-scene-copy .auth-scene-cat {
    display: none !important;
  }

  .user-auth-card {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    transform: none !important;
    width: auto !important;
    padding: 46px 22px 22px !important;
    border-radius: 22px !important;
  }

  .user-auth-card .auth-card-mascot {
    top: -39px !important;
    width: 84px !important;
    height: 76px !important;
  }

  .user-auth-card h1 {
    font-size: 24px !important;
  }

  .user-auth-card > p:not(.auth-switch):not(.modal-error) {
    margin-bottom: 14px !important;
    font-size: 11px !important;
  }

  .field-shell .field {
    height: 46px !important;
  }

  .user-login-button {
    height: 46px !important;
  }

  /* Portal: convert the desktop sidebar layout into a true vertical phone layout. */
  .user-portal-shell {
    display: block !important;
    width: 100% !important;
  }

  .user-sidebar {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px 12px 8px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #d7eaf7 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: rgba(247,252,255,.98) !important;
  }

  .user-brand {
    padding: 0 2px 9px !important;
  }

  .user-brand img {
    width: 38px !important;
    height: 38px !important;
  }

  .user-brand strong {
    font-size: 14px !important;
  }

  .user-brand span {
    font-size: 8px !important;
  }

  .user-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
  }

  .user-nav-item {
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 4px !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  .user-nav-item span {
    width: auto !important;
    font-size: 15px !important;
  }

  .user-sidebar-flowers {
    display: none !important;
  }

  .user-workspace {
    margin: 0 !important;
    width: 100% !important;
    padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  }

  .user-topbar {
    position: relative !important;
    width: 100% !important;
    height: 228px !important;
    padding: 16px !important;
    align-items: flex-start !important;
    border: 0 !important;
    overflow: hidden !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.03) 58%, rgba(236,249,255,.90) 100%),
      url('/assets/oil-ui/portal-seaside.webp') center 42% / cover no-repeat !important;
  }

  .user-topbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 56px;
    background: linear-gradient(180deg, rgba(239,249,255,0), #eef9ff 92%);
    pointer-events: none;
  }

  .user-top-brand,
  .user-logout {
    position: relative !important;
    z-index: 2 !important;
    background: rgba(255,255,255,.76) !important;
    backdrop-filter: blur(8px);
  }

  .user-top-brand {
    padding: 7px 9px !important;
    border-radius: 15px !important;
  }

  .user-top-brand img {
    width: 34px !important;
    height: 34px !important;
  }

  .user-top-brand strong {
    font-size: 12px !important;
  }

  .user-top-brand span {
    font-size: 8px !important;
  }

  .user-logout {
    padding: 7px 12px !important;
  }

  .user-view {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    margin: -25px 0 0 !important;
    padding: 25px 14px 90px !important;
    border-radius: 26px 26px 0 0 !important;
    background: linear-gradient(180deg, #fbfeff, #f5fbff 32%, #eef9ff) !important;
  }

  .latest-user-hero {
    width: 100% !important;
    min-height: 132px !important;
    padding: 17px 14px 54px !important;
    border: 1px solid #dcebf6 !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.93) !important;
    box-shadow: 0 8px 24px rgba(42,113,171,.06) !important;
    overflow: visible !important;
  }

  .latest-user-hero h1 {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .latest-user-hero p {
    padding-right: 70px !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  .latest-user-hero small {
    font-size: 10px !important;
  }

  .latest-user-slogan {
    display: none !important;
  }

  .latest-user-mascot {
    right: 7px !important;
    top: -48px !important;
    width: 105px !important;
    height: 94px !important;
  }

  .user-hero-actions {
    left: 14px !important;
    right: 14px !important;
    bottom: 12px !important;
    display: grid !important;
    grid-template-columns: 1.2fr 1.2fr .55fr !important;
    gap: 6px !important;
  }

  .user-hero-actions .button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 6px !important;
    font-size: 10px !important;
  }

  .latest-user-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin: 12px 0 !important;
  }

  .summary-card {
    min-width: 0 !important;
    min-height: 82px !important;
    padding: 9px 7px !important;
    gap: 5px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    border-radius: 12px !important;
  }

  .summary-icon {
    width: 27px !important;
    height: 27px !important;
    font-size: 12px !important;
  }

  .summary-card > div {
    min-width: 0 !important;
    width: 100% !important;
  }

  .summary-card > div > span {
    font-size: 9px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .summary-card strong {
    font-size: 19px !important;
    line-height: 1.1 !important;
  }

  .summary-card small {
    display: none !important;
  }

  .latest-instance-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .instance-card {
    width: 100% !important;
    min-height: 0 !important;
    padding: 14px !important;
    border-radius: 13px !important;
  }

  .instance-footer {
    display: block !important;
    padding-top: 10px !important;
  }

  .instance-hidden-metrics {
    display: block !important;
    margin-top: 5px !important;
  }

  .deleted-history-panel {
    margin-top: 12px !important;
  }

  .playback-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .playback-metric {
    padding: 12px !important;
  }

  .playback-metric strong {
    font-size: 19px !important;
  }

  .target-form,
  .target-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .target-form .field,
  .target-actions .button {
    width: 100% !important;
    min-width: 0 !important;
  }

  .guide-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .guide-grid article {
    padding: 18px !important;
  }
}

  /* BV mobile flow: keep section title, helper text and actions readable on narrow screens. */
  .self-test-panel .panel-header {
    display: block !important;
    padding: 15px 14px 10px !important;
  }

  .self-test-panel .panel-header > div {
    min-width: 0 !important;
  }

  .self-test-panel .panel-header .muted {
    display: block !important;
    margin-top: 6px !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  .self-test-panel .panel-body {
    padding: 0 14px 14px !important;
  }

  .target-form {
    gap: 9px !important;
  }

  .target-form > label {
    margin-top: 4px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .target-form textarea {
    min-height: 112px !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
  }

  .target-actions {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 4px !important;
  }

  .target-actions .button {
    min-height: 44px !important;
    font-size: 14px !important;
  }

  .parse-result {
    margin-top: 10px !important;
    padding: 12px !important;
    line-height: 1.5 !important;
  }

  .bv-review-item {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .bv-review-item > .button {
    width: 100% !important;
    min-height: 40px !important;
  }

@media (prefers-reduced-motion: reduce) {
  .user-auth-screen *,
  .user-portal-shell * {
    scroll-behavior: auto !important;
  }
}



/* /assets/oil-ui/mobile-app-v2.css */
/* Mobile-first layout correction for Oil UI staging. Presentation only; existing user/admin data logic remains unchanged. */
@media (max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden!important}
  img,canvas,video{max-width:100%}

  /* User portal: remove desktop split-screen behavior on phones. */
  .user-portal-shell{display:block!important;width:100%!important;max-width:100%!important}
  .user-sidebar{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;padding:10px 12px 8px!important;border-right:0!important;border-bottom:1px solid #d7eaf7!important;box-shadow:none!important;overflow:visible!important;background:rgba(247,252,255,.98)!important}
  .user-brand{padding:0 2px 9px!important}
  .user-brand img{width:38px!important;height:38px!important}.user-brand strong{font-size:14px!important}.user-brand span{font-size:8px!important}
  .user-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;width:100%!important}
  .user-nav-item{min-width:0!important;justify-content:center!important;flex-direction:column!important;gap:1px!important;padding:8px 4px!important;text-align:center!important;font-size:10px!important;line-height:1.15!important;border-radius:10px!important}
  .user-nav-item span{width:auto!important;font-size:15px!important}.user-sidebar-flowers{display:none!important}

  .user-workspace{margin:0!important;width:100%!important;max-width:100%!important;padding:0 0 76px!important;overflow-x:hidden!important}
  .user-topbar{position:relative!important;width:100%!important;height:228px!important;padding:16px!important;align-items:flex-start!important;border:0!important;overflow:hidden!important;background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.03) 58%,rgba(236,249,255,.90) 100%),url('/assets/oil-ui/portal-seaside.webp') center 42%/cover no-repeat!important}
  .user-topbar::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:56px;background:linear-gradient(180deg,rgba(239,249,255,0),#eef9ff 92%);pointer-events:none}
  .user-top-brand{position:relative;z-index:2;padding:7px 9px!important;border-radius:15px!important;background:rgba(255,255,255,.74)!important;backdrop-filter:blur(8px)}
  .user-top-brand img{width:34px!important;height:34px!important}.user-top-brand strong{font-size:12px!important}.user-top-brand span{font-size:8px!important}
  .user-logout{position:relative;z-index:2;padding:7px 12px!important;background:rgba(255,255,255,.78)!important;backdrop-filter:blur(8px)}

  .user-view{width:100%!important;max-width:100%!important;margin:-25px 0 0!important;padding:25px 14px 90px!important;border-radius:26px 26px 0 0!important;background:linear-gradient(180deg,#fbfeff,#f5fbff 32%,#eef9ff)!important;position:relative!important;z-index:3!important;overflow-x:hidden!important}
  .latest-user-hero{width:100%!important;min-height:132px!important;padding:17px 14px 54px!important;border:1px solid #dcebf6!important;border-radius:16px!important;background:rgba(255,255,255,.93)!important;box-shadow:0 10px 28px rgba(45,113,174,.07)!important;overflow:visible!important}
  .latest-user-hero h1{font-size:24px!important;line-height:1.2!important}.latest-user-hero p{font-size:11px!important;line-height:1.55!important;padding-right:72px!important}.latest-user-hero small{font-size:10px!important}
  .latest-user-slogan{display:none!important}.latest-user-mascot{right:7px!important;top:-48px!important;width:105px!important;height:94px!important}
  .user-hero-actions{left:14px!important;right:14px!important;bottom:12px!important;display:grid!important;grid-template-columns:1.2fr 1.2fr .55fr!important;gap:6px!important}
  .user-hero-actions .button{width:100%!important;min-width:0!important;padding:8px 6px!important;font-size:10px!important}

  .latest-user-summary{width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin:12px 0!important}
  .summary-card{min-width:0!important;min-height:82px!important;padding:9px 7px!important;gap:5px!important;flex-direction:column!important;align-items:flex-start!important;border-radius:12px!important}
  .summary-icon{width:27px!important;height:27px!important;font-size:12px!important}.summary-card>div{min-width:0!important;width:100%!important}
  .summary-card>div>span{font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.summary-card strong{font-size:19px!important;line-height:1.1!important}.summary-card small{display:none!important}

  .latest-instance-grid{width:100%!important;grid-template-columns:1fr!important;gap:10px!important}
  .instance-card{width:100%!important;min-width:0!important;min-height:0!important;padding:14px!important;border-radius:13px!important}
  .instance-card h3{font-size:12px!important}.instance-script{font-size:10px!important;white-space:normal!important;min-height:28px!important}.instance-metrics strong{font-size:17px!important}
  .instance-card-actions{margin-top:10px!important}.instance-footer{display:block!important;padding:10px 2px!important}.instance-footer span{display:block!important;margin:3px 0!important}
  .deleted-history-panel{margin-top:12px!important}.deleted-history-panel summary{padding:13px 14px!important;font-size:12px!important}

  .secondary-heading{margin-bottom:14px!important}.secondary-heading h1{font-size:24px!important}.secondary-heading p{font-size:11px!important}
  .playback-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:14px!important}.playback-metric{padding:12px!important}.playback-metric strong{font-size:19px!important}
  .target-form{grid-template-columns:1fr!important;gap:8px!important}.target-form .field,.target-form textarea,.target-form select,.target-actions,.target-actions .button{width:100%!important;min-width:0!important}.target-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  .guide-grid{grid-template-columns:1fr!important;gap:10px!important}.guide-grid article{padding:18px!important}

  /* User login: phone-proportioned card and scene. */
  .user-auth-screen{min-height:100svh!important;overflow:hidden!important;background:linear-gradient(180deg,#c9edff,#eaf8ff 58%,#f8fcff)!important}
  .user-auth-screen::before{content:""!important;position:absolute!important;left:0!important;right:0!important;top:0!important;width:100%!important;height:44svh!important;background:url('/assets/oil-ui/user-login-scene.webp') center 44%/cover no-repeat!important;opacity:1!important}
  .user-auth-screen::after{content:""!important;position:absolute!important;left:0!important;right:0!important;top:35svh!important;height:14svh!important;background:linear-gradient(180deg,rgba(235,249,255,0),#eaf8ff)!important;transform:none!important}
  .user-auth-brand{left:16px!important;top:18px!important}.user-auth-brand img{width:40px!important;height:40px!important}.user-auth-brand strong{font-size:15px!important}.user-auth-brand span{font-size:8px!important}.auth-scene-copy{display:none!important}
  .user-auth-card{left:12px!important;right:12px!important;top:auto!important;bottom:14px!important;transform:none!important;width:auto!important;padding:46px 22px 22px!important;border-radius:22px!important}
  .user-auth-card .auth-card-mascot{width:84px!important;height:76px!important;top:-39px!important}.user-auth-card h1{font-size:24px!important}.user-auth-card>p:not(.auth-switch):not(.modal-error){font-size:11px!important;margin-bottom:14px!important}.field-shell .field{height:46px!important}.user-login-button{height:46px!important}

  /* Dashboard: collapse left navigation to a phone-width header. */
  .app-shell{display:block!important;width:100%!important;max-width:100%!important}
  .sidebar{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;padding:10px 12px!important;border-right:0!important;border-bottom:1px solid #d8eaf6!important;box-shadow:none!important;overflow:visible!important}
  .sidebar .brand{margin:0 2px 9px!important}.brand-mascot{width:38px!important;height:38px!important}.sidebar .brand strong{font-size:14px!important}.sidebar .brand span{font-size:8px!important}.nav-label,.sidebar-bottom{display:none!important}
  .sidebar nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}.nav-item{min-width:0!important;justify-content:center!important;padding:8px 4px!important;font-size:10px!important;text-align:center!important}.nav-icon{font-size:15px!important}
  .workspace{margin:0!important;width:100%!important;max-width:100%!important;padding:0 12px 82px!important;overflow-x:hidden!important}.topbar{height:58px!important;padding:0 4px!important}.breadcrumb{font-size:11px!important}.account{gap:5px!important}.account .bell-button,.account .avatar{width:30px!important;height:30px!important}.account #admin-name{display:none!important}
  .page-heading{min-height:118px!important;margin:14px 0!important;padding:17px 14px!important;border:1px solid #dcebf6!important;border-radius:16px!important;background:rgba(255,255,255,.95)!important;box-shadow:0 10px 28px rgba(45,113,174,.07)!important;position:relative!important}.page-heading h1{font-size:23px!important}.page-heading p:last-child{font-size:10px!important;line-height:1.5!important;padding-right:68px!important}.heading-mascot{position:absolute!important;right:8px!important;top:-12px!important;width:88px!important;height:82px!important}.heading-actions{position:static!important}.heading-actions>.button{font-size:10px!important;padding:7px 8px!important}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.stat-card{min-width:0!important;padding:13px!important}.stat-value{font-size:22px!important}
  .panel,.overview-grid,.analytics-grid{max-width:100%!important;min-width:0!important}.panel{overflow:hidden!important}.panel-header{padding:14px!important}.panel-body{padding:14px!important}.filter-bar{display:grid!important;grid-template-columns:1fr!important}.filter-bar>*{width:100%!important;min-width:0!important}
  .analytics-grid{grid-template-columns:1fr!important}.analytics-card,.chart-card{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
  table{min-width:640px}
  .table-scroll,.oil-live-scroll{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
}

  /* BV mobile flow: keep section title, helper text and actions readable on narrow screens. */
  .self-test-panel .panel-header{display:block!important;padding:15px 14px 10px!important}
  .self-test-panel .panel-header>div{min-width:0!important}
  .self-test-panel .panel-header .muted{display:block!important;margin-top:6px!important;font-size:11px!important;line-height:1.5!important}
  .self-test-panel .panel-body{padding:0 14px 14px!important}
  .target-form{gap:9px!important}
  .target-form>label{margin-top:4px!important;font-size:14px!important;line-height:1.35!important}
  .target-form textarea{min-height:112px!important;line-height:1.5!important;font-size:14px!important}
  .target-actions{grid-template-columns:1fr!important;gap:8px!important;margin-top:4px!important}
  .target-actions .button{min-height:44px!important;font-size:14px!important}
  .parse-result{margin-top:10px!important;padding:12px!important;line-height:1.5!important}
  .bv-review-item{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .bv-review-item>.button{width:100%!important;min-height:40px!important}

@media (max-width:390px){
  .user-view{padding-left:12px!important;padding-right:12px!important}.workspace{padding-left:10px!important;padding-right:10px!important}
}



/* /assets/oil-ui/oil-ui-production-compat.css */

/* Adapt the 2026-10-18 data-rich cards without replacing the approved Oil scene. */
.instance-card.oil-live-card{display:flex;flex-direction:column;gap:9px}
.instance-card.oil-live-card .instance-card-head{display:flex;align-items:center;gap:8px;min-width:0}
.instance-card.oil-live-card .instance-card-head h3{flex:1;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:#123f78}
.instance-card.oil-live-card .instance-number{flex:none;font-size:11px;font-weight:800;color:#0d7ce9}
.instance-card.oil-live-card .instance-favorite{min-width:0;max-width:38%;font-size:11px}
.instance-card.oil-live-card .instance-badges{display:flex;gap:6px;flex-wrap:wrap}
.instance-card.oil-live-card .instance-script{margin:0;min-height:40px;padding:10px 11px!important;border-radius:10px;background:#f4faff;color:#315f8e;line-height:1.6}
.instance-card.oil-live-card .instance-script>span{font-weight:700;color:#456e91;margin-right:5px}
.instance-card.oil-live-card .instance-card-note{margin:0;color:#6e89a8;font-size:11px}
.instance-card.oil-live-card.instance-alert{background:linear-gradient(135deg,#edf1f5,#e1e6ea)!important}
.instance-card.oil-live-card .instance-metrics{margin-top:auto}
.instance-card.oil-live-card .instance-card-actions{margin-top:4px}
.user-auth-card .oil-login-role-switch{display:flex;gap:6px;margin:0 0 16px;padding:5px;border-radius:16px;background:#e7f4ff;border:1px solid #d5e8f7}
.oil-login-role-switch button{flex:1;min-width:0;border:0;border-radius:11px;background:transparent;color:#477cae;font-size:13px;font-weight:700;padding:9px 4px;cursor:pointer}
.oil-login-role-switch button.active{background:linear-gradient(135deg,#46afff,#087cf0);color:white;box-shadow:0 5px 11px rgba(20,126,239,.17)}
.user-auth-card[data-login-role="admin"] .auth-switch{display:none!important}
.login-screen[hidden]{display:none!important}
[data-hh-mascot]{position:relative}
@media(max-width:720px){.instance-card.oil-live-card .instance-card-head{gap:5px}.instance-card.oil-live-card .instance-favorite{max-width:34%}}



/* /assets/oil-ui/oil-ui-unified-login.css */
/* Password visibility stays local: no requests or persisted plaintext. */
#auth .field-shell:has(.password-visibility-toggle) .field { padding-inline-end:54px!important; }
#auth .field-shell .password-visibility-toggle {
  position:absolute;inset-inline-end:3px;top:50%;transform:translateY(-50%);
  display:grid;place-items:center;width:44px;height:44px;min-width:44px;
  padding:10px;border:0;border-radius:8px;background:transparent;color:#245b89;cursor:pointer;
}
#auth .password-visibility-toggle:hover { background:#e7f4ff; }
#auth .password-visibility-toggle:focus-visible { outline:2px solid #087be9;outline-offset:1px; }
#auth .password-visibility-toggle svg { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
#auth .password-visibility-toggle .password-eye-slash { display:none; }
#auth .password-visibility-toggle[aria-pressed="true"] .password-eye-slash { display:block; }
#auth #password::-ms-reveal { display:none; }

/* Unified Oil UI login — approved artwork retained byte-for-byte.
   Poster files are 315x268/272; background-size:contain avoids cover cropping.
   Apply ONLY to the common /user entry so dashboard business UI remains untouched. */
body.user-seaside-body #auth.user-auth-screen {
  min-height:100svh!important;
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  background:linear-gradient(110deg,#b9e4fb 0%,#d2edfb 31%,#e5f6ff 65%,#f5fbff 100%)!important;
}
body.user-seaside-body #auth.user-auth-screen::before {
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:50% auto auto clamp(18px,3.5vw,78px)!important;
  transform:translateY(-50%)!important;
  width:min(71vw,1280px)!important;
  height:min(96svh,1040px)!important;
  background:url('/assets/oil-ui/user-login-scene.webp') center/contain no-repeat!important;
  opacity:1!important;
  z-index:0!important;
  pointer-events:none!important;
}
body.user-seaside-body #auth.user-auth-screen[data-login-role="admin"]::before {
  background-image:url('/assets/oil-ui/admin-login-scene.webp')!important;
}
body.user-seaside-body #auth.user-auth-screen::after {
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  background:linear-gradient(90deg,rgba(224,245,255,0) 30%,rgba(233,248,255,.10) 43%,rgba(235,248,255,.68) 65%,#f5fbff 87%)!important;
  transform:none!important;
  z-index:1!important;
  pointer-events:none!important;
}
body.user-seaside-body #auth .auth-scene-copy {
  display:none!important;
}
body.user-seaside-body #auth .user-auth-brand {
  z-index:5!important;
}
body.user-seaside-body #auth .user-auth-card {
  position:absolute!important;
  top:50%!important;
  right:clamp(24px,5.5vw,112px)!important;
  left:auto!important;
  bottom:auto!important;
  transform:translateY(-50%)!important;
  width:min(420px,calc(100vw - 48px))!important;
  padding:58px 32px 29px!important;
  max-height:none!important;
  overflow:visible!important;
  border-radius:25px!important;
  z-index:4!important;
}
body.user-seaside-body #auth .user-auth-card .auth-card-mascot {
  display:block!important;
  position:absolute!important;
  left:50%!important;
  top:-46px!important;
  transform:translateX(-50%)!important;
  width:96px!important;
  height:92px!important;
  z-index:6!important;
  overflow:visible!important;
}
body.user-seaside-body #auth .user-auth-card .oil-login-role-switch {
  margin:0 0 17px!important;
}
body.user-seaside-body #auth .user-auth-card .oil-login-role-switch button {
  min-height:39px;
}
body.user-seaside-body #auth .user-auth-card[data-login-role="admin"] .auth-switch {
  display:none!important;
}
@media (max-width:1040px) and (min-width:761px) {
  body.user-seaside-body #auth.user-auth-screen::before {
    width:69vw!important;
    left:12px!important;
  }
  body.user-seaside-body #auth .user-auth-card {
    right:22px!important;
    width:min(385px,44vw)!important;
    padding:56px 23px 23px!important;
  }
}
@media (max-width:760px) {
  body.user-seaside-body #auth.user-auth-screen {
    min-height:100svh!important;
    background:linear-gradient(180deg,#c2e8ff 0%,#e6f6ff 48%,#f8fcff 100%)!important;
  }
  body.user-seaside-body #auth.user-auth-screen::before {
    display:block!important;
    inset:clamp(42px,5svh,65px) auto auto 50%!important;
    transform:translateX(-50%)!important;
    width:min(100vw,680px)!important;
    height:min(44svh,410px)!important;
    background-size:contain!important;
    background-position:center!important;
  }
  body.user-seaside-body #auth.user-auth-screen::after {
    background:linear-gradient(180deg,rgba(235,248,255,0) 22%,rgba(235,248,255,.05) 35%,rgba(244,251,255,.95) 53%,#f8fcff 70%)!important;
  }
  body.user-seaside-body #auth .user-auth-brand {
    top:12px!important;
    left:12px!important;
  }
  body.user-seaside-body #auth .user-auth-card {
    top:auto!important;
    right:12px!important;
    left:12px!important;
    bottom:max(15px,env(safe-area-inset-bottom))!important;
    width:auto!important;
    transform:none!important;
    padding:53px 22px 22px!important;
    border-radius:23px!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body.user-seaside-body #auth .user-auth-card .auth-card-mascot {
    top:-41px!important;
    width:88px!important;
    height:84px!important;
  }
}
@media (max-width:760px) and (max-height:740px) {
  body.user-seaside-body #auth.user-auth-screen {
    min-height:760px!important;
    overflow:visible!important;
  }
  body.user-seaside-body #auth .user-auth-card {
    bottom:12px!important;
    padding-top:49px!important;
  }
}



/* /assets/oil-ui/oil-ui-hd-assets.css */
/* HD asset-only replacement for the approved Oil UI login scene.
   Does not change forms, roles, elements, scripts, or authenticated pages.
   Source files: 1672x941 desktop, 941x1672 mobile,
                 transparent 1448x1086 letterings. */
body.user-seaside-body #auth.user-auth-screen {
  background: url('/assets/oil-ui/hd-bg-desktop.webp') center center / cover no-repeat !important;
}
/* The old ::before used a 315px bitmap stretched to full screen. */
body.user-seaside-body #auth.user-auth-screen::before {
  display:none !important;
  background:none !important;
}
/* Preserve the existing gentle wash behind the form. */
body.user-seaside-body #auth.user-auth-screen::after {
  background:linear-gradient(90deg, transparent 35%,rgba(242,250,255,.10) 58%,rgba(246,251,255,.45) 100%) !important;
}
/* Reuse the original scene-copy layer rather than adding new DOM. */
body.user-seaside-body #auth .auth-scene-copy {
  display:block !important;
  position:absolute !important;
  z-index:2 !important;
  left:clamp(44px,7.8vw,152px) !important;
  top:clamp(86px,11.5vh,148px) !important;
  width:min(52vw,780px) !important;
  height:min(65vh,590px) !important;
  transform:none !important;
  margin:0 !important;
  pointer-events:none !important;
  background:none !important;
}
body.user-seaside-body #auth .auth-scene-copy::before,
body.user-seaside-body #auth .auth-scene-copy::after {
  content:"" !important;
  position:absolute !important;
  display:block !important;
  pointer-events:none !important;
  transform:none !important;
  opacity:1 !important;
  filter:none !important;
}
body.user-seaside-body #auth .auth-scene-copy::before {
  left:0 !important;
  top:0 !important;
  width:84% !important;
  height:68% !important;
  background:url('/assets/oil-ui/hd-art-left-right.webp') center/contain no-repeat !important;
}
body.user-seaside-body #auth .auth-scene-copy::after {
  left:78% !important;
  top:-15% !important;
  width:55% !important;
  height:30% !important;
  background:url('/assets/oil-ui/hd-art-70yi.webp') center/contain no-repeat !important;
}
body.user-seaside-body #auth .auth-scene-copy > strong,
body.user-seaside-body #auth .auth-scene-copy > span,
body.user-seaside-body #auth .auth-scene-copy .auth-scene-cat {
  display:none !important;
}
@media (max-width:760px) {
  body.user-seaside-body #auth.user-auth-screen {
    background:url('/assets/oil-ui/hd-bg-mobile.webp') center center / cover no-repeat !important;
  }
  body.user-seaside-body #auth.user-auth-screen::before {display:none !important;}
  body.user-seaside-body #auth.user-auth-screen::after {
    background:linear-gradient(180deg, transparent 18%, rgba(241,250,255,.04) 41%,rgba(246,251,255,.35) 63%,rgba(246,251,255,.75) 100%) !important;
  }
  body.user-seaside-body #auth .auth-scene-copy {
    left:5vw !important;
    top:clamp(62px,9svh,102px) !important;
    width:90vw !important;
    height:min(34svh,320px) !important;
  }
  body.user-seaside-body #auth .auth-scene-copy::before {
    left:0 !important;
    top:0 !important;
    width:79% !important;
    height:55% !important;
  }
  body.user-seaside-body #auth .auth-scene-copy::after {
    left:55% !important;
    top:43% !important;
    width:45% !important;
    height:40% !important;
  }
}



/* /assets/oil-ui/oil-ui-mobile-hd-wallpaper.css */
/* Approved 941x1672 mobile seascape reused across authenticated phone pages.
   Background-only changes: all layout, controls, data and login behaviour stay intact.
   Desktop and tablet styles remain unchanged. The guest login already loads this asset
   through oil-ui-hd-assets.css. */
@media (max-width:760px) {
  body.user-seaside-body #portal.user-portal-shell {
    background: url('/assets/oil-ui/hd-bg-mobile.webp') center top / cover no-repeat !important;
  }
  body.user-seaside-body #portal .user-workspace {
    background: transparent !important;
  }
  body.user-seaside-body #portal .user-topbar {
    background:
      linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.10) 60%,rgba(236,249,255,.80) 100%),
      url('/assets/oil-ui/hd-bg-mobile.webp') center 29% / cover no-repeat !important;
  }
  body.user-seaside-body #portal .user-view {
    background: linear-gradient(180deg,rgba(251,254,255,.88),rgba(245,251,255,.91) 36%,rgba(238,249,255,.93)) !important;
  }
  body #app.app-shell {
    background: url('/assets/oil-ui/hd-bg-mobile.webp') center top / cover no-repeat !important;
  }
  body #app .workspace {
    background: linear-gradient(180deg,rgba(237,249,255,.84),rgba(251,253,255,.90) 55%,rgba(238,249,255,.92)) !important;
  }
}



/* /user/monitor-inline.css */

    .final-extra-status{display:none!important}
    /* Only display the login form after the user session has been checked. */
    #auth[hidden],#portal[hidden],#session-loading[hidden]{display:none!important}
    #session-loading{display:flex;justify-content:center;align-items:center;padding:24px;text-align:center}
    .user-session-status{position:relative;z-index:2;border:1px solid rgba(107,172,215,.25);border-radius:18px;
      padding:26px 35px;background:rgba(255,255,255,.9);box-shadow:0 12px 40px rgba(35,103,156,.12)}
    .user-session-status p{margin:0 0 12px}
    .user-session-status button[hidden]{display:none!important}
    /* Logout is a red warning card, even when the extension WebSocket stays connected. */
    .user-seaside-body .instance-card.instance-account-offline {
      background:linear-gradient(145deg,#fff0f0,#ffe3e4)!important;
      border:2px solid #d74e57!important;
      box-shadow:0 8px 24px rgba(206,64,73,.17)!important;
      filter:none!important;
    }
    .user-seaside-body .instance-card.instance-account-offline .instance-badges .badge {
      background:#f9cdd1!important;
      border-color:#de9299!important;
      color:#a82231!important;
    }
    .user-seaside-body .instance-card.instance-account-offline .instance-card-note {
      color:#b8313b!important;
      min-height:24px!important;
      height:auto!important;
      white-space:normal!important;
      overflow:visible!important;
    }
    /* Unauthenticated mobile and desktop views must render only the login surface. */
    body.user-seaside-body:not([data-auth-state="authenticated"]) #portal,
    body.user-seaside-body:not([data-auth-state="authenticated"]) .user-portal-shell {
      display:none!important;visibility:hidden!important;pointer-events:none!important;
    }
    /* Fail closed on phones: no portal DOM may be painted before session validation succeeds. */
    body.user-seaside-body[data-auth-state="checking"] #portal,
    body.user-seaside-body[data-auth-state="unauthenticated"] #portal{
      display:none!important;visibility:hidden!important;pointer-events:none!important
    }
    /* Explicit auth-state gate: the mobile portal display:block!important must never override hidden. */
    body.user-seaside-body #auth[hidden],
    body.user-seaside-body #portal[hidden]{display:none!important}
  

/* /user/user-bv-monitor.css */
/* BV monitor: preserve the approved OilUI background, cards and navigation. */
#bv-monitor-table .bv-monitor-scroll{width:100%;overflow-x:auto}
#bv-monitor-table .bv-monitor-table{width:100%;min-width:650px;border-collapse:collapse}
#bv-monitor-table th,#bv-monitor-table td{padding:13px 12px;text-align:left;border-bottom:1px solid rgba(74,132,180,.14);vertical-align:middle}
#bv-monitor-table th{font-size:12px;color:#65798c;font-weight:600}
#bv-monitor-table td:first-child{max-width:300px}
#bv-monitor-table .bv-monitor-title{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#40566a;margin-top:4px}
#bv-monitor-table .bv-monitor-growth,#bv-monitor-table .bv-monitor-count{font-size:20px;font-weight:800;color:#d64b57;font-variant-numeric:tabular-nums}
#bv-monitor-table .bv-monitor-sampled{font-size:12px;color:#61758b}
@media(max-width:700px){
  #bv-monitor-table .bv-monitor-table{min-width:580px}
  #bv-monitor-table th,#bv-monitor-table td{padding:11px 9px}
  #bv-monitor-table .bv-monitor-title{max-width:135px}
  #bv-monitor-table .bv-monitor-growth,#bv-monitor-table .bv-monitor-count{font-size:17px}
}

#bv-monitor-table .bv-monitor-pages{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 0;font-size:13px;color:#60758a}
#bv-monitor-table .bv-monitor-pages button{border:1px solid rgba(84,140,185,.28);border-radius:8px;background:#fff;color:#2b628f;padding:6px 10px}
#bv-monitor-table .bv-monitor-pages button:disabled{opacity:.4}

.bv-monitor-coverage{color:#40566a;line-height:1.7}
.bv-sample-warning{display:block;color:#9b651d;line-height:1.5;margin-top:4px}
.bv-monitor-sampled small{display:block;margin-top:4px;line-height:1.5}
/* Five metrics stay on two rows; explanatory copy sits below the numbers. */
#playback-summary{grid-template-columns:repeat(6,minmax(0,1fr))!important}
#playback-summary .playback-metric{grid-column:span 2;min-width:0;padding:14px 12px!important}
#playback-summary .playback-metric:nth-child(n+4){grid-column:span 3}
#playback-summary .playback-metric span{color:#48647b;line-height:1.5}
#playback-summary .playback-metric strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#playback-summary .playback-metric:nth-child(3) strong{font-size:18px!important}
.playback-summary-note{grid-column:1/-1;margin:4px 0 0;color:#48647b;font-size:12px;line-height:1.7}
@media(max-width:700px){
  #playback-summary{gap:8px!important;padding:14px!important}
  #playback-summary .playback-metric{padding:12px 8px!important}
  #playback-summary .playback-metric:nth-child(3) strong{font-size:14px!important;line-height:1.7}
}
@media(max-width:360px){
  #playback-summary .playback-metric:nth-child(3) strong{font-size:12px!important;line-height:2}
}
#bv-monitor-analysis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.bv-chart{min-width:0}
.bv-chart-total{grid-row:span 2}
.bv-chart h3{font-size:15px;color:#2b628f;margin:0 0 16px}
.bv-chart-row{margin:0 0 14px}
.bv-chart-row>div{display:flex;gap:12px;justify-content:space-between;font-size:13px;margin-bottom:6px}
.bv-chart-row span{min-width:0;overflow-wrap:anywhere;color:#40566a}
.bv-chart-row .bv-chart-title-alert{color:#b42318;font-weight:700}
.bv-chart-row strong{white-space:nowrap;color:#b43b49;font-variant-numeric:tabular-nums}
.bv-chart-row svg{display:block;width:100%;height:10px;background:#edf5fb;border-radius:5px}
.bv-chart-row rect{fill:#639bc7}
.bv-chart-select{display:block;width:100%;border:0;border-radius:8px;padding:8px 6px;background:transparent;text-align:left;cursor:pointer;font:inherit;transition:background-color 180ms ease-out}
.bv-chart-select:hover,.bv-chart-select[aria-pressed="true"]{background:#eaf4fc}
.bv-chart-select:active{background:#d6eafd}
.bv-chart-select .bv-chart-label{display:flex;gap:12px;justify-content:space-between;margin-bottom:8px;font-size:13px}
.bv-chart-select[aria-pressed="true"] rect{fill:#286a9f}
.bv-chart-select:focus-visible,.bv-observation-detail:focus-visible,#bv-monitor-table:focus-visible,#bv-monitor-table tr:focus-visible{outline:2px solid #174f8a;outline-offset:3px}
.bv-observation-detail,.bv-chart-hint{grid-column:1/-1}
.bv-observation-detail h3{font-size:15px;color:#174f8a;margin:0 0 6px;overflow-wrap:anywhere}
.bv-chart-hint,.bv-observation-detail p{font-size:13px;line-height:1.6;color:#48647b;margin:0}
.bv-observation-detail{padding:18px 0;border-bottom:1px solid #d7e7f2;scroll-margin:90px}
.bv-detail-heading{display:flex;gap:16px;align-items:flex-start;justify-content:space-between}
.bv-detail-heading code{font-size:12px;color:#48647b;overflow-wrap:anywhere}
.bv-detail-heading .button{white-space:nowrap;min-height:44px}
.bv-observation-detail dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}
.bv-observation-detail dt{font-size:12px;color:#48647b;margin-bottom:5px}
.bv-observation-detail dd{font-size:14px;color:#244c70;margin:0;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#bv-monitor-table .bv-row-selected{background:#eaf4fc}
#bv-monitor-table tr{scroll-margin:90px}
@media(max-width:700px){
  .bv-detail-heading{flex-wrap:wrap}
  .bv-observation-detail dl{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.bv-chart-select{transition:none}}
.bv-chart-row small{display:block;color:#9b651d;margin-top:4px}
@media(max-width:700px){#bv-monitor-analysis{grid-template-columns:minmax(0,1fr);gap:18px}.bv-chart-total{grid-row:auto}}

.bv-chart-row .bv-chart-recovery,.bv-chart-recovery{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:6px}
.bv-chart-recovery small{margin:0;color:#855315}
.bv-chart-recovery span{overflow-wrap:anywhere;min-width:0}
.bv-retry.button{font-size:13px;padding:6px 10px;min-height:32px;white-space:nowrap}
.bv-retry:disabled{cursor:wait;opacity:.65}
.bv-retry:focus-visible,.bv-monitor-management>summary:focus-visible{outline:2px solid #174f8a;outline-offset:3px}
.bv-chart-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center}
.bv-chart-row>.bv-chart-recovery{display:contents}
.bv-chart-row>.bv-chart-recovery>.bv-retry{grid-column:2;grid-row:1}
.bv-chart-row>.bv-chart-recovery>small{grid-column:1/-1;grid-row:2;padding:0 6px}
.bv-chart-missing{grid-column:1/-1}
.bv-monitor-management>summary{padding:20px 24px;cursor:pointer;color:#174f8a;font-weight:600}
@media(max-width:700px){.bv-retry.button{min-height:44px}}

.instance-page-nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:16px 0;color:#40566a}
.instance-page-nav[hidden]{display:none}
.instance-page-nav .button{min-height:40px}

/* Progress reflects completed requests, not an invented duration. */
#bv-refresh-progress{display:block;width:100%;height:12px;accent-color:#087cf0;margin:12px 0}
#bv-refresh-progress[hidden]{display:none}


/* /user/user-status-emphasis.css */
/* Visual hierarchy only: keeps the accepted OilUI cards, layout and wallpaper. */
body.user-seaside-body .instance-card {
    min-height: 250px !important;
    height: auto;
}
body.user-seaside-body .instance-card .instance-badges {
    gap: 9px;
    margin-bottom: 13px;
}
body.user-seaside-body .instance-card .instance-badges .badge {
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    padding: 7px 11px !important;
    border-radius: 11px !important;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    white-space: normal;
}
body.user-seaside-body .instance-card .instance-metrics {
    gap: 12px !important;
    align-items: start;
}
body.user-seaside-body .instance-card .instance-metrics span {
    font-size: 13px !important;
    line-height: 1.4;
    color: #466783 !important;
    font-weight: 700 !important;
}
body.user-seaside-body .instance-card .instance-metrics strong {
    font-size: clamp(24px, 2.3vw, 31px) !important;
    line-height: 1.17 !important;
    font-weight: 850 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.6px;
    overflow-wrap: anywhere;
}
body.user-seaside-body .instance-card .instance-metrics > div:first-child strong {
    color: #d84b59 !important;
}
body.user-seaside-body .instance-card:not(.instance-alert):not(.instance-account-offline):not(.instance-deleted) .instance-metrics > div:last-child strong {
    color: #12518e !important;
}
body.user-seaside-body .instance-card.instance-alert .instance-metrics strong,
body.user-seaside-body .instance-card.instance-account-offline .instance-metrics strong {
    color: #b93846 !important;
}
body.user-seaside-body .instance-card.instance-deleted .instance-metrics strong {
    color: #74899e !important;
}
body.user-seaside-body .summary-card strong {
    font-size: clamp(28px, 2.8vw, 38px) !important;
    line-height: 1.1 !important;
    font-weight: 850 !important;
}
body.user-seaside-body .summary-card > div > span {
    font-size: 13px !important;
    font-weight: 700 !important;
}
body.user-seaside-body .summary-card:first-child strong {
    color: #d84b59 !important;
}
@media (max-width: 760px) {
    body.user-seaside-body .instance-card {
        min-height: 0 !important;
    }
    body.user-seaside-body .instance-card .instance-badges .badge {
        font-size: 13px !important;
        padding: 7px 9px !important;
    }
    body.user-seaside-body .instance-card .instance-metrics strong {
        font-size: clamp(23px, 6vw, 29px) !important;
    }
    body.user-seaside-body .summary-card strong {
        font-size: clamp(21px, 6vw, 30px) !important;
    }
    body.user-seaside-body .summary-card > div > span {
        font-size: 11px !important;
    }
}
/* Three operational slots; authorization stays in the administrator system. */
body.user-seaside-body .instance-card .instance-badges.instance-status-slots {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    align-items: stretch;
    gap: 8px;
}
body.user-seaside-body .instance-card .instance-status-slots [data-status-slot] {
    min-width: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    overflow-wrap: anywhere;
    white-space: normal;
}
@media (max-width: 480px) {
    body.user-seaside-body .instance-card .instance-badges.instance-status-slots { gap: 6px; }
}



/* /user/ui-polish.css */
/* HH user-only microinteractions. Existing background, mascots, text, icons and status colors are untouched. */
@media(prefers-reduced-motion:no-preference){
  body.user-seaside-body :is(.button,.user-nav-item,.user-mobile-nav button,.instance-card-actions button,.summary-card,.instance-card){
    transition:filter .16s ease,box-shadow .2s ease,transform .13s ease
  }
}
@media(hover:hover){
  body.user-seaside-body :is(.button,.user-nav-item,.user-mobile-nav button,.instance-card-actions button):not(:disabled):hover{filter:brightness(1.055)}
  body.user-seaside-body[data-auth-state="authenticated"] .summary-card:hover{box-shadow:0 16px 34px rgba(35,103,165,.14)!important}
  body.user-seaside-body[data-auth-state="authenticated"]
  .instance-card:not(.instance-account-offline):not(.instance-alert):not(.instance-deleted):not(.instance-pause):hover{
    box-shadow:0 14px 31px rgba(35,103,165,.13)!important
  }
}
body.user-seaside-body :is(.button,.user-nav-item,.user-mobile-nav button,.instance-card-actions button):not(:disabled):active{transform:scale(.98);filter:brightness(.98)}
body.user-seaside-body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #1687f4!important;outline-offset:3px}
body.user-seaside-body :is(input,select,textarea):focus-visible{box-shadow:0 0 0 4px rgba(22,135,244,.12)}
body.user-seaside-body :is(.instance-metrics,.latest-user-summary,.playback-summary) strong{font-variant-numeric:tabular-nums}
/* The approved instance card reserves 13px for notes; match that line box to avoid clipped glyphs. */
body.user-seaside-body .instance-card-note{font-size:11px!important;line-height:13px!important}
body.user-seaside-body .deleted-history-panel summary{touch-action:manipulation}
@media(prefers-reduced-motion:reduce){
  body.user-seaside-body :is(.button,.user-nav-item,.user-mobile-nav button,.instance-card-actions button,.summary-card,.instance-card){transition:none!important;animation:none!important}
}



/* /user/user-v81-approved.css */
/*
 * V8.1 approved user interface translation — real /user only.
 * Provenance: approved standalone V8.1 HTML SHA-256
 * cfa88a1de0e8fbb47cccb86caca1194723da2d4d390f24e4a1fa64b403451a89
 * This deliberately does not import any demo accounts, mock statistics,
 * mock login, simulated deletion or standalone JavaScript.
 * Business source of truth remains user.js, user-v2.js, user-realtime-cards.js.
 */
body.user-seaside-body {
  --hh81-blue:#1684ed;
  --hh81-deep:#164b8d;
  --hh81-ink:#173e68;
  --hh81-line:#dceaf5;
  --hh81-muted:#7690a9;
  --hh81-shadow:0 16px 42px rgba(40,99,159,.10);
}
body.user-seaside-body .user-portal-shell {
  background:linear-gradient(180deg,#edf8ff,#f9fdff 52%,#f0f9ff)!important;
}
body.user-seaside-body .user-sidebar {
  border-right:1px solid #cfe6f7!important;
  background:linear-gradient(180deg,#f8fdff,#e4f4ff)!important;
}
body.user-seaside-body .user-nav-item {
  border-radius:13px!important;
  font-weight:750!important;
}
body.user-seaside-body .user-nav-item.selected {
  background:#d9efff!important;
  color:#0762b1!important;
  box-shadow:0 4px 10px rgba(30,129,199,.07)!important;
}
body.user-seaside-body .instance-discovery{margin:16px 0 20px;padding:18px;background:#fff;border:1px solid var(--hh81-line);border-radius:16px}
body.user-seaside-body .instance-discovery label{display:block;margin:14px 0 8px;color:var(--hh81-deep);font-weight:700}
body.user-seaside-body .instance-discovery .field{width:100%;box-sizing:border-box;min-width:0}
body.user-seaside-body .instance-attention{display:grid;gap:10px;color:var(--hh81-deep)}
body.user-seaside-body .instance-attention>span{font-size:13px;color:#60758a}
body.user-seaside-body .instance-attention-items{display:flex;gap:8px;flex-wrap:wrap;max-height:200px;overflow:auto}
body.user-seaside-body .instance-attention-items .button{white-space:normal;text-align:left;overflow-wrap:anywhere;max-width:100%;font-size:13px;line-height:1.6}
body.user-seaside-body .instance-attention[hidden]{display:none}
body.user-seaside-body .instance-attention-group{min-width:0;max-width:100%;border:1px solid #c9dfef;border-radius:12px;padding:8px 12px}
body.user-seaside-body .instance-attention-group summary{cursor:pointer;overflow-wrap:anywhere;font-size:14px}
body.user-seaside-body .instance-attention-group>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
body.user-seaside-body #instance-search-count{margin:9px 0 0;font-size:13px;line-height:1.6}
body.user-seaside-body .latest-user-hero {
  border:1px solid #fff!important;
  border-radius:23px!important;
  box-shadow:var(--hh81-shadow)!important;
}
body.user-seaside-body .latest-user-hero h1 {color:#104e8c!important}
/* Four approved V8.1 totals plus the existing historical-delete subtotal. */
body.user-seaside-body .latest-user-summary {
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
}
@media(max-width:1380px) {
  body.user-seaside-body .latest-user-summary {grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:960px) {
  body.user-seaside-body .latest-user-summary {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:520px) {
  body.user-seaside-body .latest-user-summary {gap:8px!important}
  body.user-seaside-body .latest-user-summary .summary-card {padding:12px 10px!important}
}
body.user-seaside-body .latest-user-summary .summary-card {
  min-width:0;
  border:1px solid #e3edf5!important;
  border-radius:17px!important;
  box-shadow:0 5px 15px rgba(48,105,166,.05)!important;
}
body.user-seaside-body .latest-user-summary .summary-card strong {
  color:#0c508d;
  font-variant-numeric:tabular-nums;
}
body.user-seaside-body .instances-panel,
body.user-seaside-body .playback-summary,
body.user-seaside-body #self-test {
  border-color:var(--hh81-line)!important;
  border-radius:17px!important;
}
body.user-seaside-body .latest-instance-grid {gap:14px!important}
body.user-seaside-body .instance-card {
  min-width:0;
  border:1px solid #dbeaf5!important;
  border-radius:19px!important;
  background:#fff!important;
  box-shadow:0 9px 22px rgba(39,101,166,.05)!important;
}
@media(hover:hover) {
  body.user-seaside-body .instance-card:hover {
    transform:translateY(-2px);
    box-shadow:0 12px 30px rgba(32,103,166,.10)!important;
  }
}
body.user-seaside-body .instance-card-head h3 {
  color:#0d518d;
  overflow-wrap:anywhere;
}
body.user-seaside-body .instance-favorite {color:#6a8ba8}
body.user-seaside-body .instance-menu {
  border-radius:10px!important;
  min-width:34px;
  min-height:34px;
}
body.user-seaside-body .instance-status-slots {display:flex;flex-wrap:wrap;gap:5px}
body.user-seaside-body .instance-status-slots .badge {border-radius:8px}
body.user-seaside-body .instance-script {color:#567fa1;overflow-wrap:anywhere}
body.user-seaside-body .instance-script span {color:#8ba5b8}
/* Real per-UID counters: yesterday / today / clock-hour / lifetime. */
body.user-seaside-body .instance-card .instance-metrics {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}
body.user-seaside-body .instance-metrics>div {
  min-width:0;
}
body.user-seaside-body .instance-metrics>div {
  border-radius:11px!important;
  background:#f6fbff!important;
  border:1px solid #e0eefb!important;
}
body.user-seaside-body .instance-card .instance-metrics strong {
  color:#0d559a;
  font-size:clamp(16px,1.6vw,22px)!important;
  letter-spacing:0;
  font-variant-numeric:tabular-nums;
}
body.user-seaside-body .instance-card-note {
  overflow-wrap:anywhere;
  color:#6d8aa5;
}
body.user-seaside-body .instance-card.instance-pause {
  border-color:#f3d8a6!important;
  background:#fffaf2!important;
}
body.user-seaside-body .instance-card.instance-alert {
  border:1.5px solid #e36b77!important;
  background:#fff0f1!important;
}
body.user-seaside-body .instance-card.instance-deleted {
  border-color:#d1dae2!important;
  background:#f0f2f5!important;
  color:#70808f!important;
  box-shadow:none!important;
}
/* Account dropout is an explicit red alert; never paint it green. */
body.user-seaside-body .instance-card.instance-account-offline {
  border:2px solid #d74e57!important;
  background:linear-gradient(145deg,#fff0f0,#ffe3e4)!important;
  box-shadow:0 8px 24px rgba(206,64,73,.17)!important;
}
/* Ordinary connection loss is neutral before 72h, orange afterwards, not account logout. */
body.user-seaside-body .instance-card.instance-offline-orange {
  border:2px solid #e99d2f!important;
  background:linear-gradient(135deg,#fffaf0,#ffefd4)!important;
  box-shadow:0 10px 24px rgba(205,129,36,.12)!important;
}
body.user-seaside-body .instance-card [data-status-slot="连接"].neutral {
  background:#edf3f8!important;
  color:#56718a!important;
  border:1px solid #d3dfe9!important;
}
body.user-seaside-body .instance-card.instance-offline-orange [data-status-slot="连接"] {
  background:#fff1d6!important;
  color:#9b6500!important;
  border:1px solid #e99d2f!important;
}
body.user-seaside-body .deleted-history-panel {
  background:#f4f6f8!important;
  border:1px dashed #d1dae2!important;
}
body.user-seaside-body :is(.instance-menu,.user-nav-item,.button):focus-visible {
  outline:3px solid #83cbff!important;
  outline-offset:2px!important;
}
@media(max-width:760px) {
  body.user-seaside-body .latest-instance-grid {gap:9px!important}
  body.user-seaside-body .instance-card {border-radius:15px!important}
  body.user-seaside-body .instance-metrics {gap:5px!important}
  body.user-seaside-body .instance-metrics strong {font-variant-numeric:tabular-nums}
}
@media(prefers-reduced-motion:reduce) {
  body.user-seaside-body .instance-card {transition:none!important;transform:none!important}
}
/* Fail closed, even when older mobile CSS uses display: block!important. */
body.user-seaside-body:not([data-auth-state="authenticated"]) #portal,
body.user-seaside-body #portal[hidden],
body.user-seaside-body #auth[hidden] {display:none!important;visibility:hidden!important}

/* Keep artwork and actions in separate layout cells, not overlapping absolute layers. */
body.user-seaside-body #portal .latest-user-hero {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(150px,230px) 110px;
  gap:12px 18px!important;
  align-items:center!important;
  min-height:188px!important;
  padding:18px 22px!important;
}
body.user-seaside-body #portal .latest-user-hero>div:first-child {
  grid-column:1;
  grid-row:1 / span 2;
  width:auto!important;
  min-width:0;
}
body.user-seaside-body #portal .latest-user-slogan {
  display:block!important;
  position:static!important;
  grid-column:2;
  grid-row:1;
  width:100%!important;
  height:110px!important;
  margin:0!important;
  transform:none!important;
  /* The legacy filename is swapped; this is the complete “如果有左” artwork. */
  background:url('/assets/oil-ui/hd-art-70yi.webp') center/contain no-repeat!important;
}
body.user-seaside-body #portal .latest-user-mascot {
  position:relative!important;
  grid-column:3;
  grid-row:1;
  top:auto!important;
  right:auto!important;
  width:110px!important;
  height:110px!important;
}
body.user-seaside-body #portal .user-hero-actions {
  position:static!important;
  grid-column:2 / -1;
  grid-row:2;
  display:flex!important;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px!important;
  margin:0!important;
}
body.user-seaside-body #portal .user-hero-actions .button {
  flex:0 0 auto;
  width:auto!important;
  min-width:112px!important;
  min-height:40px;
  padding:9px 14px!important;
  font-size:14px!important;
  white-space:nowrap;
}
body.user-seaside-body #portal .user-hero-actions #add-instance {
  background:#087cf0!important;
  color:#fff!important;
  border-color:#087cf0!important;
}
body.user-seaside-body #portal .user-hero-actions #refresh {
  background:#fff!important;
  color:#12518e!important;
  border-color:#c8dff2!important;
}
@media(max-width:760px) {
  /* Use the existing seaside header as the artwork canvas, not an extra row. */
  body.user-seaside-body #portal .user-topbar {height:190px!important}
  body.user-seaside-body #portal .user-view {margin-top:0!important;padding:10px 10px 30px!important;border-radius:0!important;overflow:visible!important}
  body.user-seaside-body #portal .latest-user-hero {
    display:block!important;
    min-height:0!important;
    padding:12px!important;
    overflow:visible!important;
  }
  body.user-seaside-body #portal .latest-user-hero>div:first-child {
    width:100%!important;
    padding:0!important;
    border:0;
    background:transparent;
    box-shadow:none;
    backdrop-filter:none;
  }
  body.user-seaside-body #portal .latest-user-hero h1 {font-size:23px!important}
  body.user-seaside-body #portal .latest-user-hero p {font-size:12px!important;line-height:1.4!important;padding-right:0!important}
  body.user-seaside-body #portal .latest-user-hero small {font-size:12px!important;margin-top:4px}
  body.user-seaside-body #portal .latest-user-slogan {
    position:absolute!important;
    top:-100px!important;
    left:16px!important;
    right:auto!important;
    width:150px!important;
    height:64px!important;
    pointer-events:none;
  }
  body.user-seaside-body #portal .latest-user-mascot {
    position:absolute!important;
    top:-128px!important;
    right:12px!important;
    width:100px!important;
    height:100px!important;
    pointer-events:none;
  }
  body.user-seaside-body #portal .user-hero-actions {justify-content:flex-start;gap:6px!important;margin-top:10px!important}
  body.user-seaside-body #portal .user-hero-actions .button {min-height:44px;padding:6px 12px!important}
  body.user-seaside-body #portal:has([data-user-panel="instances"][hidden]) .user-topbar {height:64px!important}
  body.user-seaside-body #portal .instance-card {padding:12px!important}
  body.user-seaside-body #portal .instance-card-head {margin-bottom:6px}
  body.user-seaside-body #portal .instance-card .instance-status-slots {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;margin-bottom:6px}
  body.user-seaside-body #portal .instance-card .instance-status-slots .badge {font-size:12px!important;padding:5px 6px!important}
  body.user-seaside-body #portal .instance-script {margin-bottom:6px}
  body.user-seaside-body #portal .instance-card .instance-metrics {grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}
  body.user-seaside-body #portal .instance-card .instance-metrics>div {padding:5px 3px!important}
  body.user-seaside-body #portal .instance-card .instance-metrics span {font-size:12px!important;white-space:nowrap}
  body.user-seaside-body #portal .instance-card .instance-metrics strong {font-size:clamp(14px,4.2vw,18px)!important;line-height:1.25!important;letter-spacing:0;overflow-wrap:anywhere}
  body.user-seaside-body #portal .instance-card-note {margin-top:6px}
  body.user-seaside-body #portal .instance-card-actions {margin-top:8px}
}



/* /monitor.css */
/* Functional adjustments only; artwork and theme stay in the unchanged original stylesheets. */
#user-list[hidden], #instance-list[hidden], #instance-page-nav[hidden],
#page-error[hidden], #portal-error[hidden], #auth-error[hidden] { display:none!important; }
.monitor-error { color:#b8313b; }
.instance-card .instance-card-note { height:auto!important; white-space:normal!important; overflow:visible!important; }
body.user-seaside-body #portal .instance-card { scroll-margin-top:24px; }
body.user-seaside-body #portal .instance-card[data-located="true"] { outline:3px solid #0878c4;outline-offset:3px; }
body.user-seaside-body #portal .instance-return { width:100%;margin-top:12px;min-height:44px;background:#e5f2ff!important;color:#07558f!important;border:1px solid #9bcdf0!important; }
#instance-page-nav-top { display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:16px 0;color:#40566a; }
#instance-page-nav-top[hidden] { display:none!important; }
#instance-page-nav-top .button { min-height:44px; }
body.user-seaside-body #portal .refresh-status { flex-basis:100%;max-width:100%;box-sizing:border-box;margin:2px 0 0;padding:8px 12px;border-radius:10px;background:rgba(229,242,255,.95);color:#07558f;font-size:16px;font-weight:650;line-height:1.6;overflow-wrap:anywhere; }
.refresh-status[hidden] { display:none!important; }
.instance-runtime-row { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:8px;margin-bottom:12px; }
.instance-card .instance-runtime-row .instance-script { display:flex;flex-wrap:wrap;align-content:center;min-width:0;min-height:44px;height:auto!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere; }
.instance-note { display:block;width:100%;min-width:0;min-height:44px;padding:6px 8px;border:1px solid #c9dfef;border-radius:9px;background:#f3f9ff;color:#285c88;font:inherit;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer; }
#card-note-dialog { width:min(360px,calc(100vw - 32px));box-sizing:border-box;padding:20px;border:1px solid #c9dfef;border-radius:16px;background:#fff;color:#17466f; }
#card-note-dialog::backdrop { background:rgba(20,45,70,.4); }
#card-note-form { display:grid;gap:12px; }
#card-note-form label { font-size:18px;font-weight:700; }
#card-note-form p { margin:0;font-size:13px;line-height:1.6; }
#card-note-input { width:100%;min-width:0;box-sizing:border-box;min-height:44px;padding:8px;border:1px solid #c9dfef;border-radius:8px;font:inherit;font-size:16px; }
.card-note-actions { display:flex;gap:8px; }
.card-note-actions .button { flex:1;min-height:44px; }
#admin-accounts-panel[hidden],#admin-nav[hidden] { display:none!important; }
#admin-accounts-list { display:grid;gap:14px;margin:16px 0; }
.monitor-admin-row { padding:16px;border:1px solid #cfe3f4;border-radius:14px;background:#fff;min-width:0; }
.monitor-admin-heading { display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px; }
.monitor-admin-heading strong { font-size:16px;color:#17466f; }
.admin-role-badge { display:inline-block;margin-left:9px;padding:3px 8px;background:#e9f5ff;color:#0878c4;border-radius:7px;font-size:12px; }
.monitor-admin-controls { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end; }
.monitor-admin-controls label { display:block;min-width:0;font-size:12px;color:#4e6e89; }
.admin-password-field { display:flex;align-items:center;gap:6px;min-width:0;margin-top:5px; }
.admin-password-field input { min-width:0;width:100%;height:44px;padding:9px 10px;border:1px solid #cfe3f4;border-radius:9px;background:#f5faff;color:#17466f;font:inherit;font-size:16px;box-sizing:border-box; }
.admin-password-field .admin-password-eye { min-width:44px;width:44px;height:44px;padding:10px;display:grid;place-items:center; }
.admin-account-actions { display:flex;align-items:center;gap:8px;flex-wrap:wrap; }
.admin-account-actions .button { min-height:44px; }
.admin-permissions { margin-top:14px;font-size:13px; }
.admin-permissions summary { cursor:pointer;padding:8px 0;color:#285c88; }
.admin-permissions table { width:100%;border-collapse:collapse;margin-top:8px; }
.admin-permissions th,.admin-permissions td { padding:9px 6px;border-bottom:1px solid #dcecf8;text-align:left; }
#admin-account-dialog { width:min(430px,calc(100vw - 28px));box-sizing:border-box;padding:22px;border:1px solid #cfe3f4;border-radius:16px;background:#fff;color:#17466f; }
#admin-account-dialog::backdrop { background:rgba(20,45,70,.4); }
#admin-account-form { display:grid;gap:10px; }
#admin-account-form h2,#admin-account-form p { margin:0; }
#admin-account-form>input { width:100%;box-sizing:border-box;min-width:0;min-height:44px;padding:8px 10px;border:1px solid #cfe3f4;border-radius:9px;font:inherit;font-size:16px; }
#admin-account-form .admin-account-actions { justify-content:flex-end;margin-top:10px; }
@media(max-width:700px) { .monitor-admin-controls { grid-template-columns:minmax(0,1fr); } .monitor-admin-row { padding:13px; } }
.instance-focus-toolbar { display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 0;scroll-margin-top:24px; }
.instance-focus-toolbar[hidden] { display:none!important; }
.instance-focus-toolbar .button { min-height:44px; }
body.user-seaside-body[data-card-view="single"] #portal .instance-discovery { display:none!important; }
body.user-seaside-body[data-card-view="single"] #portal #instances { grid-template-columns:minmax(0,1fr)!important;max-width:600px;margin-inline:auto; }
@media(max-width:760px) {
    body.user-seaside-body #portal .instance-card { scroll-margin-top:80px; }
    .instance-focus-toolbar { scroll-margin-top:80px; }
}

