
:root{--o:#FF6900;--ol:#FF8C38;--d:#1A1A1A;--g:#6B7280;--bg:#F5F5F7;--w:#FFF;--gn:#10B981;--bl:#3B82F6;--rd:#EF4444;--s:0 2px 8px rgba(0,0,0,.08);--sl:0 8px 24px rgba(0,0,0,.12);--r:16px}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{font-family:'Inter',-apple-system,sans-serif;color:var(--d);background:var(--bg);line-height:1.6;overflow-x:hidden}
img{max-width:100%;display:block}
#lg{position:fixed;inset:0;z-index:9999;background:linear-gradient(135deg,#FF6900,#E85D00);display:flex;align-items:center;justify-content:center}
.lb{background:#fff;border-radius:20px;padding:40px 32px;text-align:center;max-width:360px;width:90%;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.lb input{width:100%;padding:14px;border:2px solid #E5E7EB;border-radius:12px;font-size:1rem;font-family:inherit;outline:none}
.lb button{width:100%;margin-top:14px;padding:14px;background:#FF6900;color:#fff;border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;font-family:inherit}
.hero{background:linear-gradient(135deg,var(--o),#E85D00);color:#fff;padding:64px 20px 48px;text-align:center;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;top:-40%;right:-15%;width:400px;height:400px;background:rgba(255,255,255,.05);border-radius:50%}
.hero-logo{font-size:13px;letter-spacing:4px;text-transform:uppercase;opacity:.9;margin-bottom:12px;font-weight:500}
.hero h1{font-size:clamp(1.8rem,6vw,2.8rem);font-weight:900;margin-bottom:8px;letter-spacing:-0.5px}
.hero p{font-size:.95rem;opacity:.85;max-width:500px;margin:0 auto;font-weight:300}
.hero-badge{display:inline-block;background:rgba(255,255,255,.2);padding:5px 14px;border-radius:20px;font-size:12px;margin-top:14px}
.nav{background:var(--w);border-bottom:1px solid #E5E7EB;padding:0 16px;position:sticky;top:0;z-index:100;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.nav-inner{max-width:900px;margin:0 auto;display:flex}
.nav-btn{flex:1;background:none;border:none;padding:14px 8px;font-size:13px;font-weight:600;color:var(--g);cursor:pointer;border-bottom:2px solid transparent;transition:.2s;font-family:inherit;text-align:center}
.nav-btn:hover{color:var(--o)}
.nav-btn.active{color:var(--o);border-bottom-color:var(--o)}
.ct{max-width:900px;margin:0 auto;padding:0 16px}
@media(min-width:1024px){.ct{max-width:1100px;padding:0 48px}.nav-inner{max-width:1100px}}
@media(min-width:1400px){.ct{max-width:1280px;padding:0 64px}.nav-inner{max-width:1280px}}
.sec{display:none;padding:24px 0 40px;animation:fi .3s ease}
.sec.active{display:block}
@keyframes fi{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.st{font-size:1.5rem;font-weight:800;margin-bottom:6px}
.sd{color:var(--g);margin-bottom:24px;font-size:.9rem}
.sub-nav{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}
.sub-btn{padding:8px 16px;border-radius:20px;border:1.5px solid #E5E7EB;background:var(--w);font-size:.82rem;font-weight:600;cursor:pointer;transition:.2s;font-family:inherit;color:var(--g)}
.sub-btn:hover{border-color:var(--o);color:var(--o)}
.sub-btn.active{background:var(--o);color:#fff;border-color:var(--o)}
.cg{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.cd{background:var(--w);border-radius:var(--r);overflow:hidden;box-shadow:var(--s);transition:.3s;border:1px solid #F3F4F6;cursor:pointer}
.cd:hover{transform:translateY(-3px);box-shadow:var(--sl)}
.cd-img{width:100%;height:200px;object-fit:contain;background:#F9FAFB;padding:12px}
.cd-b{padding:20px}
.cd-b h3{font-size:1rem;font-weight:700;margin-bottom:3px}
.cd-b .pr{color:var(--o);font-weight:700;font-size:1.05rem;margin-bottom:8px}
.cd-b .desc{font-size:.82rem;color:var(--g);line-height:1.5}
.cd-link{display:block;text-align:center;padding:12px;background:var(--o);color:#fff;font-weight:600;font-size:.9rem;text-decoration:none}
.cd-link:active{background:#E85D00}
.detail{display:none;padding:0 0 40px;animation:fi .3s ease}
.detail.active{display:block}
.detail-back{display:inline-flex;align-items:center;gap:6px;padding:16px 0;font-size:.9rem;font-weight:600;color:var(--o);cursor:pointer;border:none;background:none;font-family:inherit}
.detail-hero{background:var(--w);border-radius:var(--r);overflow:hidden;box-shadow:var(--s);margin-bottom:20px}
.detail-hero img{width:100%;height:260px;object-fit:contain;padding:16px;background:#F9FAFB}
.detail-hero-b{padding:20px}
.detail-hero-b h2{font-size:1.4rem;font-weight:800;margin-bottom:4px}
.detail-hero-b .pr{color:var(--o);font-size:1.2rem;font-weight:700}
.detail-section{background:var(--w);border-radius:var(--r);padding:20px;box-shadow:var(--s);margin-bottom:16px}
.detail-section h3{font-size:1.05rem;font-weight:700;margin-bottom:12px;color:var(--d)}
.detail-section p,.detail-section li{font-size:.88rem;color:#374151;line-height:1.75}
.detail-section ul,.detail-section ol{margin-left:18px}
.detail-section li{margin-bottom:6px}
.spec-tbl{width:100%;border-collapse:collapse;font-size:.82rem;margin:12px 0}
.spec-tbl th{text-align:left;padding:10px 8px;background:#F9FAFB;font-weight:600;color:var(--d);width:35%;border-bottom:1px solid #E5E7EB}
.spec-tbl td{padding:10px 8px;color:#374151;border-bottom:1px solid #F3F4F6}
.cmp{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:12px 0;border-radius:12px;border:1px solid #E5E7EB}
.cmp table{min-width:700px;width:100%;border-collapse:collapse;font-size:.78rem}
.cmp th{background:#1A1A1A;color:#fff;padding:10px 8px;text-align:left;font-weight:600;position:sticky;top:0;white-space:nowrap}
.cmp td{padding:10px 8px;border-bottom:1px solid #F3F4F6;vertical-align:top}
.cmp tr:nth-child(even){background:#FAFAFA}
.obj{background:#FFF7ED;border-radius:12px;padding:16px;margin-top:12px;border-left:4px solid var(--o)}
.obj-q{font-weight:700;font-size:.88rem;color:var(--d);margin-bottom:6px}
.obj-a{font-size:.85rem;color:#374151;line-height:1.7}
.qa{background:var(--w);border-radius:var(--r);padding:20px;box-shadow:var(--s);margin-bottom:16px}
.qa h3{font-size:1rem;font-weight:700;margin-bottom:10px}
.qa .q{font-weight:600;font-size:.9rem;margin-bottom:8px}
.qa .a{font-size:.85rem;color:#374151;line-height:1.7}
.qa ul{margin-left:18px;margin-top:6px}
.qa li{margin-bottom:4px}
.acc{background:var(--w);border-radius:var(--r);margin-bottom:12px;box-shadow:var(--s);overflow:hidden}
.acc-h{padding:18px 20px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-weight:600;font-size:.95rem;transition:.2s}
.acc-h:active{background:#FAFAFA}
.acc-h .ar{transition:transform .3s;font-size:11px;color:var(--g)}
.acc.open .acc-h .ar{transform:rotate(180deg)}
.acc-b{max-height:0;overflow:hidden;transition:max-height .4s ease}
.acc-c{padding:0 20px 20px;color:#374151;font-size:.85rem;line-height:1.8}
.acc-c ul,.acc-c ol{margin-left:18px}
.acc-c li{margin-bottom:6px}
.off-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:500px){.off-grid{grid-template-columns:1fr}}
.off-card{background:var(--w);border-radius:var(--r);padding:18px;box-shadow:var(--s)}
.off-card h3{font-size:.95rem;font-weight:700;margin-bottom:8px}
.off-card p{font-size:.85rem;color:var(--g)}
.offer-tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 20px}
.offer-tbl{width:100%;border-collapse:collapse;font-size:.78rem;min-width:850px}
.offer-tbl th{background:#292B2E;color:#fff;font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;padding:7px 6px;text-align:left;border:1px solid #292B2E;white-space:nowrap}
.offer-tbl td{padding:5px 6px;border:1px solid #E5E7EB;vertical-align:top;font-size:.78rem;line-height:1.35}
.offer-tbl .spu{background:#F0EFED;font-weight:700;vertical-align:middle}
.offer-tbl .mem{text-align:center;font-variant-numeric:tabular-nums}
.offer-tbl .rrp{color:#9CA3AF;text-align:right;font-variant-numeric:tabular-nums}
.offer-tbl .offer{color:#FF6900;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.offer-tbl .cpn{text-align:center}
.offer-tbl .cpn-badge{display:inline-block;background:#FFF0E5;color:#FF6900;font-weight:700;padding:1px 7px;border-radius:8px;font-size:.72rem}
.offer-tbl .gift{font-size:.72rem;line-height:1.35;text-align:left}
.offer-tbl .addon{background:#FFF6EF;border-color:#F2CCB4;font-size:.72rem;line-height:1.35;text-align:left}
.offer-tbl .addon-lbl{font-weight:700;font-size:.6rem;color:#FF6900;text-transform:uppercase;letter-spacing:.8px;margin-bottom:2px}
.offer-tbl .rose{background:#FBE5EC}
.offer-tbl .empty{text-align:center;color:#B0B2B8;font-size:.85rem}
.offer-tbl .choose{font-size:.65rem;color:#9CA3AF;font-style:italic}
.offer-note{font-size:.75rem;color:#85878D;margin:6px 0 0;line-height:1.4}
.offer-note b{color:#FF6900}
.tag{display:inline-block;padding:3px 8px;border-radius:6px;font-size:11px;font-weight:600;margin-top:8px}
.tag-o{background:#FFF7ED;color:#92400E}
.tag-g{background:#D1FAE5;color:#065F46}
.tag-b{background:#DBEAFE;color:#1E40AF}
.step{display:flex;gap:12px;margin-bottom:12px;align-items:flex-start}
.step-n{width:28px;height:28px;border-radius:50%;background:var(--o);color:#fff;font-size:.8rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.step-t{font-size:.85rem;color:#374151;line-height:1.6}
.demo{background:#F0FDF4;border-radius:12px;padding:16px;margin:10px 0;border-left:4px solid var(--gn)}
.demo b{color:#065F46}
.ft{text-align:center;padding:32px 16px;color:var(--g);font-size:.8rem;border-top:1px solid #E5E7EB;margin-top:40px}
.rota-module .person-name-line{display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-width:0}
.rota-module .person-name-line .person-name{min-width:0}
.rota-module .person-balance-badges{display:inline-flex;align-items:center;gap:3px;flex-wrap:wrap}
.rota-module .person-balance-badge{display:inline-flex;align-items:center;min-height:16px;padding:2px 5px;border:1px solid #f2c7a7;border-radius:999px;background:#fff6ef;color:#9b470b;font-size:7px;font-weight:850;line-height:1;white-space:nowrap}
.rota-module .person-balance-badge.bh{border-color:#c9d8ef;background:#f2f7ff;color:#315d98}
.rota-module #peopleDialog{width:min(640px,calc(100vw - 28px))}
.rota-module .person-row{align-items:flex-start}
.rota-module .person-row-main{min-width:0;flex:1;display:grid;gap:7px}
.rota-module .person-row-name{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-weight:750}
.rota-module .person-row .person-balance-badges{flex:0 0 auto;min-width:0;font-weight:inherit}
.rota-module .person-row .person-balance-badge{flex:0 0 auto;min-width:0}
.rota-module .person-balance-fields{display:grid;grid-template-columns:repeat(2,minmax(105px,160px));gap:7px}
.rota-module .person-balance-field{display:grid;gap:3px;color:var(--muted);font-size:9px;font-weight:700}
.rota-module .person-balance-field input{width:100%;height:32px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);outline:0;font-weight:750}
.rota-module .person-balance-field input:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,105,0,.12)}
.rota-module .person-row-actions{display:flex;align-items:center;gap:2px}

@media(max-width:640px){
  .cg{grid-template-columns:1fr 1fr;gap:12px}
  .cd-img{height:140px;padding:8px}
  .cd-b{padding:12px}
  .cd-b h3{font-size:.85rem}
  .cd-b .pr{font-size:.9rem}
  .cd-b .desc{font-size:.75rem}
  .detail-hero img{height:200px}
  #recognition [style*="grid-template-columns:repeat(4"]{grid-template-columns:1fr 1fr!important}
  #recognition [style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr!important}
  #recognition [style*="grid-template-columns:repeat(3"]{grid-template-columns:1fr!important}
  #recognition [style*="grid-template-columns:1fr 1fr;gap:12px"]{grid-template-columns:1fr!important}
}
@media(max-width:380px){.cg{grid-template-columns:1fr}}
/* Data Dashboard */
.stat-card{background:var(--w);border-radius:var(--r);padding:18px;box-shadow:var(--s);border-left:4px solid var(--o)}
.stat-card .label{font-size:.78rem;color:var(--g);font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}
.stat-card .value{font-size:1.6rem;font-weight:800;color:var(--d)}
.stat-card .delta{font-size:.75rem;font-weight:600;margin-top:4px}
.stat-card .delta.up{color:var(--gn)}
.stat-card .delta.down{color:var(--rd)}
.currency-toggle{margin-left:auto;display:flex;border:1.5px solid #E5E7EB;border-radius:10px;overflow:hidden}
.cur-btn{padding:6px 14px;border:none;font-size:.8rem;font-weight:600;cursor:pointer;font-family:inherit;transition:.2s;background:var(--w);color:var(--g)}
.cur-btn.active{background:var(--o);color:#fff}
@media(max-width:768px){#comparisonGrid{grid-template-columns:1fr!important}}
.week-card{background:var(--w);border-radius:var(--r);padding:20px;box-shadow:var(--s)}
.week-card h4{font-size:.9rem;font-weight:700;margin-bottom:14px;color:var(--d)}
.week-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #F3F4F6}
.week-row:last-child{border-bottom:none}
.week-row .wk{font-size:.78rem;color:var(--g);font-weight:500;min-width:60px}
.week-row .val{font-size:.88rem;font-weight:700;color:var(--d)}
.week-bar-wrap{flex:1;margin:0 12px;height:8px;background:#F3F4F6;border-radius:4px;overflow:hidden}
.week-bar{height:100%;border-radius:4px;transition:width .6s ease}
.chart-dot{transition:r .15s ease}
.chart-hit:hover ~ .chart-dot{r:4}

/* ══════════════════════════════════════════════════════
   EXTENSIBILITY LAYER — Admin Panel, Import, SDK UI
   All hidden by default; activated via PORTAL_CONFIG
   ══════════════════════════════════════════════════════ */
.admin-fab{position:fixed;bottom:80px;right:20px;z-index:8900;width:44px;height:44px;border-radius:50%;background:#1A1A1A;color:#fff;border:none;font-size:18px;cursor:pointer;box-shadow:0 4px 20px rgba(0,0,0,.28);display:none;align-items:center;justify-content:center;transition:.2s;font-family:inherit}
.admin-fab:hover{background:#333;transform:scale(1.08)}
.admin-fab.show{display:flex}
.portal-overlay{position:fixed;inset:0;z-index:9200;background:rgba(0,0,0,.55);display:none}
.portal-overlay.open{display:flex;align-items:flex-end;justify-content:center;animation:fi .2s ease}
.portal-sheet{background:#fff;border-radius:20px 20px 0 0;width:100%;max-width:720px;max-height:92vh;overflow-y:auto;padding:24px 24px 48px}
.portal-sheet-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.portal-sheet-hd h2{font-size:1.1rem;font-weight:800}
.portal-sheet-close{background:none;border:none;font-size:22px;cursor:pointer;color:var(--g);padding:4px 8px;line-height:1}
.portal-tab-row{display:flex;gap:6px;margin-bottom:20px;flex-wrap:wrap}
.portal-tab{padding:7px 14px;border-radius:20px;border:1.5px solid #E5E7EB;background:var(--w);font-size:.8rem;font-weight:600;cursor:pointer;font-family:inherit;color:var(--g);transition:.15s}
.portal-tab:hover{border-color:var(--o);color:var(--o)}
.portal-tab.active{background:var(--o);color:#fff;border-color:var(--o)}
.portal-panel{display:none}
.portal-panel.active{display:block}
.portal-field{margin-bottom:14px}
.portal-field label{display:block;font-size:.8rem;font-weight:600;color:var(--d);margin-bottom:5px}
.portal-field input,.portal-field select,.portal-field textarea{width:100%;padding:10px 12px;border:1.5px solid #E5E7EB;border-radius:10px;font-size:.85rem;font-family:inherit;outline:none;background:#FAFAFA;transition:.15s;box-sizing:border-box}
.portal-field input:focus,.portal-field select:focus,.portal-field textarea:focus{border-color:var(--o);background:#fff}
.portal-field textarea{min-height:80px;resize:vertical}
.portal-btn{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;border-radius:10px;border:none;font-size:.85rem;font-weight:600;cursor:pointer;font-family:inherit;transition:.15s}
.portal-btn-primary{background:var(--o);color:#fff}
.portal-btn-primary:hover{background:#E85D00}
.portal-btn-secondary{background:#F3F4F6;color:var(--d)}
.portal-btn-secondary:hover{background:#E5E7EB}
.portal-btn-danger{background:#FEE2E2;color:#EF4444}
.portal-btn-danger:hover{background:#FECACA}
.portal-btn-sm{padding:7px 12px;font-size:.78rem}
.portal-divider{border:none;border-top:1px solid #F3F4F6;margin:16px 0}
.portal-badge{display:inline-block;padding:2px 10px;border-radius:20px;font-size:.72rem;font-weight:700;letter-spacing:.2px}
.portal-badge-green{background:#D1FAE5;color:#059669}
.portal-badge-orange{background:#FFEDD5;color:#EA580C}
.portal-badge-gray{background:#F3F4F6;color:var(--g)}
.portal-badge-blue{background:#DBEAFE;color:#2563EB}
.portal-info{background:#EFF6FF;border-radius:10px;padding:12px 14px;font-size:.82rem;color:#1D4ED8;line-height:1.6;margin-bottom:14px}
.portal-warn{background:#FFFBEB;border-radius:10px;padding:12px 14px;font-size:.82rem;color:#B45309;line-height:1.6;margin-bottom:14px}
.portal-success{background:#ECFDF5;border-radius:10px;padding:12px 14px;font-size:.82rem;color:#065F46;line-height:1.6;margin-bottom:14px}
.portal-code{font-family:monospace;font-size:.78rem;background:#1A1A1A;color:#10B981;padding:10px 14px;border-radius:8px;overflow-x:auto;line-height:1.7;margin:8px 0;white-space:pre}
.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #F3F4F6}
.toggle-row:last-child{border-bottom:none}
.toggle-info{flex:1;margin-right:16px}
.toggle-label{font-size:.88rem;font-weight:500}
.toggle-desc{font-size:.75rem;color:var(--g);margin-top:2px}
.toggle-sw{position:relative;width:44px;height:24px;flex-shrink:0}
.toggle-sw input{opacity:0;width:0;height:0;position:absolute}
.toggle-sw .sl{position:absolute;cursor:pointer;inset:0;background:#D1D5DB;border-radius:24px;transition:.2s}
.toggle-sw .sl:before{content:'';position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.toggle-sw input:checked+.sl{background:var(--o)}
.toggle-sw input:checked+.sl:before{transform:translateX(20px)}
.edit-mode-badge{position:fixed;top:60px;right:12px;z-index:8800;background:#EF4444;color:#fff;padding:4px 12px;border-radius:20px;font-size:.72rem;font-weight:700;display:none;letter-spacing:.5px;pointer-events:none}
.edit-mode-badge.show{display:block}
.import-dropzone{border:2px dashed #D1D5DB;border-radius:12px;padding:28px;text-align:center;cursor:pointer;transition:.2s;background:#FAFAFA;position:relative}
.import-dropzone:hover,.import-dropzone.dragover{border-color:var(--o);background:#FFF7ED}
.import-dropzone input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
.import-dropzone p{font-size:.85rem;color:var(--g);margin-top:6px}
.import-preview{background:#1A1A1A;color:#10B981;border-radius:10px;padding:14px;font-size:.75rem;line-height:1.6;max-height:180px;overflow-y:auto;font-family:monospace;white-space:pre-wrap;margin-top:10px}
.module-card{background:#FAFAFA;border-radius:12px;padding:14px;margin-bottom:10px;border:1px solid #F3F4F6;display:flex;align-items:flex-start;gap:12px}
.module-card-icon{width:36px;height:36px;border-radius:10px;background:var(--o);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.module-card-body{flex:1}
.module-card-body h4{font-size:.88rem;font-weight:700;margin-bottom:3px}
.module-card-body p{font-size:.78rem;color:var(--g);line-height:1.5}
.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}
.status-dot.green{background:#10B981}
.status-dot.gray{background:#D1D5DB}
.status-dot.orange{background:#F59E0B}

/* === ROTA MODULE v2 === */
.rota-module {
  --orange:#ff6900; --orange-dark:#d95700; --ink:#1d1d1f; --muted:#71737b;
  --line:#e6e7eb; --canvas:#f5f5f7; --surface:#fff;
  --mor-bg:#f4e5a6; --mor-ink:#352e14; --noon-bg:#f2bfd7; --noon-ink:#482033;
  --eve-bg:#bde2ef; --eve-ink:#173b49; --half-bg:#bddcac; --half-ink:#213d18;
  --leave-bg:#df443c; --leave-ink:#fff; --sick-bg:#e9969f; --sick-ink:#4b161b;
  --holiday-bg:#f0ca5d; --holiday-ink:#3f3105; --off-bg:#e4e5e8; --off-ink:#35363a;
  --shadow:0 12px 34px rgba(28,29,33,.07);
  font:14px Inter,"Segoe UI",Arial,sans-serif;
  color:var(--ink);
}
.rota-module *, .rota-module *::before, .rota-module *::after { box-sizing:border-box; }
.rota-module [hidden] { display:none!important; }
.rota-module button, .rota-module input, .rota-module select { font:inherit; }
.rota-module button, .rota-module select { -webkit-tap-highlight-color:transparent; }

.rota-module .page-head{margin-bottom:16px}.rota-module .eyebrow{color:var(--orange-dark);font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase}.rota-module h1{margin:4px 0 3px;font-size:clamp(23px,3vw,30px);line-height:1.15;letter-spacing:-.65px}.rota-module .page-head p{margin:0;color:var(--muted);font-size:13px}.rota-module .view-switch{width:fit-content;margin-bottom:12px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#ececef;display:grid;grid-template-columns:repeat(2,minmax(125px,1fr));gap:3px}.rota-module .view-tab{height:34px;padding:0 16px;border:0;border-radius:9px;background:transparent;color:#666870;font-size:12px;font-weight:750;cursor:pointer}.rota-module .view-tab[aria-selected="true"]{background:#fff;color:var(--orange-dark);box-shadow:0 2px 8px rgba(30,31,35,.08)}.rota-module .toolbar{margin-bottom:10px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow);display:flex;align-items:center;gap:9px;flex-wrap:wrap}.rota-module .field{height:40px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#fff;display:flex;align-items:center;gap:7px}.rota-module .field label{color:var(--muted);font-size:11px}.rota-module .field select,.rota-module .field input{border:0;outline:0;background:transparent;color:var(--ink);font-weight:750}.rota-module .period-nav{display:flex;align-items:center;gap:5px}.rota-module .period-label{min-width:174px;text-align:center;font-size:13px;font-weight:750}.rota-module .spacer{flex:1 1 20px}.rota-module .mode-note{color:var(--muted);font-size:11px}.rota-module .mode-note.readonly{color:#61636b;font-weight:750}.rota-module .mode-note.admin{color:var(--orange-dark);font-weight:750}.rota-module .mode-note.dirty{color:#aa5600;font-weight:750}.rota-module .storage-note{margin:-1px 2px 12px;color:var(--muted);font-size:10px;line-height:1.45}.rota-module .btn{height:40px;padding:0 13px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#33353a;font-weight:700;cursor:pointer}.rota-module .btn:hover{border-color:#c9cbd1;background:#fafafa}.rota-module .btn:focus-visible,.rota-module .shift-cell:focus-visible,.rota-module .option:focus-visible{outline:3px solid rgba(255,105,0,.25);outline-offset:2px}.rota-module .btn.square{width:40px;padding:0;font-size:19px}.rota-module .btn.primary{border-color:var(--orange);background:var(--orange);color:#fff}.rota-module .btn.primary:hover{background:var(--orange-dark)}.rota-module .btn.soft{border-color:#ffd0ae;background:#fff6ef;color:#b94700}.rota-module .card{border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow);overflow:hidden}.rota-module .week-stack{display:grid;gap:14px}.rota-module .week-card-head{padding:10px 14px;background:#fafafa;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px}.rota-module .week-card-head b{font-size:14px}.rota-module .week-status{padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.35px;text-transform:uppercase}.rota-module .week-status.fixed{background:#eaf7f1;color:#237252}.rota-module .week-status.preview{background:#fff0e5;color:#a54200}.rota-module .week-range{margin-left:auto;color:var(--muted);font-size:10px}.rota-module .table-scroll{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable}.rota-module .rota-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0;table-layout:fixed}.rota-module .rota-table th,.rota-module .rota-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.rota-module .rota-table tr>*:last-child{border-right:0}.rota-module .rota-table tbody tr:last-child>*{border-bottom:0}.rota-module .rota-table thead th{height:82px;padding:7px 5px;background:#fafafa;text-align:center;vertical-align:top}.rota-module .rota-table th.name-col,.rota-module .rota-table td.name-col{position:sticky;left:0;z-index:4;width:150px;min-width:150px;background:#fff;box-shadow:5px 0 12px rgba(29,29,31,.05)}.rota-module .rota-table thead th.name-col{z-index:7;background:#fafafa;color:var(--muted);font-size:10px;text-align:left;padding:11px 12px}.rota-module .rota-table thead th.weekend{background:#f7f7f8}.rota-module .rota-table thead th.is-today{background:#fff5ed}.rota-module .weekday{font-size:10px;color:var(--muted);font-weight:800;letter-spacing:.45px}.rota-module .date-number{margin-top:2px;font-size:16px;font-weight:800}.rota-module .today-marker{width:fit-content;margin:3px auto 0;padding:2px 5px;border-radius:999px;background:var(--orange);color:#fff;font-size:7px;font-weight:850;text-transform:uppercase}.rota-module .header-note{margin-top:5px;height:27px;overflow:hidden;color:#7a5a42;font-size:8px;line-height:1.25}.rota-module .note-button{max-width:100%;margin-top:4px;padding:2px 5px;border:1px dashed #ffc69e;border-radius:5px;background:#fff8f3;color:#b84b00;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;cursor:pointer}.rota-module .person-cell{height:68px;padding:8px 12px}.rota-module .person-name{font-weight:780;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rota-module .person-hours{margin-top:4px;color:var(--orange-dark);font-size:9px;font-weight:800;white-space:nowrap}.rota-module .shift-slot{height:68px;padding:5px;background:#fff}.rota-module .shift-slot.weekend{background:#fcfcfd}.rota-module .shift-slot.is-today{background:#fffaf6}.rota-module .shift-cell{width:100%;height:57px;padding:5px;border:1px dashed #dcdde1;border-radius:8px;background:transparent;color:#9da0a7;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer}.rota-module .shift-cell:hover{border-color:#ffbb89;background:#fffaf6;color:var(--orange-dark)}.rota-module .shift-cell:disabled{cursor:default}.rota-module .shift-cell .shift-name{font-size:10px;font-weight:800}.rota-module .shift-cell .shift-time{margin-top:3px;font-size:7px;opacity:.78}.rota-module .shift-cell.has-shift{border-style:solid;border-color:var(--shift-border);background:var(--shift-bg);color:var(--shift-ink);box-shadow:0 1px 2px rgba(20,20,24,.08)}.rota-module .shift-cell.has-shift.is-plus{box-shadow:inset 0 -4px var(--shift-ink),0 1px 2px rgba(20,20,24,.08)}.rota-module .empty-state{padding:44px 20px;color:var(--muted);text-align:center}.rota-module .empty-state b{display:block;margin-bottom:5px;color:var(--ink);font-size:15px}.rota-module .legend-row{padding:10px 13px;border-top:1px solid var(--line);display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:9px}.rota-module .legend{display:inline-flex;align-items:center;gap:4px}.rota-module .legend i{width:8px;height:8px;border-radius:3px}.rota-module .legend .mor{background:var(--mor-bg)}.rota-module .legend .noon{background:var(--noon-bg)}.rota-module .legend .eve{background:var(--eve-bg)}.rota-module .legend .half{background:var(--half-bg)}.rota-module .legend .leave{background:var(--leave-bg)}.rota-module .legend .sick{background:var(--sick-bg)}.rota-module .legend .holiday{background:var(--holiday-bg)}.rota-module .legend .off{background:var(--off-bg)}.rota-module dialog{width:min(450px,calc(100vw - 28px));padding:0;border:0;border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 24px 80px rgba(22,22,25,.22)}.rota-module dialog::backdrop{background:rgba(25,25,29,.34);backdrop-filter:blur(2px)}.rota-module .dialog-head{padding:18px 20px 14px;border-bottom:1px solid var(--line);display:flex;align-items:start;gap:12px}.rota-module .dialog-head h2{margin:0;font-size:18px}.rota-module .dialog-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.rota-module .icon-btn{width:32px;height:32px;margin-left:auto;border:0;border-radius:9px;background:#f3f3f5;color:#606269;cursor:pointer;font-size:18px}.rota-module .dialog-body{padding:16px 20px 20px}.rota-module .shift-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rota-module .option{min-height:58px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.rota-module .option:hover{border-color:#ffba87;background:#fffaf6}.rota-module .option b{display:block;font-size:11px}.rota-module .option span{display:block;margin-top:4px;color:var(--muted);font-size:9px}.rota-module .option.clear{grid-column:1/-1;min-height:40px;text-align:center;color:var(--muted)}.rota-module .text-field{display:grid;gap:6px}.rota-module .text-field label{color:var(--muted);font-size:11px;font-weight:700}.rota-module .text-field input{height:42px;padding:0 12px;border:1px solid var(--line);border-radius:10px;outline:0}.rota-module .text-field input:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,105,0,.12)}.rota-module .password-input{letter-spacing:4px}.rota-module .dialog-actions{margin-top:13px;display:flex;justify-content:flex-end;gap:8px}.rota-module .dialog-error{min-height:18px;margin-top:7px;color:#b44444;font-size:11px}.rota-module .dialog-note{margin:11px 2px 0;color:var(--muted);font-size:10px;line-height:1.5}.rota-module .people-store-field{margin-bottom:12px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#fafafa;display:flex;align-items:center;gap:9px}.rota-module .people-store-field label{color:var(--muted);font-size:11px;font-weight:700}.rota-module .people-store-field select{height:34px;min-width:130px;padding:0 30px 0 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-weight:750}.rota-module .people-count{margin-left:auto;color:var(--muted);font-size:10px}.rota-module .add-person{display:flex;gap:8px;margin-bottom:14px}.rota-module .add-person input{min-width:0;flex:1;height:40px;border:1px solid var(--line);border-radius:10px;padding:0 11px}.rota-module .person-list{max-height:min(360px,50vh);overflow-y:auto;border:1px solid var(--line);border-radius:12px}.rota-module .person-row{min-height:48px;padding:8px 10px 8px 13px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px}.rota-module .person-row:last-child{border-bottom:0}.rota-module .person-row span{flex:1;font-weight:700}.rota-module .person-action{border:0;border-radius:8px;padding:6px 8px;background:transparent;color:#666971;cursor:pointer;font-size:10px}.rota-module .person-action:hover{background:#f2f3f5;color:var(--orange-dark)}.rota-module .person-action.remove{color:#a04b4b}.rota-module .list-empty{padding:24px;color:var(--muted);text-align:center;font-size:12px}.rota-module #shiftManagerDialog{width:min(620px,calc(100vw - 28px))}.rota-module .shift-manager-top{margin-bottom:12px;display:flex;align-items:center;gap:10px}.rota-module .shift-manager-top p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}.rota-module .shift-definition-list{max-height:min(280px,35vh);overflow-y:auto;border:1px solid var(--line);border-radius:12px}.rota-module .shift-definition-row{min-height:54px;padding:8px 10px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:18px minmax(95px,1fr) minmax(115px,1fr) auto;align-items:center;gap:9px}.rota-module .shift-definition-row:last-child{border-bottom:0}.rota-module .shift-swatch{width:16px;height:32px;border:1px solid var(--swatch-border);border-radius:5px;background:var(--swatch-bg)}.rota-module .shift-definition-name{font-weight:800}.rota-module .shift-definition-meta{color:var(--muted);font-size:10px;line-height:1.35}.rota-module .shift-definition-form{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.rota-module .shift-definition-form h3{margin:0 0 10px;font-size:14px}.rota-module .shift-form-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:9px}.rota-module .shift-form-grid .wide{grid-column:span 2}.rota-module .shift-form-field{display:grid;gap:5px}.rota-module .shift-form-field label{color:var(--muted);font-size:10px;font-weight:750}.rota-module .shift-form-field input,.rota-module .shift-form-field select{width:100%;height:39px;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);outline:0}.rota-module .shift-form-field input:focus,.rota-module .shift-form-field select:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,105,0,.12)}.rota-module .shift-hours-preview{min-height:39px;padding:7px 10px;border:1px solid #f0d8c6;border-radius:9px;background:#fff8f3;color:#8a3c08;font-size:10px;line-height:1.25}.rota-module .shift-hours-preview b{display:block;font-size:12px}.rota-module .shift-form-error{min-height:16px;margin-top:7px;color:#b44444;font-size:10px}.rota-module .shift-form-actions{display:flex;justify-content:flex-end;gap:8px}.rota-module .toast{position:fixed;left:50%;bottom:24px;z-index:30;transform:translate(-50%,18px);padding:10px 14px;border-radius:999px;background:#25262a;color:#fff;box-shadow:0 10px 28px rgba(0,0,0,.18);opacity:0;pointer-events:none;transition:.2s;font-size:12px}.rota-module .toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:900px){.rota-module main{padding:16px 10px 26px}.rota-module .view-switch{width:100%;grid-template-columns:repeat(2,1fr)}.rota-module .view-tab{padding:0 7px}.rota-module .toolbar{padding:9px}.rota-module .field.store-field{width:100%}.rota-module .period-nav{width:100%;justify-content:space-between}.rota-module .period-nav .btn{white-space:nowrap;padding:0 9px}.rota-module .period-label{min-width:135px;flex:1}.rota-module .spacer{display:none}.rota-module .week-card-head{padding:9px 10px;flex-wrap:wrap}.rota-module .week-range{margin-left:auto}.rota-module .rota-table{min-width:780px}.rota-module .rota-table th.name-col,.rota-module .rota-table td.name-col{width:112px;min-width:112px}.rota-module .rota-table thead th.name-col{padding:10px 8px}.rota-module .person-cell{padding:7px 8px}.rota-module .shift-cell .shift-time{display:none}}@media(max-width:520px){.rota-module .page-head{margin-bottom:12px}.rota-module .week-range{width:100%;margin-left:0}.rota-module .storage-note{line-height:1.35}.rota-module .legend-row{gap:8px}.rota-module #weekNav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.rota-module #weekNav .period-label{grid-column:1/-1;grid-row:1;min-width:0}.rota-module #weekNav .btn{grid-row:2;width:100%;height:38px;padding:0 4px;font-size:9px}.rota-module .shift-options{grid-template-columns:1fr}.rota-module .option.clear{grid-column:1}.rota-module .rota-table{min-width:760px}.rota-module .people-store-field{align-items:stretch;flex-wrap:wrap}.rota-module .people-store-field select{flex:1}.rota-module .people-count{width:100%;margin-left:0}.rota-module .person-row{flex-wrap:wrap}.rota-module .person-row span{min-width:calc(100% - 16px)}.rota-module .shift-definition-row{grid-template-columns:18px minmax(100px,1fr) auto}.rota-module .shift-definition-meta{grid-column:2/-1}.rota-module .shift-form-grid{grid-template-columns:1fr 1fr}.rota-module .shift-form-grid .wide{grid-column:1/-1}.rota-module .shift-hours-preview{grid-column:1/-1}}@media(prefers-reduced-motion:reduce){.rota-module *{transition:none!important}}

@media(max-width:640px){
  .nav-inner{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .nav-inner::-webkit-scrollbar{display:none}
  .nav-btn{flex:0 0 auto;white-space:nowrap;padding:14px 10px}
}

@media(max-width:520px){
  .rota-module .person-balance-fields{grid-template-columns:1fr 1fr}
  .rota-module .person-row-actions{width:100%;justify-content:flex-end}
}

