:root{--bg:#f7f7fb;--text:#18181b;--muted:#71717a;--border:#e4e4e7;--accent:#8b1cf6;--accent2:#d946ef;--danger:#b42318;--green:#166534}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}a{color:inherit}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 10%,rgba(217,70,239,.12),transparent 32rem),radial-gradient(circle at 90% 80%,rgba(139,28,246,.10),transparent 30rem),var(--bg)}
.auth-card{width:min(100%,430px);background:#fff;border:1px solid var(--border);border-radius:24px;padding:32px;box-shadow:0 24px 70px rgba(24,24,27,.10)}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:30px;text-decoration:none}.brand h1{font-size:24px;margin:0}.brand p{margin:2px 0 0;color:var(--muted);font-size:14px}
.brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;font-weight:800}
h1{margin:6px 0 8px}h2{margin:0 0 8px}.muted{color:var(--muted)}.form{display:grid;gap:18px}label{font-weight:650;font-size:14px}
input,textarea{width:100%;border:1px solid var(--border);border-radius:12px;padding:14px 15px;font:inherit;outline:none;background:#fff}.form label{display:grid;gap:7px}
input:focus,textarea:focus{border-color:#a855f7;box-shadow:0 0 0 3px rgba(168,85,247,.12)}
button,.primary-link{border:0;border-radius:12px;padding:14px 18px;font:inherit;font-weight:750;cursor:pointer;text-decoration:none}.form button,.primary-link,.submit-wide{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff}
.alert{padding:13px 15px;border-radius:12px;margin:0 0 18px}.alert.error{background:#fff0f0;color:var(--danger);border:1px solid #ffd0d0}.alert.success{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}
.security-note{text-align:center;color:var(--muted);font-size:13px;margin-top:22px}
.topbar{height:70px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100% - 1180px)/2))}
.brand.compact{margin:0}.ghost,.ghost-link{background:#fff;border:1px solid var(--border);padding:10px 14px;border-radius:11px;text-decoration:none}
.container{max-width:1180px;margin:0 auto;padding:36px 20px}.container.narrow{max-width:850px}
.hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px;border-radius:24px;background:#fff;border:1px solid var(--border);margin-bottom:24px}.hero h1{font-size:32px}.hero p{margin:0;color:var(--muted)}
.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:800;color:#9333ea}
.summary-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.mini-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:20px}.mini-card span,.mini-card small{display:block;color:var(--muted)}.mini-card strong{display:block;font-size:26px;margin:7px 0 2px}
.grid{display:grid;grid-template-columns:2fr 1fr;gap:24px}.panel{background:#fff;border:1px solid var(--border);border-radius:20px;padding:24px}
.booking-list{display:grid;gap:4px;margin-top:18px}.booking{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid var(--border)}.booking:last-child{border-bottom:0}.booking span{display:block;color:var(--muted);font-size:14px;margin-top:4px}
.danger-btn{background:#fff1f2;color:#be123c;padding:9px 12px;border:1px solid #fecdd3}.close-wide{width:100%;margin-top:14px}
.quick-links{display:grid;gap:10px;margin-top:16px}.quick-links a{padding:13px 14px;border-radius:12px;border:1px solid var(--border);text-decoration:none;font-weight:650}.admin-link{background:#faf5ff;border-color:#e9d5ff!important}
.empty{margin-top:18px;padding:24px;border:1px dashed var(--border);border-radius:14px;color:var(--muted)}
.date-grid{display:grid;gap:12px;margin:24px 0}.date-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 16px;border:1px solid var(--border);border-radius:15px;cursor:pointer;background:#fff}.date-card:has(input:checked){border-color:#a855f7;box-shadow:0 0 0 3px rgba(168,85,247,.10);background:#fcf7ff}.date-card.disabled{cursor:not-allowed;background:#fafafa;opacity:.68}.date-main{display:flex;align-items:center;gap:13px}.date-main input{width:20px;height:20px;accent-color:#9333ea}.date-main span{display:block;color:var(--muted);font-size:13px;margin-top:3px}.pill{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:750}.pill.ok{color:var(--green);background:#dcfce7}.muted-pill{background:#f4f4f5;color:#71717a}.submit-wide{width:100%;border:0;border-radius:13px;padding:15px;font-weight:800;font-size:15px;cursor:pointer}
.chat{display:grid;gap:12px;margin:18px 0 24px}.bubble{max-width:82%;padding:12px 14px;border-radius:16px;background:#f4f4f5}.bubble.mine{margin-left:auto;background:#f3e8ff}.bubble.admin-bubble{background:#eef2ff}.bubble strong{display:block;font-size:13px;margin-bottom:5px}.bubble small{display:block;color:var(--muted);margin-top:7px;font-size:11px}
.help-sections{display:grid;gap:14px;margin-top:22px}.help-sections article{border:1px solid var(--border);border-radius:16px;padding:18px}.help-sections h2{font-size:18px}.help-sections p{margin:8px 0 0;line-height:1.55;color:#52525b}
.admin-cards{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.stat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:18px}.stat-grid div{padding:14px;border:1px solid var(--border);border-radius:14px}.stat-grid span{display:block;color:var(--muted);font-size:12px}.stat-grid strong{display:block;font-size:24px;margin-top:5px}.admin-grid{grid-template-columns:1fr 1fr}
.ticket-list{display:grid;gap:10px;margin-top:18px}.ticket{display:flex;justify-content:space-between;gap:14px;padding:15px;border:1px solid var(--border);border-radius:14px;text-decoration:none}.ticket span{display:block;color:var(--muted);font-size:13px;margin-top:4px}.ticket-meta{font-size:12px;color:var(--muted)}
@media(max-width:760px){.grid,.admin-cards,.summary-cards{grid-template-columns:1fr}.hero{align-items:flex-start;flex-direction:column}.primary-link{width:100%;text-align:center}.auth-card{padding:24px}.hero h1{font-size:26px}.booking{align-items:flex-start;flex-direction:column}.booking form,.danger-btn{width:100%}.date-card{align-items:flex-start;flex-direction:column}.pill{margin-left:33px}.admin-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:1fr 1fr}.ticket{flex-direction:column}.bubble{max-width:92%}}

.toolbar,.shift-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.date-tab{padding:9px 11px;border:1px solid var(--border);border-radius:10px;text-decoration:none;background:#fff;font-size:13px}.date-tab.active{background:#f3e8ff;border-color:#d8b4fe;color:#7e22ce;font-weight:800}
.inline-form{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;margin-top:14px}.inline-form label{display:grid;gap:7px}.inline-form button,.search-form button,.employee-add-grid button{background:#18181b;color:#fff}
.inline-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.ok-btn{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:14px}
.attendance-list{display:grid;gap:10px;margin-top:18px}.attendance-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px;border:1px solid var(--border);border-radius:14px}.attendance-row span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.attendance-actions{display:flex;gap:8px;flex-wrap:wrap}
.table-wrap{overflow:auto;margin-top:18px}table{width:100%;border-collapse:collapse}th,td{padding:12px 10px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}th{font-size:12px;color:var(--muted);text-transform:uppercase}
.top-actions{display:flex;gap:10px;align-items:center}.top-actions form{margin:0}.search-form{display:flex;gap:8px;min-width:min(100%,420px)}.search-form input{min-width:0}
.employee-add-grid{display:grid;grid-template-columns:repeat(5,1fr) auto;gap:12px;align-items:end;margin-top:16px}.employee-add-grid label{display:grid;gap:7px}.employee-add-grid select{width:100%;border:1px solid var(--border);border-radius:12px;padding:14px 12px;background:#fff;font:inherit}
@media(max-width:900px){.employee-add-grid{grid-template-columns:1fr 1fr}.employee-add-grid button{grid-column:1/-1}}
@media(max-width:760px){.inline-form{grid-template-columns:1fr}.section-head,.attendance-row{align-items:flex-start;flex-direction:column}.attendance-actions,.search-form{width:100%}.attendance-actions button{flex:1}.employee-add-grid{grid-template-columns:1fr}}


.badge-link-form{display:flex;gap:6px;min-width:220px}.badge-link-form input{padding:9px 10px;min-width:110px}.badge-link-form button{padding:9px 10px;background:#18181b;color:#fff}

.install-note{margin-top:12px;color:var(--muted);font-size:13px}

.telegram-unlink-btn{margin-top:7px;padding:7px 9px;font-size:12px;white-space:nowrap}


.admin-switch-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;margin:-8px 0 24px;border:1px solid #e9d5ff;border-radius:18px;background:linear-gradient(135deg,#faf5ff,#fff)}
.admin-switch-banner strong{display:block;font-size:18px;margin-top:4px}
.admin-switch-banner p{margin:5px 0 0;color:var(--muted)}
.admin-enter-link{background:#faf5ff!important;border-color:#d8b4fe!important;color:#7e22ce}
@media(max-width:760px){.admin-switch-banner{align-items:flex-start;flex-direction:column}.admin-switch-banner .primary-link{width:100%;text-align:center}}


/* ===== v7.3 admin polish ===== */
.admin-nav{
  position:sticky;top:0;z-index:20;
  display:flex;gap:8px;overflow-x:auto;
  padding:10px max(20px,calc((100% - 1180px)/2));
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.admin-nav a{
  flex:0 0 auto;
  padding:9px 12px;border-radius:10px;
  text-decoration:none;font-size:13px;font-weight:700;color:#52525b;
}
.admin-nav a:hover{background:#f4f4f5;color:#18181b}
.admin-nav a.active{
  color:#7e22ce;background:#f3e8ff;border:1px solid #e9d5ff;
}

.admin-hero{
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  padding:28px 30px;margin-bottom:24px;
  border-radius:24px;border:1px solid #e9d5ff;
  background:
    radial-gradient(circle at 85% 10%,rgba(217,70,239,.10),transparent 22rem),
    linear-gradient(135deg,#fff,#faf5ff);
  box-shadow:0 14px 34px rgba(88,28,135,.07);
}
.admin-hero h1{font-size:34px;margin:4px 0 6px}
.admin-hero p{margin:0;color:var(--muted)}

.admin-summary-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px
}
.admin-shift-card{
  background:#fff;border:1px solid var(--border);border-radius:22px;padding:22px;
  box-shadow:0 8px 24px rgba(24,24,27,.04)
}
.shift-card-head{
  display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px
}
.shift-card-head>div{display:flex;align-items:center;gap:12px}
.shift-icon{
  width:46px;height:46px;display:grid;place-items:center;border-radius:14px;
  background:#faf5ff;font-size:22px
}
.shift-card-head h2{font-size:20px;margin:3px 0 0}
.status-chip{
  padding:7px 10px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap
}
.status-chip.green{background:#ecfdf3;color:#166534}
.status-chip.red{background:#fff1f2;color:#be123c}
.metric-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.metric{
  padding:14px;border-radius:14px;background:#fafafa;border:1px solid #f0f0f1;
  min-width:0
}
.metric span{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
.metric strong{font-size:24px;line-height:1}

.admin-action-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px
}
.admin-action-grid a{
  display:flex;align-items:flex-start;gap:12px;
  padding:16px;border:1px solid var(--border);border-radius:16px;
  text-decoration:none;background:#fff;transition:.15s ease
}
.admin-action-grid a:hover{
  transform:translateY(-1px);border-color:#d8b4fe;box-shadow:0 8px 20px rgba(126,34,206,.07)
}
.admin-action-grid a>span{font-size:22px;line-height:1.2}
.admin-action-grid strong{display:block;font-size:15px}
.admin-action-grid small{display:block;color:var(--muted);font-size:12px;margin-top:4px;line-height:1.35}

.panel{
  box-shadow:0 8px 24px rgba(24,24,27,.03)
}
.table-wrap table tbody tr:hover{background:#fafafa}
.table-wrap td,.table-wrap th{vertical-align:middle}

.alert{box-shadow:0 5px 14px rgba(24,24,27,.03)}
button,.ghost-link,.primary-link,.quick-links a,.date-tab{
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease,background .12s ease
}
button:hover,.ghost-link:hover,.primary-link:hover{transform:translateY(-1px)}

.admin-switch-banner.elevated{
  box-shadow:0 10px 24px rgba(126,34,206,.08)
}

@media(max-width:900px){
  .admin-summary-grid{grid-template-columns:1fr}
  .admin-action-grid{grid-template-columns:1fr 1fr}
  .metric-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
  .admin-nav{padding:9px 12px}
  .admin-hero{align-items:flex-start;flex-direction:column;padding:22px}
  .admin-hero .primary-link{width:100%;text-align:center}
  .admin-hero h1{font-size:28px}
  .admin-action-grid{grid-template-columns:1fr}
  .metric-grid{grid-template-columns:1fr 1fr}
  .shift-card-head{align-items:flex-start;flex-direction:column}
  .status-chip{align-self:flex-start}
}


.system-status{margin:20px 0;padding:14px 16px;border-radius:14px}
.system-status.good{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}
.system-status.bad{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.check-list{display:grid;gap:8px;margin:18px 0}
.check-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 14px;border:1px solid var(--border);border-radius:13px;background:#fff}
.check-row>div{display:flex;align-items:center;gap:10px}
.check-icon{font-size:17px}.check-value{color:var(--muted);font-size:13px;text-align:right}
.info-box{padding:16px;border-radius:14px;background:#faf5ff;border:1px solid #e9d5ff;margin-top:18px}
.info-box p{margin:7px 0 0;color:#52525b;line-height:1.5}


/* ===== v8 full features ===== */
:root[data-theme="dark"]{--bg:#111113;--text:#f4f4f5;--muted:#a1a1aa;--border:#303036}
:root[data-theme="dark"] body{background:#111113;color:#f4f4f5}
:root[data-theme="dark"] .panel,:root[data-theme="dark"] .topbar,:root[data-theme="dark"] .admin-nav,
:root[data-theme="dark"] .auth-card,:root[data-theme="dark"] .mini-card,:root[data-theme="dark"] .admin-shift-card,
:root[data-theme="dark"] .date-card,:root[data-theme="dark"] input,:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select{background:#1b1b1f;color:#f4f4f5;border-color:#303036}
:root[data-theme="dark"] .metric,:root[data-theme="dark"] .help-sections article{background:#202024;border-color:#303036}
:root[data-theme="dark"] .admin-hero{background:#1b1b1f}
:root[data-theme="dark"] .table-wrap table tbody tr:hover{background:#222228}
.floating-ui{position:fixed;right:14px;bottom:14px;z-index:99;display:flex;gap:7px}
.floating-ui-btn{width:42px;height:42px;padding:0;border-radius:50%;background:#18181b;color:white;box-shadow:0 8px 22px rgba(0,0,0,.18)}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
.detail-list{display:grid;gap:2px;margin-top:16px}.detail-list>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border)}.detail-list span{color:var(--muted)}
.profile-metrics{grid-template-columns:repeat(4,1fr)}.reliability-big{font-size:42px;font-weight:850;margin-top:20px}
.password-grid{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:end}.password-grid label{display:grid;gap:7px}.password-grid button{background:#18181b;color:#fff}
.calendar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px}.calendar-day{padding:16px;border:1px solid var(--border);border-radius:16px;display:grid;gap:8px}.calendar-day.booked{border-color:#c084fc;background:#faf5ff}.calendar-day span{color:var(--muted);font-size:13px}.calendar-day button{background:#18181b;color:#fff;padding:9px}
.filters-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end;margin-top:18px}.filters-grid label{display:grid;gap:6px}.filters-grid select{padding:13px;border:1px solid var(--border);border-radius:12px}.filters-grid button,.bulk-bar button{background:#18181b;color:#fff}
.bulk-bar{display:flex;align-items:center;gap:12px;margin-top:18px;margin-bottom:18px}.bulk-bar select{padding:10px;border:1px solid var(--border);border-radius:10px}.bulk-bar button{margin-left:auto}
.export-buttons{display:flex;gap:8px;flex-wrap:wrap}.small{padding:7px 9px!important;font-size:12px}
.attention-panel{margin-top:24px}.attention-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.attention-card{display:flex;flex-direction:column;gap:5px;padding:14px;border-radius:14px;text-decoration:none;border:1px solid var(--border)}.attention-card span{font-size:12px;color:var(--muted)}.attention-card.warn{background:#fffbeb;border-color:#fde68a}.attention-card.danger{background:#fff1f2;border-color:#fecdd3}.attention-card.info{background:#eff6ff;border-color:#bfdbfe}.attention-card form{margin-top:7px}.attention-card>a{text-decoration:none;color:inherit;display:grid;gap:5px}
.scanner-video{display:block;width:100%;max-height:480px;background:#111;border-radius:16px;margin:18px 0}
.chart-legend{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:13px}.bar-chart{display:flex;align-items:flex-end;gap:8px;overflow-x:auto;height:220px;padding:24px 4px 0}.bar-day{display:grid;gap:7px;min-width:48px;text-align:center}.bars{height:170px;display:flex;align-items:flex-end;justify-content:center;gap:3px}.bar{display:block;width:9px;min-height:2px;border-radius:5px 5px 0 0}.bar.booked{background:#9333ea}.bar.present{background:#16a34a}.bar.noshow{background:#e11d48}
@media(max-width:900px){.profile-grid{grid-template-columns:1fr}.calendar-grid{grid-template-columns:1fr 1fr}.filters-grid{grid-template-columns:1fr 1fr}.filters-grid button{grid-column:1/-1}.password-grid{grid-template-columns:1fr 1fr}.password-grid button{grid-column:1/-1}}
@media(max-width:600px){.calendar-grid,.attention-grid{grid-template-columns:1fr}.filters-grid,.password-grid{grid-template-columns:1fr}.bulk-bar{align-items:stretch;flex-direction:column}.bulk-bar button{margin-left:0}.profile-metrics{grid-template-columns:1fr 1fr}}


.first-login-box{display:grid;gap:7px;margin-top:18px;padding:14px;border:1px solid var(--border);border-radius:14px;background:#fafafa}
.first-login-box span,.first-login-help span{color:var(--muted);font-size:13px;line-height:1.45}
.first-login-box .ghost-link{margin-top:4px;text-align:center}
.first-login-help{display:grid;gap:5px;margin-top:18px;padding:14px;border:1px solid #e9d5ff;border-radius:14px;background:#faf5ff}
.chat-page{padding-bottom:20px}.chat-panel{padding:0;overflow:hidden}.chat-panel>.section-head{padding:22px 22px 16px}
.live-chat{height:min(62vh,650px);overflow-y:auto;padding:14px 18px;background:#f8f8fb;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.live-message{max-width:88%;margin:0 0 12px;padding:11px 13px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 3px 10px rgba(24,24,27,.03)}
.live-message-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}.live-message-head strong{font-size:13px;color:#7e22ce}.live-message-head span{font-size:12px;color:var(--muted)}.live-message-head time{margin-left:auto;font-size:11px;color:var(--muted)}
.live-message-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.42}
.chat-delete{width:26px;height:26px;padding:0;border-radius:8px;background:#fff1f2;color:#be123c;border:1px solid #fecdd3}
.chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 18px;background:#fff}.chat-compose textarea{resize:none}.chat-compose button{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff}
.chat-error{min-height:20px;padding:0 18px 12px;color:#b42318;font-size:13px;background:#fff}
:root[data-theme="dark"] .first-login-box,:root[data-theme="dark"] .live-chat{background:#16161a}
:root[data-theme="dark"] .live-message,:root[data-theme="dark"] .chat-compose,:root[data-theme="dark"] .chat-error{background:#1b1b1f}
@media(max-width:600px){.chat-compose{grid-template-columns:1fr}.chat-compose button{width:100%}.live-chat{height:60vh}.live-message{max-width:96%}.live-message-head time{margin-left:0}}


/* ===== v8.2 dark theme contrast fix ===== */
:root[data-theme="dark"] body{
  background:#0f1117;
  color:#f8fafc;
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .admin-nav,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .admin-shift-card,
:root[data-theme="dark"] .auth-card{
  background:#171a21;
  border-color:#2b313c;
  color:#f8fafc;
}

:root[data-theme="dark"] .admin-hero{
  background:linear-gradient(135deg,#171a21,#1d1725);
  border-color:#3a2a49;
}

:root[data-theme="dark"] .admin-action-grid a,
:root[data-theme="dark"] .quick-links a,
:root[data-theme="dark"] .date-card,
:root[data-theme="dark"] .mini-card,
:root[data-theme="dark"] .booking,
:root[data-theme="dark"] .calendar-day,
:root[data-theme="dark"] .live-message{
  background:#20242d;
  border-color:#343b47;
  color:#f8fafc;
  opacity:1;
}

:root[data-theme="dark"] .admin-action-grid a:hover,
:root[data-theme="dark"] .quick-links a:hover{
  background:#272c36;
  border-color:#7c3aed;
}

:root[data-theme="dark"] .admin-action-grid strong,
:root[data-theme="dark"] .quick-links strong,
:root[data-theme="dark"] .booking strong,
:root[data-theme="dark"] .calendar-day strong,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] .brand,
:root[data-theme="dark"] .brand strong{
  color:#f8fafc;
  opacity:1;
}

:root[data-theme="dark"] .admin-action-grid small,
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .booking span,
:root[data-theme="dark"] .calendar-day span,
:root[data-theme="dark"] .metric span,
:root[data-theme="dark"] .detail-list span,
:root[data-theme="dark"] .live-message-head span,
:root[data-theme="dark"] .live-message-head time{
  color:#b8c0cc;
  opacity:1;
}

:root[data-theme="dark"] .metric{
  background:#20242d;
  border-color:#343b47;
}

:root[data-theme="dark"] .metric strong{
  color:#ffffff;
}

:root[data-theme="dark"] .admin-nav a{
  color:#d4d8df;
}

:root[data-theme="dark"] .admin-nav a:hover{
  background:#252a33;
  color:#ffffff;
}

:root[data-theme="dark"] .admin-nav a.active{
  background:#31203f;
  border-color:#60437a;
  color:#ead5ff;
}

:root[data-theme="dark"] .ghost-link,
:root[data-theme="dark"] .ghost{
  color:#e5e7eb;
  border-color:#3a414d;
  background:#20242d;
}

:root[data-theme="dark"] .ghost-link:hover,
:root[data-theme="dark"] .ghost:hover{
  background:#292f3a;
  color:#ffffff;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select{
  background:#11141a;
  color:#f8fafc;
  border-color:#3a414d;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder{
  color:#7f8793;
}

:root[data-theme="dark"] .table-wrap table{
  color:#f1f5f9;
}

:root[data-theme="dark"] .table-wrap th{
  color:#cbd5e1;
  background:#191d24;
}

:root[data-theme="dark"] .table-wrap td{
  border-color:#2d3440;
}

:root[data-theme="dark"] .table-wrap table tbody tr:hover{
  background:#222731;
}

:root[data-theme="dark"] .status-chip.green{
  background:#123521;
  color:#9be4b0;
}

:root[data-theme="dark"] .status-chip.red{
  background:#3b171c;
  color:#ffb4bf;
}

:root[data-theme="dark"] .attention-card.warn{
  background:#332b14;
  border-color:#66531e;
  color:#fff3bf;
}

:root[data-theme="dark"] .attention-card.danger{
  background:#35191f;
  border-color:#6b2d39;
  color:#ffd1d8;
}

:root[data-theme="dark"] .attention-card.info{
  background:#172a40;
  border-color:#284e76;
  color:#d2e8ff;
}

:root[data-theme="dark"] .first-login-box,
:root[data-theme="dark"] .first-login-help,
:root[data-theme="dark"] .info-box{
  background:#20242d;
  border-color:#343b47;
  color:#f8fafc;
}

:root[data-theme="dark"] .live-chat{
  background:#11141a;
}

:root[data-theme="dark"] .chat-compose,
:root[data-theme="dark"] .chat-error{
  background:#171a21;
}

:root[data-theme="dark"] .admin-action-grid a *,
:root[data-theme="dark"] .quick-links a *{
  opacity:1;
}


/* ===== v8.3 Armenian UI readability ===== */
html[lang="hy"] .admin-nav a,
html[lang="hy"] .admin-action-grid strong,
html[lang="hy"] .quick-links a,
html[lang="hy"] button{
  letter-spacing:0;
}
html[lang="hy"] .admin-action-grid small,
html[lang="hy"] .muted{
  line-height:1.45;
}


/* ===== v8.4 complete dark-theme contrast ===== */
:root[data-theme="dark"]{
  --bg:#0f1117;
  --text:#f8fafc;
  --muted:#b8c0cc;
  --border:#343b47;
}

:root[data-theme="dark"] body{background:#0f1117!important;color:#f8fafc!important}

:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .admin-switch-banner,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .mini-card,
:root[data-theme="dark"] .admin-shift-card,
:root[data-theme="dark"] .calendar-day,
:root[data-theme="dark"] .date-card,
:root[data-theme="dark"] .booking,
:root[data-theme="dark"] .help-sections article,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .live-message{
  background:#181c24!important;
  border-color:#343b47!important;
  color:#f8fafc!important;
  opacity:1!important;
}

:root[data-theme="dark"] .hero *,
:root[data-theme="dark"] .admin-switch-banner *,
:root[data-theme="dark"] .panel *,
:root[data-theme="dark"] .mini-card *,
:root[data-theme="dark"] .booking *,
:root[data-theme="dark"] .date-card *{
  opacity:1;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] strong,
:root[data-theme="dark"] .hero h1,
:root[data-theme="dark"] .hero h2,
:root[data-theme="dark"] .admin-switch-banner strong,
:root[data-theme="dark"] .quick-links a,
:root[data-theme="dark"] .admin-action-grid strong{
  color:#ffffff!important;
}

:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] p,
:root[data-theme="dark"] small,
:root[data-theme="dark"] .mini-card span,
:root[data-theme="dark"] .metric span,
:root[data-theme="dark"] .detail-list span,
:root[data-theme="dark"] .date-main span{
  color:#c3cad4!important;
}

:root[data-theme="dark"] .quick-links a,
:root[data-theme="dark"] .admin-action-grid a{
  background:#20252e!important;
  border-color:#3a424f!important;
  color:#fff!important;
}
:root[data-theme="dark"] .quick-links a:hover,
:root[data-theme="dark"] .admin-action-grid a:hover{
  background:#292f39!important;
  border-color:#8b5cf6!important;
}

:root[data-theme="dark"] .primary-link,
:root[data-theme="dark"] .submit-wide{
  background:linear-gradient(135deg,#7c3aed,#d946ef)!important;
  color:#fff!important;
  border-color:transparent!important;
}

:root[data-theme="dark"] .admin-enter-link{
  background:#7c3aed!important;
  border-color:#9f67ff!important;
  color:#fff!important;
}
:root[data-theme="dark"] .admin-enter-link *{color:#fff!important}

:root[data-theme="dark"] .ghost,
:root[data-theme="dark"] .ghost-link{
  background:#20252e!important;
  border-color:#3a424f!important;
  color:#f3f4f6!important;
}

:root[data-theme="dark"] .date-tab{
  background:#20252e!important;
  border-color:#3a424f!important;
  color:#d7dce4!important;
}
:root[data-theme="dark"] .date-tab.active{
  background:#6d28d9!important;
  border-color:#8b5cf6!important;
  color:#fff!important;
}
:root[data-theme="dark"] .date-tab:disabled,
:root[data-theme="dark"] .date-card.disabled{
  opacity:.58!important;
}
:root[data-theme="dark"] .date-tab:disabled{
  color:#b7bdc8!important;
  background:#1c2027!important;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select{
  background:#11151c!important;
  color:#f8fafc!important;
  border-color:#3a424f!important;
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder{color:#8d96a3!important}

:root[data-theme="dark"] .metric{
  background:#20252e!important;
  border-color:#343b47!important;
}
:root[data-theme="dark"] .metric strong{color:#fff!important}

:root[data-theme="dark"] .pill.ok,
:root[data-theme="dark"] .status-chip.green,
:root[data-theme="dark"] .ok-btn{
  background:#163a25!important;
  color:#b7f7c8!important;
  border-color:#245d39!important;
}
:root[data-theme="dark"] .danger-btn,
:root[data-theme="dark"] .status-chip.red{
  background:#451c24!important;
  color:#ffc2cc!important;
  border-color:#73303d!important;
}
:root[data-theme="dark"] .muted-pill{
  background:#252a33!important;
  color:#c1c7d0!important;
}

:root[data-theme="dark"] .table-wrap th{
  background:#191d24!important;
  color:#dbe1e8!important;
}
:root[data-theme="dark"] .table-wrap td{
  color:#eef2f7!important;
  border-color:#303743!important;
}
:root[data-theme="dark"] .table-wrap tbody tr:hover{background:#222832!important}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .admin-nav{
  background:#151920!important;
  border-color:#303743!important;
}
:root[data-theme="dark"] .admin-nav a{color:#d5dbe3!important}
:root[data-theme="dark"] .admin-nav a.active{
  color:#f1e8ff!important;
  background:#332245!important;
  border-color:#64478a!important;
}

:root[data-theme="dark"] .admin-hero{
  background:linear-gradient(135deg,#181c24,#24182e)!important;
  border-color:#443052!important;
}
:root[data-theme="dark"] .live-chat{background:#11151c!important}
:root[data-theme="dark"] .chat-compose,
:root[data-theme="dark"] .chat-error{background:#181c24!important}

/* Prevent washed-out text caused by browser opacity inheritance */
:root[data-theme="dark"] a,
:root[data-theme="dark"] button,
:root[data-theme="dark"] label,
:root[data-theme="dark"] span{opacity:1}

/* Armenian readability */
html[lang="hy"] body{font-family:Inter,Arial,"Noto Sans Armenian",sans-serif}
html[lang="hy"] .admin-nav a{white-space:nowrap}
html[lang="hy"] .admin-action-grid small{line-height:1.5}


/* ===== v8.5 chat + remaining dark contrast fixes ===== */
:root[data-theme="dark"] .live-chat{
  background:#0f1319!important;
  border-color:#303743!important;
}
:root[data-theme="dark"] .live-message{
  background:#1d222b!important;
  border:1px solid #39414d!important;
  color:#f8fafc!important;
}
:root[data-theme="dark"] .live-message-head strong{
  color:#c4a7ff!important;
}
:root[data-theme="dark"] .live-message-head span,
:root[data-theme="dark"] .live-message-head time{
  color:#aeb7c4!important;
}
:root[data-theme="dark"] .live-message-text{
  color:#ffffff!important;
}
:root[data-theme="dark"] .chat-compose{
  background:#171b22!important;
  border-top:1px solid #303743!important;
}
:root[data-theme="dark"] .chat-compose textarea{
  background:#11151c!important;
  color:#f8fafc!important;
  border-color:#414957!important;
}
:root[data-theme="dark"] .chat-compose textarea::placeholder{
  color:#8f99a7!important;
}
:root[data-theme="dark"] .chat-compose button{
  background:linear-gradient(135deg,#7c3aed,#d946ef)!important;
  color:#fff!important;
}
:root[data-theme="dark"] .chat-delete{
  background:#471c24!important;
  color:#ffc4cd!important;
  border-color:#7a3441!important;
}

/* Support conversation bubbles */
:root[data-theme="dark"] .msg.me,
:root[data-theme="dark"] .message.me,
:root[data-theme="dark"] .bubble.me{
  background:#4c2572!important;
  color:#fff!important;
}
:root[data-theme="dark"] .msg.other,
:root[data-theme="dark"] .message.other,
:root[data-theme="dark"] .bubble.other{
  background:#232936!important;
  color:#fff!important;
}

/* System check rows were still white */
:root[data-theme="dark"] .check-row{
  background:#20252e!important;
  border-color:#39414d!important;
  color:#f8fafc!important;
}
:root[data-theme="dark"] .check-row strong{
  color:#f8fafc!important;
}
:root[data-theme="dark"] .check-value{
  color:#b8c0cc!important;
}
:root[data-theme="dark"] .system-status.good{
  background:#173a26!important;
  color:#bdf7cc!important;
  border-color:#2e6942!important;
}
:root[data-theme="dark"] .system-status.bad{
  background:#42291a!important;
  color:#ffd2a8!important;
  border-color:#75452b!important;
}


/* ===== v8.6 employee current date badge ===== */
.employee-date-badge{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:170px;
  padding:9px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 5px 14px rgba(24,24,27,.04);
}
.employee-date-icon{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:10px;
  background:#faf5ff;
  font-size:18px;
}
.employee-date-badge strong{
  display:block;
  font-size:14px;
  line-height:1.15;
  text-transform:capitalize;
}
.employee-date-badge small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  line-height:1.15;
  text-transform:capitalize;
}

:root[data-theme="dark"] .employee-date-badge{
  background:#20252e!important;
  border-color:#3a424f!important;
  color:#fff!important;
}
:root[data-theme="dark"] .employee-date-icon{
  background:#30213e!important;
}
:root[data-theme="dark"] .employee-date-badge strong{
  color:#fff!important;
}
:root[data-theme="dark"] .employee-date-badge small{
  color:#bcc4cf!important;
}

@media(max-width:700px){
  .employee-date-badge{
    min-width:0;
    margin-left:auto;
    padding:8px 10px;
  }
  .employee-date-badge strong{
    font-size:13px;
  }
  .employee-date-badge small{
    font-size:10px;
  }
  .employee-date-icon{
    width:30px;
    height:30px;
    flex-basis:30px;
    font-size:16px;
  }
}
@media(max-width:460px){
  .employee-date-badge{
    width:100%;
    margin:8px 0 0;
  }
}


/* ===== v8.7 subtle Smena24 background ===== */
body{
  background:
    radial-gradient(circle at 8% 10%, rgba(139,92,246,.11), transparent 28rem),
    radial-gradient(circle at 92% 16%, rgba(217,70,239,.08), transparent 24rem),
    radial-gradient(circle at 78% 82%, rgba(124,58,237,.06), transparent 28rem),
    linear-gradient(180deg,#fafafa 0%,#f6f3fb 55%,#fafafa 100%);
  background-attachment:fixed;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background-image:
    linear-gradient(rgba(126,34,206,.025) 1px, transparent 1px),
    linear-gradient(90deg,rgba(126,34,206,.025) 1px, transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 85%);
}

:root[data-theme="dark"] body{
  background:
    radial-gradient(circle at 10% 8%, rgba(124,58,237,.20), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(217,70,239,.12), transparent 26rem),
    radial-gradient(circle at 72% 86%, rgba(88,28,135,.15), transparent 30rem),
    linear-gradient(180deg,#0d1016 0%,#10131a 58%,#0d1016 100%)!important;
  background-attachment:fixed!important;
}

:root[data-theme="dark"] body::before{
  background-image:
    linear-gradient(rgba(196,167,255,.035) 1px, transparent 1px),
    linear-gradient(90deg,rgba(196,167,255,.035) 1px, transparent 1px);
}

.auth-page{
  background:
    radial-gradient(circle at 20% 20%, rgba(139,92,246,.15), transparent 24rem),
    radial-gradient(circle at 85% 10%, rgba(217,70,239,.10), transparent 24rem),
    linear-gradient(180deg,#fafafa,#f6f3fb);
}

:root[data-theme="dark"] .auth-page{
  background:
    radial-gradient(circle at 20% 20%, rgba(124,58,237,.22), transparent 24rem),
    radial-gradient(circle at 85% 10%, rgba(217,70,239,.13), transparent 24rem),
    linear-gradient(180deg,#0d1016,#11151c)!important;
}


/* ===== v8.8 support dark-theme + text visibility ===== */
:root[data-theme="dark"] .chat{
  background:transparent!important;
}
:root[data-theme="dark"] .bubble{
  color:#f8fafc!important;
  border:1px solid #3a424f!important;
}
:root[data-theme="dark"] .bubble:not(.mine):not(.admin-bubble){
  background:#232936!important;
}
:root[data-theme="dark"] .bubble.mine{
  background:#5b2b87!important;
  color:#ffffff!important;
}
:root[data-theme="dark"] .bubble.admin-bubble{
  background:#232936!important;
  color:#f8fafc!important;
}
:root[data-theme="dark"] .bubble strong{
  color:#ffffff!important;
}
:root[data-theme="dark"] .bubble small{
  color:#c8d0db!important;
}
:root[data-theme="dark"] .bubble div,
:root[data-theme="dark"] .bubble p,
:root[data-theme="dark"] .bubble span{
  color:inherit!important;
}
:root[data-theme="dark"] .alert.success{
  background:#143d28!important;
  color:#d1fae5!important;
  border-color:#2b7a4b!important;
}


/* ===== v9.0 reliability / backup ===== */
.backup-status-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:18px 0;
}
.backup-status-card{
  padding:16px;
  border:1px solid var(--line,#e5e7eb);
  border-radius:16px;
  background:rgba(255,255,255,.65);
  display:flex;
  flex-direction:column;
  gap:5px;
}
.backup-status-card span,.backup-status-card small{opacity:.72}
.backup-status-card strong{word-break:break-word}
.version-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.changelog-list article+article{
  border-top:1px solid var(--line,#e5e7eb);
  margin-top:18px;
  padding-top:18px;
}
.smena-version-footer{
  text-align:center;
  padding:20px 12px 28px;
  opacity:.6;
  font-size:12px;
}
:root[data-theme="dark"] .backup-status-card{
  background:rgba(30,35,46,.78);
  border-color:#38404d;
}
@media(max-width:760px){
  .backup-status-grid{grid-template-columns:1fr}
  .version-panel{align-items:flex-start;flex-direction:column}
}


/* ===== v9.1 chat ===== */
.chat-dashboard-link{position:relative;display:flex !important;align-items:center;justify-content:space-between;gap:10px}
.chat-unread-badge{min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#ef4444;color:#fff !important;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 4px 12px rgba(239,68,68,.3)}
.chat-pinned{margin-bottom:14px;padding:15px 17px;border-radius:16px;border:1px solid rgba(139,28,246,.24);background:linear-gradient(135deg,rgba(139,28,246,.11),rgba(219,39,119,.08));display:flex;gap:12px;align-items:flex-start}
.chat-pinned-icon{font-size:24px;line-height:1.2}
.chat-pinned p{margin:5px 0 0;white-space:pre-wrap;word-break:break-word}
.chat-announcement-alert{margin-bottom:14px;border:1px solid rgba(245,158,11,.32)}
.chat-admin-settings{margin-bottom:14px}
.chat-admin-settings summary{cursor:pointer;font-weight:800;user-select:none}
.chat-admin-settings[open] summary{margin-bottom:15px}
.stack-form{display:flex;flex-direction:column;gap:13px}
.stack-form label{display:flex;flex-direction:column;gap:7px;font-weight:700}
.stack-form textarea{resize:vertical}
.toggle-row{flex-direction:row !important;align-items:center;gap:9px !important}
.toggle-row input{width:auto}
.chat-mode-hint{margin-top:9px;font-size:13px;opacity:.72}
.chat-compose textarea:disabled,.chat-compose button:disabled{opacity:.55;cursor:not-allowed}
:root[data-theme="dark"] .chat-pinned{background:linear-gradient(135deg,rgba(139,28,246,.18),rgba(219,39,119,.11));border-color:rgba(167,139,250,.28)}


/* ===== v9.2 employees / global search ===== */
.admin-global-search-wrap{
  max-width:1180px;
  margin:10px auto 0;
  padding:0 18px;
}
.admin-global-search{
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 10px 8px 14px;
  border:1px solid var(--line,#e5e7eb);
  border-radius:16px;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(12px);
}
.admin-global-search input{
  flex:1;
  min-width:0;
  border:0;
  background:transparent;
  outline:0;
  padding:7px 2px;
}
.admin-global-search button{width:auto;white-space:nowrap}
.employee-health-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.employee-health-grid article{
  padding:15px;
  border-radius:16px;
  border:1px solid var(--line,#e5e7eb);
  background:rgba(255,255,255,.68);
  display:flex;
  flex-direction:column;
  gap:4px;
}
.employee-health-grid article span{font-size:12px;opacity:.72}
.employee-health-grid article strong{font-size:25px}
.employee-health-grid article.needs-attention{
  border-color:rgba(245,158,11,.45);
  background:rgba(245,158,11,.08);
}
.employee-quick-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0;
}
.employee-quick-filters a{
  padding:8px 11px;
  border-radius:999px;
  border:1px solid var(--line,#e5e7eb);
  text-decoration:none;
  color:inherit;
  font-size:13px;
  font-weight:700;
}
.employee-quick-filters a.active{
  border-color:rgba(139,28,246,.4);
  background:rgba(139,28,246,.1);
}
.employee-status-stack{display:flex;flex-wrap:wrap;gap:5px}
.employee-row-attention{background:rgba(245,158,11,.045)}
.employee-search-results{display:flex;flex-direction:column;gap:10px}
.employee-search-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px;
  border:1px solid var(--line,#e5e7eb);
  border-radius:16px;
  text-decoration:none;
  color:inherit;
  transition:.15s ease;
}
.employee-search-card:hover{
  transform:translateY(-1px);
  border-color:rgba(139,28,246,.35);
  box-shadow:0 10px 30px rgba(60,20,100,.07);
}
.employee-search-main{display:flex;flex-direction:column;gap:3px}
.employee-search-main span,.employee-search-main small{opacity:.7}
.employee-search-status{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
:root[data-theme="dark"] .admin-global-search,
:root[data-theme="dark"] .employee-health-grid article{
  background:rgba(30,35,46,.78);
  border-color:#38404d;
}
:root[data-theme="dark"] .employee-row-attention{background:rgba(245,158,11,.07)}
@media(max-width:900px){
  .employee-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .admin-global-search{align-items:stretch}
  .admin-global-search span{display:none}
  .admin-global-search button{padding-left:12px;padding-right:12px}
  .employee-health-grid{grid-template-columns:1fr 1fr}
  .employee-search-card{align-items:flex-start;flex-direction:column}
  .employee-search-status{justify-content:flex-start}
}


/* ===== v9.3 simplified admin / system tabs ===== */
.system-tabs{
  max-width:1180px;
  margin:12px auto 0;
  padding:0 18px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.system-tabs a{
  text-decoration:none;
  color:inherit;
  border:1px solid var(--line,#e5e7eb);
  background:rgba(255,255,255,.66);
  backdrop-filter:blur(10px);
  border-radius:999px;
  padding:9px 13px;
  font-size:13px;
  font-weight:800;
  transition:.15s ease;
}
.system-tabs a:hover{
  transform:translateY(-1px);
  border-color:rgba(139,28,246,.32);
}
.system-tabs a.active{
  color:#7c1dce;
  border-color:rgba(139,28,246,.38);
  background:rgba(139,28,246,.10);
}
:root[data-theme="dark"] .system-tabs a{
  background:rgba(30,35,46,.78);
  border-color:#38404d;
}
:root[data-theme="dark"] .system-tabs a.active{
  color:#c4b5fd;
  border-color:rgba(167,139,250,.38);
  background:rgba(139,92,246,.15);
}
@media(max-width:650px){
  .system-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .system-tabs a{text-align:center}
}


/* ===== v9.4 security ===== */
.security-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.security-summary-grid article{
  padding:16px;
  border-radius:16px;
  border:1px solid var(--line,#e5e7eb);
  background:rgba(255,255,255,.68);
  display:flex;
  flex-direction:column;
  gap:4px;
}
.security-summary-grid span,.security-summary-grid small{opacity:.72}
.security-summary-grid strong{font-size:20px}
.security-new-device{background:rgba(239,68,68,.045)}
.security-ua{
  max-width:520px;
  margin-top:6px;
  font-size:11px;
  opacity:.62;
  overflow-wrap:anywhere;
}
:root[data-theme="dark"] .security-summary-grid article{
  background:rgba(30,35,46,.78);
  border-color:#38404d;
}
:root[data-theme="dark"] .security-new-device{background:rgba(239,68,68,.07)}
@media(max-width:760px){
  .security-summary-grid{grid-template-columns:1fr}
}


/* ===== v9.5 employee experience ===== */
.employee-dashboard{padding-bottom:38px}
.employee-welcome{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:28px 30px;
  margin-bottom:16px;
  border-radius:24px;
  border:1px solid rgba(139,28,246,.16);
  background:
    radial-gradient(circle at 100% 0%,rgba(219,39,119,.11),transparent 38%),
    radial-gradient(circle at 0% 100%,rgba(139,28,246,.10),transparent 42%),
    rgba(255,255,255,.72);
  backdrop-filter:blur(14px);
  box-shadow:0 14px 42px rgba(63,25,101,.07);
}
.employee-welcome h1{margin:5px 0 5px;font-size:clamp(26px,4vw,40px)}
.employee-welcome p{margin:0;opacity:.72}
.employee-book-main{
  min-width:250px;
  padding:15px 17px;
  border-radius:17px;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(135deg,#7c1dce,#db2777);
  display:flex;
  align-items:center;
  gap:11px;
  box-shadow:0 12px 26px rgba(124,29,206,.20);
}
.employee-book-main>span{font-size:24px}
.employee-book-main div{display:flex;flex:1;flex-direction:column;gap:2px}
.employee-book-main small{opacity:.78}
.employee-book-main b{font-size:20px}
.compact-admin-banner{margin-bottom:16px;padding:16px 18px}
.employee-overview-grid{
  display:grid;
  grid-template-columns:1.05fr 1.3fr .85fr;
  gap:14px;
  margin-bottom:16px;
}
.employee-overview-grid>article{
  min-height:160px;
  padding:18px;
  border:1px solid var(--line,#e5e7eb);
  border-radius:20px;
  background:rgba(255,255,255,.70);
  backdrop-filter:blur(12px);
}
.employee-card-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px;
}
.employee-card-heading>span{font-weight:800}
.employee-card-heading a,.employee-card-heading small{font-size:12px;opacity:.68;text-decoration:none;color:inherit}
.next-shift-date{font-size:31px;font-weight:900;letter-spacing:-.03em;margin-top:23px}
.next-shift-meta{margin-top:4px;opacity:.72}
.next-shift-empty{font-size:25px;font-weight:900;margin:24px 0 5px}
.inline-action{font-size:13px;font-weight:700;text-decoration:none}
.employee-notification-list{display:flex;flex-direction:column;gap:6px}
.employee-notification-list a{
  min-height:30px;
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:inherit;
  padding:4px 0;
  border-bottom:1px dashed rgba(127,127,127,.16);
}
.employee-notification-list a:last-child{border-bottom:0}
.employee-notification-list a>span{flex:1}
.employee-notification-list em{font-size:12px;opacity:.56;font-style:normal}
.employee-notification-list b{font-size:12px}
.good-text{color:#15803d}
.warn-text{color:#c2410c}
.streak-main{font-size:45px;font-weight:950;letter-spacing:-.05em;line-height:1}
.employee-streak-card>small{opacity:.6}
.streak-best{margin-top:14px;font-size:13px}
.streak-target{margin-top:5px;font-size:12px;opacity:.62}
.employee-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(300px,.75fr);
  gap:16px;
}
.employee-upcoming-list{display:flex;flex-direction:column;gap:9px}
.employee-upcoming-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:12px;
  align-items:center;
  padding:13px 14px;
  border:1px solid var(--line,#e5e7eb);
  border-radius:15px;
}
.employee-upcoming-date{display:flex;flex-direction:column;gap:2px}
.employee-upcoming-date span,.employee-upcoming-source{font-size:12px;opacity:.65}
.compact-danger{padding:8px 10px!important}
.employee-more-records{margin-top:12px;font-size:12px;opacity:.7}
.employee-more-records a{color:inherit}
.employee-empty-state{
  text-align:center;
  padding:28px 14px 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.employee-empty-state>span{font-size:38px}
.employee-empty-state strong{margin-top:7px}
.employee-empty-state p{margin:5px 0 14px;opacity:.65}
.employee-primary-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.employee-primary-actions a{
  min-height:105px;
  padding:13px;
  border-radius:16px;
  text-decoration:none;
  color:inherit;
  border:1px solid var(--line,#e5e7eb);
  background:rgba(139,28,246,.035);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
}
.employee-primary-actions a>span{font-size:24px}
.employee-primary-actions a small{opacity:.58}
.employee-secondary-actions{
  display:flex;
  flex-direction:column;
  margin-top:12px;
  border-top:1px solid var(--line,#e5e7eb);
  padding-top:8px;
}
.employee-secondary-actions a{
  padding:10px 5px;
  text-decoration:none;
  color:inherit;
  border-bottom:1px dashed rgba(127,127,127,.14);
}
.employee-secondary-actions a:last-child{border-bottom:0}
.employee-mobile-nav{display:none}

:root[data-theme="dark"] .employee-welcome,
:root[data-theme="dark"] .employee-overview-grid>article{
  background:
    radial-gradient(circle at 100% 0%,rgba(219,39,119,.09),transparent 38%),
    radial-gradient(circle at 0% 100%,rgba(139,28,246,.10),transparent 42%),
    rgba(27,31,40,.84);
  border-color:#38404d;
}
:root[data-theme="dark"] .employee-primary-actions a,
:root[data-theme="dark"] .employee-upcoming-item{border-color:#38404d}
:root[data-theme="dark"] .good-text{color:#86efac}
:root[data-theme="dark"] .warn-text{color:#fdba74}

@media(max-width:900px){
  .employee-overview-grid{grid-template-columns:1fr 1fr}
  .employee-streak-card{grid-column:1/-1}
  .employee-main-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
  body{padding-bottom:76px}
  .employee-dashboard{padding-left:12px;padding-right:12px;padding-bottom:20px}
  .employee-topbar{gap:8px}
  .employee-date-badge{order:3;width:100%}
  .employee-welcome{
    padding:20px 17px;
    align-items:stretch;
    flex-direction:column;
    border-radius:19px;
  }
  .employee-book-main{min-width:0;width:auto}
  .employee-overview-grid{grid-template-columns:1fr}
  .employee-streak-card{grid-column:auto}
  .employee-overview-grid>article{min-height:0}
  .next-shift-date,.next-shift-empty{margin-top:10px}
  .employee-upcoming-item{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .employee-upcoming-source{display:none}
  .employee-primary-actions{grid-template-columns:1fr 1fr}
  .employee-primary-actions a{min-height:98px}
  .employee-mobile-nav{
    position:fixed;
    z-index:50;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    left:8px;
    right:8px;
    bottom:8px;
    padding:7px 5px calc(7px + env(safe-area-inset-bottom));
    border:1px solid rgba(127,127,127,.20);
    border-radius:20px;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(18px);
    box-shadow:0 12px 36px rgba(30,20,50,.18);
  }
  .employee-mobile-nav a{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2px;
    text-decoration:none;
    color:inherit;
    opacity:.62;
  }
  .employee-mobile-nav a.active{opacity:1;color:#7c1dce}
  .employee-mobile-nav span{font-size:19px}
  .employee-mobile-nav small{font-size:10px;font-weight:700}
  .employee-mobile-nav small b{
    position:absolute;
    top:-4px;
    right:12%;
    min-width:17px;
    height:17px;
    border-radius:999px;
    background:#ef4444;
    color:#fff;
    font-size:9px;
    display:grid;
    place-items:center;
  }
  :root[data-theme="dark"] .employee-mobile-nav{
    background:rgba(24,28,36,.94);
    border-color:#38404d;
  }
  :root[data-theme="dark"] .employee-mobile-nav a.active{color:#c4b5fd}
}


/* ===== v9.5.1 desktop dashboard correction ===== */
@media (min-width: 901px){
  .employee-dashboard{
    width:min(1180px,calc(100% - 48px));
    margin:0 auto;
    padding-top:28px;
  }

  .employee-topbar{
    display:grid;
    grid-template-columns:1fr auto auto;
    align-items:center;
    gap:18px;
    padding-left:max(24px,calc((100vw - 1180px)/2));
    padding-right:max(24px,calc((100vw - 1180px)/2));
  }

  .employee-date-badge{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:190px;
    padding:10px 14px;
    border:1px solid var(--line,#e5e7eb);
    border-radius:15px;
    background:rgba(255,255,255,.66);
  }

  .employee-date-badge>div{
    display:flex;
    flex-direction:column;
    gap:2px;
  }

  .employee-date-badge small{
    opacity:.62;
  }

  .employee-welcome{
    min-height:150px;
  }

  .employee-welcome>div:first-child{
    min-width:0;
    flex:1;
  }

  .employee-book-main{
    flex:0 0 300px;
  }

  .employee-overview-grid{
    align-items:stretch;
  }

  .employee-overview-grid>article{
    display:flex;
    flex-direction:column;
  }

  .employee-notification-list{
    margin-top:auto;
  }

  .employee-main-grid{
    align-items:start;
  }

  .employee-bookings-panel,
  .employee-actions-panel{
    min-width:0;
  }

  .employee-primary-actions a{
    box-sizing:border-box;
  }

  .employee-secondary-actions a{
    display:block;
  }

  .employee-mobile-nav{
    display:none !important;
  }
}

/* ensure links/cards never collapse into inline text */
.employee-book-main,
.employee-primary-actions a,
.employee-secondary-actions a,
.employee-notification-list a,
.employee-upcoming-item,
.employee-welcome,
.employee-overview-grid>article,
.employee-main-grid>article,
.employee-main-grid>aside{
  box-sizing:border-box;
}

/* old global anchor/button rules could collapse dashboard links */
.employee-dashboard a{
  text-underline-offset:2px;
}
.employee-book-main,
.employee-primary-actions a{
  text-decoration:none !important;
}

/* dark desktop date badge */
:root[data-theme="dark"] .employee-date-badge{
  background:rgba(27,31,40,.84);
  border-color:#38404d;
}


/* ===== v9.6 staff tools ===== */
.department-poll{overflow:hidden}
.department-options{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:16px 0;
}
.department-option{cursor:pointer}
.department-option input{position:absolute;opacity:0;pointer-events:none}
.department-option span{
  min-height:88px;
  border:1px solid var(--line,#e5e7eb);
  border-radius:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  background:rgba(255,255,255,.55);
  transition:.15s ease;
}
.department-option b{font-size:25px}
.department-option input:checked+span{
  border-color:rgba(139,28,246,.55);
  background:rgba(139,28,246,.11);
  box-shadow:0 0 0 2px rgba(139,28,246,.08);
}
.admin-private-comments .status-chip{white-space:nowrap}
.admin-comments-list{display:flex;flex-direction:column;gap:9px;margin-top:16px}
.admin-comments-list article{
  padding:13px 14px;border:1px solid var(--line,#e5e7eb);border-radius:14px;
  background:rgba(255,255,255,.48)
}
.admin-comments-list article>div{display:flex;justify-content:space-between;gap:12px}
.admin-comments-list small{opacity:.55}
.admin-comments-list p{margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.department-admin-summary{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px
}
.department-admin-summary a{
  padding:16px;border:1px solid var(--line,#e5e7eb);border-radius:16px;
  background:rgba(255,255,255,.68);text-decoration:none;color:inherit;
  display:flex;align-items:center;justify-content:space-between;gap:12px
}
.department-admin-summary a strong{font-size:25px}
.department-admin-summary a.active{border-color:rgba(139,28,246,.5);background:rgba(139,28,246,.10)}
.admin-identity-card{max-width:720px;margin-inline:auto}
.login-install-box{
  margin-top:12px;padding:13px 14px;border-radius:14px;border:1px solid rgba(139,28,246,.20);
  background:rgba(139,28,246,.06);display:flex;align-items:center;justify-content:space-between;gap:12px
}
.login-install-box>div{display:flex;flex-direction:column;gap:3px}
.login-install-box span{font-size:12px;opacity:.65}
.login-install-box a{white-space:nowrap}
:root[data-theme="dark"] .department-option span,
:root[data-theme="dark"] .admin-comments-list article,
:root[data-theme="dark"] .department-admin-summary a{
  background:rgba(30,35,46,.76);border-color:#38404d
}
:root[data-theme="dark"] .department-option input:checked+span,
:root[data-theme="dark"] .department-admin-summary a.active{
  background:rgba(139,92,246,.16);border-color:rgba(167,139,250,.42)
}
:root[data-theme="dark"] .login-install-box{background:rgba(139,92,246,.12);border-color:rgba(167,139,250,.25)}
@media(max-width:650px){
  .department-options{grid-template-columns:1fr}
  .department-option span{min-height:64px;flex-direction:row}
  .department-admin-summary{grid-template-columns:1fr}
  .login-install-box{align-items:flex-start;flex-direction:column}
}


/* ===== v9.6.1 WB-inspired background + employee rating ===== */

/* Background: inspired by the familiar berry/violet WB palette, without copying logos */
html{
  background:#faf7ff;
}
body{
  position:relative;
  min-height:100vh;
  background:
    radial-gradient(circle at 8% 10%, rgba(173, 45, 255, .16) 0, rgba(173,45,255,0) 28%),
    radial-gradient(circle at 92% 4%, rgba(240, 36, 147, .13) 0, rgba(240,36,147,0) 25%),
    radial-gradient(circle at 78% 78%, rgba(120, 55, 255, .09) 0, rgba(120,55,255,0) 30%),
    linear-gradient(145deg,#fcfaff 0%,#faf6ff 38%,#fff8fc 72%,#fbf9ff 100%);
  background-attachment:fixed;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-2;
  opacity:.65;
  background-image:
    linear-gradient(rgba(130,70,180,.035) 1px, transparent 1px),
    linear-gradient(90deg,rgba(130,70,180,.035) 1px, transparent 1px);
  background-size:32px 32px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 82%);
}
body::after{
  content:"";
  position:fixed;
  z-index:-1;
  width:460px;
  height:460px;
  left:50%;
  top:-260px;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle,rgba(190,40,255,.12),rgba(240,36,147,.06) 38%,transparent 70%);
  filter:blur(14px);
  pointer-events:none;
}

/* WB-like glass cards */
.panel,
.employee-welcome,
.employee-overview-grid>article,
.employee-main-grid>article,
.employee-main-grid>aside,
.login-card,
.auth-card{
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.panel{
  box-shadow:0 14px 40px rgba(99,38,133,.07);
}

/* Rating card */
.employee-rating-panel{
  overflow:hidden;
  position:relative;
}
.employee-rating-panel::after{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  right:-90px;
  top:-90px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(217,70,239,.12),transparent 68%);
  pointer-events:none;
}
.rating-badge{
  min-width:150px;
  padding:10px 13px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid rgba(139,28,246,.18);
  background:rgba(139,28,246,.07);
}
.rating-badge span{
  letter-spacing:1px;
  font-size:18px;
}
.rating-badge strong{
  font-size:18px;
}
.rating-5{background:rgba(34,197,94,.10);border-color:rgba(34,197,94,.25)}
.rating-4{background:rgba(132,204,22,.10);border-color:rgba(132,204,22,.24)}
.rating-3{background:rgba(234,179,8,.10);border-color:rgba(234,179,8,.25)}
.rating-2{background:rgba(249,115,22,.10);border-color:rgba(249,115,22,.25)}
.rating-1{background:rgba(239,68,68,.10);border-color:rgba(239,68,68,.24)}
.rating-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:16px 0;
}
.rating-stat{
  padding:14px;
  border:1px solid var(--line,#e5e7eb);
  border-radius:15px;
  background:rgba(255,255,255,.52);
  display:flex;
  flex-direction:column;
  gap:4px;
}
.rating-stat span{font-size:12px;opacity:.66}
.rating-stat strong{font-size:21px}
.earnings-form{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  gap:10px;
  align-items:end;
  margin-bottom:14px;
}
.earnings-form label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-weight:700;
}
.rating-scale{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
  margin-top:8px;
}
.rating-scale span{
  padding:9px 7px;
  text-align:center;
  border-radius:12px;
  background:rgba(139,28,246,.045);
  border:1px solid rgba(139,28,246,.10);
  font-size:12px;
}
.rating-scale b{display:block;font-size:16px}
.employee-rating-mini{
  display:flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
}
.employee-rating-mini span{
  font-size:12px;
  letter-spacing:-1px;
  color:#a21caf;
}
.employee-rating-mini b{
  font-size:13px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  background:rgba(162,28,175,.10);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

:root[data-theme="dark"] html{background:#0f1015}
:root[data-theme="dark"] body{
  background:
    radial-gradient(circle at 8% 10%, rgba(139,92,246,.16) 0, rgba(139,92,246,0) 30%),
    radial-gradient(circle at 92% 4%, rgba(219,39,119,.11) 0, rgba(219,39,119,0) 26%),
    radial-gradient(circle at 80% 80%, rgba(124,58,237,.08) 0, rgba(124,58,237,0) 32%),
    linear-gradient(145deg,#111319 0%,#15131b 45%,#151018 100%);
  background-attachment:fixed;
}
:root[data-theme="dark"] body::before{
  opacity:.38;
  background-image:
    linear-gradient(rgba(196,181,253,.035) 1px, transparent 1px),
    linear-gradient(90deg,rgba(196,181,253,.035) 1px, transparent 1px);
}
:root[data-theme="dark"] .rating-stat{
  background:rgba(30,35,46,.66);
  border-color:#38404d;
}
:root[data-theme="dark"] .rating-scale span{
  background:rgba(139,92,246,.08);
  border-color:rgba(167,139,250,.12);
}
:root[data-theme="dark"] .employee-rating-mini span{
  color:#e879f9;
}

@media(max-width:760px){
  .rating-grid{grid-template-columns:1fr}
  .earnings-form{grid-template-columns:1fr}
  .rating-scale{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ===== v9.6.2 requested refinements ===== */

/* Stronger WB-inspired atmosphere */
body{
  background:
    radial-gradient(ellipse at -5% 12%, rgba(191, 51, 255, .30) 0%, rgba(191,51,255,.13) 22%, transparent 43%),
    radial-gradient(ellipse at 105% 18%, rgba(247, 40, 151, .27) 0%, rgba(247,40,151,.11) 23%, transparent 44%),
    radial-gradient(ellipse at 78% 88%, rgba(131, 58, 255, .16) 0%, transparent 40%),
    linear-gradient(135deg,#fbf4ff 0%,#fff8fc 38%,#f9f3ff 68%,#fff9fd 100%) !important;
  background-attachment:fixed !important;
}
body::before{
  opacity:.9 !important;
  background:
    linear-gradient(115deg,transparent 0 35%,rgba(197,55,255,.055) 35% 46%,transparent 46% 100%),
    linear-gradient(65deg,transparent 0 63%,rgba(244,51,158,.045) 63% 72%,transparent 72% 100%),
    radial-gradient(circle at 20% 72%,rgba(210,75,255,.08),transparent 24%),
    repeating-linear-gradient(0deg,rgba(130,70,180,.028) 0 1px,transparent 1px 32px),
    repeating-linear-gradient(90deg,rgba(130,70,180,.028) 0 1px,transparent 1px 32px) !important;
}
:root[data-theme="dark"] body{
  background:
    radial-gradient(ellipse at -5% 12%, rgba(130,65,255,.27) 0%, rgba(130,65,255,.10) 25%, transparent 46%),
    radial-gradient(ellipse at 105% 18%, rgba(226,35,139,.22) 0%, rgba(226,35,139,.08) 25%, transparent 46%),
    radial-gradient(ellipse at 78% 88%, rgba(100,50,220,.13) 0%, transparent 42%),
    linear-gradient(135deg,#0d0f15 0%,#14111a 48%,#100d15 100%) !important;
}

/* grouped personnel submenu */
.work-tabs{
  max-width:1180px;
  margin:12px auto 0;
  padding:0 18px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.work-tabs a{
  text-decoration:none;
  color:inherit;
  border:1px solid var(--line,#e5e7eb);
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(12px);
  border-radius:999px;
  padding:9px 13px;
  font-size:13px;
  font-weight:800;
}
.work-tabs a.active{
  color:#8616c7;
  border-color:rgba(151,40,210,.40);
  background:rgba(151,40,210,.11);
}
:root[data-theme="dark"] .work-tabs a{
  background:rgba(30,35,46,.82);
  border-color:#38404d;
}
:root[data-theme="dark"] .work-tabs a.active{
  color:#e9b7ff;
  background:rgba(139,92,246,.17);
  border-color:rgba(192,132,252,.38);
}

/* admin switch moved to lower part of employee dashboard */
.admin-switch-bottom-wrap{
  margin-top:16px;
}
.admin-switch-bottom-wrap .compact-admin-banner{
  margin-bottom:0;
}

/* compact decimal rating */
.rating-score-large{
  display:flex;
  align-items:baseline;
  gap:6px;
  padding:11px 16px;
  border-radius:17px;
  background:linear-gradient(135deg,rgba(151,40,210,.13),rgba(228,38,143,.10));
  border:1px solid rgba(169,42,213,.22);
}
.rating-score-large strong{
  font-size:32px;
  line-height:1;
  letter-spacing:-.04em;
}
.rating-score-large span{
  font-weight:800;
  opacity:.55;
}
.earnings-form-simple{
  max-width:720px;
  margin-bottom:8px;
}

/* delete internal comments */
.admin-comment-head{
  display:flex !important;
  align-items:flex-start;
  justify-content:space-between !important;
  gap:12px;
}
.admin-comment-head>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.comment-delete-btn{
  width:auto !important;
  padding:6px 9px !important;
  border-radius:10px !important;
  border:1px solid rgba(239,68,68,.24) !important;
  background:rgba(239,68,68,.08) !important;
  color:#b91c1c !important;
  font-size:11px !important;
}
:root[data-theme="dark"] .comment-delete-btn{
  color:#fca5a5 !important;
  background:rgba(239,68,68,.12) !important;
}

@media(max-width:650px){
  .work-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .work-tabs a{text-align:center}
  .admin-comment-head{align-items:flex-start}
}


/* ===== v9.7 earnings ledger + calendar ===== */
.monthly-average-panel{
  margin-bottom:16px;
  border-color:rgba(151,40,210,.20);
}
.monthly-average-form{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  align-items:end;
  gap:10px;
  max-width:760px;
}
.monthly-average-form label,
.daily-earnings-form label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-weight:800;
}
.earnings-month-summary{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.earnings-month-summary>div{
  min-width:130px;
  padding:9px 11px;
  border-radius:13px;
  border:1px solid var(--line,#e5e7eb);
  background:rgba(255,255,255,.50);
  display:flex;
  flex-direction:column;
  gap:2px;
}
.earnings-month-summary span{font-size:10px;opacity:.62}
.earnings-month-summary strong{font-size:17px}
.daily-earnings-form{
  display:grid;
  grid-template-columns:180px minmax(220px,1fr) auto;
  gap:10px;
  align-items:end;
  margin:16px 0 18px;
}
.earnings-calendar-head{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  margin:4px 0 10px;
}
.earnings-calendar-head strong{text-align:center}
.earnings-calendar{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:6px;
}
.earnings-weekday{
  padding:7px 4px;
  text-align:center;
  font-size:11px;
  font-weight:800;
  opacity:.55;
}
.earnings-day{
  width:100%;
  min-height:72px;
  padding:8px;
  border:1px solid var(--line,#e5e7eb);
  border-radius:13px;
  background:rgba(255,255,255,.45);
  color:inherit;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  text-align:left;
}
button.earnings-day{cursor:pointer}
button.earnings-day:hover{border-color:rgba(151,40,210,.36)}
.earnings-day.has-earnings{
  background:linear-gradient(135deg,rgba(151,40,210,.10),rgba(229,38,143,.07));
  border-color:rgba(151,40,210,.25);
}
.earnings-day>span{font-weight:900}
.earnings-day>strong{font-size:11px;color:#8616c7}
.earnings-day.empty{border-color:transparent;background:transparent}
.earnings-day-details{
  margin-top:10px;
  min-height:54px;
  padding:11px 13px;
  border-radius:13px;
  border:1px dashed rgba(151,40,210,.24);
  background:rgba(151,40,210,.035);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.earnings-day-details>div{display:flex;flex-direction:column;gap:3px}
:root[data-theme="dark"] .earnings-month-summary>div,
:root[data-theme="dark"] .earnings-day{
  background:rgba(30,35,46,.70);
  border-color:#38404d;
}
:root[data-theme="dark"] .earnings-day.has-earnings{
  background:linear-gradient(135deg,rgba(139,92,246,.15),rgba(219,39,119,.08));
  border-color:rgba(167,139,250,.28);
}
:root[data-theme="dark"] .earnings-day>strong{color:#e9b7ff}

@media(max-width:760px){
  .monthly-average-form{grid-template-columns:1fr}
  .daily-earnings-form{grid-template-columns:1fr}
  .earnings-month-summary{justify-content:flex-start}
  .earnings-calendar{gap:4px}
  .earnings-day{min-height:58px;padding:6px}
  .earnings-day>strong{font-size:9px}
  .earnings-day-details{align-items:flex-start;flex-direction:column}
}


/* ===== v9.7.1 PWA install + OTP resend ===== */
.install-status{
  min-height:22px;
  margin:10px 0 4px;
  font-size:13px;
  opacity:.82;
}
.install-status.success{color:#15803d}
.install-status.info{color:inherit}
.install-guide-active{
  outline:2px solid rgba(151,40,210,.38);
  background:rgba(151,40,210,.08)!important;
  transition:.2s ease;
}
.otp-resend-form{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:5px;
}
.otp-resend-btn{
  width:100%;
}
.otp-resend-form small{
  text-align:center;
  opacity:.58;
  font-size:11px;
}
:root[data-theme="dark"] .install-status.success{color:#86efac}


/* ===== v9.8 ===== */

/* Theme/language controls now live in the top bar instead of floating over mobile content. */
.floating-ui{display:none!important}
.topbar-ui-controls{
  display:flex;
  align-items:center;
  gap:7px;
  margin-left:auto;
}
.topbar-ui-controls .floating-ui-btn{
  position:static;
  width:38px;
  height:38px;
  min-width:38px;
  padding:0;
  border-radius:12px;
  box-shadow:none;
  background:rgba(24,24,27,.08);
  color:inherit;
  border:1px solid rgba(127,127,127,.18);
}
:root[data-theme="dark"] .topbar-ui-controls .floating-ui-btn{
  background:rgba(255,255,255,.09);
  color:#fff;
}
.fallback-ui-controls{
  position:fixed;
  right:14px;
  top:14px;
  z-index:99;
}

/* Remaining quota */
.quota-place-info{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
}
.quota-remaining{
  font-size:12px;
  opacity:.72;
  white-space:nowrap;
}
.quota-remaining strong{
  font-size:14px;
  opacity:1;
}
.quota-remaining.unlimited{opacity:.56}

/* Attendance */
.success-empty{
  border:1px solid rgba(34,197,94,.22);
  background:rgba(34,197,94,.07);
}
.processed-attendance-list{margin-top:14px}
.attendance-row.processed{opacity:.76}
.attendance-row.processed small{white-space:nowrap}

/* Chat notification UI */
.chat-head-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.compact-chat-notify{
  width:auto!important;
  min-height:34px;
  padding:7px 10px!important;
}
.chat-notify-hint{
  min-height:18px;
  margin:-4px 0 10px;
  font-size:12px;
  opacity:.7;
  text-align:right;
}

@media(max-width:760px){
  .topbar{
    gap:8px;
  }
  .topbar-ui-controls{
    gap:5px;
  }
  .topbar-ui-controls .floating-ui-btn{
    width:36px;
    height:36px;
    min-width:36px;
    border-radius:11px;
    font-size:13px;
  }
  .employee-topbar .brand strong{
    display:none;
  }
.quota-place-info{
    align-items:flex-start;
  }
  .chat-head-actions{
    width:100%;
    justify-content:flex-start;
  }
  .chat-notify-hint{text-align:left}
}


/* ===== v9.8.1 weekly quota ===== */
.weekly-quota-form{
  display:grid;
  grid-template-columns:minmax(180px,1.3fr) repeat(2,minmax(130px,1fr)) auto;
  gap:12px;
  align-items:end;
}
.weekly-quota-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.weekly-quota-form input{width:100%}
@media(max-width:760px){
  .weekly-quota-form{grid-template-columns:1fr}
}


/* ===== v9.8.4 nearest shift free places ===== */
.next-shift-free{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:7px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  font-size:13px;
  line-height:1.2;
}
.next-shift-free strong{
  font-size:15px;
}
.next-shift-free.unlimited{
  opacity:.72;
}


/* ===== v9.8.5 centralized system logs ===== */
.system-subtabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.system-subtabs a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(127,127,127,.18);
  background:rgba(127,127,127,.05);
  color:inherit;
  text-decoration:none;
}
.system-subtabs a.active{
  border-color:rgba(151,40,210,.65);
  background:rgba(151,40,210,.12);
}
.logs-filter-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(130px,1fr)) auto;
  gap:10px;
  align-items:end;
}
.logs-filter-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.logs-filter-actions{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
}
.logs-user-agent{
  max-width:420px;
  white-space:normal;
  word-break:break-word;
  font-size:12px;
  opacity:.78;
}
@media(max-width:980px){
  .logs-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .logs-filter-grid{grid-template-columns:1fr}
}

/* ===== v9.9 waitlist + web push ===== */
.waitlist-card{width:100%;margin-top:10px;padding:12px;border-radius:14px;border:1px solid rgba(151,40,210,.24);background:rgba(151,40,210,.07);display:flex;flex-direction:column;gap:7px}
.waitlist-card.active{border-color:rgba(234,179,8,.38);background:rgba(234,179,8,.08)}
.waitlist-card span{font-size:12px;opacity:.78}.waitlist-action{width:100%;margin-top:3px}
.push-permission-card{display:flex;align-items:center;justify-content:space-between;gap:16px}.push-permission-card p{margin:5px 0 0}.push-permission-card.enabled{opacity:.74}
@media(max-width:650px){.push-permission-card{flex-direction:column;align-items:stretch}.push-permission-card button{width:100%}}


/* ===== v9.9.1 push settings moved to bottom ===== */
.dashboard-bottom-settings{margin-top:18px;padding-bottom:96px}
.dashboard-bottom-settings-title{margin:0 0 8px 4px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;opacity:.55}
.dashboard-bottom-settings .push-permission-card{margin:0;opacity:.78}
.dashboard-bottom-settings .push-permission-card.enabled{opacity:.58}
.dashboard-bottom-settings .push-permission-card p{font-size:12px}

/* ===== v9.9.2 push toggle ===== */
.push-disable-button{background:rgba(239,68,68,.10)!important;border-color:rgba(239,68,68,.28)!important}

/* ===== v10.0 composite employee rating ===== */
.rating-title-row{align-items:flex-end}.rating-month-picker{display:flex;gap:8px;align-items:end}.rating-total-card{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:18px;border-radius:18px;margin:12px 0;border:1px solid rgba(127,127,127,.18);background:rgba(127,127,127,.05)}.rating-total-card strong{font-size:30px}.rating-total-card div{display:flex;flex-direction:column;gap:4px}.rating-total-card small{grid-column:1/-1;opacity:.65}.rating-total-card.complete{border-color:rgba(34,197,94,.3);background:rgba(34,197,94,.07)}.rating-components-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rating-components-grid article{padding:15px;border:1px solid rgba(127,127,127,.16);border-radius:16px;background:rgba(127,127,127,.04);display:flex;flex-direction:column;gap:7px}.rating-components-grid article strong{font-size:22px}.rating-components-grid small{opacity:.68}.rating-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.rating-editor-card{border:1px solid rgba(127,127,127,.16);border-radius:16px;padding:15px;display:flex;flex-direction:column;gap:10px}.rating-editor-card label{display:flex;flex-direction:column;gap:6px}.rating-subsection{margin-top:18px;padding-top:16px;border-top:1px solid rgba(127,127,127,.14)}.violation-form{display:grid;grid-template-columns:160px 170px 1fr auto;gap:10px;align-items:end}.violation-form label{display:flex;flex-direction:column;gap:6px}.violations-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.violations-list article{display:flex;justify-content:space-between;gap:12px;border:1px solid rgba(239,68,68,.18);background:rgba(239,68,68,.05);border-radius:14px;padding:12px}.violations-list article div{display:flex;flex-direction:column;gap:3px}.violations-list p{margin:4px 0}.violations-list small{opacity:.62}.admin-rating-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}.admin-rating-list>div{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:10px 0;border-bottom:1px solid rgba(127,127,127,.12)}.admin-rating-list small{grid-column:1/-1;opacity:.68}.rating-method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.rating-method-grid article{padding:14px;border:1px solid rgba(127,127,127,.16);border-radius:16px;background:rgba(127,127,127,.04)}.rating-method-grid p{margin:8px 0 0;font-size:13px;opacity:.75}.rating-levels{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 15px}.rating-levels span{padding:6px 9px;border-radius:999px;background:rgba(127,127,127,.08);font-size:12px}.rating-average-form{display:flex;gap:10px;align-items:end;max-width:560px}.rating-average-form label{display:flex;flex-direction:column;gap:6px;flex:1}.rating-score-pill{display:flex;flex-direction:column;gap:2px}.rating-score-pill strong{font-size:20px}.rating-score-pill small,.table-subtext{display:block;opacity:.6;font-size:11px;margin-top:2px}
@media(max-width:800px){.rating-components-grid,.rating-method-grid,.rating-edit-grid{grid-template-columns:1fr}.violation-form{grid-template-columns:1fr}.rating-average-form,.rating-month-picker{align-items:stretch;flex-direction:column}.rating-total-card{grid-template-columns:1fr}.rating-total-card small{grid-column:auto}}

/* ===== v10.1 days off + permanent deadlines + cancellation lock ===== */
.booking-cancel-locked{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 10px;border-radius:10px;font-size:12px;opacity:.68;background:rgba(127,127,127,.08);border:1px solid rgba(127,127,127,.15);white-space:nowrap}
.permanent-deadline-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.permanent-deadline-card{padding:16px;border:1px solid rgba(127,127,127,.17);border-radius:16px;background:rgba(127,127,127,.04);display:flex;flex-direction:column;gap:12px}.deadline-enable{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important}.deadline-enable input{width:auto}.deadline-rule-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.deadline-rule-fields label{display:flex;flex-direction:column;gap:6px}.permanent-deadline-card small{opacity:.62;line-height:1.45}@media(max-width:720px){.dayoff-cell{min-height:74px;padding:6px;border-radius:10px}.dayoff-weekdays,.dayoff-calendar-grid{gap:4px}.dayoff-toggle{font-size:9px!important;padding:4px!important}.dayoff-badge{font-size:9px}.permanent-deadline-grid{grid-template-columns:1fr}.deadline-rule-fields{grid-template-columns:1fr}}

/* ===== v10.2 mandatory training test ===== */
.training-test-shell{max-width:980px}.training-test-form{display:flex;flex-direction:column;gap:12px}.training-test-intro{text-align:center}.training-pass-note{display:inline-flex;padding:8px 12px;border-radius:12px;background:rgba(151,40,210,.08);margin-top:6px}.training-question-number{font-size:11px;font-weight:800;opacity:.55;text-transform:uppercase;letter-spacing:.06em}.training-question h2{font-size:20px;margin:7px 0 14px}.training-options{display:grid;gap:8px}.training-option{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid rgba(127,127,127,.16);border-radius:14px;cursor:pointer;background:rgba(127,127,127,.03)}.training-option:has(input:checked){border-color:rgba(151,40,210,.7);background:rgba(151,40,210,.10);box-shadow:0 0 0 2px rgba(151,40,210,.08)}.training-option input{margin-top:4px}.training-letter{display:grid;place-items:center;width:25px;height:25px;min-width:25px;border-radius:8px;background:rgba(151,40,210,.13);font-weight:900}.training-submit-panel{position:sticky;bottom:12px;z-index:8;display:flex;align-items:center;gap:12px}.training-submit-panel button{flex:1}.training-required-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;border-color:rgba(234,179,8,.3);background:rgba(234,179,8,.07)}.training-required-banner p{margin:5px 0 0;opacity:.7}.primary-link{display:inline-flex;padding:10px 14px;border-radius:12px;background:linear-gradient(135deg,#7c3aed,#db2777);color:white!important;text-decoration:none;font-weight:800;white-space:nowrap}.admin-training-test-panel{border-color:rgba(151,40,210,.22)}.employee-training-admin-card{border-color:rgba(151,40,210,.18)}@media(max-width:650px){.training-required-banner{align-items:stretch;flex-direction:column}.primary-link{text-align:center;justify-content:center}.training-submit-panel{flex-direction:column;align-items:stretch}.training-question h2{font-size:17px}}
\n\n/* ===== v10.2.2 training test UI cleanup ===== */
.training-test-shell{max-width:920px;padding-bottom:56px}
.training-test-intro{padding:24px 28px;margin-bottom:14px}
.training-test-intro h1{margin:5px 0 8px}
.training-pass-note{display:block;max-width:720px;margin:12px auto 0;line-height:1.45}
.training-test-form{display:flex;flex-direction:column;gap:14px}
.training-progress-row{padding:0 8px;font-size:12px;font-weight:800;letter-spacing:.03em;opacity:.58}
.training-question{padding:22px 24px}
.training-question-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.training-question-number{font-size:12px;font-weight:900;opacity:.58;text-transform:uppercase;letter-spacing:.055em}
.training-question-number span:last-child{opacity:.65}
.training-question h2{font-size:19px;line-height:1.35;margin:7px 0 16px;max-width:820px}
.training-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.training-option{position:relative;display:grid!important;grid-template-columns:34px minmax(0,1fr) 20px!important;align-items:center!important;gap:11px!important;min-height:64px;padding:12px 14px!important;border:1px solid rgba(127,127,127,.18)!important;border-radius:14px;cursor:pointer;background:rgba(127,127,127,.035);transition:border-color .15s ease,background .15s ease,transform .08s ease}
.training-option:hover{border-color:rgba(151,40,210,.42)!important;background:rgba(151,40,210,.055)}
.training-option:active{transform:scale(.995)}
.training-option input[type=radio]{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important}
.training-letter{display:grid;place-items:center;width:32px;height:32px;min-width:32px;border-radius:10px;background:rgba(151,40,210,.13);font-weight:900;font-size:13px}
.training-option-text{display:block;min-width:0;font-weight:700;font-size:14px;line-height:1.32}
.training-radio-dot{display:block;width:16px;height:16px;border-radius:50%;border:2px solid rgba(127,127,127,.42);box-sizing:border-box;justify-self:end;transition:.15s ease}
.training-option:has(input:checked){border-color:rgba(151,40,210,.78)!important;background:rgba(151,40,210,.11)!important;box-shadow:0 0 0 2px rgba(151,40,210,.08)}
.training-option:has(input:checked) .training-letter{background:linear-gradient(135deg,rgba(124,58,237,.95),rgba(219,39,119,.9));color:#fff}
.training-option:has(input:checked) .training-radio-dot{border:5px solid #8b5cf6;background:#fff}
.training-submit-panel{position:static!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important;gap:22px!important;padding:20px 24px;margin-top:4px}
.training-submit-panel>div{display:flex;flex-direction:column;gap:5px}
.training-submit-panel small{display:block;line-height:1.4;opacity:.65;max-width:610px}
.training-submit-panel button{min-width:190px;min-height:46px}
@media(max-width:720px){
  .training-test-shell{padding-left:12px;padding-right:12px}
  .training-test-intro,.training-question{padding:18px 16px}
  .training-options{grid-template-columns:1fr}
  .training-question h2{font-size:17px;margin-bottom:13px}
  .training-option{min-height:58px;grid-template-columns:32px minmax(0,1fr) 18px!important;padding:11px 12px!important}
  .training-letter{width:30px;height:30px;min-width:30px}
  .training-option-text{font-size:13px}
  .training-submit-panel{grid-template-columns:1fr!important;align-items:stretch!important;padding:18px 16px}
  .training-submit-panel button{width:100%;min-width:0}
}


/* ===== v10.2.3 admin training test review ===== */
.test-pending-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.test-pending-card{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid rgba(127,127,127,.16);border-radius:14px;text-decoration:none;color:inherit;background:rgba(127,127,127,.04)}.test-pending-card span{font-size:12px;opacity:.65}.test-score-chip{display:inline-flex;padding:6px 10px;border-radius:999px;font-weight:800;font-size:12px}.test-score-chip.good{background:rgba(34,197,94,.13);color:#22c55e}.test-score-chip.warn{background:rgba(234,179,8,.13);color:#eab308}.test-score-chip.bad{background:rgba(239,68,68,.12);color:#ef4444}.test-review-score{min-width:125px;text-align:center;padding:14px;border-radius:16px;background:linear-gradient(135deg,rgba(124,58,237,.16),rgba(217,70,239,.12));border:1px solid rgba(168,85,247,.22)}.test-review-score strong{display:block;font-size:32px;line-height:1}.test-review-score span{display:block;margin-top:6px;font-size:12px;opacity:.7}.test-review-list{display:grid;gap:12px}.test-review-question{border-left:4px solid rgba(127,127,127,.25)}.test-review-question.correct{border-left-color:#22c55e}.test-review-question.wrong{border-left-color:#ef4444}.test-review-qhead{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:12px;font-weight:800;opacity:.72}.test-review-question.correct .test-review-qhead strong{color:#22c55e}.test-review-question.wrong .test-review-qhead strong{color:#ef4444}.test-review-answer,.test-review-correct{display:grid;grid-template-columns:160px 1fr;gap:12px;align-items:start;margin-top:10px;padding:10px 12px;border-radius:12px;background:rgba(127,127,127,.05)}.test-review-answer span,.test-review-correct span{font-size:12px;opacity:.6}.test-review-correct{background:rgba(34,197,94,.07)}
@media(max-width:720px){.test-pending-grid{grid-template-columns:1fr}.test-review-answer,.test-review-correct{grid-template-columns:1fr;gap:4px}.test-review-score{min-width:100px}}

.dept-chip{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;background:rgba(139,28,246,.12);border:1px solid rgba(139,28,246,.24)}
.admin-department-form{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.admin-department-form label{min-width:240px}


/* v10.2.5 quick filters */
.employee-quick-filter-groups{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}
.employee-quick-filter-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.quick-filter-label{min-width:92px;font-size:11px;font-weight:800;opacity:.58;text-transform:uppercase;letter-spacing:.05em}
.department-pills a{border-color:rgba(139,28,246,.24)}
.department-pills a.active{background:rgba(139,28,246,.18);border-color:rgba(139,28,246,.65)}
@media(max-width:720px){.quick-filter-label{width:100%;min-width:0}}


/* ===== v10.2.6 booking deadline visibility ===== */
.booking-deadline{
  display:block;
  margin-top:4px;
  font-size:11px;
  line-height:1.3;
  opacity:.82;
}
.booking-deadline strong{font-weight:800;}
.booking-deadline.unlimited{opacity:.58;}

/* v10.3 */
.emoji-wrap{position:relative;margin:8px 0}.emoji-picker{position:absolute;bottom:48px;left:0;z-index:40;width:min(420px,92vw);max-height:240px;overflow:auto;padding:10px;background:#111827;border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 18px 45px rgba(0,0,0,.35)}.emoji-item{font-size:24px;background:transparent;border:0;padding:7px;border-radius:9px}.emoji-item:hover{background:rgba(255,255,255,.08)}.notification-history-row{display:grid;gap:4px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}.notification-history-row strong{font-size:12px;opacity:.65}.question-editor{margin:10px 0;padding:12px;border:1px solid rgba(255,255,255,.1);border-radius:14px}.inline-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.control-quick-card .alert form{margin-left:10px}.admin-nav{overflow-x:auto}.employee-control-visible .alert{margin-top:10px}

/* v10.3.1 */
.metric-link{display:block;text-decoration:none;color:inherit;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}
.metric-link:hover{transform:translateY(-2px);border-color:#8b5cf6;box-shadow:0 8px 22px rgba(91,33,182,.16)}
.control-search-form{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;margin:18px 0 8px}
.control-search-form input{min-width:0}
.attendance-focus-list{display:grid;gap:8px}
.attendance-focus-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;border:1px solid var(--border);border-radius:14px;text-decoration:none;color:inherit;background:var(--card)}
.attendance-focus-row:hover{border-color:#8b5cf6}
.attendance-focus-row span{color:var(--muted);font-size:13px}
.audit-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}
@media(max-width:600px){.control-search-form{grid-template-columns:1fr}.control-search-form span{display:none}.attendance-focus-row{align-items:flex-start;flex-direction:column;gap:5px}.audit-actions{align-items:stretch;flex-direction:column}}


/* ===== Smena24 v10.3.3 — softer employee dashboard ===== */

.employee-dashboard .employee-welcome{
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  padding:18px 8px 24px !important;
  margin-bottom:10px !important;
}

/* Три верхних блока теперь воспринимаются как одна зона */
.employee-dashboard .employee-overview-grid{
  padding:8px 12px;
  border-radius:24px;
  background:rgba(255,255,255,.68);
  box-shadow:0 14px 38px rgba(40,25,70,.06);
  gap:0 !important;
}

.employee-dashboard .employee-overview-grid > article{
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  padding:18px 20px !important;
}

.employee-dashboard .employee-overview-grid > article + article{
  border-left:1px solid rgba(110,100,125,.13) !important;
}

/* Основные большие секции — без обводки */
.employee-dashboard .employee-main-grid > .panel{
  border:0 !important;
  background:rgba(255,255,255,.70) !important;
  box-shadow:0 14px 38px rgba(40,25,70,.06) !important;
}

/* Внутри карточек тоже меньше рамок */
.employee-dashboard .employee-primary-actions a{
  border:0 !important;
  background:rgba(139,28,246,.045) !important;
}

.employee-dashboard .employee-upcoming-item{
  border:0 !important;
  background:rgba(139,28,246,.04) !important;
}

.employee-dashboard .employee-notification-list a{
  border-bottom-color:rgba(120,110,130,.10) !important;
}

.employee-dashboard .employee-secondary-actions{
  border-top-color:rgba(120,110,130,.10) !important;
}

/* DARK */
:root[data-theme="dark"] .employee-dashboard .employee-overview-grid{
  background:rgba(255,255,255,.035) !important;
  box-shadow:0 18px 45px rgba(0,0,0,.14) !important;
}

:root[data-theme="dark"] .employee-dashboard .employee-overview-grid > article{
  background:transparent !important;
}

:root[data-theme="dark"] .employee-dashboard .employee-overview-grid > article + article{
  border-left-color:rgba(255,255,255,.07) !important;
}

:root[data-theme="dark"] .employee-dashboard .employee-main-grid > .panel{
  background:rgba(255,255,255,.035) !important;
  border:0 !important;
  box-shadow:0 18px 45px rgba(0,0,0,.13) !important;
}

:root[data-theme="dark"] .employee-dashboard .employee-primary-actions a,
:root[data-theme="dark"] .employee-dashboard .employee-upcoming-item{
  background:rgba(255,255,255,.035) !important;
  border:0 !important;
}

/* На телефоне вместо вертикальных разделителей */
@media(max-width:900px){
  .employee-dashboard .employee-overview-grid{
    gap:0 !important;
  }

  .employee-dashboard .employee-overview-grid > article + article{
    border-left:0 !important;
    border-top:1px solid rgba(120,110,130,.10) !important;
  }

  :root[data-theme="dark"] .employee-dashboard .employee-overview-grid > article + article{
    border-top-color:rgba(255,255,255,.07) !important;
  }
}
