:root{--forest:#103d2b;--deep:#092b1e;--green:#35ae68;--bright:#62d590;--mint:#ecf7f0;--paper:#f3f7f4;--ink:#173d2b;--muted:#7b8d83;--line:#dfe9e2;--white:#fff;font-family:Inter,"Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #72ce98;outline-offset:4px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.muted{color:var(--muted);line-height:1.8;font-size:14px}.login-page{min-height:100vh;padding:32px;display:grid;place-items:center;background:radial-gradient(ellipse at 10% 10%,#dcefe2,transparent 55%),#f4f7f4}.login-shell{width:min(1380px,100%);min-height:min(800px,calc(100vh - 64px));display:grid;grid-template-columns:1.13fr 1fr;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 30px 100px #173d2b12;border:1px solid #e0ebe3}.brand-stage{background:linear-gradient(145deg,#143f2d 0%,#0c3022 65%,#09271c);position:relative;overflow:hidden;color:white;padding:46px 52px;display:flex;flex-direction:column;min-height:760px}.stage-grid{position:absolute;inset:0;opacity:.2;background-image:linear-gradient(#87b99b16 1px,transparent 1px),linear-gradient(90deg,#87b99b16 1px,transparent 1px);background-size:56px 56px;mask-image:linear-gradient(transparent,#000,transparent)}.ambient{position:absolute;width:470px;height:470px;border-radius:50%;filter:blur(80px);pointer-events:none;opacity:.18;animation:drift 16s ease-in-out infinite alternate}.ambient-one{background:#5ae58e;top:-220px;right:-130px}.ambient-two{background:#27a76b;bottom:-160px;left:-190px;animation-delay:-8s}.stage-brand{position:relative;display:flex;gap:18px;align-items:center}.stage-brand img{width:102px;height:auto}.stage-brand>span{font-size:14px;letter-spacing:3px;border-left:1px solid #ffffff28;padding-left:18px}.stage-brand small{display:block;font-size:7px;letter-spacing:1.6px;color:#87a592;margin-top:7px}.stage-copy{position:relative;margin-top:72px}.kicker{font-size:9px;letter-spacing:2.2px;color:#a3c9b1;display:flex;align-items:center;gap:9px}.kicker i{width:5px;height:5px;border-radius:50%;background:#7cdda1;box-shadow:0 0 15px #6de898}.stage-copy h1{font-size:clamp(30px,3vw,47px);line-height:1.5;font-weight:600;letter-spacing:2px;margin:22px 0 18px}.stage-copy h1 span{color:#86dfaa}.stage-copy p{font-size:14px;line-height:2;color:#a4bdad}.signal-art{position:relative;height:235px;display:grid;place-items:center;margin-top:20px}.signal-ring{position:absolute;border:1px solid #84d5a222;border-radius:50%;transform:rotate(-15deg);width:330px;height:140px;animation:ringBreathe 8s ease-in-out infinite}.ring-two{width:430px;height:200px;animation-delay:-2s}.ring-three{width:530px;height:260px;animation-delay:-4s;opacity:.5}.sound-core{position:relative;display:flex;align-items:center;gap:8px;height:100px;padding:24px 36px;border-radius:60px;background:linear-gradient(160deg,#44936322,#6fdc9233);border:1px solid #92efb52b;box-shadow:0 0 65px #66ce8422;backdrop-filter:blur(10px)}.sound-core i{display:block;width:6px;height:24px;background:linear-gradient(#a9f4c3,#37ad6c);border-radius:8px;animation:soundPulse 2.2s ease-in-out infinite alternate;transform-origin:center}.sound-core i:nth-child(2n){height:40px;animation-delay:-.5s}.sound-core i:nth-child(3n){height:60px;animation-delay:-1.2s}.sound-core i:nth-child(5n){height:78px;animation-delay:-.8s}.sound-core i:nth-child(7n){height:90px;animation-delay:-1.6s}.signal-node{position:absolute;width:8px;height:8px;border-radius:50%;background:#8be2ab;box-shadow:0 0 16px #63d690;animation:nodeGlow 4s ease-in-out infinite}.node-one{left:18%;top:45%}.node-two{right:15%;top:24%;width:5px;height:5px;animation-delay:-2s}.node-three{right:25%;bottom:17%;width:4px;height:4px}.signal-caption{position:absolute;bottom:-4px;color:#749a83;font-size:10px;letter-spacing:2px}.stage-footer{position:relative;margin-top:auto;padding-top:50px;display:flex;justify-content:space-between;font-size:9px;color:#6c9680;letter-spacing:1px}.login-form-side{padding:43px 54px 26px;display:flex;flex-direction:column}.form-top{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px}.small-brand{color:#70887a}.secure-label{color:#518365;background:#f0f8f2;padding:7px 10px;border-radius:20px;font-size:10px}.auth-card{width:100%;max-width:360px;margin:auto; padding:40px 0 30px}.auth-tabs{display:flex;border-bottom:1px solid var(--line);gap:26px;margin-bottom:32px}.auth-tabs button{border:0;background:none;padding:0 0 15px;color:#9aa89f;font-size:14px;position:relative}.auth-tabs button.active{color:var(--ink);font-weight:600}.auth-tabs button.active:after{content:'';height:3px;border-radius:3px;background:var(--green);position:absolute;left:0;right:0;bottom:-1px}.auth-card h2{font-size:29px;letter-spacing:1px;margin:0 0 12px;font-weight:600}.auth-card .muted{font-size:12px;margin:0 0 30px}.field{display:flex;flex-direction:column;gap:10px;font-size:12px;font-weight:500;margin:0 0 20px}.field small{font-size:10px;color:var(--muted);font-weight:400}.field input,.field textarea,.field select,.control{border:1px solid var(--line);background:#fafcfb;border-radius:9px;min-height:49px;padding:13px 15px;outline:0;color:var(--ink);width:100%;font-size:13px;transition:border-color .2s,box-shadow .2s}.field textarea{resize:vertical;min-height:120px;line-height:1.8}.field input::placeholder,.field textarea::placeholder{color:#a5b1a9;font-size:12px}.field input:focus,.field textarea:focus,.field select:focus,.control:focus{border-color:#75bd8f;box-shadow:0 0 0 3px #dff3e666;background:#fff}.password-wrap{position:relative;display:block}.password-wrap input{padding-right:60px}.reveal{position:absolute;right:12px;top:50%;transform:translateY(-50%);border:0;background:none;color:#7b9785;font-size:11px;padding:5px}.form-help{display:flex;justify-content:space-between;color:#9aa99f;font-size:10px;align-items:center;margin:0 0 28px}.text-button{border:0;background:none;color:#43835a;font-size:12px;padding:3px}.primary,.secondary,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;border-radius:8px;border:1px solid transparent;font-size:13px;font-weight:500;transition:transform .2s,background .2s,box-shadow .2s}.primary{background:linear-gradient(120deg,#2eab63,#228850);color:white;box-shadow:0 6px 18px #258e4e20}.primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 22px #258e4e35}.secondary{border-color:var(--line);background:#fff;color:#496452}.secondary:hover:not(:disabled){background:#f0f8f3}.danger-button{background:#fff3ee;color:#a95439;border-color:#f2dfd6}.wide{width:100%;min-height:50px;justify-content:space-between}.form-note{font-size:11px;line-height:1.8;color:#8d9f92;text-align:center;margin:17px 0}.message{min-height:21px;font-size:12px;line-height:1.8;color:#488b62;margin:16px 0 0}.message.error{color:#b94d3d}.form-footer{text-align:center;color:#a0afa5;font-size:10px;letter-spacing:1px}.form-footer span{padding:0 7px}#registerForm .field{margin-bottom:14px}#registerForm .field input{min-height:45px}.workspace{min-height:100vh}.workspace-sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:linear-gradient(#123e2b,#09291c);padding:32px 20px;color:#bdcfbf;display:flex;flex-direction:column;z-index:20}.workspace-logo img{width:120px;height:auto}.workspace-label{font-size:10px;letter-spacing:2px;color:#6b927b;margin:38px 12px 12px}.workspace-nav{display:flex;flex-direction:column;gap:8px}.workspace-nav button,.workspace-nav a{border:0;background:transparent;padding:14px 16px;color:#a6c0b0;text-align:left;border-radius:9px;font-size:13px;display:flex;gap:14px;align-items:center}.workspace-nav .active{background:#235b3c;color:#eaffed;box-shadow:inset 3px 0 #7bd49c}.workspace-nav button:hover,.workspace-nav a:hover{background:#25513a;color:#fff}.sidebar-account{margin-top:auto;border-top:1px solid #ffffff10;padding-top:22px;display:flex;align-items:center;gap:12px}.account-avatar{width:34px;height:34px;display:grid;place-items:center;background:#28583d;border-radius:9px;color:#96dab1}.sidebar-account strong{font-size:12px;display:block;max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-account small{display:block;margin-top:5px;font-size:10px;color:#779582}.sidebar-account button{margin-left:auto;border:0;background:none;color:#91b29c;font-size:11px}.workspace-main{margin-left:230px}.workspace-top{height:78px;border-bottom:1px solid var(--line);background:#ffffffd9;display:flex;align-items:center;justify-content:space-between;padding:0 42px;font-size:12px;color:#81978a}.workspace-top strong{color:var(--ink);font-weight:500}.workspace-content{padding:42px;max-width:1500px;margin:auto}.page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-title h1{font-size:28px;font-weight:600;margin:6px 0 12px}.page-title p{margin:0;color:var(--muted);font-size:13px;line-height:1.8}.eyebrow{font-size:9px;letter-spacing:2px;color:#88a591}.welcome-strip{background:linear-gradient(110deg,#143f2d,#2c7650);border-radius:16px;color:#e7f6eb;padding:25px 30px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px;box-shadow:0 8px 30px #174b2e0c}.welcome-strip h2{margin:0 0 8px;font-size:19px;font-weight:500}.welcome-strip p{margin:0;font-size:12px;color:#a8c8b5;line-height:1.8}.welcome-strip strong{font-size:34px;color:#99e2b3}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:25px;box-shadow:0 8px 24px #1c4b2c03}.panel h2{font-size:17px;font-weight:600;margin:0 0 8px}.panel h3{font-size:14px;margin:0}.panel-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.device-id{font-size:10px;letter-spacing:.5px;color:#91a397;margin-top:8px}.badge{display:inline-block;padding:5px 9px;border-radius:20px;font-size:10px;background:#edf7f0;color:#388454;white-space:nowrap}.badge.wait{background:#fff7e9;color:#a78448}.badge.fail{background:#fff0ed;color:#b56b56}.content-block{background:#f5f9f6;border:1px solid #e9f0eb;border-radius:10px;padding:16px;margin:18px 0}.content-block small{font-size:10px;color:var(--muted)}.content-block strong{display:block;font-size:15px;font-weight:500;margin:10px 0;overflow-wrap:anywhere}.tiny{font-size:11px;color:#8c9c91;line-height:1.8}.count-form{display:flex;gap:10px;align-items:flex-end;margin-top:20px}.count-form .field{flex:1;margin:0}.count-form input{min-height:42px}.count-form button{min-height:42px;padding:10px 16px}.queue-list{display:flex;flex-direction:column;gap:8px;padding:0;list-style:none;margin:14px 0}.queue-row{border:1px solid #edf1ee;padding:12px;border-radius:9px;display:flex;align-items:center;gap:10px;font-size:12px}.queue-row>div{flex:1;min-width:0}.queue-row strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere}.queue-row small{display:block;font-size:10px;color:#8a9c90;margin-top:5px}.queue-actions{display:flex;gap:4px}.queue-actions button{background:#f2f7f3;border:0;border-radius:4px;color:#64816e;padding:4px 7px}.queue-actions button:disabled{opacity:.35;cursor:default}.panel-footer{border-top:1px solid #edf1ee;padding-top:17px;margin-top:18px;display:flex;justify-content:space-between;align-items:center}.empty{grid-column:1/-1;text-align:center;padding:80px 25px;background:white;border:1px dashed #cbded0;border-radius:15px}.empty-symbol{font-size:38px;color:#91c6a2;margin-bottom:20px}.empty h2{font-size:19px;margin:0 0 12px}.empty p{font-size:13px;color:var(--muted);line-height:1.8;margin:0}.assets-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px}.asset-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:#e8f7ed;color:#40ae69;font-size:22px;margin-bottom:18px}.asset-card h3{font-size:15px;font-weight:500;margin:0 0 12px;overflow-wrap:anywhere}.asset-card audio{width:100%;height:36px;margin:12px 0}.asset-card .panel-footer{gap:8px}.asset-card .panel-footer button{font-size:11px;padding:9px 12px}.toolbar{display:flex;gap:10px;flex-wrap:wrap}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th{text-align:left;padding:15px 14px;color:#809386;background:#f6f9f7;font-weight:500;white-space:nowrap}.data-table td{border-bottom:1px solid #eef2ef;padding:17px 14px;vertical-align:middle;line-height:1.8}.data-table .control{min-height:38px;padding:8px 10px;max-width:240px}.table-actions{display:flex;gap:8px;flex-wrap:wrap}.table-actions button{font-size:11px;padding:8px 11px}.section-space{margin-top:28px}.account-form{max-width:480px}.account-form .primary{margin-top:8px}.notice{background:#eff7f1;border:1px solid #dcebe0;border-radius:10px;padding:14px 18px;font-size:12px;color:#69836f;line-height:1.9;margin-bottom:20px}.notice.error{background:#fff3ed;color:#a35c48;border-color:#efddd3}.toast-account{position:fixed;bottom:28px;left:calc(50% + 100px);transform:translateX(-50%);padding:14px 22px;background:#194d32;color:white;border-radius:10px;font-size:12px;box-shadow:0 9px 35px #0a321c24;z-index:90;max-width:calc(100vw - 32px);line-height:1.8}.toast-account.error{background:#8d4b37}.dialog-mask{position:fixed;inset:0;background:#09251766;backdrop-filter:blur(5px);display:grid;place-items:center;z-index:70;padding:22px;overflow:auto}.dialog-card{background:white;border-radius:18px;max-width:540px;width:100%;padding:32px;position:relative;max-height:calc(100vh - 44px);overflow:auto;box-shadow:0 25px 100px #102c2829}.dialog-card h2{font-size:21px;margin:0 0 12px}.dialog-card>p{margin:0 0 25px}.dialog-close{position:absolute;right:16px;top:13px;border:0;background:none;font-size:25px;color:#8ea395}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.dialog-card audio{width:100%;height:42px}.file-drop{display:block;border:1px dashed #a7cdb5;background:#f7fbf8;border-radius:12px;padding:30px 18px;text-align:center;margin-bottom:20px;color:#5a886b;cursor:pointer;font-size:13px}.file-drop input{display:block;width:100%;font-size:12px;margin-top:20px}.filter-input{max-width:260px;min-height:40px}.history-name{max-width:330px;overflow-wrap:anywhere}.check-line{display:flex;gap:8px;align-items:center}.session-info{color:#a3baac;font-size:10px}.spinner-text{animation:nodeGlow 1.5s infinite}.mobile-brand{display:none}.portal-section{animation:appear .28s ease-out}@keyframes soundPulse{0%{transform:scaleY(.48);opacity:.65}100%{transform:scaleY(1);opacity:1}}@keyframes drift{to{transform:translate(80px,70px) scale(1.15)}}@keyframes ringBreathe{50%{transform:rotate(-8deg) scale(1.08);border-color:#84d5a247}}@keyframes nodeGlow{50%{opacity:.4}}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@media(min-width:1500px){.login-shell{min-height:820px}.brand-stage{min-height:820px}.stage-copy{margin-top:85px}.signal-art{margin-top:30px}}@media(max-width:1100px){.login-page{padding:20px}.brand-stage{padding:40px 32px}.login-form-side{padding:38px 36px}.stage-copy h1{font-size:35px}.workspace-sidebar{width:205px}.workspace-main{margin-left:205px}.workspace-content{padding:30px}.workspace-top{padding:0 30px}.cards{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}}@media(max-width:760px){.login-page{padding:0;display:block}.login-shell{border:0;border-radius:0;display:block;min-height:100vh;box-shadow:none}.brand-stage{min-height:250px;padding:26px;display:block}.stage-brand img{width:82px}.stage-brand>span{font-size:11px}.stage-copy{margin-top:28px;z-index:2}.stage-copy .kicker{font-size:7px;letter-spacing:1px}.stage-copy h1{font-size:26px;line-height:1.45;margin:12px 0}.stage-copy p{font-size:11px;margin:0}.signal-art{position:absolute;right:-95px;bottom:5px;width:300px;height:180px;opacity:.6;transform:scale(.62)}.signal-caption,.stage-footer{display:none}.login-form-side{padding:24px 30px 25px}.form-top{display:none}.auth-card{padding:12px 0 20px;max-width:430px}.auth-tabs{margin-bottom:25px}.auth-card h2{font-size:24px}.auth-card .muted{margin-bottom:23px}.workspace-sidebar{position:relative;inset:auto;width:100%;padding:17px 20px;display:block}.workspace-logo img{width:78px}.workspace-label,.sidebar-account .account-avatar{display:none}.workspace-nav{margin-top:18px;flex-direction:row;gap:5px;overflow:auto}.workspace-nav button,.workspace-nav a{white-space:nowrap;font-size:12px;padding:10px 13px;gap:7px}.sidebar-account{position:absolute;right:20px;top:20px;border:0;padding:0;margin:0;gap:14px}.sidebar-account small{display:none}.sidebar-account strong{max-width:100px;font-size:11px}.workspace-main{margin-left:0}.workspace-top{height:52px;padding:0 20px;font-size:11px}.workspace-content{padding:26px 18px}.page-title{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:22px}.page-title h1{font-size:24px}.page-title p{font-size:12px}.welcome-strip{padding:21px;margin-bottom:22px}.welcome-strip h2{font-size:16px}.welcome-strip p{font-size:11px}.cards{grid-template-columns:1fr}.panel{padding:20px}.toast-account{left:50%;bottom:18px}.dialog-card{padding:25px}.signal-art .sound-core{background:#3e916f22}.page-title .toolbar{width:100%}.table-wrap{margin:0 -8px}.filter-input{max-width:none}.data-table td,.data-table th{padding:12px 10px}.form-footer{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Shared library and device applications reuse the existing workspace palette. */
.library-search{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:0 0 20px}.library-search label{font-size:13px;font-weight:600}.library-search input{max-width:400px;flex:1;min-width:180px}.library-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:18px}.library-actions a{display:inline-flex;align-items:center;justify-content:center}.asset-card h3{overflow-wrap:anywhere}.request-note{max-width:220px;white-space:normal;overflow-wrap:anywhere}.review-reason{display:block;max-width:220px;white-space:normal;line-height:1.6;margin-top:6px}.nav-count{margin-left:auto;padding:2px 7px;border-radius:12px;background:#35ae682b;font-size:11px}.workspace-nav button:has(.nav-count){gap:8px}
/* Login-only background refinement. Shared workspace styles stay unchanged. */
.login-page {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 16% 86%, #31795a52 0%, transparent 48%),
    radial-gradient(ellipse at 76% 8%, #edf5df80 0%, transparent 48%),
    linear-gradient(112deg, #103e30 0%, #204e3b 26%, #416d54 43%, #8fab96 58%, #cedecb 73%, #edf3e9 90%, #f3f6ef 100%);
  padding: 32px;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 39% 38%, #98cda424, transparent 55%);
  animation: loginAmbientFade 18s ease-in-out infinite alternate;
}
.login-page .login-shell {
  width: min(1440px, 100%);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.login-page .brand-stage {
  background: transparent;
  overflow: visible;
  padding-left: 44px;
  padding-right: 62px;
}
.login-page .ambient { display: none; }
.login-page .stage-grid {
  opacity: .1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse, #000 0%, transparent 70%);
}
.login-page .stage-copy p { color: #d2e3d7; }
.login-page .kicker { color: #b6d5c0; }
.login-page .stage-footer { color: #b2ccb9; }
.login-page .signal-caption { color: #bdd7c3; }
.login-page .signal-art { pointer-events: none; }
.login-page .sound-core {
  background: #d5f2dc0c;
  border-color: #bce6c536;
  box-shadow: 0 0 80px #9cdbac12;
}
.login-page .login-form-side {
  background: transparent;
  padding: 43px 34px 26px 54px;
  gap: 28px;
}
.login-page .form-top { color: #4f6d5a; }
.login-page .secure-label { background: #f3f8ec80; color: #476d54; }
.login-page .auth-card {
  max-width: 454px;
  padding: 38px 42px 26px;
  background: linear-gradient(145deg, #f8fcf3bf, #f3f8ef96);
  border: 1px solid #f8fff19c;
  border-radius: 22px;
  box-shadow: 0 18px 65px #2347310b, inset 0 1px 0 #ffffff69;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.login-page .auth-tabs { border-bottom-color: #91ae963d; }
.login-page .auth-tabs button { color: #7a8c7c; }
.login-page .auth-tabs button.active { color: #184c34; border-bottom-color: #30965c; }
.login-page .field input {
  background: #f5f9f0bd;
  border-color: #b8ccba80;
  color: #204b34;
}
.login-page .field input:focus {
  background: #f7fbf3;
  border-color: #69a47b;
  box-shadow: 0 0 0 3px #7db88c18;
}
.login-page input:-webkit-autofill,
.login-page input:-webkit-autofill:hover,
.login-page input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #eff5e9 inset;
  -webkit-text-fill-color: #204b34;
  caret-color: #204b34;
}
.login-page .primary {
  background: linear-gradient(110deg, #30975e, #257c4d);
  box-shadow: 0 6px 18px #23663b14;
}
.login-page .muted,
.login-page .form-note { color: #6b806f; }
.login-page .form-help > span { color: #768a79; }
.login-page .form-footer { color: #617c67; }
@keyframes loginAmbientFade {
  from { opacity: .4; }
  to { opacity: 1; }
}
@media (max-width: 1100px) {
  .login-page { padding: 20px; }
  .login-page .brand-stage { padding: 40px 28px; }
  .login-page .login-form-side { padding: 38px 12px 26px 24px; }
  .login-page .auth-card { padding: 32px 28px 22px; }
}
@media (max-width: 760px) {
  .login-page {
    padding: 0;
    background:
      radial-gradient(ellipse at 90% 15%, #9bc8a02b, transparent 45%),
      linear-gradient(165deg, #143f2e 0px, #315f47 235px, #8eaf94 350px, #dce9d6 510px, #f0f5ea 720px);
  }
  .login-page .login-shell { overflow: hidden; }
  .login-page .brand-stage { padding: 26px; min-height: 265px; }
  .login-page .login-form-side { padding: 20px 20px 26px; gap: 24px; }
  .login-page .auth-card { max-width: 454px; padding: 28px 26px 20px; border-radius: 20px; }
  .login-page .stage-copy p { color: #d7e7db; }
}
@media (prefers-reduced-motion: reduce) {
  .login-page::before { animation: none; }
}

/* Password visibility icons: login and registration only. */
.login-page .password-wrap > .reveal {
  width:44px;height:44px;right:3px;top:50%;transform:translateY(-50%);
  padding:0;border:0;border-radius:7px;display:grid;place-items:center;
  color:#67866f;background:transparent;line-height:1;
  transition:color .15s ease,background-color .15s ease;
}
.login-page .reveal svg { width:19px;height:19px;pointer-events:none; }
.login-page .password-wrap > .reveal:hover { color:#287449;background:#568b6810; }
.login-page .password-wrap > .reveal:focus-visible { outline:2px solid #5c9d71;outline-offset:-4px; }
.login-page .password-wrap > .reveal[aria-pressed="true"] { color:#287449; }

/* User device overview only. Existing login, library and admin retain their styles. */
#devicesPage .page-title{margin-bottom:24px}
#devicesPage .device-overview{display:flex;align-items:center;justify-content:space-between;gap:26px;padding:24px 28px;margin-bottom:24px;border:1px solid #d8e7dd;border-radius:16px;background:linear-gradient(110deg,#edf6ef,#fafdFA);}
#devicesPage .overview-intro{display:flex;align-items:center;gap:16px}.overview-mark{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border-radius:14px;background:#164d35;color:#91dfad;font-size:25px}
#devicesPage .overview-intro strong{font-size:17px;font-weight:600}#devicesPage .overview-intro p{font-size:12px;color:#708679;margin:8px 0 0;line-height:1.7}
#devicesPage .device-metrics{display:flex;gap:34px}#devicesPage .device-metrics>div{min-width:62px;display:flex;flex-direction:column;gap:5px}#devicesPage .device-metrics strong{font-size:27px;line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums;color:#246840}#devicesPage .device-metrics span{font-size:11px;color:#708679}
#devicesPage .cards{grid-template-columns:1fr}#devicesPage .device-card{padding:26px 28px;border-radius:16px;box-shadow:0 6px 24px #174b2e05;overflow:hidden}#devicesPage .panel-header{align-items:center;margin-bottom:22px}#devicesPage .device-heading{display:flex;align-items:center;gap:13px;min-width:0}#devicesPage .device-heading h2{font-size:18px;margin:0;overflow-wrap:anywhere}#devicesPage .device-symbol{width:40px;height:44px;border:1px solid #deebe2;background:#f5faf6;border-radius:10px;display:grid;place-items:center;flex-shrink:0;color:#408e60;font-size:21px}#devicesPage .device-id{color:#7c9083;font-size:11px;letter-spacing:.6px}#devicesPage .badge.live{background:#e1f5e8;color:#1f8650}
#devicesPage .device-detail-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr);gap:18px}#devicesPage .device-activity{padding:22px 24px;background:linear-gradient(115deg,#edf7f0,#f7faf8);border:1px solid #e1ece4;border-radius:12px;min-width:0}#devicesPage .activity-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:29px}#devicesPage .activity-label{font-size:12px;color:#658370}#devicesPage .activity-check{font-size:11px;color:#368450}#devicesPage .activity-title{display:block;font-size:22px;line-height:1.5;margin:12px 0;overflow-wrap:anywhere;font-weight:600}#devicesPage .activity-note{font-size:11px;color:#668372;line-height:1.8}#devicesPage .activity-percent{font-size:30px;line-height:1;color:#218451;font-variant-numeric:tabular-nums}#devicesPage .activity-percent small{font-size:14px;margin-left:2px}
#devicesPage .device-settings{border:1px solid #e6ede8;border-radius:12px;padding:22px 24px}#devicesPage .setting-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}#devicesPage .setting-heading>strong{font-size:13px;font-weight:600}#devicesPage .count-form{margin-top:20px;max-width:370px}#devicesPage .count-form .field{gap:8px;color:#768c7d;font-size:11px}#devicesPage .count-input{position:relative}#devicesPage .count-input input{font-size:19px;font-weight:600;padding:9px 42px 9px 13px;min-height:43px;background:#fafcfb}#devicesPage .count-input>span{position:absolute;right:25px;top:14px;color:#809488;font-size:12px}#devicesPage .count-form .secondary{white-space:nowrap;font-size:12px}#devicesPage .setting-description{font-size:11px;color:#819587;line-height:1.8;margin:12px 0 0}
#devicesPage .panel-footer{margin-top:24px;padding-top:20px}#devicesPage .panel-footer h3{font-size:13px}#devicesPage [data-queue-count]{margin-left:7px}#devicesPage .queue-list{margin:14px 0 18px;gap:9px}#devicesPage .queue-row{padding:14px 16px;gap:14px;background:#fcfdfc}#devicesPage .queue-row.is-transferring{background:#f5fbf7;border-color:#cee8d8}#devicesPage .queue-number{font-size:11px;color:#7c9b86;font-variant-numeric:tabular-nums}#devicesPage .queue-row strong{font-size:13px}#devicesPage .queue-row small{font-size:11px;color:#548366}#devicesPage .queue-actions button{min-width:30px;min-height:30px;border:1px solid #e1ebe4;background:#fff}#devicesPage .queue-actions button:hover:not(:disabled){background:#e8f6ed;color:#196c3f}#devicesPage .transfer-track{height:5px;background:#deebe2;border-radius:8px;overflow:hidden;max-width:550px;margin:9px 0 3px}#devicesPage .transfer-track>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#238453,#59bf7d);transition:width .2s linear}#devicesPage .transfer-track.large{height:7px;max-width:none;margin:16px 0 10px}#devicesPage .queue-empty{display:flex;align-items:center;gap:13px;padding:17px 18px;border-radius:10px;background:#fafcfb;border:1px dashed #e1eae4;font-size:12px;color:#6b8475}#devicesPage .queue-empty>span{display:grid;place-items:center;border-radius:50%;width:25px;height:25px;background:#e8f3ec;color:#5a9b70}#devicesPage .queue-empty small{display:block;font-size:11px;color:#94a399;margin-top:5px}#devicesPage .device-report{border-top:1px solid #edf2ee;padding-top:14px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:10px;color:#8a9c90;line-height:1.8}#devicesPage .device-report b{font-weight:400;color:#70877a;margin-left:5px}
@media(min-width:1750px){#devicesPage .device-detail-grid{grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr)}}
@media(max-width:1150px){#devicesPage .device-overview{align-items:flex-start}#devicesPage .device-metrics{gap:18px}#devicesPage .device-detail-grid{grid-template-columns:1fr}#devicesPage .count-form{max-width:420px}}
@media(max-width:760px){#devicesPage .device-overview{flex-direction:column;padding:20px;gap:20px}#devicesPage .device-metrics{width:100%;justify-content:space-between;border-top:1px solid #dce9e0;padding-top:17px}#devicesPage .device-card{padding:20px 17px}#devicesPage .panel-header{align-items:flex-start;gap:10px}#devicesPage .device-heading{gap:10px}#devicesPage .device-heading h2{font-size:16px}#devicesPage .device-symbol{display:none}#devicesPage .device-activity,#devicesPage .device-settings{padding:18px}#devicesPage .activity-title{font-size:20px}#devicesPage .queue-row{padding:12px;gap:8px}#devicesPage .queue-actions{gap:3px}#devicesPage .queue-actions button{min-width:27px;padding:4px}#devicesPage .device-report{display:grid;gap:4px}}

/* Device location uses the same metadata field as the administrator view. */
#devicesPage .device-location{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px;color:#718b7b;font-size:11px;line-height:1.7}
#devicesPage .device-location svg{width:14px;height:14px;flex-shrink:0;color:#6c9b7b}
#devicesPage [data-device-location]{overflow-wrap:anywhere;max-width:560px}
#devicesPage .device-location .text-button{font-size:11px;color:#278052;padding:2px 7px;border-radius:5px;white-space:nowrap}
#devicesPage .device-location .text-button:hover{background:#edf7f0}
#devicesPage .device-location .text-button:focus-visible{outline:2px solid #72bd8e;outline-offset:2px}
@media(max-width:760px){#devicesPage [data-device-location]{max-width:220px}}

/* Shared library popularity and actual device playback statistics. */
.library-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 10px}.library-toolbar select{width:auto;min-width:160px}.library-metrics{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;color:#46775b;margin-top:12px}.library-updated{display:block;color:#718b7b;font-size:11px;line-height:1.7;margin:6px 0 12px}.library-rank{display:inline-block;font-size:12px;color:#718b7b;margin-bottom:8px}.library-rank.top-rank{color:#986819;font-weight:700}.favorite-button[aria-pressed="true"]{color:#986819;border-color:#d6b66e;background:#fff8e8}.library-actions{flex-wrap:wrap}.library-stat-note{line-height:1.8;margin-bottom:18px}

/* Device membership editor. */
.member-options{display:grid;gap:8px;max-height:320px;overflow:auto;margin:16px 0}.member-option{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #dce9df;border-radius:8px}.member-option input[type="checkbox"]{width:18px;height:18px;flex:0 0 18px;accent-color:#278052}.member-option small{display:block;color:#718b7b;margin-top:4px}

/* Ranked views use compact playlist rows; ordinary library browsing keeps cards. */
.assets-grid.is-ranking{display:block}.ranking-list{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.ranking-caption{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 22px;border-bottom:1px solid var(--line)}.ranking-caption>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ranking-caption strong{font-size:16px}.ranking-mark{display:grid;place-items:center;width:30px;height:30px;background:#edf7ef;color:#509368;border-radius:8px}.ranking-columns,.ranking-row{display:grid;grid-template-columns:38px minmax(150px,1fr) 90px 180px 260px;align-items:center;column-gap:16px;padding:0 22px}.ranking-columns{min-height:40px;background:#f6f9f7;color:#7b9082;font-size:11px}.ranking-rows{margin:0;padding:0;list-style:none}.ranking-row{min-height:84px;border-top:1px solid #edf2ee}.ranking-row:first-child{border-top:0}.ranking-row:hover,.ranking-row:focus-within{background:#f5faf6}.ranking-number{font-size:17px;color:#83958a;font-variant-numeric:tabular-nums;text-align:center;font-weight:600}.ranking-number.rank-1,.ranking-number.rank-2,.ranking-number.rank-3{border-radius:8px;line-height:32px}.ranking-number.rank-1{color:#9f701a;background:#fff4d7}.ranking-number.rank-2{color:#697f83;background:#edf2f4}.ranking-number.rank-3{color:#ac7852;background:#fbefe5}.ranking-title{min-width:0}.ranking-title h3{margin:0 0 8px;font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ranking-title>span{display:block;color:#819689;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ranking-score strong{font-size:20px;font-weight:600;color:#34774d;font-variant-numeric:tabular-nums;white-space:nowrap}.ranking-score strong small{font-size:10px;font-weight:400;margin-left:4px}.ranking-score>span{display:block;font-size:10px;color:#869a8c;margin-top:6px;white-space:nowrap}.ranking-row audio{width:180px;height:32px}.ranking-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap}.ranking-actions .primary,.ranking-actions .secondary{font-size:11px;padding:8px 10px;min-height:33px}.ranking-actions .text-button{font-size:11px}.ranking-actions .favorite-button{min-width:68px}
@media(max-width:1200px){.ranking-columns{display:none}.ranking-row{grid-template-columns:36px minmax(180px,1fr) 260px;grid-template-areas:"rank title score" "rank player actions";row-gap:12px;padding:16px 20px}.ranking-number{grid-area:rank;align-self:start}.ranking-title{grid-area:title}.ranking-score{grid-area:score;text-align:right;display:flex;align-items:center;justify-content:flex-end;gap:12px}.ranking-score>span{margin:0}.ranking-row audio{grid-area:player}.ranking-actions{grid-area:actions}}
@media(max-width:760px){.ranking-caption{padding:17px 14px}.ranking-caption>div{gap:8px}.ranking-caption .tiny{font-size:10px}.ranking-caption>div .tiny{width:100%;padding-left:38px}.ranking-caption>span{display:none}.ranking-row{grid-template-columns:28px minmax(0,1fr) 75px;grid-template-areas:"rank title score" ". player player" ". actions actions";gap:12px 10px;padding:16px 13px}.ranking-title h3{font-size:13px}.ranking-title>span{font-size:9px}.ranking-number{font-size:15px}.ranking-score{display:block}.ranking-score strong{font-size:18px}.ranking-score>span{font-size:9px;margin-top:6px}.ranking-row audio{width:100%;height:32px}.ranking-actions{justify-content:flex-start;gap:9px}.ranking-actions .primary,.ranking-actions .secondary{padding:7px 8px;font-size:10px;min-height:31px}.ranking-actions .text-button{font-size:10px}.ranking-actions .favorite-button{min-width:61px}}

/* User portal refinement: scope tokens and controls to avoid changing admin/login. */
.user-portal{--muted:#526b5d;--line:#d9e4dc;--green:#207747;caret-color:#207747}
.user-portal ::selection{background:#cce8d6;color:#103d2b}
.user-portal .ui-icon{width:18px;height:18px;flex-shrink:0;vertical-align:middle}
.user-portal :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #207747;outline-offset:3px}
.user-portal :is(.tiny,.muted,.page-title p,.field small){font-size:13px;color:var(--muted);line-height:1.7}
.user-portal :is(input,textarea)::placeholder{color:#607568;font-size:13px}
.user-portal .workspace-sidebar{width:246px;padding:30px 18px 22px;background:linear-gradient(165deg,#123c28,#0b281c 80%);box-shadow:8px 0 36px #133c280a}
.user-portal .workspace-main{margin-left:246px}
.user-portal .workspace-label{font-size:12px;letter-spacing:0;color:#b4cdbd;margin-top:30px}
.user-portal .workspace-nav{gap:5px}
.user-portal .workspace-nav button{position:relative;min-height:46px;padding:0 12px;border-radius:10px;font-size:14px;color:#aabbb0;gap:12px;transition:background .18s,transform .18s}
.user-portal .workspace-nav button:hover{background:#193a29;color:#fff;transform:translateX(2px)}
.user-portal .workspace-nav .ui-icon{width:20px;height:20px;color:#83a18e}
.user-portal .workspace-nav .active .ui-icon{color:#79d69a}
.user-portal .workspace-nav .active{background:linear-gradient(100deg,#286c46,#20583a);color:#fff;box-shadow:inset 3px 0 #79d79c,0 5px 18px #041c1720;font-weight:600}
.user-portal .workspace-top{height:68px;padding:0 32px;background:#fff;color:var(--muted);font-size:13px}
.user-portal .workspace-content{padding:30px 32px;max-width:1500px}
.user-portal .page-title{margin-bottom:22px}
.user-portal .page-title h1{font-size:26px;margin:0 0 8px;line-height:1.4;letter-spacing:0}
.user-portal .page-title p{max-width:75ch;overflow-wrap:anywhere}
.user-portal :is(.primary,.secondary,.danger-button){min-height:44px;font-size:13px;padding:10px 14px;box-shadow:none;transition:background .15s}
.user-portal .primary{background:#207747;color:#fff}
.user-portal .primary:hover:not(:disabled){background:#185e38;transform:none;box-shadow:none}
.user-portal .primary:active:not(:disabled){background:#104b2a}
.user-portal button:disabled{cursor:not-allowed}
.user-portal .text-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px;font-size:13px;color:#236e43;border-radius:6px;text-underline-offset:3px}
.user-portal .text-button:hover{background:#edf5ef}
.user-portal :is(.panel,.ranking-list){box-shadow:none;border-radius:12px}
.user-portal :is(.inbox-button,.profile-button){min-height:44px}
.user-portal .top-actions #syncState{color:var(--muted);font-size:12px}
.user-portal .sidebar-account small{color:#b4cdbd;font-size:12px}
.user-portal .sidebar-account button{min-width:44px;min-height:44px;color:#c2d7c9;font-size:12px}
.user-portal :is(.badge,.actor-chip){font-size:12px}
.user-portal .badge{color:#256540}
.user-portal .badge.wait{color:#805c20}
.user-portal .badge.fail{color:#9e4835}
.user-portal .data-table{font-size:13px}
.user-portal .data-table th{color:var(--muted)}
.user-portal .device-id{color:var(--muted);font-size:12px;letter-spacing:0}
.user-portal .field{font-size:14px}
.user-portal .dialog-close{min-width:44px;min-height:44px}
.user-portal .notice{font-size:13px;line-height:1.8;color:var(--muted)}
.user-portal .notice.error{color:#9e4835}
.user-portal .empty p{color:var(--muted);font-size:14px;line-height:1.8}

.user-portal #devicesPage .device-overview{padding:0 0 18px;margin:0 0 20px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.user-portal #devicesPage .device-metrics{display:flex;gap:28px;flex-wrap:wrap;border:0;padding:0;width:auto}
.user-portal #devicesPage .device-metrics>div{flex-direction:row;align-items:baseline;gap:10px;min-width:0}
.user-portal #devicesPage .device-metrics strong{font-size:20px;color:var(--ink)}
.user-portal #devicesPage .device-metrics span{font-size:13px;color:var(--muted)}
.user-portal #devicesPage #deviceCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.user-portal #devicesPage .device-card{padding:18px 20px;border-radius:12px;box-shadow:none;min-width:0}
.user-portal #devicesPage #deviceCards>.empty{grid-column:1/-1}
.user-portal #devicesPage .panel-header{margin-bottom:8px;align-items:flex-start;gap:12px}
.user-portal #devicesPage .device-primary-actions{display:flex;align-items:flex-end;flex-direction:column;gap:8px;flex-shrink:0}
.user-portal #devicesPage .arrange-voice{font-weight:600;white-space:nowrap;box-shadow:0 4px 10px #20774718}
.user-portal #devicesPage .device-details{border-top:1px solid var(--line);margin-top:10px}
.user-portal #devicesPage .device-details>summary{cursor:pointer;min-height:44px;padding:12px 0;color:#315d42;font-size:13px;line-height:1.6}
.user-portal #devicesPage .device-details>summary>span{float:right;color:var(--muted);font-size:12px;margin-left:12px}
.user-portal #devicesPage .device-details[open]>summary{margin-bottom:8px}
.user-portal #devicesPage .device-heading h2{font-size:18px;line-height:1.5}
.user-portal #devicesPage :is(.device-id,.device-location,.device-report,.device-report b,.count-form .field,.count-input>span,.setting-description,.activity-label,.activity-note,.queue-number,.queue-row small,.queue-empty small){font-size:12px;color:var(--muted)}
.user-portal #devicesPage .device-location{margin-top:2px}
.user-portal #devicesPage .device-location .text-button{font-size:12px;padding:8px}
.user-portal #devicesPage .device-activity{background:#f3f7f4;border:0;border-radius:0;padding:14px 16px}
.user-portal #devicesPage .activity-heading{min-height:20px}
.user-portal #devicesPage .activity-title{font-size:17px;margin:6px 0;line-height:1.5}
.user-portal #devicesPage .activity-check{color:#236e43;font-size:12px}
.user-portal #devicesPage .activity-percent{font-size:24px}
.user-portal #devicesPage .panel-footer{margin-top:4px;padding-top:0;border:0;gap:12px}
.user-portal #devicesPage .panel-footer h3{margin:6px 0}
.user-portal #devicesPage .panel-footer h3{font-size:15px}
.user-portal #devicesPage .queue-list{margin:4px 0 8px;gap:0}
.user-portal #devicesPage .queue-row{padding:10px 0;gap:10px;background:#fff;border:0;border-top:1px solid var(--line);border-radius:0}
.user-portal #devicesPage .queue-row.is-transferring{background:#f3f9f5}
.user-portal #devicesPage .queue-row strong{font-size:14px}
.user-portal #devicesPage .queue-actions{display:flex;gap:4px;flex-shrink:0}
.user-portal #devicesPage .queue-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px;border:1px solid var(--line);background:#fff;color:#315d42;border-radius:6px}
.user-portal #devicesPage .queue-actions [data-remove]{margin-left:4px;color:#964936}
.user-portal .queue-authors{color:var(--muted);font-size:12px}
.user-portal #devicesPage .device-settings{padding:18px 0;margin-top:6px;border:0;border-top:1px solid var(--line);border-radius:0}
.user-portal #devicesPage .setting-heading{justify-content:flex-start;gap:12px}
.user-portal #devicesPage .setting-heading>strong{font-size:14px}
.user-portal #devicesPage .count-form{margin-top:14px;max-width:440px}
.user-portal #devicesPage .count-form .secondary{font-size:13px}
.user-portal #devicesPage .count-input input{min-height:44px;font-size:17px}
.user-portal #devicesPage .setting-description{margin:10px 0 0}
.user-portal #devicesPage .device-report{padding-top:14px;gap:6px 20px;font-variant-numeric:tabular-nums}

.user-portal .library-controls{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:0 0 12px}
.user-portal .library-search{display:grid;gap:8px;flex:1;min-width:220px;margin:0}
.user-portal .library-search input{max-width:none;min-width:0}
.user-portal .library-toolbar{display:grid;gap:8px;margin:0}
.user-portal .library-toolbar label{font-size:13px;font-weight:600}
.user-portal #assetResultCount{padding-bottom:13px;white-space:nowrap}
.user-portal .library-guidance{display:flex;gap:8px 20px;align-items:baseline;flex-wrap:wrap;margin-bottom:20px;font-size:13px;color:var(--muted)}
.user-portal .library-guidance>p{margin:0;line-height:1.8}
.user-portal .help-details{font-size:13px;line-height:1.8;color:var(--muted);max-width:75ch}
.user-portal .help-details summary{cursor:pointer;min-height:44px;padding:10px 0;color:#236e43;width:fit-content;text-underline-offset:3px}
.user-portal .help-details summary:hover{text-decoration:underline}
.user-portal .help-details p{margin:0 0 10px;overflow-wrap:anywhere}
.user-portal .asset-card{padding:20px}
.user-portal .asset-card h3{font-size:16px;margin-bottom:8px}
.user-portal :is(.library-updated,.library-rank){font-size:12px;color:var(--muted)}
.user-portal .library-metrics{color:#315d42}
.user-portal .ranking-caption{padding:14px 20px}
.user-portal .ranking-caption>div .tiny{width:auto;padding:0}
.user-portal .ranking-columns{font-size:12px;color:var(--muted)}
.user-portal .ranking-columns,.user-portal .ranking-row{grid-template-columns:38px minmax(150px,1fr) 96px 180px 300px;gap:12px;padding-left:20px;padding-right:20px}
.user-portal .ranking-row{min-height:84px}
.user-portal .ranking-title h3{font-size:15px}
.user-portal :is(.ranking-title>span,.ranking-score>span,.ranking-score strong small){font-size:12px;color:var(--muted)}
.user-portal .ranking-number{color:#526b5d}
.user-portal .ranking-number.rank-1{color:#805b16}
.user-portal .ranking-number.rank-2{color:#52666b}
.user-portal .ranking-number.rank-3{color:#865a3b}
.user-portal .ranking-actions{gap:6px}
.user-portal .ranking-actions :is(.primary,.secondary,.text-button){font-size:12px;min-height:44px;padding:8px 10px}
.user-portal .ranking-actions .text-button{padding:8px 6px}
.user-portal .ranking-actions .favorite-button{min-width:72px}
.user-portal :is(.operation-list,.notification-list){gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.user-portal :is(.operation-entry,.notification-card){border:0;border-bottom:1px solid var(--line);border-radius:0;padding:20px 24px}
.user-portal :is(.operation-entry,.notification-card):last-child{border-bottom:0}
.user-portal .notification-card.unread{background:#f3f9f5}
.user-portal :is(.operation-heading time,.operation-device,.notification-card p,.notification-device span,.notification-footer,.notification-read,.profile-summary dt){color:var(--muted);font-size:13px}
.user-portal .operation-detail{font-size:14px}
.user-portal .operation-detail summary{min-height:44px;padding:10px 0}
.user-portal .notification-footer{margin-top:8px;padding-top:6px}

@media(max-width:1200px){
 .user-portal .ranking-row{grid-template-columns:36px minmax(180px,1fr) 300px;padding:16px 20px;gap:12px}
}
@media(max-width:760px){
 .user-portal .workspace-sidebar{position:fixed;inset:0 auto 0 0;width:246px;max-width:calc(100vw - 48px);padding:30px 18px 22px;display:flex;z-index:50;transform:translateX(-100%);visibility:hidden;transition:transform .25s ease,visibility .25s}
 .user-portal .workspace-sidebar.open{transform:none;visibility:visible}
 .user-portal .workspace-main{margin-left:0}
 .user-portal .mobile-navigation,.user-portal .navigation-close{display:inline-flex;align-items:center;justify-content:center}
 .user-portal .workspace-logo img{width:120px}
 .user-portal .navigation-backdrop{position:fixed;inset:0;border:0;background:#09291c66;z-index:40}
 .user-portal.navigation-open{overflow:hidden}
 .user-portal .workspace-label{display:block}
 .user-portal .workspace-nav{display:flex;flex-direction:column;gap:5px;margin-top:0;overflow:visible}
 .user-portal .workspace-nav button{padding:0 12px;justify-content:flex-start;gap:12px;font-size:14px}
 .user-portal .workspace-nav .ui-icon{width:20px;height:20px}
 .user-portal .sidebar-account{position:static;margin-top:auto;gap:10px;padding-top:20px}
 .user-portal .workspace-top{min-height:64px;height:auto;padding:10px 16px;font-size:12px}
 .user-portal .workspace-top>span{flex:1;min-width:0;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .user-portal .workspace-content{padding:22px 16px}
 .user-portal .page-title h1{font-size:24px}
 .user-portal #devicesPage .device-overview{padding-bottom:14px;margin-bottom:16px;gap:0}
 .user-portal #devicesPage .device-metrics{gap:16px;justify-content:flex-start}
 .user-portal #devicesPage .device-metrics>div{gap:6px}
 .user-portal #devicesPage .device-metrics span{font-size:12px}
 .user-portal #devicesPage .device-card{padding:16px}
 .user-portal #devicesPage #deviceCards{grid-template-columns:minmax(0,1fr)}
 .user-portal #devicesPage .panel-header{flex-wrap:wrap;gap:8px}
 .user-portal #devicesPage .device-primary-actions{width:100%;flex-direction:row;align-items:center;justify-content:space-between}
 .user-portal #devicesPage .device-activity{padding:12px}
 .user-portal #devicesPage .queue-row{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px}
 .user-portal #devicesPage .queue-number{align-self:start;padding-top:3px}
 .user-portal #devicesPage .queue-actions{grid-column:2;justify-self:end}
 .user-portal #devicesPage .device-report{display:grid;gap:6px}
 .user-portal .library-controls{display:grid;grid-template-columns:minmax(0,1fr) 138px;gap:12px}
 .user-portal .library-search{min-width:0}
 .user-portal .library-toolbar select{min-width:0;width:100%;padding:13px 9px}
 .user-portal #assetResultCount{grid-column:1/-1;padding:0}
 .user-portal .library-guidance{display:block;margin-bottom:14px}
 .user-portal .ranking-row{grid-template-columns:26px minmax(0,1fr) 74px;grid-template-areas:"rank title score" ". player player" ". actions actions";padding:16px 12px;gap:12px 8px}
 .user-portal .ranking-title h3{font-size:14px}
 .user-portal .ranking-title>span{white-space:normal;overflow-wrap:anywhere;line-height:1.6}
 .user-portal .ranking-actions{flex-wrap:wrap;gap:6px}
 .user-portal .ranking-actions :is(.primary,.secondary,.text-button){padding:8px;font-size:12px}
 .user-portal .ranking-caption{padding:14px 12px}
 .user-portal .ranking-caption .tiny{font-size:12px}
 .user-portal :is(.operation-entry,.notification-card){padding:16px}
 .user-portal .notification-toolbar{flex-wrap:wrap}
 .user-portal .notification-toolbar .secondary{font-size:12px;min-height:44px}
 .user-portal .notification-footer{flex-wrap:wrap}
}

/* Navigation uses the administrator sidebar's dimensions, selection and hover. */
.user-portal .mobile-navigation,.user-portal .navigation-close{display:none;border:0;background:transparent;min-width:44px;min-height:44px;color:#315d42;cursor:pointer}
.user-portal .navigation-close{position:absolute;top:10px;right:6px;color:#c2d7c9;font-size:24px}
@media(min-width:761px) and (max-width:1000px){.user-portal .workspace-sidebar{width:215px}.user-portal .workspace-main{margin-left:215px}}
@media(min-width:761px) and (max-width:1279px){.user-portal #devicesPage #deviceCards{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.user-portal .mobile-navigation,.user-portal .navigation-close{display:inline-flex}}
@media(prefers-reduced-motion:reduce){.user-portal .workspace-sidebar,.user-portal .workspace-nav button{transition:none}.user-portal .workspace-nav button:hover{transform:none}}

/* Match the management console while keeping Chinese text in system fonts. */
@font-face{font-family:Roboto;src:url("assets/fonts/roboto-latin.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
:root{font-family:Roboto,"PingFang SC","Microsoft YaHei",sans-serif;--paper:#f5faf6;--line:#dfece3;--muted:#647b6c}
.workspace-nav button,.workspace-nav a{line-height:1.45}
.page-title h1{font-size:clamp(26px,2.3vw,34px);line-height:1.18;letter-spacing:0}
.page-title p{font-size:14px;line-height:1.6}
.panel{border-radius:16px;box-shadow:0 8px 28px rgba(28,72,43,.045)}
@media(max-width:760px){.page-title h1{font-size:26px}}
/* Light green surfaces and consistent navigation typography. */
.login-page {
  background: linear-gradient(115deg, #ffffff 0%, #f5fbf6 45%, #dff1e4 100%);
}
.login-page .brand-stage { color: #204b34; }
.login-page .stage-copy h1 span { color: #288354; }
.login-page .stage-copy p,
.login-page .kicker,
.login-page .stage-footer,
.login-page .signal-caption,
.login-page .stage-brand small { color: #52735e; }
.login-page .stage-brand > span { border-color: #c8dfcf; }
.login-page .signal-ring { border-color: #8ac49d66; }
.login-page .sound-core { background: #e4f4e9; border-color: #b9dbc5; box-shadow: 0 12px 45px #39845412; }
.login-page .sound-core i { background: linear-gradient(#6bc78b, #268552); }
.login-page .auth-card { background: #ffffffd9; border-color: #d9e9dd; box-shadow: 0 18px 60px #305d3d0d; }
.workspace-sidebar,
.user-portal .workspace-sidebar {
  background: linear-gradient(165deg, #ffffff 0%, #f3faf5 45%, #e0f1e5 100%);
  color: #244e35;
  border-right: 1px solid #d8e8dd;
  box-shadow: 8px 0 36px #133c2805;
}
.workspace-logo img, .login-page .stage-brand img { filter: brightness(.65) saturate(.9); }
.workspace-label, .user-portal .workspace-label { color: #607e6a; font-size: 12px; letter-spacing: .06em; }
.workspace-nav button, .workspace-nav a, .user-portal .workspace-nav button {
  min-height: 48px; font-size: 15px; font-weight: 500; line-height: 1.5;
  letter-spacing: .02em; color: #456550;
}
.workspace-nav button:hover, .workspace-nav a:hover, .user-portal .workspace-nav button:hover {
  background: #e7f3eb; color: #24613c;
}
.workspace-nav .active, .user-portal .workspace-nav .active {
  background: linear-gradient(100deg, #d4eddd, #e5f4e9); color: #205c38;
  box-shadow: inset 3px 0 #329761; font-weight: 600;
}
.user-portal .workspace-nav .ui-icon { color: #668c73; }
.user-portal .workspace-nav .active .ui-icon { color: #2c8650; }
.sidebar-account { border-top-color: #cfe2d5; }
.sidebar-account small, .sidebar-account button,
.user-portal .sidebar-account small, .user-portal .sidebar-account button { color: #54765f; }
.account-avatar { background: #d3ebdb; color: #2c7045; }
.welcome-strip { background: linear-gradient(110deg, #fff, #e0f2e6); border: 1px solid #d6e8dc; color: #244e35; }
.welcome-strip p { color: #567661; }
.welcome-strip strong { color: #2b8050; }

/* Fixed sidebars scroll as a whole; retain the users page's mobile horizontal nav. */
.user-portal .workspace-sidebar { overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #9dc6ac transparent; }
.user-portal .workspace-sidebar > * { flex-shrink: 0; }
@media (min-width: 761px) {
  .workspace-sidebar { overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #9dc6ac transparent; }
  .workspace-sidebar > * { flex-shrink: 0; }
}
