/* M-CYBER brand theme. Shared by public site and all workspace roles.
   Layout and semantic states remain in their existing modules. */
:root{
 --bg:#101013;--panel:#19191e;--line:#34343d;--muted:#b4b4bf;--red:#ff5368;
 --ui-bg:var(--bg);--ui-panel:var(--panel);--ui-panel-2:#222228;--ui-panel-3:#131318;
 --ui-card:#222228;--ui-field:#131318;--ui-border:#373740;--ui-border-strong:#64646d;
 --ui-text:#f3f3f5;--ui-muted:var(--muted);--ui-shadow:none;--ui-radius:11px;
 --mc-brand:#ff5368;--mc-brand-dark:#bf2942;--mc-brand-surface:#382027;
 --mc-card:#222228;--mc-inset:#131318;--mc-hover:#2d2d35;--mc-line:#373740;
}
body.portal-workspace,body.portal-public{background:var(--bg);color:var(--ui-text);font-size:14px;line-height:1.55}
.portal-top{background:#15151a;border-bottom-color:var(--mc-line);box-shadow:none;backdrop-filter:none}
.portal-top .brand-logo{border-radius:9px;box-shadow:none}
.portal-top .brand b{color:var(--ui-text)}
.portal-top nav a{color:#d1d1d8;border-radius:8px}
.portal-top nav a[aria-current=page],.portal-top nav .portal-primary{background:var(--mc-brand-surface);color:#ffb4bf;border:1px solid #793747}
.portal-top nav a:hover{color:#ffb4bf}
.portal-shell{gap:12px;align-items:start}
.portal-workspace .portal-sidebar{min-width:0}
.portal-sidebar .portal-identity{background:var(--panel);border-color:var(--mc-line);border-radius:11px;box-shadow:none;padding:11px 12px;margin-bottom:9px}
.portal-sidebar .portal-role{background:#2a2a31;color:#e2e2e7;border-radius:7px;font-size:12px;line-height:1.4;padding:5px 8px}
.portal-sidebar .portal-group{background:var(--panel);border:1px solid var(--mc-line);border-radius:10px;padding:7px;margin-bottom:7px}
.portal-sidebar .portal-group h2{color:#d0cbd0;letter-spacing:0;font-size:12px;margin:4px 7px 6px}
.portal-sidebar .portal-group-links{gap:3px}
.portal-sidebar .portal-group-links a{background:transparent;color:#dedee3;min-height:36px;padding:7px 9px;border-radius:7px;border-color:transparent;font-size:13px;line-height:1.4}
.portal-sidebar .portal-group-links a:hover{background:var(--mc-hover);color:#fff;border-color:var(--mc-line)}
.portal-sidebar .portal-group-links a.portal-active{background:var(--mc-brand-surface);color:#ffe3e7;border-color:#8c3c4d;box-shadow:inset 3px 0 var(--mc-brand)}
.portal-sidebar .portal-dot{background:#96969f;box-shadow:none;width:6px;height:6px}
.portal-sidebar .portal-active .portal-dot{background:var(--mc-brand)}
.portal-sidebar .tone-danger{color:#ff9cab!important}
.portal-workspace .portal-main{gap:10px;align-content:start;min-width:0}
.portal-workspace .portal-main>.panel,.public-shell main>.panel,.portal-workspace .portal-heading{
 background:var(--panel);border-color:var(--mc-line);border-radius:11px;box-shadow:none;min-width:0
}
.portal-workspace .portal-main>.panel{margin:0;padding:13px}
.portal-workspace .portal-heading{padding:11px 14px;margin:0;border-left:3px solid var(--mc-brand)}
.portal-workspace .portal-heading span{background:none;color:var(--muted);padding:0;font-size:11px}
.portal-workspace .portal-heading h1{font-size:20px;line-height:1.35;margin:0}
.portal-workspace .portal-heading p{font-size:12px;margin:0}
.eyebrow,.panel .eyebrow{color:#ff8999;letter-spacing:.07em;font-size:11px}
.portal-workspace .portal-main .section-head{gap:7px;margin-bottom:8px}
.portal-workspace .portal-main .section-head h2,.portal-workspace .portal-main .panel h2{font-size:17px;line-height:1.4}
.portal-workspace .portal-main .panel h3{font-size:14px;line-height:1.45}
/* Shared neutral cards. Keep meaningful states, payment totals and selected items below. */
body :is(.subpanel,.booking-card,.booking-summary-card,.booking-summary-grid>div,.account176-card,.account176-hero,.account176-logout,.account176-summary>div,.auth176-card,.auth154-card,.users176-card,.users176-item,.users176-stats>div,.guide1739-card,.site1713-tile,.site1713-row,.site1713-stats>div,.slide158-admin-card,.slide158-settings,.zone1740-group,.zone1740-machine,.member155-entry,.member155-stats>div,.business1751-cards>div,.report1747-stats>div,.desk170-summary>div,.desk170-card,.stats>div,.inventory1754-item,.machine,.source1733-group){background:var(--mc-card);border-color:var(--mc-line);border-radius:10px;box-shadow:none;min-width:0}
body .maintenance1763 article,body[data-page=workspace] #schedule .quick178-machine{background:var(--mc-card);box-shadow:none}
body .quick178-row,body[data-page=workspace] #schedule .quick178-row,.desk1727-clock,.account176-device-box,.pos1753-total,.shift1755-preview{background:var(--mc-inset);border-color:var(--mc-line);border-radius:9px}
body .quick178-machine.state-warn{border-color:#a9692e}
body .quick178-machine.state-playing,.desk1727 .desk170-card.state-playing{border-left-color:#e36a7d}
body .quick178-machine.state-expired{border-color:#a67acb}
body .desk1727 .desk170-card.state-confirmed{border-left-color:#76b8ff}
body .desk1727 .desk170-card.state-pending{border-left-color:#f4b65d}
body .desk1727 .desk170-card.state-completed{border-left-color:#55d9a1}
body .desk1727 .desk170-card.state-cancelled{border-left-color:#9999a2}
body :is(.portal-link,.workspace1761-tools a,.workspace177-links a,.site1713-links a,.account176-links a,.mobile1719-sheet>a){background:var(--mc-card);border:1px solid var(--mc-line);color:var(--ui-text);box-shadow:none;border-radius:8px;transform:none}
body :is(.portal-link,.workspace1761-tools a,.workspace177-links a,.site1713-links a,.account176-links a,.mobile1719-sheet>a):hover{background:var(--mc-hover);border-color:#81515b;transform:none}
body .portal-link strong{color:var(--ui-text);font-size:13px;margin:0}
body .portal-link small{color:var(--muted);font-size:11px;line-height:1.4}
.portal-workspace .portal-cards{gap:7px;align-items:start}
.portal-workspace .portal-cards .portal-link{padding:9px 11px;min-height:0;height:auto;justify-content:flex-start;gap:3px}
.portal-workspace .portal-cards .tone-danger strong{color:#ff9cab}
body :is(.portal-filter,.desk1727-filter,.users176-filter-form,.report1746-filter,.business1751-form,.account176-form,.site1713-form,.users176-create-form,.users176-edit-form,.users176-toggle-form,.quick178-fields,.duration1714-grid,.formgrid,.quick178-manage,.settings157-grid,.zone1740-forms){background:#1d1d23;border-color:var(--mc-line);border-radius:9px;box-shadow:none}
body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),body select,body textarea{background:var(--mc-inset);color:var(--ui-text);border-color:var(--mc-line);border-radius:8px;max-width:100%}
body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]):focus,body select:focus,body textarea:focus{border-color:#b94357;box-shadow:0 0 0 2px #ff536826}
body :is(button,a,summary,input,select,textarea):focus-visible{outline:2px solid #ff9cab;outline-offset:2px}
body label{color:#d8d8df;min-width:0}
body :is(button,.cta,.portal-primary){box-shadow:none}
body :is(.secondary,a.secondary){background:#292930;border-color:#484850;color:#eeeef2;box-shadow:none;border-radius:8px}
body :is(.secondary,a.secondary):hover{background:#37373f;color:#fff}
body .danger153,body .record-danger{border-color:#a44655}
body :is(.portal-workspace .portal-main details,.portal-public .panel details){border-color:var(--mc-line);box-shadow:none}
body .panel .notice{background:#26252b;border-color:#56515a;color:#e1dfe4}
body .scroll table{background:#19191e}
body .scroll th{background:#292930;color:#e2e2e7;border-color:var(--mc-line)}
body .scroll td{border-color:var(--mc-line)}
body .scroll tr:nth-child(even) td{background:#232329}
body .scroll td a{color:#ffb4bf}
body :is(.site1713-tabs,.guide1737-tabs) a.active{background:var(--mc-brand-surface);border-color:#8c3c4d;color:#ffe2e7}
body .mobile1719-nav{background:#19191e;border-top-color:var(--mc-line)}
body .mobile1719-sheet{background:var(--panel);border-color:var(--mc-line)}
body .mobile1719-nav>a[aria-current=page],body .mobile1719-more[open]>summary{background:var(--mc-brand-surface);color:#ffb4bf}
body .mobile1719-sheet>a[aria-current=page]{background:var(--mc-brand-surface);color:#ffb4bf;border-color:#8c3c4d}
body .quick178-dialog{background:var(--panel);border-color:var(--mc-line);box-shadow:0 12px 40px #0008}
body .quick178-fields{background:var(--mc-card)}
body .pos1753 .pos1753-products,body .pos1753 .pos1753-checkout{background:var(--panel);border-color:var(--mc-line);box-shadow:none}
body .pos1753 .pos1753-products article{background:var(--mc-card);border-color:var(--mc-line);box-shadow:none}
body .pos1753 .pos1753-products article.pos1753-selected{background:#20302d;border-color:#4bcc9c}
body .pos1753 .pos1753-stepper button{background:#303036;border-color:#505058}
body .pos1753 #pos-submit1752:not(:disabled){background:#176247;color:white}
body .metric-net{background:#192e27!important;border-color:#356c55!important}
body .hero{border-color:#54313a;box-shadow:none}
body .hero-copy{background:linear-gradient(105deg,#1d1d22,#28191f)}
/* Source grouping: explicit intrinsic rows on every role/page; no stretch even if
   older group styling is cached. Category colors are small semantic edge cues. */
#queue161 :is(.queue-new-list,.queue-list,.queue-playing1742,.queue-events1742){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));align-items:start;align-content:start;gap:8px}
#queue161 .source1733-queue-group{display:grid;grid-template-rows:max-content max-content;align-items:start;align-content:start;align-self:start;gap:6px;min-width:0;min-height:0;height:auto;margin:0;padding:0}
#queue161 .source1733-queue-group>.source1733-head{display:flex;align-items:center;justify-content:space-between;align-self:start;flex:none;min-height:0;height:auto;max-height:none;margin:0;padding:7px 10px;line-height:1.4;gap:6px;background:var(--mc-card);border-radius:7px;border-left:3px solid #94949e;color:var(--ui-text)}
#queue161 .source1733-queue-group>.source-online{border-left-color:#76b8ff}
#queue161 .source1733-queue-group>.source-walkin{border-left-color:#62d6a3}
#queue161 .source1733-head strong{font-size:13px;line-height:1.4}
#queue161 .source1733-head small{font-size:11px;color:var(--muted);line-height:1.4}
#queue161 .source1733-queue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));align-items:start;align-content:start;gap:6px;min-height:0;min-width:0}
#queue161 .queue-item{background:var(--mc-card);border-color:var(--mc-line);box-shadow:none;align-self:start;min-height:0;height:auto;padding:9px 10px;border-radius:8px}
#queue161 .queue-item>.source1733-tag{display:none}
#queue161 .queue-item>.secondary{background:var(--mc-inset);border-color:var(--mc-line);color:var(--ui-text)}
#queue161 .queue-item>.secondary:hover{background:var(--mc-hover)}
#queue161 .queue-events1742{max-height:320px}
body[data-page=workspace] #schedule .workspace1761-more,body[data-page=workspace] #schedule .quick178-row details{background:var(--panel);border-color:var(--mc-line)}
/* Booking timeline retains its distinct availability colors and existing geometry. */
body [hidden]{display:none!important}
@media(max-width:600px){.portal-workspace .portal-main>.panel{padding:10px}.portal-workspace .portal-heading{padding:9px 11px}.portal-workspace .portal-heading h1{font-size:18px}#queue161 :is(.queue-new-list,.queue-list,.queue-playing1742,.queue-events1742),#queue161 .source1733-queue-grid{grid-template-columns:minmax(0,1fr)}}
