/* Shared editorial / map-workspace theme. Functional colors remain semantic. */
/* Shared card tracks align variable-length names, metrics and actions per row. */
.workforce-page .project-grid{align-items:stretch}
.workforce-page .project-card{display:flex;flex-direction:column;min-width:0}
.workforce-page .project-card-top{flex-shrink:0}
.workforce-page .project-card-body{flex:1;display:flex;flex-direction:column;min-width:0}
.workforce-page .project-card header{align-items:flex-start;}
.workforce-page .project-card header>div{min-width:0;overflow-wrap:anywhere}
.workforce-page .project-card .status-pill{flex-shrink:0;white-space:nowrap}
.workforce-page .project-card .progress{min-height:3px;flex-shrink:0}
.workforce-page .project-card .project-card-actions{margin-top:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.workforce-page .project-card-actions .wf-button{width:100%;min-width:0;min-height:42px;padding:8px 6px;box-sizing:border-box;text-decoration:none;font-size:11px;white-space:nowrap}
.workforce-page .project-stats>div{min-width:0;align-content:start;gap:8px;overflow-wrap:anywhere}
.workforce-page .project-stats>div>span{min-height:28px}
.workforce-page .project-card .onsite-list{margin-bottom:16px}
@supports(grid-template-rows:subgrid){
 .workforce-page .project-card{display:grid;grid-row:span 8;grid-template-rows:subgrid;row-gap:0}
 .workforce-page .project-card-body{display:grid;grid-row:span 7;grid-template-rows:subgrid;row-gap:0}
}
.art-design-logo{display:block;width:160px;height:auto;max-width:100%;object-fit:contain;margin-bottom:12px}.login-wordmark .art-design-logo{width:280px;margin:0}.login-card>.art-design-logo{width:220px;margin-bottom:28px}.worker-top .art-design-logo{width:140px;margin-bottom:14px}.workforce-topbar .art-design-logo{width:140px;margin-bottom:6px}.calendar-heading .art-design-logo{width:140px}.display-header .art-design-logo{width:180px;margin:0}
.workforce-page .wf-tabs [data-view="live"] .bi-broadcast{color:#16b957;animation:workforce-live-glow 2.4s ease-in-out infinite}
.workforce-page .wf-live-indicator i{background:#24d76b;border-radius:50%;animation:workforce-live-pulse 2.4s ease-in-out infinite}
@keyframes workforce-live-glow{0%,100%{filter:drop-shadow(0 0 2px #24d76b55)}50%{filter:drop-shadow(0 0 7px #24d76baa)}}
@keyframes workforce-live-pulse{0%,100%{box-shadow:0 0 0 0 #24d76b00,0 0 4px #24d76b66}50%{box-shadow:0 0 0 5px #24d76b18,0 0 12px #24d76b99}}
@media(prefers-reduced-motion:reduce){.workforce-page .wf-tabs [data-view="live"] .bi-broadcast,.workforce-page .wf-live-indicator i{animation:none;filter:drop-shadow(0 0 3px #24d76b66)}}
/* Recurrence controls stay in the existing side panels. */
.shift-repeat{margin:0 0 18px;min-width:0}.shift-repeat fieldset{border:0;padding:0;margin:0}.shift-repeat legend{font-size:12px;color:#555;margin-bottom:10px}.weekday-toggles{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekday-toggles label{position:relative;margin:0!important;display:block!important;cursor:pointer}.weekday-toggles input{position:absolute;opacity:0;width:1px;height:1px}.weekday-toggles span{display:grid;place-items:center;min-height:38px;border:1px solid #bcbcb666;background:#ffffff50;font-size:11px;color:#454541}.weekday-toggles input:checked+span{background:#d0d0d0d9;border-color:#8d8d89;color:#26251e}.weekday-toggles input:focus-visible+span{outline:2px solid #333333;outline-offset:2px}.repeat-summary{font-size:11px;line-height:1.6;color:#62625c;margin:12px 0 0}
:root{--surface:#ececeb;--paper:#f6f6f4;--ink:#242424;--muted:#686868;--edge:#d3d3d0;--orange:#303030;--yellow:#dededb;--wf-bg:#ececeb;--wf-ink:#242424;--wf-muted:#686868;--wf-line:#d3d3d0;--wf-green:#282828;--wf-green-soft:#dededb;--wf-red:#333333}
body,body.arcana-app,body.workforce-page,body.workforce-calendar,body.arcana-login-page,body.nfc-checkin-page{background:var(--surface);color:var(--ink);font-family:Arial,Helvetica,sans-serif;--wf-bg:#ececeb;--wf-ink:#242424;--wf-muted:#686868;--wf-line:#d3d3d0;--wf-green:#282828;--wf-green-soft:#dededb;--line:#d3d3d0}
body h1,body h2,body h3{color:var(--ink);letter-spacing:-.045em}body h1{font-weight:600}body :is(button,a,input,select,textarea):focus-visible{outline:2px solid #333333;outline-offset:3px}
.fresha-rail.member-rail{background:#eeeeed;border-right:1px solid var(--edge);box-shadow:none}.fresha-rail .rail-brand{background:var(--yellow);color:#242424;border-radius:2px;letter-spacing:-.07em}.fresha-rail .rail-item{color:#343434;border-radius:0}.fresha-rail .rail-item.active{background:#dededb;color:#222;box-shadow:inset 2px 0 #252525}.fresha-rail .rail-item:hover{background:#ddd}
:is(.workforce-topbar,.settings-hero,.dashboard-hero,.member-topbar,.catalog-topbar,.topbar){background:transparent;border-bottom:1px solid var(--edge);box-shadow:none}
.workforce-topbar h1,.calendar-heading h1,.settings-hero h1{font-size:clamp(34px,4vw,54px);font-weight:600;line-height:1.05}.workforce-topbar{height:120px}.workforce-content{padding-top:28px}.calendar-heading{padding:8px 0 22px;border-bottom:1px solid var(--edge)}.calendar-heading small,.calendar-side-panel small,.eyebrow{color:#686868}.calendar-heading p{color:#686868}
:is(.wf-button,.wf-tabs button,.settings-tabs button,.dashboard-quick-actions a){border-radius:2px;box-shadow:none;font-weight:500}.wf-button.primary,.workforce-calendar .primary{background:#252525;color:#fff;border-color:#252525}.wf-button.ghost,.wf-date-range input,.wf-section-head select,.wf-export select{background:#f4f4f2;color:#242424;border-color:var(--edge)}.wf-tabs{border-bottom:1px solid var(--edge)}.wf-tabs button{color:#666}.wf-tabs button.active{background:#dededb;color:#222;border-color:#262626}.wf-live-indicator{color:#555}.wf-filterbar{background:transparent}
.wf-metrics{gap:1px;background:var(--edge);border:1px solid var(--edge)}.wf-metrics article,.wf-metrics article:nth-child(n){background:#f1f1ef;border:0;border-radius:0;box-shadow:none;padding:26px}.wf-metrics article:first-child{background:var(--yellow)}.wf-metrics article strong{font-weight:400;letter-spacing:-.05em;font-size:38px}.wf-metrics article :is(span,small){color:#626262}
:is(.project-card,.worker-card,.wf-table-wrap,.dashboard-metric-card,.dashboard-card,.settings-card,.settings-section,.permission-card,.team-card){border:1px solid var(--edge);border-radius:2px;background:#f3f3f1;box-shadow:none}.project-card-top{background:#dededb;height:4px}.project-card.active .project-card-top{background:var(--orange)}.project-card-body{padding:24px}.project-card h3{font-size:25px;font-weight:600}.project-card p,.project-card span,.worker-card span{color:#666}.project-card .status-pill{border-radius:1px;background:#e7e7e2;color:#303030;font-size:10px}.project-headcount strong{font-weight:400;font-size:38px}.project-card .progress{height:3px;background:#ddd;border-radius:0}.project-card .progress i{background:var(--orange);border-radius:0}.project-card .project-card-actions{border-top:1px solid var(--edge);padding-top:16px}.worker-avatar,.dashboard-avatar{border-radius:2px;background:var(--yellow);color:#252525}.worker-card:hover{border-color:#858580;background:#fafaf7}.variance.negative{color:#333333}.variance.positive{color:#454545}.onsite-list,.onsite-worker{border-color:var(--edge)}
.wf-table-wrap table{background:#f6f6f4;color:#252525}.wf-table-wrap :is(th,td){border-color:var(--edge)}.wf-table-wrap th{background:#e6e6e3;color:#5c5c5c}.wf-table-wrap tr:hover{background:#f0f0eb}
.wf-modal{background:transparent}.wf-modal .wf-dialog,.calendar-side-panel,#nfc-sheet>div{background:#efefed;color:#252525;border-left:1px solid #c5c5c1;border-radius:0;box-shadow:-12px 0 45px #0000000d}.wf-dialog header,.calendar-side-panel header,.wf-dialog footer,.calendar-side-panel footer{border-color:var(--edge)}.wf-dialog :is(h2,h3),.calendar-side-panel h2{color:#222;font-weight:500;font-size:30px}.wf-dialog label,.panel-fields label{color:#555}.wf-dialog :is(input,select,textarea),.workforce-calendar :is(input,select,textarea){background:#f8f8f5;color:#252525;border:1px solid #cececa;border-radius:2px!important;color-scheme:light}.wf-dialog header button,.calendar-side-panel header button,#nfc-sheet>div>button:first-child{background:transparent;color:#222;border:1px solid var(--edge);border-radius:0}.wf-dialog input:focus,.panel-fields input:focus{border-color:#777}.project-advanced{border-color:var(--edge)}.project-advanced summary,#project-map-status,#attendance-details{color:#666}#project-map,#qr-preview{border-radius:2px}#nfc-sheet code{background:#dededb;color:#252525;border-radius:0}.audit-summary{background:#e3e3df;color:#333}#shift-error,.conflict-message{background:#e0e0dc;color:#333333}#calendar-toast,.wf-toast{background:#252525;color:#fff;border-radius:2px}
.workforce-calendar button{background:#f0f0ed;border-color:var(--edge);color:#252525;border-radius:2px}.calendar-week button{color:#6b6b6b}.calendar-week button strong{color:#222}.calendar-week button.selected{background:var(--yellow);border-color:#8d8d89}.calendar-status{color:#656565}.workforce-calendar .schedule-board{background:#e7e7e4;border-color:#ccc;border-radius:2px}.workforce-calendar .time-rail,.workforce-calendar .time-heading{background:#e7e7e4}.calendar-hour{color:#666;border-color:#d4d4d0}.calendar-worker{border-color:#cdcdca}.calendar-worker>header{background:#efefec;border-bottom:1px solid #ccc}.calendar-worker header b{background:#deded8;color:#333;border-radius:0}.calendar-worker header small{color:#696969}.worker-hours{background:repeating-linear-gradient(to bottom,transparent 0,transparent 29px,#dededb 29px,#dededb 30px,transparent 30px,transparent 59px,#cdcdca 59px,#cdcdca 60px)}
body.workforce-calendar .calendar-shift{background:#f5f5f0!important;border-color:#c2c2b9!important;border-left-color:#8b8b80!important;color:#252525;border-radius:2px!important}body.workforce-calendar .calendar-shift.present{background:#dededb!important;border-color:#90908b!important;border-left-color:#303030!important}body.workforce-calendar .calendar-shift.finished{background:#e0e0dd!important;border-color:#a0a09b!important}body.workforce-calendar .calendar-shift.late{background:#dededb!important;border-color:#777773!important}.calendar-shift small{color:#666}.shift-actual{color:#333;border-color:#c5c5bd}.now-line{background:var(--orange)}.legend{background:#8b8b80}.legend.present{background:var(--orange)}.legend.finished{background:#9c9c97}.legend.late{background:#777773}#calendar-empty a{color:#333333}
/* Staff portal: map first, with flat translucent floating panels. */
.project-stats>div{background:#e6e6e1;border:1px solid #d4d4ce;border-radius:0;color:#252525}.project-stats strong{color:#252525}.project-headcount>div{display:grid;gap:8px}.project-stats span{color:#61615a}.wf-date-range input,.wf-section-head select,.wf-export select{border-radius:2px}
.worker-top>div{background:#f5f5f3ec;border:1px solid #dadad5;border-radius:2px;box-shadow:none}.worker-top h1{font-size:30px}.worker-top p,.worker-top .eyebrow{color:#666}.round{background:#f5f5f2;border:1px solid #d5d5d0;border-radius:2px;box-shadow:none;color:#333}.site-dock{background:#f3f3f0ee;border:1px solid #d2d2cc;border-radius:2px;box-shadow:none;backdrop-filter:blur(10px)}.dock-handle{background:#aaa;border-radius:0}.site-choice{background:#e6e6e0;border-radius:2px;color:#252525}.site-choice.selected{background:var(--yellow);border-color:#8d8d89}.site-choice small,#portal-message{color:#61615b}.scan-button,.result-card>button,.login-card button{background:#252525;color:#fff;border-radius:2px;font-weight:500}.scan-button{background:var(--orange);color:#222}.result-card .secondary{background:transparent;color:#555}.scan-frame{border-radius:3px}.scan-guidance p{border-radius:2px}.login-card input{border-radius:2px;border-color:#ccc;background:#f8f8f4}.login-card h1{font-size:56px}.login-card :is(p,small){color:#666}.login-brand-panel{background:#deded9}.login-wordmark-mark{background:var(--yellow);color:#252525;border-radius:0}.arcana-login-page .login-card{background:#f3f3ef;border:1px solid #d3d3cc;border-radius:2px;box-shadow:none}.login-stage{background:transparent}
/* Keep QR modules black on a pure white quiet zone for reliable scanning. */
.display-header{color:#333}.display-pill{background:var(--yellow);color:#252525;border:0;border-radius:2px;font-size:20px}.qr-card{border:1px solid #d0d0ca;border-radius:2px;box-shadow:none;background:#f7f7f4}.card-heading{background:#e3e3df;color:#555}.qr-frame{background:#fff}.qr-card .location,.rotation{color:#666}.site-address{background:var(--orange);border-top:0;color:#202020}.site-address p,.location-icon{color:#2f2b28}.instruction{border-radius:2px;border:1px solid #d1d1ca;background:#f1f1ed}.instruction>span{color:#555}.instruction small{color:#666}#site-display>footer{color:#666}#site-display>footer button{border-radius:2px;border:1px solid #c4c4be;color:#333}.rotation progress::-webkit-progress-value{background:#303030}.rotation progress::-moz-progress-bar{background:#303030}
@media(max-width:600px){.workforce-topbar h1,.calendar-heading h1{font-size:34px}.workforce-topbar{height:auto;min-height:100px}.worker-top h1{font-size:24px}.worker-top>div{padding:16px}.wf-metrics article{padding:18px}.wf-metrics article strong{font-size:30px}}
/* Frosted glass: quiet depth without compromising text or scannable QR contrast. */
.scan-button{background:#292929;color:#fff}.site-address,.site-address p,.site-address .location-icon{color:#fff}.site-address{background:#303030}.live-dot,body.connected .live-dot{background:#686868;box-shadow:none}.wf-live-indicator i{background:#686868}.wf-live-indicator{color:#555}.status-pill,.variance.negative,.variance.positive{color:#333}.calendar-shift.present small{color:#454545}
body.arcana-app,body.arcana-login-page,body.nfc-checkin-page{background:radial-gradient(ellipse at 72% 12%,#ffffffaa,transparent 48%),radial-gradient(ellipse at 12% 85%,#c3c7c955,transparent 52%),#dddddb;background-attachment:fixed}
.fresha-rail.member-rail{background:#f4f4f270;backdrop-filter:blur(24px) saturate(.75);-webkit-backdrop-filter:blur(24px) saturate(.75);border-color:#ffffff65}
:is(.project-card,.worker-card,.wf-table-wrap,.dashboard-metric-card,.dashboard-card,.settings-card,.settings-section,.permission-card,.team-card){background:#f7f7f56b;border-color:#ffffff7a;backdrop-filter:blur(18px) saturate(.8);-webkit-backdrop-filter:blur(18px) saturate(.8);box-shadow:inset 0 1px 0 #ffffffa6,0 8px 32px #45494b06}
.wf-metrics{background:#ffffff22;border-color:#ffffff6b}.wf-metrics article,.wf-metrics article:nth-child(n){background:#f4f4f46b;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:inset 0 1px 0 #ffffffa0}.wf-metrics article:first-child{background:#dddddda8}
.wf-modal .wf-dialog,.calendar-side-panel,#nfc-sheet>div{background:#f4f4f2ba;backdrop-filter:blur(30px) saturate(.6);-webkit-backdrop-filter:blur(30px) saturate(.6);border-left:1px solid #ffffffa3;box-shadow:inset 1px 0 0 #fff8,-16px 0 55px #353b4210}
.wf-dialog :is(input,select,textarea),.workforce-calendar :is(input,select,textarea){background:#ffffff63;border-color:#bfc0b94d}.wf-dialog header,.calendar-side-panel header,.wf-dialog footer,.calendar-side-panel footer{border-color:#b9b9b44d}.project-stats>div{background:#eeeee969;border-color:#ffffff75}.project-card .status-pill{background:#ffffff7d}.workforce-calendar .schedule-board{background:#f1f1ee6b;border-color:#ffffff90}.calendar-worker>header,.workforce-calendar .time-rail,.workforce-calendar .time-heading{background:#eeeeebe8}.worker-top>div,.site-dock{background:#f8f8f5a8;backdrop-filter:blur(24px) saturate(.7);-webkit-backdrop-filter:blur(24px) saturate(.7);border-color:#ffffffae;box-shadow:0 12px 36px #323d4110}.round{background:#f7f7f2be;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-color:#ffffffaa}.qr-card{background:#f8f8f5b8;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-color:#ffffffb3}.qr-frame{background:#fff}.instruction{background:#f5f5f0a3;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-color:#ffffffa1}.arcana-login-page .login-card{background:#f7f7f3a6;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-color:#fff9}
@supports not (backdrop-filter:blur(1px)){.wf-modal .wf-dialog,.calendar-side-panel,#nfc-sheet>div,.worker-top>div,.site-dock{background:#f2f2ef}}
@media(prefers-reduced-transparency:reduce){.wf-modal .wf-dialog,.calendar-side-panel,#nfc-sheet>div,.worker-top>div,.site-dock,.project-card,.worker-card,.wf-metrics article{background:#f2f2ef;backdrop-filter:none;-webkit-backdrop-filter:none}}
/* Semantic status colors remain independent of the brand accent. */
body.workforce-calendar .calendar-shift.scheduled{background:#eee4ffdd!important;border-color:#bb91fa!important;border-left:4px solid #a64dff!important}
body.workforce-calendar .calendar-shift.present{background:#e4ffd6dd!important;border-color:#97d972!important;border-left:4px solid #83ff16!important}
body.workforce-calendar .calendar-shift.finished{background:#dcfaffdd!important;border-color:#71cddd!important;border-left:4px solid #00e5ff!important}
body.workforce-calendar .calendar-shift.late{background:#ffe0f0dd!important;border-color:#eb88b8!important;border-left:4px solid #ff38a2!important}
body.workforce-calendar .calendar-shift :is(strong,span,small,.shift-actual){color:#25302b}
.workforce-calendar .legend.scheduled{background:#a64dff}.workforce-calendar .legend.present{background:#83ff16}.workforce-calendar .legend.finished{background:#00e5ff}.workforce-calendar .legend.late{background:#ff38a2}
.project-card.active{--project-status-neon:#83ff16}.project-card.draft{--project-status-neon:#c095ff}.project-card.completed{--project-status-neon:#00e5ff}
.project-card:is(.active,.draft,.completed) .project-card-top{background:var(--project-status-neon)}
.project-card:is(.active,.draft,.completed) .status-pill{background:var(--project-status-neon);color:#202720;border:1px solid #20272014;font-weight:700;padding:5px 8px;letter-spacing:.04em}
/* Amber brand accent; dark foregrounds retain contrast on the bright surface. */
:root{--accent:#FFB92A;--accent-ink:#242018}
.fresha-rail .rail-brand,.login-wordmark-mark{background:var(--accent);color:var(--accent-ink)}
.fresha-rail .rail-item.active{background:var(--accent);color:#242424;box-shadow:inset 2px 0 var(--accent)}
.wf-button.primary,.workforce-calendar .primary,.scan-button,.login-card button,.result-card>button:not(.secondary){background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.wf-button.primary:hover,.workforce-calendar .primary:hover,.scan-button:hover,.login-card button:hover{background:#f2ab1b;border-color:#f2ab1b}
.wf-tabs button.active,.calendar-week button.selected,.site-choice.selected{background:var(--accent);border-color:#b17b13;color:#242018}
.weekday-toggles input:checked+span{background:var(--accent);border-color:#b17b13;color:var(--accent-ink)}
.display-pill{background:var(--accent);color:var(--accent-ink)}
.now-line{background:var(--accent)}
body :is(button,a,input,select,textarea):focus-visible{outline-color:#946300}
.weekday-toggles input:focus-visible+span{outline-color:#946300}
.shift-day-picker{min-width:0;margin:8px 0 16px}
.shift-month-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.shift-month-nav strong{font-size:14px}
.shift-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.shift-date-grid>span{text-align:center;font-size:11px;color:#777;padding:5px}
.shift-date-grid button{padding:9px 2px!important;min-width:0;background:transparent!important;color:inherit!important}
.shift-date-grid button[aria-pressed=true]{background:var(--accent,#ffb92a)!important;border-color:var(--accent,#ffb92a)!important;color:#202020!important}
.shift-day-picker>p{font-size:11px;color:#666;line-height:1.5}
.shift-selected-day{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:12px 0;border-top:1px solid #bbb6}
.shift-selected-day header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:0!important;border:0!important}
.shift-selected-day header strong{font-size:12px}
.shift-selected-day header button{padding:2px 8px!important;font-size:18px}
.shift-selected-day label{min-width:0;font-size:11px!important;margin:0!important}
.shift-selected-day input{min-width:0;width:100%;padding:8px 5px!important}
#site-display .qr-card{margin-top:18px}
#site-display .qr-section{background:#fff;margin:18px auto 24px;width:min(92%,416px);padding:0 12px 18px}
#site-display .qr-frame{margin:0 auto;padding-bottom:8px}
#site-display .rotation{padding:0 12px;color:#666}
#site-display #display-clock{display:block;font-size:48px;line-height:1.1;font-weight:600;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:#242424;padding-top:18px;margin:0 0 6px}
#site-display .rotation progress{margin-top:10px}
body.connected #site-display .live-dot{background:#2ed573;box-shadow:0 0 7px #2ed573aa;animation:site-code-glow 2s ease-in-out infinite}
@keyframes site-code-glow{0%,100%{box-shadow:0 0 0 3px #2ed57318,0 0 6px #2ed57388}50%{box-shadow:0 0 0 5px #2ed57328,0 0 13px #2ed573cc}}
@media(prefers-reduced-motion:reduce){body.connected #site-display .live-dot{animation:none}}
