.order-overview:has(.progress-medal-route){position:relative;overflow:hidden;background:radial-gradient(ellipse at 55% 15%,rgba(var(--accent-rgb),.09),transparent 65%),var(--panel)}.progress-medal-route{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:2px 0 24px}.progress-medal-route:before{content:'';position:absolute;top:100px;left:17%;right:17%;height:1px;background:linear-gradient(90deg,transparent,rgba(var(--accent-rgb),.45),transparent);pointer-events:none}.progress-medal-card{position:relative;display:grid;justify-items:center;gap:10px;min-width:0;padding:16px 12px 18px;border:1px solid rgba(150,165,190,.12);border-radius:15px;background:rgba(8,13,23,.32)}.progress-medal-card.current{border-color:rgba(var(--accent-rgb),.38);background:radial-gradient(ellipse at 50% 45%,rgba(var(--accent-rgb),.16),transparent 75%),rgba(var(--accent-rgb),.035)}.progress-medal-card.target{background:radial-gradient(ellipse at 50% 45%,rgba(221,187,112,.07),transparent 75%),rgba(8,13,23,.25)}.progress-medal-label{font-size:11px;letter-spacing:1.1px;text-transform:uppercase;color:var(--muted)}.progress-medal-card.current>.progress-medal-label{color:var(--accent)}.progress-medal{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;max-width:100%}.progress-medal .rank-medal{display:grid;place-items:center;width:82px;height:82px;flex:0 0 82px;filter:drop-shadow(0 8px 12px #0005)}.progress-medal .rank-image{width:82px;height:82px;object-fit:contain}.progress-medal .rank-copy{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;white-space:nowrap;overflow-wrap:normal;line-height:1.5}.progress-medal .rank-stars{color:#e6bf67;font-size:10px;letter-spacing:2px;white-space:nowrap}.progress-medal-card>strong{font-size:19px;font-variant-numeric:tabular-nums;white-space:nowrap}.progress-medal-card.current>strong{color:var(--accent)}.progress-medal-card.current .rank-medal{animation:rank-float 6.8s ease-in-out infinite;filter:drop-shadow(0 7px 15px rgba(var(--accent-rgb),.28))}.progress-medal-card.target .rank-medal{animation:rank-float 8.2s ease-in-out -2.4s infinite}.order-overview:has(.progress-medal-route) .overview-heading h3{font-size:24px;margin-bottom:16px}.order-overview:has(.progress-medal-route) progress::-webkit-progress-value{background:linear-gradient(110deg,var(--accent),#c8adff,var(--accent));background-size:200% 100%;animation:rank-progress-glow 7s ease-in-out infinite}.order-overview:has(.progress-medal-route) .overview-numbers{margin-top:16px}
@keyframes rank-float{0%,100%{transform:translateY(1px) rotate(-1deg)}50%{transform:translateY(-5px) rotate(1deg)}}@keyframes rank-progress-glow{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}
.hero-picker{position:relative;display:grid;gap:8px;min-width:0}.hero-picker-label{font-size:13px;color:var(--muted)}.hero-picker-trigger{width:100%;display:flex;align-items:center;gap:10px;min-height:48px;border:1px solid var(--line);border-radius:10px;padding:9px 12px;background:var(--bg);color:var(--muted);font:inherit;font-size:13px;text-align:left}.hero-picker-trigger.has-value{color:var(--text)}.hero-picker-trigger:hover,.hero-picker-trigger[aria-expanded=true]{border-color:var(--accent)}.hero-picker-trigger img{width:48px;height:28px;object-fit:cover;border-radius:5px;flex-shrink:0}.hero-picker-chevron{margin-left:auto;color:var(--muted)}.hero-picker-panel{position:absolute;top:100%;left:0;right:0;margin-top:7px;padding:12px;z-index:40;background:#141c29;border:1px solid rgba(var(--accent-rgb),.4);border-radius:13px;box-shadow:0 16px 50px #0008}.hero-picker-panel>input{width:100%;margin-bottom:10px;min-height:42px;font-size:13px}.hero-picker-list{display:grid;grid-template-columns:1fr;gap:4px;max-height:290px;overflow:auto;scrollbar-width:thin}.hero-picker-option{display:flex;align-items:center;gap:10px;border:1px solid transparent;background:transparent;color:var(--text);padding:8px;border-radius:8px;font:inherit;font-size:13px;text-align:left;min-height:44px}.hero-picker-option img{width:48px;height:28px;object-fit:cover;flex-shrink:0;border-radius:5px}.hero-picker-option:hover,.hero-picker-option:focus-visible,.hero-picker-option[aria-selected=true]{background:rgba(var(--accent-rgb),.12);border-color:rgba(var(--accent-rgb),.25)}.hero-picker-empty{font-size:13px;padding:12px;color:var(--muted)}.match-journal:has(.match-form){max-height:none;overflow:visible}.match-hero{display:flex;align-items:center;gap:9px;min-width:0;font-size:12px}.match-hero>img{width:44px;height:26px;object-fit:cover;border-radius:5px;flex-shrink:0}.match-hero>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.match-hero-missing{font-size:11px;color:var(--muted)}.match-history-list .match-row>.match-hero{grid-column:1;grid-row:1}.match-history-list .match-row>strong{grid-column:2;grid-row:1;align-self:center;justify-self:end;font-size:11px}.match-history-list .match-row>a{grid-column:1;grid-row:2}.match-history-list .match-row>b{grid-column:2;grid-row:2}.match-history-list .match-row>time{grid-column:1;grid-row:3}.match-history-list .match-row>small{grid-column:2;grid-row:3}.match-history-list .match-row{padding:12px;gap:7px 12px}
@media(max-width:760px){.progress-medal-route{gap:7px;margin-bottom:18px}.progress-medal-card{gap:8px;padding:12px 5px;border-radius:11px}.progress-medal-label{font-size:9px;letter-spacing:.6px}.progress-medal .rank-medal,.progress-medal .rank-image{width:58px;height:58px;flex-basis:58px}.progress-medal .rank-copy{font-size:10px;gap:2px}.progress-medal .rank-stars{font-size:8px;letter-spacing:1px}.progress-medal-card>strong{font-size:13px}.order-overview:has(.progress-medal-route) .overview-heading h3{font-size:19px}.progress-medal-route:before{top:77px}.hero-picker-panel>input{font-size:16px}.hero-picker-list{max-height:240px}.hero-picker-option{font-size:13px}.match-hero{font-size:11px}.match-history-list .match-row{gap:6px 8px}.hero-picker-panel{padding:10px}.hero-picker-trigger{font-size:14px}}
@media(prefers-reduced-motion:reduce){.progress-medal-card .rank-medal,.order-overview:has(.progress-medal-route) progress::-webkit-progress-value{animation:none!important;transform:none!important}}

/* Compact delivery/read marks beside the message time. */
.message-time:has(.message-read){display:flex;justify-content:flex-end;align-items:center;gap:6px}
.message-read{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:22px;height:16px;margin:0;color:var(--muted);flex:0 0 22px;transition:color .2s,filter .2s}
.message-read svg{width:22px;height:16px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.message-read .receipt-second{opacity:0}
.message-read.is-read{color:#74d5ff;filter:drop-shadow(0 0 4px #5ac8fa55)}
.message-read.is-read .receipt-second{opacity:1}
@media(prefers-reduced-motion:reduce){.message-read{transition:none}}

.chat-presence{display:flex;gap:8px 16px;flex-wrap:wrap;margin-top:9px;font-size:11px;line-height:1.5;color:var(--muted)}
.chat-person{display:inline-flex;align-items:center;gap:6px}
.chat-person i{width:6px;height:6px;border-radius:50%;background:#687080;flex:none}
.chat-person.is-online{color:#8ce6bd}
.chat-person.is-online i{background:#77e2b1;box-shadow:0 0 7px #77e2b13d}
.chat-heading .chat-indicator{display:none}

.order-category-tabs{display:flex;gap:8px;margin:16px 0;flex-wrap:wrap}
.order-category-tabs .btn{font-size:12px;min-height:40px}
.order-category-tabs .btn[aria-pressed=true]{background:var(--accent);color:var(--bg);border-color:var(--accent)}
.order-removal{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--line);padding:20px 0;margin-top:24px}
.order-removal small{font-size:12px;color:var(--muted)}.delete-order-button{color:var(--danger)}
.delete-order-dialog{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:28px;width:min(480px,calc(100vw - 30px));max-height:90dvh;overflow:auto}
.delete-order-dialog::backdrop{background:#05070dbb;backdrop-filter:blur(5px)}
.delete-order-dialog h2{font-size:23px;margin:0 0 14px}.delete-order-dialog p{font-size:13px;line-height:1.7;color:var(--muted)}
.delete-order-dialog label{display:grid;gap:10px;font-size:13px;margin-top:20px}.delete-order-dialog input{width:100%;min-height:44px;font-size:16px}
.delete-order-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}
.delete-order-actions .danger{background:var(--danger);color:#fff;border-color:var(--danger)}
@media(max-width:760px){.order-removal{align-items:flex-start;flex-direction:column}.delete-order-dialog{padding:22px}}

.order-list-menu{position:relative;justify-self:end;margin-left:auto}
.order-list-menu>summary{cursor:pointer;list-style:none;display:grid;place-items:center;width:34px;height:30px;font-size:24px;color:var(--muted);border:1px solid var(--line);border-radius:8px}
.order-list-menu>summary::-webkit-details-marker{display:none}
.order-list-menu-actions{position:absolute;right:0;top:calc(100% + 6px);z-index:50;min-width:190px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #0006;padding:8px;display:grid;gap:6px}
.order-list-menu-actions .btn{text-align:left;justify-content:flex-start;font-size:12px}
.account-card:has(.order-list-menu[open]),.service-request-card:has(.order-list-menu[open]){overflow:visible;z-index:5}

.steam-dialog{width:min(520px,calc(100vw - 28px));max-height:90dvh;overflow:auto}
.steam-credential{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 12px;margin:18px 0}
.steam-credential label{display:grid;gap:8px;min-width:0;font-size:12px;color:var(--muted);user-select:none}
.steam-credential input{width:100%;min-width:0;font:15px/1.5 ui-monospace,monospace;user-select:all;color:var(--text);min-height:44px}
.steam-credential .btn{min-height:44px;padding:10px 13px;font-size:12px}
.steam-copy-status{grid-column:1/-1;min-height:17px;font-size:11px;color:var(--success)}
@media(max-width:400px){.steam-credential{grid-template-columns:1fr}.steam-credential .btn{justify-self:start}}

.work-management-dialog form>label{display:grid;gap:8px;font-size:13px}
.work-management-dialog textarea,.work-management-dialog select{width:100%;font-size:16px;min-height:44px}
.reward-history{font-size:12px;color:var(--muted);margin-top:16px}
.reward-history p{display:grid;gap:4px;border-top:1px solid var(--line);padding-top:10px;overflow-wrap:anywhere}

.browser-notification-permission{margin-top:9px;color:var(--muted);font-size:10px;line-height:1.5}
.browser-notification-permission .chat-tool{font-size:11px;padding:6px 9px;min-height:32px}
/* Consistent spacing and legibility without replacing the current theme. */
.overview-chat-link{display:none}
.save-confirmation{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:300;max-width:calc(100vw - 32px);padding:13px 20px;border:1px solid rgba(var(--accent-rgb),.45);border-radius:14px;background:var(--panel);color:var(--text);box-shadow:0 8px 32px #0005;font:600 13px/1.5 system-ui,sans-serif;pointer-events:none}.save-confirmation[hidden]{display:none}
.chat-indicator[data-connection=retry]{background:#dca84c!important;box-shadow:none!important}.chat-update-label{font-size:11px;line-height:1.5}
#cabinet .field-note,#requestDetail .field-note{font-size:12px;line-height:1.65}#cabinet label,#requestDetail label{line-height:1.5}#cabinet .stack,#requestDetail .stack{gap:12px}.order-full-details>summary,.completed-stage>summary{min-height:24px;line-height:1.6}.order-list-menu-actions .btn{min-height:42px}
.match-history-list .match-row{grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding:14px}.match-history-list .match-row>.match-hero{grid-column:1;grid-row:1;min-width:0;display:flex;align-items:center;gap:8px;font-size:12px}.match-history-list .match-row>.match-hero img{width:48px;height:28px;object-fit:cover;border-radius:5px}.match-history-list .match-row>.match-hero span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.match-history-list .match-row>strong{grid-row:2;grid-column:1}.match-history-list .match-row>b{grid-row:1;grid-column:2;align-self:center}.match-history-list .match-row>small{grid-row:2;grid-column:2}.match-history-list .match-row>a{grid-row:3;grid-column:1;font-size:12px;min-height:24px}.match-history-list .match-row>time{grid-row:3;grid-column:2;align-self:center;text-align:right;font-size:11px}
@media(max-width:760px){.order-overview:has(.progress-medal-route){padding:16px}.order-overview:has(.progress-medal-route) .overview-heading{gap:8px;align-items:flex-start;margin-bottom:12px}.order-overview:has(.progress-medal-route) .overview-heading h3{font-size:16px;margin:5px 0}.progress-medal-route{gap:6px;margin-bottom:12px}.progress-medal-card{gap:4px;padding:8px 3px}.progress-medal .rank-medal,.progress-medal .rank-image{width:42px;height:42px;flex-basis:42px}.progress-medal{gap:3px}.progress-medal .rank-copy{font-size:10px}.progress-medal-card>strong{font-size:12px}.progress-medal-label{font-size:9px}.progress-medal-route:before{top:54px}.order-overview .overview-numbers{gap:8px;margin-top:10px!important}.order-overview .overview-numbers strong{font-size:16px}.order-overview .overview-numbers span{font-size:11px}.overview-footer{padding-top:10px;gap:8px;font-size:11px;margin-top:10px}.overview-chat-link{display:block;width:100%;margin-top:12px;min-height:42px}#cabinet .btn,#requestDetail .btn{min-height:42px}#cabinet input:not([type=checkbox]):not([type=radio]),#cabinet select,#requestDetail input:not([type=checkbox]):not([type=radio]),#requestDetail select{min-height:44px;font-size:16px}.match-history-list .match-row{padding:12px 10px;gap:6px}.match-history-list .match-row>a{font-size:11px}.match-history-list .match-row>time{font-size:10px}}
@media(max-width:760px){.order-overview:has(.progress-medal-route) .overview-heading h3{display:none}.order-overview .overview-numbers{margin-bottom:0}.order-overview .overview-footer{flex-direction:row;flex-wrap:wrap;font-size:10px;line-height:1.5;gap:4px 10px;padding-top:8px}.order-overview .overview-numbers>div{gap:3px}.order-overview .overview-numbers strong{line-height:1.35}.progress-medal .rank-copy{line-height:1.3;gap:1px}.progress-medal-card{padding:7px 3px;gap:3px}.progress-medal-card>strong{line-height:1.4}.progress-medal-label{line-height:1.4}.overview-chat-link{margin-top:10px}#cabinet .profile-block{margin-bottom:10px;padding-bottom:10px}#cabinet .sidebar .tabs{padding-bottom:0}#cabinet .sidebar{margin-bottom:0}.chat-panel,.request-work-chat{scroll-margin-top:125px}}
.chat-panel .chat-image,.request-work-chat .chat-image{display:grid;place-items:center;width:280px;max-width:100%;height:180px}.chat-panel .chat-image img,.request-work-chat .chat-image img{width:100%;height:100%;max-height:180px;object-fit:contain}.match-history-list .match-row>strong{justify-self:start}
@media(max-width:600px){.chat-panel .chat-image,.request-work-chat .chat-image{width:240px;height:160px}.chat-panel .chat-image img,.request-work-chat .chat-image img{max-height:160px}}
/* Rating journey: endpoints, MMR milestones and the live position on one scale. */
.rating-route{display:grid;grid-template-columns:88px minmax(0,1fr) 88px;gap:22px;align-items:start;margin:10px 0 14px}.rating-end{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;text-align:center}.rating-end-medal{position:relative;display:flex;justify-content:center;min-height:72px;padding-top:10px}.rating-end-medal .rank-medal,.rating-end-medal .rank-image{display:block;width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 0 16px rgba(var(--accent-rgb),.18))}.rating-end-medal .rank-copy{position:absolute;top:0;left:0;right:0;display:block;text-align:center;line-height:1}.rating-end-medal .rank-copy>span{display:none}.rating-end-medal .rank-stars{color:#efc76d;font-size:10px;letter-spacing:1px;text-shadow:0 0 12px #edbd5080}.rating-end-label{font:650 10px/1.4 system-ui,sans-serif;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}.rating-end>strong{font:750 22px/1.2 system-ui,sans-serif;font-variant-numeric:tabular-nums;color:var(--text)}.rating-end.target>strong{color:#efc76d}.rating-end>small{font:11px/1.4 system-ui,sans-serif;color:var(--muted)}
.rating-axis{position:relative;height:144px;min-width:0}.rating-track{position:absolute;top:88px;left:0;right:0;height:9px;border:1px solid var(--line);background:#222330;border-radius:12px;overflow:hidden}.rating-track-fill{position:absolute;inset:0 auto 0 0;width:var(--rating-progress);background:linear-gradient(90deg,var(--accent),#cbb2ff);border-radius:inherit;box-shadow:0 0 16px rgba(var(--accent-rgb),.35);transition:width .65s cubic-bezier(.2,.7,.2,1)}.rating-track-remaining{position:absolute;left:var(--rating-progress);right:5px;top:3px;height:1px;background:repeating-linear-gradient(90deg,#c6a657 0 7px,transparent 7px 14px);opacity:.6}.rating-current-dot{position:absolute;left:var(--rating-progress);top:92px;transform:translate(-50%,-50%);width:18px;height:18px;border-radius:50%;background:#fff;border:4px solid var(--accent);box-shadow:0 0 0 6px rgba(var(--accent-rgb),.18),0 0 24px rgba(var(--accent-rgb),.3);z-index:2;transition:left .65s cubic-bezier(.2,.7,.2,1)}.rating-current-value{position:absolute;left:clamp(38px,var(--rating-progress),calc(100% - 38px));top:41px;transform:translateX(-50%);padding:7px 12px;min-width:70px;text-align:center;border:1px solid rgba(var(--accent-rgb),.45);border-radius:24px;color:var(--text);background:color-mix(in srgb,var(--panel),var(--accent) 15%);box-shadow:0 6px 22px rgba(var(--accent-rgb),.12);font:700 14px/1.4 system-ui,sans-serif;white-space:nowrap;font-variant-numeric:tabular-nums;z-index:3}.rating-milestone{position:absolute;top:11px;transform:translateX(-50%);text-align:center;pointer-events:none}.rating-milestone-medal{display:flex;justify-content:center;height:68px;align-items:flex-start;padding-top:9px}.rating-milestone .rank-medal,.rating-milestone .rank-image{width:30px;height:30px;object-fit:contain;filter:drop-shadow(0 0 8px rgba(var(--accent-rgb),.15))}.rating-milestone .rank-copy{display:none}.rating-milestone>span{display:block;margin-top:25px;color:var(--muted);font:600 11px/1.5 system-ui,sans-serif;font-variant-numeric:tabular-nums}.order-overview:has(.rating-route){background:radial-gradient(ellipse at 60% 15%,rgba(var(--accent-rgb),.08),transparent 75%),var(--panel)}.order-overview:has(.rating-route) .overview-numbers{gap:12px}.order-overview:has(.rating-route) .overview-numbers>div{padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:rgba(var(--accent-rgb),.025)}.order-overview:has(.rating-route) .overview-heading h3{font-size:22px;margin-bottom:12px}
@media(max-width:760px){.rating-route{grid-template-columns:62px minmax(0,1fr) 62px;gap:10px;margin:8px 0 12px}.rating-end-medal{min-height:58px;padding-top:8px}.rating-end-medal .rank-medal,.rating-end-medal .rank-image{width:48px;height:48px}.rating-end-medal .rank-stars{font-size:8px;letter-spacing:0}.rating-end-label{font-size:9px}.rating-end>strong{font-size:16px}.rating-end>small{font-size:9px}.rating-axis{height:125px}.rating-track{top:75px;height:7px}.rating-track-remaining{top:2px}.rating-current-dot{top:78px;width:16px;height:16px}.rating-current-value{top:32px;left:clamp(30px,var(--rating-progress),calc(100% - 30px));font-size:12px;min-width:56px;padding:6px 8px}.rating-milestone{top:2px}.rating-milestone-medal{height:61px}.rating-milestone .rank-medal,.rating-milestone .rank-image{width:23px;height:23px}.rating-milestone>span{font-size:9px;margin-top:25px}.rating-milestone:nth-of-type(2),.rating-milestone:nth-of-type(4){display:none}.order-overview:has(.rating-route){padding:16px}.order-overview:has(.rating-route) .overview-heading h3{display:none}.order-overview:has(.rating-route) .overview-heading{margin-bottom:12px}.order-overview:has(.rating-route) .overview-numbers{gap:6px}.order-overview:has(.rating-route) .overview-numbers>div{padding:10px 7px;min-width:0}.order-overview:has(.rating-route) .overview-numbers span{font-size:10px}.order-overview:has(.rating-route) .overview-numbers strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){.rating-current-dot,.rating-track-fill{transition:none}}
.rating-milestone{top:5px}.rating-milestone-medal{padding-top:0}
@media(max-width:760px){.rating-milestone{top:2px}}
/* Keep each milestone medal directly above its MMR label, below the track. */
.rating-axis{height:164px}.rating-milestone{top:104px;display:flex;flex-direction:column;align-items:center;gap:4px}.rating-milestone-medal{height:30px;padding:0}.rating-milestone>span{margin-top:0}
@media(max-width:760px){.rating-axis{height:142px}.rating-milestone{top:92px;gap:3px}.rating-milestone-medal{height:23px}.rating-milestone>span{margin-top:0}}
/* Reference layout: milestone medal above the track, MMR beneath it. */
.rating-axis{height:144px}.rating-current-value{top:0}.rating-milestone{top:45px;gap:0}.rating-milestone-medal{height:30px}.rating-milestone>span{margin-top:29px}.rating-current-dot:before{content:'';position:absolute;width:1px;height:18px;background:rgba(var(--accent-rgb),.65);left:50%;bottom:15px}
@media(max-width:760px){.rating-axis{height:125px}.rating-current-value{top:0}.rating-milestone{top:37px;gap:0}.rating-milestone-medal{height:23px}.rating-milestone>span{margin-top:25px}.rating-current-dot:before{height:16px;bottom:13px}}
.overview-footer .overview-booster{display:inline-flex;align-items:center;gap:8px;min-width:0}.overview-booster-label{color:var(--muted)}.overview-booster-name{color:var(--text);overflow-wrap:anywhere;font-weight:550}.overview-booster-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;overflow:hidden;border-radius:8px;border:1px solid rgba(var(--accent-rgb),.18);background:rgba(var(--accent-rgb),.07);color:var(--accent);font:600 11px/1 system-ui,sans-serif}.overview-booster-avatar img{display:block;width:100%;height:100%;object-fit:cover}.overview-footer{align-items:center}
@media(max-width:760px){.overview-footer .overview-booster{gap:6px}.overview-booster-avatar{width:22px;height:22px;flex-basis:22px;border-radius:7px}}

/* Cohesive dark cabinet and motion language. */
.cabinet-polished{background:radial-gradient(ellipse at 72% 8%,rgba(var(--accent-rgb),.045),transparent 48%),var(--bg)}
.cabinet-polished .workspace h1,.cabinet-polished .detail-top h2{letter-spacing:-.035em;font-weight:750}
.cabinet-polished .account-card,.cabinet-polished .order-summary-panel,.cabinet-polished .chat-panel{border-radius:18px}
.cabinet-polished .btn,.cabinet-polished .chat-tool{transition:transform .16s,border-color .2s,background .2s,box-shadow .2s}
.cabinet-polished .btn:not(:disabled):active,.cabinet-polished .chat-tool:not(:disabled):active{transform:scale(.97)}
.cabinet-polished input:focus-visible,.cabinet-polished select:focus-visible{outline:2px solid rgba(var(--accent-rgb),.6);outline-offset:2px;box-shadow:0 0 0 5px rgba(var(--accent-rgb),.07)}
.card-reveal{animation:cabinet-card-enter .38s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms) backwards}
@keyframes cabinet-card-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.rating-end.start .rating-end-medal{filter:drop-shadow(0 0 12px rgba(var(--accent-rgb),.28))}
.rating-end.target .rating-end-medal{filter:drop-shadow(0 0 12px #eebf513d)}
.rating-end.target>strong{color:#f0c66b}
.rating-track-fill{overflow:hidden}
.rating-track-fill:after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,#ffffff65 50%,transparent 80%);transform:translateX(-100%);animation:rating-sheen 5.5s ease-in-out infinite;pointer-events:none}
@keyframes rating-sheen{0%,45%{transform:translateX(-100%)}85%,100%{transform:translateX(100%)}}
.rating-goal-label{font-size:12px;font-weight:650;padding:8px 12px;border-radius:20px;background:#eebf5112;border:1px solid #eebf5140;color:#f0c66b;white-space:nowrap}
.rating-goal-celebrate .rating-goal-label{animation:cabinet-card-enter .5s ease-out both}
.rating-goal-reached{border-color:#eebf5155!important;box-shadow:inset 0 0 45px #eebf5108}
.cabinet-polished .sidebar .tabs{position:relative;isolation:isolate}
.cabinet-nav-marker{position:absolute;left:0;top:0;z-index:-1;pointer-events:none;border-radius:12px;background:rgba(var(--accent-rgb),.1);border:1px solid rgba(var(--accent-rgb),.25);transition:transform .28s cubic-bezier(.2,.7,.2,1),width .28s,height .28s}
.cabinet-polished .sidebar .tabs [data-scope][aria-pressed=true]{background:transparent;border-color:transparent}
.cabinet-skeletons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cabinet-skeleton{padding:22px;min-height:230px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.cabinet-skeleton>*{display:block;border-radius:8px;background:linear-gradient(100deg,rgba(var(--accent-rgb),.04) 20%,rgba(var(--accent-rgb),.12) 50%,rgba(var(--accent-rgb),.04) 80%);background-size:220% 100%;animation:cabinet-skeleton 2s ease-in-out infinite}
.cabinet-skeleton i{height:18px;width:50%;margin-bottom:35px}.cabinet-skeleton span{height:16px;margin:15px 0}.cabinet-skeleton b{height:38px;width:40%;margin-top:28px}
@keyframes cabinet-skeleton{to{background-position:-220% 0}}
.cabinet-polished dialog[open]{animation:cabinet-dialog .22s cubic-bezier(.2,.7,.2,1) both}
.cabinet-polished dialog[open]::backdrop{animation:cabinet-backdrop .22s ease-out both;background:#05070bbd;backdrop-filter:blur(4px)}
@keyframes cabinet-dialog{from{opacity:0;transform:translateY(10px) scale(.975)}to{opacity:1;transform:none}}
@keyframes cabinet-backdrop{from{opacity:0}to{opacity:1}}
.chat-image img{animation:attachment-reveal .28s ease-out both}
@keyframes attachment-reveal{from{opacity:0;filter:blur(3px)}to{opacity:1;filter:none}}
.message-read{transition:color .25s}.receipt-revealed .receipt-second{animation:receipt-draw .28s ease-out both;stroke-dasharray:22;stroke-dashoffset:0}
@keyframes receipt-draw{from{stroke-dashoffset:22;opacity:0}to{stroke-dashoffset:0;opacity:1}}
.chat-person,.chat-person i{transition:color .35s,background .35s,box-shadow .35s}.chat-person.is-online i{box-shadow:0 0 9px #65dcaa40}
@media(max-width:600px){.cabinet-skeletons{grid-template-columns:1fr}.overview-heading{flex-wrap:wrap}.rating-goal-label{margin-top:-10px}}
@media(prefers-reduced-motion:reduce){.card-reveal,.rating-track-fill:after,.rating-goal-celebrate .rating-goal-label,.cabinet-skeleton>*,.cabinet-polished dialog[open],.cabinet-polished dialog[open]::backdrop,.chat-image img,.receipt-revealed .receipt-second{animation:none}.cabinet-nav-marker,.cabinet-polished .btn,.cabinet-polished .chat-tool,.chat-person,.chat-person i{transition:none}}

/* Shared visual hierarchy for admin, customer and booster cabinets. */
.cabinet-polished{--cabinet-radius:18px;--cabinet-control-radius:12px;--cabinet-muted:var(--muted)}
.cabinet-polished .workspace-top h1,.cabinet-polished .detail-top h2{font-size:clamp(24px,2.2vw,32px);line-height:1.2}
.cabinet-polished .overview-heading h3{font-size:clamp(21px,2vw,28px);line-height:1.3;font-weight:720;letter-spacing:-.035em}
.cabinet-polished .account-card h3{font-size:17px;line-height:1.4;font-weight:680;letter-spacing:-.02em}
.cabinet-polished .eyebrow,.cabinet-polished .nav-label{font-size:10px;letter-spacing:.13em;line-height:1.6}
.cabinet-polished .overview-numbers strong,.cabinet-polished .rating-end>strong{font-variant-numeric:tabular-nums;font-weight:750;letter-spacing:-.035em}
.cabinet-polished .overview-numbers span,.cabinet-polished .order-condition,.cabinet-polished .field-note{line-height:1.6}
.cabinet-polished .account-card,.cabinet-polished .order-summary-panel,.cabinet-polished .chat-panel,.cabinet-polished .order-overview,.cabinet-polished .work-start-panel,.cabinet-polished .stat-card,.cabinet-polished dialog{border-radius:var(--cabinet-radius)}
.cabinet-polished .btn,.cabinet-polished .chat-tool,.cabinet-polished input:not([type=checkbox]):not([type=radio]):not([type=range]),.cabinet-polished select,.cabinet-polished textarea,.cabinet-polished .hero-picker-trigger{border-radius:var(--cabinet-control-radius)}
.cabinet-polished .order-overview{background:radial-gradient(ellipse at 15% 5%,rgba(var(--accent-rgb),.075),transparent 65%),linear-gradient(135deg,rgba(var(--accent-rgb),.025),transparent),var(--panel)}
.cabinet-polished .chat-panel{box-shadow:0 12px 32px #00000014}
@media(max-width:600px){.cabinet-polished .overview-heading h3{font-size:21px}.cabinet-polished .account-card h3{font-size:16px}}
/* Working tools: progressive disclosure keeps the order readable. */
.work-action-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);margin:0 0 16px}.work-action-bar>strong{font-size:12px;margin-right:auto;color:var(--muted)}.work-action-bar .btn{font-size:12px;min-height:38px;padding:8px 12px}
.booster-work-card{display:flex;align-items:center;gap:12px;margin-top:16px;padding:13px 15px;background:rgba(var(--accent-rgb),.035);border:1px solid var(--line);border-radius:14px}.booster-work-card>.overview-booster-avatar{width:36px;height:36px;border-radius:11px;font-size:16px}.booster-work-card>div{display:grid;gap:4px;margin-right:auto}.booster-work-card strong{font-size:14px}.booster-work-card small{font-size:11px;color:var(--muted)}.booster-work-card small.is-online{color:var(--success)}.booster-work-card .btn{font-size:12px;min-height:38px}
.work-quick-preview{position:fixed;inset:16px 16px 16px auto;margin:0;width:min(460px,calc(100vw - 32px));height:calc(100dvh - 32px);max-height:none;max-width:none;padding:22px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:18px;overflow:auto}.workbench-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.workbench-heading h2{font-size:20px;margin:0}.work-preview-body h3{font-size:16px;margin:24px 0 14px}.work-preview-fact{display:flex;gap:20px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.work-preview-fact span{color:var(--muted)}.work-preview-fact strong{text-align:right}.work-preview-chat{display:grid;gap:10px;margin:16px 0}.work-preview-chat article{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);overflow-wrap:anywhere}.work-preview-chat strong{font-size:12px}.work-preview-chat p{font-size:13px;white-space:pre-wrap;margin:7px 0}.work-preview-chat small{font-size:10px;color:var(--muted)}.work-preview-trigger{font-size:11px;min-height:34px;align-self:flex-start;padding:7px 11px}.work-preview-body{min-width:0}
.work-chat-search{padding:10px 18px;border-bottom:1px solid var(--line);font-size:12px}.work-chat-search summary{cursor:pointer;color:var(--muted)}.work-chat-search form{display:flex;gap:8px;margin:12px 0}.work-chat-search input{min-width:0;flex:1}.work-search-results{display:grid;gap:8px;max-height:270px;overflow:auto}.work-search-results .btn{display:grid;text-align:left;gap:5px;white-space:normal;overflow-wrap:anywhere}.work-search-results span{font-size:12px;font-weight:400}.work-search-results small{font-size:10px;color:var(--muted)}.work-search-hit{animation:search-highlight 1.6s ease-out}@keyframes search-highlight{from{box-shadow:0 0 0 3px var(--accent);background:rgba(var(--accent-rgb),.2)}to{box-shadow:none}}
.work-match-stats{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px}.work-match-stats strong{font-size:12px}.work-match-stats label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.work-match-stats input{width:auto;max-width:160px;min-height:36px;padding:6px}.match-row[hidden]{display:none!important}
.work-finance{margin:0 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.work-finance>summary{font-size:13px;font-weight:650;cursor:pointer}.work-finance .workbench-heading{margin:16px 0}.work-finance input{width:auto;min-width:0;flex:1}.work-finance-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.work-finance-values>div{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:12px}.work-finance-values small{color:var(--muted);font-size:11px}.work-finance-values strong{font-size:20px}
.orders-table-wrap{max-height:70dvh;overflow:auto}.orders-table thead th{position:sticky;top:0;z-index:2;background:var(--panel);box-shadow:0 1px var(--line)}.orders-table th .btn{border:0;padding:0;min-height:32px;font-size:11px;text-align:left;background:transparent}.orders-table td:nth-child(5),.orders-table td:nth-child(7),.orders-table td:nth-child(8){font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.table-sort-note{display:block;margin:0 0 10px;color:var(--muted);font-size:11px}
@media(max-width:600px){.work-finance-values{grid-template-columns:1fr}.work-action-bar .btn{min-height:44px}.booster-work-card{gap:9px;padding:12px}.work-chat-search{padding:10px 12px}.work-quick-preview{padding:16px}.work-preview-trigger{min-height:40px}}
@media(prefers-reduced-motion:reduce){.work-search-hit{animation:none}}

.order-clickable{cursor:pointer}.order-clickable:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.booster-online-dot{display:inline-block;width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--muted);opacity:.55;margin-left:2px}.booster-online-dot.is-online{background:var(--success,#65dcaa);opacity:1;box-shadow:0 0 6px #65dcaa35}.match-history-list{overflow-y:auto;overscroll-behavior:contain}
