:root{
  --bg:#eef3f8;--bg2:#dfe7ef;--panel:rgba(255,255,255,.88);--panel-solid:#fff;--panel2:#f8fafc;
  --text:#111827;--muted:#64748b;--line:#d7dee8;--line2:rgba(148,163,184,.32);
  --blue:#2563eb;--blue2:#1d4ed8;--cyan:#0891b2;--green:#16a34a;--yellow:#f59e0b;--orange:#ea580c;--red:#dc2626;--violet:#7c3aed;
  --steel:#334155;--graphite:#0f172a;--plastic:#2dd4bf;--amber:#f59e0b;
  --shadow:0 18px 55px rgba(15,23,42,.11);--soft:0 8px 28px rgba(15,23,42,.07);--r:20px;--r2:28px;--glass:blur(18px);
}
.theme-dark{
  --bg:#0b1220;--bg2:#111827;--panel:rgba(15,23,42,.82);--panel-solid:#111827;--panel2:#172033;
  --text:#f8fafc;--muted:#94a3b8;--line:#263244;--line2:rgba(148,163,184,.22);
  --shadow:0 18px 60px rgba(0,0,0,.35);--soft:0 8px 28px rgba(0,0,0,.26);
}
*{box-sizing:border-box}html{font-size:16px}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:radial-gradient(circle at 10% 0%,rgba(45,212,191,.18),transparent 28%),radial-gradient(circle at 90% 0%,rgba(37,99,235,.16),transparent 32%),linear-gradient(135deg,var(--bg),var(--bg2));color:var(--text);min-height:100vh;overflow-x:hidden}body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.52;background-image:linear-gradient(115deg,transparent 0 48%,rgba(255,255,255,.18) 49%,transparent 51% 100%),repeating-linear-gradient(135deg,rgba(100,116,139,.08) 0 1px,transparent 1px 18px);mix-blend-mode:multiply}.theme-dark:before{opacity:.35;mix-blend-mode:screen}.app{min-height:100vh;padding-bottom:96px}.login{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(500px,100%);background:var(--panel);backdrop-filter:var(--glass);border:1px solid rgba(255,255,255,.54);border-radius:32px;box-shadow:var(--shadow);padding:30px}.industrial-card{position:relative;overflow:hidden}.industrial-card:before{content:"";position:absolute;right:-70px;top:-80px;width:230px;height:230px;border-radius:50%;background:linear-gradient(135deg,rgba(37,99,235,.24),rgba(45,212,191,.22));filter:blur(2px)}.brand{position:relative;display:flex;gap:15px;align-items:center;margin-bottom:22px}.logo,.metal-logo{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#0f172a,#475569 45%,#94a3b8);display:grid;place-items:center;color:#e0f2fe;font-size:20px;font-weight:1000;letter-spacing:.02em;box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 14px 38px rgba(15,23,42,.22)}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);font-weight:900}.login h1,.top h1{margin:3px 0 0;font-size:clamp(22px,4vw,32px);line-height:1.08;letter-spacing:-.04em}.field{margin:14px 0}.field label{display:block;font-size:13px;font-weight:900;color:var(--muted);margin-bottom:7px}.input,select,textarea{width:100%;border:1px solid var(--line);border-radius:15px;padding:12px 13px;background:var(--panel-solid);color:var(--text);font:inherit;outline:none;min-height:44px}.input:focus,select:focus,textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(37,99,235,.15)}textarea{min-height:90px;resize:vertical}.btn{border:0;border-radius:15px;padding:12px 16px;background:linear-gradient(135deg,var(--blue),#0ea5e9);color:#fff;font-weight:900;cursor:pointer;transition:.16s transform,.16s filter,.16s background;display:inline-flex;gap:8px;align-items:center;justify-content:center;text-decoration:none;min-height:42px;box-shadow:0 8px 20px rgba(37,99,235,.22)}.btn:hover{filter:brightness(1.03)}.btn:active{transform:scale(.98)}.btn.secondary{background:var(--panel2);color:var(--text);box-shadow:none;border:1px solid var(--line)}.btn.success{background:linear-gradient(135deg,#16a34a,#22c55e)}.btn.warning{background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#111827}.btn.danger{background:linear-gradient(135deg,#dc2626,#ef4444)}.btn.ghost{background:transparent;color:var(--text);border:1px solid var(--line);box-shadow:none}.btn.small{padding:8px 11px;border-radius:12px;font-size:13px;min-height:36px}.demo-box{background:rgba(15,23,42,.04);border:1px dashed var(--line);border-radius:18px;padding:13px;margin-top:16px;font-size:13px}.theme-dark .demo-box{background:rgba(255,255,255,.05)}.top{position:sticky;top:0;z-index:20;background:rgba(248,250,252,.78);backdrop-filter:var(--glass);border-bottom:1px solid var(--line2);padding:12px 16px}.theme-dark .top{background:rgba(11,18,32,.78)}.top-inner{max-width:1220px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px}.title-block{min-width:0}.material-line{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.material-line span{font-size:11px;font-weight:900;color:var(--muted);background:var(--panel-solid);border:1px solid var(--line);border-radius:999px;padding:4px 8px}.header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.user-pill{display:flex;align-items:center;gap:10px;background:var(--panel-solid);border:1px solid var(--line);border-radius:999px;padding:7px 9px;box-shadow:var(--soft)}.avatar{width:34px;height:34px;border-radius:999px;background:linear-gradient(135deg,#dbeafe,#ccfbf1);color:#1d4ed8;display:grid;place-items:center;font-weight:1000}.main{max-width:1220px;margin:0 auto;padding:18px 16px}.grid{display:grid;gap:14px}.grid.metrics{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));align-items:stretch}.grid.two{grid-template-columns:1.05fr .95fr}.grid.three{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.card,.metric,.table-wrap,.form-card{background:var(--panel);backdrop-filter:var(--glass);border:1px solid var(--line2);border-radius:var(--r);box-shadow:var(--shadow);padding:16px}.metric{position:relative;overflow:hidden;min-height:132px}.metric:after{content:"";position:absolute;right:-34px;bottom:-38px;width:110px;height:110px;border-radius:50%;background:linear-gradient(135deg,rgba(37,99,235,.13),rgba(45,212,191,.11))}.metric-icon{position:absolute;right:15px;top:14px;width:32px;height:32px;border-radius:12px;background:rgba(37,99,235,.12);display:grid;place-items:center;font-weight:1000;color:var(--blue)}.metric span{display:block;font-size:13px;color:var(--muted);font-weight:900;max-width:78%}.metric strong{display:block;margin:9px 0 4px;font-size:clamp(23px,4vw,32px);letter-spacing:-.055em}.metric small{display:block;color:var(--muted);font-weight:800;line-height:1.35}.metric.red{border-color:rgba(239,68,68,.35);background:linear-gradient(135deg,rgba(254,242,242,.9),var(--panel))}.metric.green{border-color:rgba(34,197,94,.32)}.metric.violet{border-color:rgba(124,58,237,.32)}.theme-dark .metric.red{background:linear-gradient(135deg,rgba(127,29,29,.24),var(--panel))}.section{margin-top:18px}.section h2,.section-head h2{font-size:21px;margin:0 0 4px;letter-spacing:-.02em}.stack{display:grid;gap:12px}.action{background:var(--panel);border:1px solid var(--line2);border-radius:20px;padding:15px;box-shadow:var(--soft);overflow:hidden}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.row.start{align-items:flex-start}.action h3{margin:0 0 6px;font-size:17px}.action p{margin:4px 0;color:var(--muted);line-height:1.42}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;background:var(--panel2);color:var(--text);font-size:12px;font-weight:1000;white-space:nowrap;border:1px solid var(--line)}.badge.green{background:#dcfce7;color:#166534;border-color:#bbf7d0}.badge.yellow{background:#fef3c7;color:#92400e;border-color:#fde68a}.badge.orange{background:#ffedd5;color:#9a3412;border-color:#fed7aa}.badge.red{background:#fee2e2;color:#991b1b;border-color:#fecaca}.danger-card{border-color:rgba(239,68,68,.35);background:linear-gradient(135deg,rgba(254,242,242,.92),var(--panel))}.theme-dark .danger-card{background:linear-gradient(135deg,rgba(127,29,29,.18),var(--panel))}.ok-card{border-color:#bbf7d0;background:#f7fff9}.progress{height:11px;background:rgba(148,163,184,.25);border-radius:999px;overflow:hidden;margin:11px 0}.progress span{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#14b8a6,#22c55e);border-radius:999px}.bottom-nav{position:fixed;z-index:30;left:0;right:0;bottom:0;background:rgba(255,255,255,.86);backdrop-filter:var(--glass);border-top:1px solid var(--line);display:flex;justify-content:flex-start;gap:4px;padding:8px max(8px,env(safe-area-inset-left));overflow-x:auto;scrollbar-width:none}.theme-dark .bottom-nav{background:rgba(11,18,32,.86)}.bottom-nav::-webkit-scrollbar{display:none}.bottom-nav button{appearance:none;border:0;background:transparent;color:var(--muted);border-radius:16px;padding:8px 10px;min-width:74px;font-weight:900;cursor:pointer;flex:0 0 auto}.bottom-nav button.active{background:linear-gradient(135deg,#dbeafe,#ccfbf1);color:#1d4ed8}.theme-dark .bottom-nav button.active{background:rgba(37,99,235,.24);color:#bfdbfe}.bottom-nav span{display:block;font-size:11px}.icon{font-size:20px;display:block}.filters,.calendar-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.filters button,.calendar-toolbar button{border:1px solid var(--line);background:var(--panel-solid);border-radius:999px;padding:8px 12px;font-weight:900;color:var(--muted);cursor:pointer}.filters button.active,.calendar-toolbar button.active{background:var(--graphite);color:white;border-color:var(--graphite)}.theme-dark .filters button.active,.theme-dark .calendar-toolbar button.active{background:#e2e8f0;color:#0f172a}table{width:100%;border-collapse:collapse;font-size:14px;min-width:720px}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);background:rgba(148,163,184,.08)}.table-wrap{overflow:auto}.muted{color:var(--muted)!important}.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.68);z-index:60;display:grid;place-items:center;padding:16px}.modal{width:min(820px,100%);max-height:90vh;overflow:auto;background:var(--panel-solid);border:1px solid var(--line);border-radius:26px;box-shadow:0 30px 80px rgba(0,0,0,.32);padding:18px}.modal h2{margin:0 0 14px}.toast{position:fixed;top:84px;right:16px;background:#0f172a;color:white;border-radius:16px;padding:12px 14px;z-index:100;box-shadow:var(--shadow);font-weight:900}.wheel-wrap{display:grid;grid-template-columns:270px 1fr;gap:18px;align-items:center}.wheel{width:240px;height:240px;border-radius:50%;background:conic-gradient(#22c55e 0 14%,#84cc16 14% 28%,#f59e0b 28% 42%,#fb923c 42% 56%,#38bdf8 56% 70%,#a78bfa 70% 84%,#2563eb 84% 100%);position:relative;margin:auto;box-shadow:inset 0 0 0 12px rgba(255,255,255,.9),var(--shadow)}.theme-dark .wheel{box-shadow:inset 0 0 0 12px rgba(15,23,42,.9),var(--shadow)}.wheel:after{content:attr(data-score);position:absolute;inset:74px;background:var(--panel-solid);border-radius:50%;display:grid;place-items:center;font-size:38px;font-weight:1000;color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}.criteria{display:grid;gap:8px}.criterion{display:grid;grid-template-columns:1fr 74px;gap:10px;align-items:center}.bar{height:10px;background:rgba(148,163,184,.24);border-radius:999px;overflow:hidden}.bar span{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#14b8a6)}.empty{padding:30px;text-align:center;color:var(--muted);background:rgba(148,163,184,.08);border:1px dashed var(--line);border-radius:18px}.mini{font-size:12px;color:var(--muted);font-weight:900}.search{display:flex;gap:10px;margin-bottom:12px}.search input{flex:1}.kpi-pill{background:#faf5ff;color:#6b21a8;border:1px solid #e9d5ff}.install-note{font-size:13px;color:var(--muted);margin-top:10px;line-height:1.45}.link{color:#1d4ed8;text-decoration:none;font-weight:900}.hidden{display:none!important}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));gap:10px;overflow:auto}.day-col{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:12px;min-height:110px}.mini-event{margin-top:8px;padding:7px 8px;border-radius:12px;background:rgba(37,99,235,.1);font-size:12px;font-weight:800;color:var(--text)}.mini-event.meeting{background:rgba(20,184,166,.12)}.month-title{font-weight:1000;font-size:18px;margin:8px 0 10px;text-transform:capitalize}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(42px,1fr));gap:6px}.month-head{text-align:center;font-weight:900;color:var(--muted);font-size:12px}.month-cell{min-height:78px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:8px;display:flex;flex-direction:column;gap:4px}.month-cell.today{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.13)}.month-cell span{font-size:10px;background:rgba(37,99,235,.1);border-radius:8px;padding:2px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--blue);margin-right:8px}.event-dot.meeting{background:var(--plastic)}.event-dot.call{background:var(--amber)}.relation-card{border:1px solid var(--line);border-radius:16px;padding:12px;margin:10px 0;background:rgba(148,163,184,.06)}.report-grid .card{min-height:190px}.section-head{margin-bottom:12px}@media(max-width:920px){.grid.two,.split,.wheel-wrap{grid-template-columns:1fr}.top-inner{align-items:flex-start;flex-direction:column}.header-actions{width:100%;justify-content:flex-start}.form-row,.form-row.three{grid-template-columns:1fr}.metric strong{font-size:24px}.week-grid{grid-template-columns:repeat(7,150px)}}@media(max-width:560px){html{font-size:15px}.top{padding:10px 12px}.main{padding:12px}.login{padding:14px}.login-card{padding:20px;border-radius:24px}.row{align-items:stretch;flex-direction:column}.actions .btn,.actions button,.actions a{flex:1;min-width:0}.modal{padding:14px;border-radius:20px;max-height:92vh}.wheel{width:210px;height:210px}.wheel:after{inset:66px}.bottom-nav button{min-width:66px;padding:8px 7px}.user-pill{width:100%;justify-content:space-between;border-radius:18px}.header-actions .btn{flex:1}.month-cell{min-height:58px;padding:6px}.metric{min-height:118px}.material-line span{font-size:10px}}

/* ===== v0.6 readability and mobile-first industrial UI polish ===== */
:root{
  --bg:#e9eef5;--bg2:#d8e1ec;--panel:rgba(255,255,255,.96);--panel-solid:#ffffff;--panel2:#f2f6fb;
  --text:#0b1220;--muted:#516173;--line:#cbd5e1;--line2:rgba(100,116,139,.28);
  --shadow:0 18px 42px rgba(15,23,42,.13);--soft:0 8px 22px rgba(15,23,42,.08);
}
.theme-dark{
  --bg:#070b12;--bg2:#101827;--panel:rgba(15,23,42,.94);--panel-solid:#111827;--panel2:#1a2536;
  --text:#f8fafc;--muted:#a7b4c5;--line:#334155;--line2:rgba(148,163,184,.24);
}
body{background:radial-gradient(circle at 12% 0%,rgba(56,189,248,.17),transparent 27%),radial-gradient(circle at 92% 4%,rgba(20,184,166,.14),transparent 31%),linear-gradient(135deg,var(--bg),var(--bg2));}
body:before{opacity:.34;background-image:linear-gradient(115deg,transparent 0 47%,rgba(255,255,255,.17) 48%,transparent 50% 100%),repeating-linear-gradient(135deg,rgba(51,65,85,.055) 0 1px,transparent 1px 22px),repeating-linear-gradient(45deg,rgba(51,65,85,.045) 0 1px,transparent 1px 34px)}
.card,.metric,.table-wrap,.form-card,.action,.day-col,.month-cell{background:var(--panel);border:1px solid var(--line);box-shadow:var(--soft)}
.action{border-radius:22px;border-left:5px solid rgba(37,99,235,.34);padding:16px 16px 14px}
.action h3{font-size:18px;line-height:1.22;letter-spacing:-.015em}
.action p{font-size:14px;color:var(--muted)}
.danger-card{border-left-color:#ef4444;border-color:rgba(239,68,68,.45);background:linear-gradient(135deg,rgba(254,242,242,.98),var(--panel))}
.theme-dark .danger-card{background:linear-gradient(135deg,rgba(127,29,29,.24),var(--panel));border-color:rgba(248,113,113,.38)}
.metric{border-radius:24px;min-height:142px;padding:18px;border-top:4px solid rgba(37,99,235,.45)}
.metric.green{border-top-color:#22c55e}.metric.violet{border-top-color:#8b5cf6}.metric.red{border-top-color:#ef4444}.metric.yellow{border-top-color:#f59e0b}
.metric-icon{font-size:15px;color:#0f172a;background:linear-gradient(135deg,#e0f2fe,#ccfbf1);border:1px solid rgba(37,99,235,.18)}
.theme-dark .metric-icon{color:#dbeafe;background:rgba(37,99,235,.22)}
.metric span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.metric strong{font-size:clamp(25px,4vw,36px)}
.section h2,.section-head h2{font-size:23px;letter-spacing:-.03em}
.section-head{background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:16px;margin-bottom:14px;box-shadow:var(--soft)}
.badge{border-width:1px;font-size:12px}.badge.red{background:#fee2e2;color:#7f1d1d}.badge.yellow{background:#fef3c7;color:#78350f}.badge.orange{background:#ffedd5;color:#7c2d12}.badge.green{background:#dcfce7;color:#14532d}
.theme-dark .badge.red{background:rgba(127,29,29,.35);color:#fecaca}.theme-dark .badge.yellow{background:rgba(120,53,15,.35);color:#fde68a}.theme-dark .badge.orange{background:rgba(124,45,18,.38);color:#fed7aa}.theme-dark .badge.green{background:rgba(20,83,45,.42);color:#bbf7d0}
.top{box-shadow:0 8px 24px rgba(15,23,42,.08)}
.material-line span{background:rgba(255,255,255,.72);border-color:var(--line);color:#334155}.theme-dark .material-line span{background:rgba(255,255,255,.06);color:#cbd5e1}
.btn{letter-spacing:.005em}.btn.ghost{background:rgba(255,255,255,.55)}.theme-dark .btn.ghost{background:rgba(255,255,255,.04)}
.bottom-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(15,23,42,.08)}
.bottom-nav button{position:relative;min-width:76px}
.nav-dot{position:absolute;top:2px;right:11px;background:#ef4444;color:white;border-radius:999px;padding:1px 5px;font-style:normal;font-size:10px;line-height:14px;box-shadow:0 3px 8px rgba(239,68,68,.32)}
.quick-add{margin-top:8px;display:flex;justify-content:flex-start}
.notification-card{border-left-color:#f59e0b}.notification-card.danger-card{border-left-color:#ef4444}
table{font-size:13px}th{background:rgba(30,41,59,.06);color:#475569}td,th{padding:11px 12px}.theme-dark th{background:rgba(255,255,255,.05);color:#cbd5e1}
.month-cell{min-height:84px;background:var(--panel-solid)}.mini-event,.month-cell span{border:1px solid rgba(37,99,235,.13)}
.event-card{border-left-color:#14b8a6}.event-dot{vertical-align:middle}
.modal{border-radius:28px}.modal h2{font-size:24px;letter-spacing:-.03em}.field label{color:var(--muted)}
.input,select,textarea{background:var(--panel-solid);border:1px solid var(--line);font-size:15px}.input::placeholder,textarea::placeholder{color:#94a3b8}
@media(max-width:760px){
  .app{padding-bottom:92px}.main{padding:12px 10px}.grid.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric{min-height:126px;padding:14px;border-radius:20px}.metric strong{font-size:22px}.metric small{font-size:12px}.metric-icon{width:28px;height:28px;right:11px;top:11px}.section{margin-top:14px}.section-head{padding:13px;border-radius:20px}.section h2,.section-head h2{font-size:20px}.action{padding:13px;border-radius:19px}.action h3{font-size:16px}.action p{font-size:13px}.actions{gap:7px}.actions .btn{width:auto;flex:1 1 42%;font-size:12px;padding:8px 9px}.bottom-nav button{min-width:68px}.top-inner{gap:10px}.header-actions{gap:6px}.header-actions>.btn{flex:1 1 auto}.table-wrap{border-radius:18px}table{min-width:650px}.month-grid{gap:4px}.month-cell{min-height:62px;border-radius:12px}.calendar-toolbar button{padding:8px 10px}
}
@media(max-width:430px){
  .grid.metrics{grid-template-columns:1fr}.metric{min-height:112px}.top h1{font-size:22px}.material-line{display:none}.user-pill{align-items:flex-start}.bottom-nav button{min-width:62px;font-size:11px}.bottom-nav .icon{font-size:17px}.actions .btn{flex:1 1 100%}.modal-backdrop{padding:9px}.modal{border-radius:22px;padding:13px}.form-row,.form-row.three{grid-template-columns:1fr}.week-grid{grid-template-columns:repeat(7,138px)}
}

/* ===== v0.7 header/logo/calendar fixes ===== */
.brand-head{display:flex;align-items:center;gap:16px;min-width:0}.litoy-logo{object-fit:cover;display:block;border-radius:18px;box-shadow:0 18px 48px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.22);animation:litoyPulse 5s ease-in-out infinite;will-change:opacity,filter,transform}.pulse-logo{width:72px;height:72px;flex:0 0 auto}.login-logo{width:82px;height:82px;flex:0 0 auto}.title-block h1{margin-top:3px}.material-line{display:none!important}.top .eyebrow{letter-spacing:.16em}.top h1{font-size:clamp(28px,4vw,42px)}
@keyframes litoyPulse{0%,100%{opacity:.62;filter:grayscale(.15) contrast(1.08) brightness(.82);transform:scale(.985)}45%,55%{opacity:1;filter:grayscale(0) contrast(1.22) brightness(1.12);transform:scale(1.025)}}
.calendar-day-open .compact{margin-bottom:12px}.month-cell{cursor:pointer;text-align:left;color:var(--text);font:inherit;appearance:none}.month-cell:disabled{cursor:default;opacity:.35}.month-cell.selected,.day-col.selected{outline:3px solid rgba(37,99,235,.18);border-color:#2563eb;background:linear-gradient(135deg,rgba(219,234,254,.86),var(--panel))}.theme-dark .month-cell.selected,.theme-dark .day-col.selected{background:linear-gradient(135deg,rgba(37,99,235,.22),var(--panel));border-color:#60a5fa}.month-cell small{font-size:10px}.month-cell:hover:not(:disabled),.day-col:hover{border-color:#60a5fa;transform:translateY(-1px);box-shadow:var(--soft)}.empty-cell{background:rgba(148,163,184,.06)!important;border-style:dashed!important}.section-head.compact{padding:14px;background:var(--panel);border:1px solid var(--line2);border-radius:var(--r);box-shadow:var(--soft)}
@media(max-width:920px){.brand-head{width:100%}.pulse-logo{width:62px;height:62px}.top h1{font-size:31px}.header-actions{width:100%;justify-content:flex-start}}
@media(max-width:560px){.brand-head{gap:11px}.pulse-logo{width:52px;height:52px;border-radius:14px}.login-logo{width:70px;height:70px}.top h1{font-size:27px}.top .eyebrow{font-size:9.5px}.month-cell:hover:not(:disabled),.day-col:hover{transform:none}.header-actions .btn{min-width:auto}.user-pill{order:10}}


/* ===== v0.8 cleanup + infographic ===== */
.top .eyebrow{display:none!important}
.clean-title .header-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.18em;font-weight:900;color:var(--muted);margin-bottom:2px}
.clean-title h1{margin:0;font-size:clamp(22px,3.4vw,38px);line-height:1.05;letter-spacing:-.04em}
.login .brand h1{margin:0 0 8px}
.install-note{display:none!important}

.info-hero{margin-top:0}
.info-hero-shell{display:grid;grid-template-columns:1.25fr .95fr;gap:18px;padding:22px;border-radius:28px;background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(19,47,76,.92) 50%,rgba(6,78,59,.88));color:#fff;border:1px solid rgba(148,163,184,.22);box-shadow:0 18px 48px rgba(15,23,42,.18);position:relative;overflow:hidden}
.info-hero-shell:before{content:"";position:absolute;inset:-20% auto auto -5%;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(59,130,246,.35),transparent 70%);pointer-events:none}
.info-hero-shell:after{content:"";position:absolute;right:-60px;bottom:-70px;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,rgba(45,212,191,.22),transparent 68%);pointer-events:none}
.hero-copy,.hero-stats,.process-line{position:relative;z-index:1}
.hero-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.18em;color:rgba(255,255,255,.72);font-weight:800;margin-bottom:8px}
.info-hero h2{font-size:clamp(24px,4vw,34px);margin:0 0 10px;line-height:1.05;letter-spacing:-.03em}
.info-hero p{margin:0;color:rgba(255,255,255,.82);line-height:1.5;max-width:62ch}
.hero-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.hero-badge{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);font-size:12px;font-weight:800}
.hero-badge.steel{background:rgba(148,163,184,.18)}
.hero-badge.plastic{background:rgba(45,212,191,.18)}
.hero-badge.money{background:rgba(245,158,11,.18)}
.hero-badge.flow{background:rgba(59,130,246,.18)}
.hero-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.hero-stat{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:14px}
.hero-stat span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:rgba(255,255,255,.7);font-weight:800}
.hero-stat strong{display:block;margin-top:8px;font-size:clamp(22px,3vw,32px);line-height:1.05}
.process-line{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:center;gap:10px;margin-top:16px}
.process-step{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:14px;min-height:116px;display:flex;flex-direction:column;justify-content:flex-start}
.process-step i{font-style:normal;font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#93c5fd;margin-bottom:8px}
.process-step b{font-size:16px;margin-bottom:8px}
.process-step span{font-size:13px;color:rgba(255,255,255,.75);line-height:1.4}
.process-arrow{text-align:center;font-size:26px;color:rgba(255,255,255,.6);font-weight:800}
.theme-dark .info-hero-shell{box-shadow:0 20px 48px rgba(0,0,0,.32)}

@media(max-width:920px){
  .info-hero-shell{grid-template-columns:1fr;gap:14px}
  .process-line{grid-template-columns:1fr;gap:8px}
  .process-arrow{display:none}
}
@media(max-width:560px){
  .clean-title .header-kicker{font-size:10px;letter-spacing:.14em}
  .clean-title h1{font-size:24px}
  .info-hero-shell{padding:16px;border-radius:22px}
  .hero-stats{grid-template-columns:1fr 1fr}
  .hero-stat{padding:12px;border-radius:16px}
  .hero-stat strong{font-size:22px}
  .process-step{min-height:auto;padding:12px;border-radius:16px}
  .info-hero p{font-size:14px}
}


/* ===== v0.9 premium cleanup + logo-near brand language ===== */
:root{
  --brand-stone:#111318;
  --brand-stone-2:#1b1f28;
  --brand-steel:#c9ced7;
  --brand-smoke:#7b8698;
  --brand-glow:rgba(201,206,215,.22);
}
body{background:radial-gradient(circle at 16% 0%,rgba(201,206,215,.10),transparent 24%),radial-gradient(circle at 88% 0%,rgba(93,104,122,.13),transparent 26%),linear-gradient(135deg,var(--bg),var(--bg2));}
body:before{opacity:.26;background-image:linear-gradient(120deg,transparent 0 49%,rgba(255,255,255,.10) 50%,transparent 51% 100%),repeating-linear-gradient(135deg,rgba(148,163,184,.05) 0 1px,transparent 1px 24px)}
.theme-dark body:before{opacity:.22}

.install-note,.demo-box,.mini.muted,.hero-copy .muted,.section-head p.muted{display:none!important}
.premium-login-card{background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(243,246,250,.92));border:1px solid rgba(201,206,215,.32);box-shadow:0 28px 70px rgba(9,12,18,.18)}
.theme-dark .premium-login-card{background:linear-gradient(145deg,rgba(18,21,28,.96),rgba(28,34,45,.94));border-color:rgba(201,206,215,.18);box-shadow:0 28px 80px rgba(0,0,0,.42)}
.premium-brand{align-items:center;gap:18px}
.brand-copy{min-width:0}
.brand-subtitle{margin:10px 0 0;color:var(--muted);line-height:1.45}
.brand-divider{width:72px;height:2px;border-radius:999px;background:linear-gradient(90deg,rgba(201,206,215,1),rgba(201,206,215,.08));margin-top:8px}

.premium-top{padding:14px 16px;background:linear-gradient(135deg,rgba(10,12,16,.96),rgba(26,31,40,.96) 50%,rgba(20,22,28,.94));border-bottom:1px solid rgba(201,206,215,.14);box-shadow:0 14px 42px rgba(0,0,0,.22)}
.premium-top:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.05),transparent 30%),repeating-linear-gradient(135deg,rgba(255,255,255,.03) 0 1px,transparent 1px 28px)}
.premium-top .top-inner,.premium-top .header-actions,.premium-top .title-block,.premium-top .brand-head{position:relative;z-index:1}
.premium-top .header-kicker{color:#b9c0cd;letter-spacing:.18em}
.premium-top h1{color:#f8fafc;text-shadow:0 1px 0 rgba(255,255,255,.04)}
.premium-brand-head{align-items:center;gap:18px}
.premium-header-actions .btn.ghost,.premium-header-actions .btn.secondary{background:rgba(255,255,255,.05);border-color:rgba(201,206,215,.18);color:#f8fafc}
.premium-header-actions .btn.warning{background:linear-gradient(135deg,#d4a019,#f3c64f);color:#111318}
.premium-user-pill{background:rgba(255,255,255,.05);border-color:rgba(201,206,215,.18);color:#fff;box-shadow:none}
.premium-user-pill .mini,.premium-user-pill b{color:#f8fafc}
.premium-user-pill .avatar{background:linear-gradient(135deg,#dfe4eb,#b9c0cd);color:#24303f}
.brand-btn{background:linear-gradient(135deg,#d6dbe3,#9fa8b7 58%,#767f90);color:#111318;box-shadow:0 12px 28px rgba(31,41,55,.18)}
.brand-btn:hover{filter:brightness(1.04)}

.premium-hero-shell{background:linear-gradient(135deg,#141820,#232833 52%,#171b22);border:1px solid rgba(201,206,215,.14)}
.premium-hero-shell:before{background:radial-gradient(circle,rgba(201,206,215,.18),transparent 70%)}
.premium-hero-shell:after{background:radial-gradient(circle,rgba(120,128,144,.14),transparent 68%)}
.premium-hero .hero-kicker{color:#c9ced7}
.premium-hero h2{color:#f8fafc}
.premium-hero p{color:rgba(248,250,252,.78)}
.premium-hero .hero-badge{background:rgba(255,255,255,.05);border-color:rgba(201,206,215,.14);color:#eef2f7}
.premium-hero .hero-badge.steel{background:rgba(201,206,215,.12)}
.premium-hero .hero-badge.plastic{background:rgba(113,124,140,.15)}
.premium-hero .hero-badge.money{background:rgba(241,196,78,.12)}
.premium-hero .hero-badge.flow{background:rgba(156,163,175,.12)}
.premium-hero .hero-stat{background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.03));border-color:rgba(201,206,215,.12)}
.premium-hero .hero-stat span{color:rgba(201,206,215,.72)}
.premium-process .process-step{background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.03));border-color:rgba(201,206,215,.12)}
.premium-process .process-step i{color:#d6dbe3}
.premium-process .process-step span{color:rgba(248,250,252,.72)}
.premium-process .process-arrow{color:rgba(201,206,215,.44)}

.premium-section-head{padding:14px 16px;background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(246,248,251,.92));border:1px solid rgba(201,206,215,.22)}
.theme-dark .premium-section-head{background:linear-gradient(135deg,rgba(19,23,30,.92),rgba(28,34,43,.92));border-color:rgba(201,206,215,.12)}
.premium-section-head h2{margin:0}

.card h3,.action h3{letter-spacing:-.02em}
.card p.muted{display:none!important}

@media(max-width:920px){
  .premium-top{padding:12px}
  .premium-brand-head{width:100%}
}
@media(max-width:560px){
  .premium-top h1{font-size:24px}
  .premium-brand-head{gap:12px}
  .premium-header-actions .btn{font-size:12px}
  .premium-user-pill{width:100%}
  .brand-divider{width:54px}
}


/* ===== v1.0 unified premium mobile UI-kit ===== */
:root{
  --ui-black:#0b0d11;
  --ui-graphite:#151922;
  --ui-graphite-2:#202634;
  --ui-steel:#d2d6df;
  --ui-steel-2:#9da6b5;
  --ui-gold:#d6a73b;
  --ui-glow:rgba(210,214,223,.18);
}
.app{padding-bottom:112px}
.main{max-width:1180px}
.premium-top{border-bottom:1px solid rgba(210,214,223,.16)}
.premium-top .pulse-logo{
  width:76px;
  height:76px;
  border-radius:22px;
  box-shadow:0 0 0 1px rgba(210,214,223,.18),0 18px 50px rgba(0,0,0,.38),0 0 40px rgba(210,214,223,.08);
}
.premium-top .clean-title .header-kicker{
  color:#c8ced8;
  font-size:11px;
}
.premium-top .clean-title h1{
  font-size:clamp(27px,3.8vw,44px);
  font-weight:950;
}
.premium-bottom-nav{
  left:50%;
  right:auto;
  transform:translateX(-50%);
  bottom:12px;
  width:min(1120px,calc(100% - 24px));
  border:1px solid rgba(210,214,223,.18);
  border-radius:26px;
  background:linear-gradient(135deg,rgba(10,12,16,.92),rgba(28,34,45,.9));
  box-shadow:0 18px 55px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.05);
  padding:8px;
  justify-content:space-between;
}
.premium-bottom-nav button{
  color:#b7c0cf;
  border:1px solid transparent;
  border-radius:19px;
  min-width:72px;
  padding:8px 10px;
}
.premium-bottom-nav button.active{
  color:#111318;
  background:linear-gradient(135deg,#f3f5f8,#aeb7c6 72%,#7f8898);
  border-color:rgba(255,255,255,.28);
  box-shadow:0 10px 26px rgba(210,214,223,.18);
}
.premium-bottom-nav .icon{
  position:relative;
  font-size:19px;
  line-height:20px;
}
.premium-bottom-nav span:last-child{
  font-size:10.5px;
  letter-spacing:.01em;
}
.nav-dot{
  top:-8px;
  right:-13px;
  background:linear-gradient(135deg,#ef4444,#f97316);
  color:#fff;
  border:1px solid rgba(255,255,255,.22);
}
.premium-metrics{
  gap:12px;
  margin-top:16px;
}
.premium-metric{
  min-height:126px;
  border-radius:26px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(244,247,251,.93));
  border:1px solid rgba(148,163,184,.28);
  box-shadow:0 16px 36px rgba(15,23,42,.10);
  overflow:hidden;
  border-top:none!important;
}
.theme-dark .premium-metric{
  background:linear-gradient(145deg,rgba(21,25,34,.96),rgba(31,37,50,.92));
  border-color:rgba(210,214,223,.12);
  box-shadow:0 16px 42px rgba(0,0,0,.28);
}
.premium-metric:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:linear-gradient(180deg,#d2d6df,#777f8d);
}
.premium-metric.green:before{background:linear-gradient(180deg,#d2d6df,#22c55e)}
.premium-metric.violet:before{background:linear-gradient(180deg,#d2d6df,#8b5cf6)}
.premium-metric.red:before{background:linear-gradient(180deg,#d2d6df,#ef4444)}
.premium-metric .metric-shell{position:relative;z-index:1}
.premium-metric span{
  color:var(--muted);
  font-size:11px;
  letter-spacing:.09em;
}
.premium-metric strong{
  font-size:clamp(26px,4vw,38px);
  color:var(--text);
}
.premium-metric small{
  font-size:12.5px;
}
.premium-action{
  position:relative;
  border-radius:26px;
  border:1px solid rgba(148,163,184,.28);
  border-left:0!important;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(246,248,251,.94));
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}
.theme-dark .premium-action{
  background:linear-gradient(145deg,rgba(21,25,34,.96),rgba(30,36,48,.94));
  border-color:rgba(210,214,223,.12);
  box-shadow:0 14px 36px rgba(0,0,0,.24);
}
.premium-action:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:3px;
  background:linear-gradient(90deg,transparent,#d2d6df,transparent);
  opacity:.72;
}
.premium-action.danger-card:before{
  background:linear-gradient(90deg,transparent,#ef4444,transparent);
}
.premium-action h3{
  font-size:18px;
  font-weight:950;
}
.mini-money-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:9px 0;
}
.mini-money-row span{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:7px 9px;
  border-radius:13px;
  background:rgba(148,163,184,.10);
  border:1px solid rgba(148,163,184,.18);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.mini-money-row b{
  color:var(--text);
  font-weight:950;
}
.badge-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:7px;
}
.premium-progress{
  height:12px;
  background:rgba(148,163,184,.18);
  border:1px solid rgba(148,163,184,.12);
}
.premium-progress span{
  background:linear-gradient(90deg,#9da6b5,#d2d6df,#22c55e);
}
.premium-table-wrap{
  border-radius:26px;
  border-color:rgba(148,163,184,.22);
}
.premium-table-wrap th{
  background:linear-gradient(135deg,rgba(148,163,184,.10),rgba(148,163,184,.04));
}
.premium-table-wrap tbody tr:hover{
  background:rgba(148,163,184,.07);
}
.theme-dark .premium-table-wrap tbody tr:hover{
  background:rgba(255,255,255,.04);
}
.info-hero,
.grid.metrics,
.section{
  animation:uiFadeIn .28s ease-out both;
}
@keyframes uiFadeIn{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}
.btn{
  border-radius:14px;
}
.btn.secondary,.btn.ghost{
  backdrop-filter:blur(14px);
}
.brand-btn{
  font-weight:950;
}
.actions .brand-btn{
  box-shadow:0 10px 22px rgba(31,41,55,.12);
}
@media(max-width:920px){
  .premium-top .pulse-logo{width:64px;height:64px;border-radius:18px}
  .premium-bottom-nav{
    width:calc(100% - 16px);
    bottom:8px;
    border-radius:22px;
    overflow-x:auto;
    justify-content:flex-start;
  }
  .premium-bottom-nav button{
    min-width:72px;
    flex:0 0 auto;
  }
}
@media(max-width:560px){
  .app{padding-bottom:104px}
  .main{padding:12px 10px}
  .premium-top{padding:10px}
  .premium-top .pulse-logo{width:54px;height:54px;border-radius:16px}
  .premium-top .clean-title h1{font-size:23px}
  .premium-top .clean-title .header-kicker{font-size:9.5px}
  .premium-header-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  .premium-header-actions .premium-user-pill{
    grid-column:1 / -1;
  }
  .premium-bottom-nav{
    padding:7px;
    gap:4px;
  }
  .premium-bottom-nav button{
    min-width:63px;
    padding:7px 6px;
  }
  .premium-bottom-nav .icon{font-size:17px}
  .premium-bottom-nav span:last-child{font-size:9.5px}
  .premium-metrics{
    grid-template-columns:1fr 1fr!important;
  }
  .premium-metric{
    min-height:112px;
    padding:13px;
    border-radius:20px;
  }
  .premium-metric strong{font-size:21px}
  .premium-metric small{font-size:11.5px}
  .premium-action{
    border-radius:21px;
    padding:14px;
  }
  .premium-action h3{font-size:16px}
  .mini-money-row span{
    flex:1 1 100%;
    justify-content:space-between;
  }
  .badge-stack{
    align-items:flex-start;
    flex-direction:row;
    flex-wrap:wrap;
  }
}
@media(max-width:390px){
  .premium-metrics{grid-template-columns:1fr!important}
}

/* ===== v1.0.1 usability polish ===== */
.compact-demo{
  display:block!important;
  margin-top:14px;
  font-size:13px;
  line-height:1.45;
}
.v101-hero .hero-copy p{
  max-width:620px;
}
.premium-section-head p.muted{
  display:block!important;
  max-width:720px;
  margin-top:5px;
}
.report-card p.muted,
.card.report-card p.muted{
  display:block!important;
  color:var(--muted)!important;
  line-height:1.45;
}
.report-card{
  display:flex;
  min-height:178px;
  flex-direction:column;
  gap:10px;
}
.report-card .actions{
  margin-top:auto;
}
.notification-card .mini{
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.quick-add{
  margin-top:7px;
}
.quick-add .btn{
  min-height:32px;
  padding:7px 10px;
}
.premium-bottom-nav button{
  min-height:58px;
}
.premium-bottom-nav .icon{
  position:relative;
}
.premium-header-actions .btn{
  white-space:nowrap;
}
.field input[type="date"],
.field input[type="datetime-local"],
.field input[type="number"],
.field input[type="email"]{
  min-height:44px;
}
.modal .premium-metrics{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.theme-dark .report-card{
  background:linear-gradient(145deg,rgba(21,25,34,.96),rgba(30,36,48,.94));
  border-color:rgba(210,214,223,.12);
}
@media(max-width:920px){
  .premium-process{
    display:none;
  }
  .report-card{
    min-height:auto;
  }
}
@media(max-width:560px){
  .premium-header-actions .btn{
    width:100%;
  }
  .premium-bottom-nav button{
    min-width:68px;
  }
  .premium-section-head{
    align-items:flex-start;
  }
  .premium-section-head .btn{
    width:100%;
  }
  .report-card .actions .btn{
    flex:1 1 100%;
  }
  .modal .premium-metrics{
    grid-template-columns:1fr!important;
  }
}

/* ===== v1.0.2 task command center ===== */
.task-command{
  display:grid;
  gap:12px;
  margin:14px 0 16px;
}
.task-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.task-stat{
  position:relative;
  overflow:hidden;
  min-height:104px;
  padding:14px;
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(246,248,251,.94));
  border:1px solid rgba(148,163,184,.25);
  box-shadow:0 10px 26px rgba(15,23,42,.08);
}
.theme-dark .task-stat{
  background:linear-gradient(145deg,rgba(21,25,34,.96),rgba(30,36,48,.94));
  border-color:rgba(210,214,223,.12);
}
.task-stat:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:#94a3b8;
}
.task-stat.red:before{background:#ef4444}
.task-stat.orange:before{background:#f97316}
.task-stat.yellow:before{background:#f59e0b}
.task-stat span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.task-stat strong{
  display:block;
  margin:7px 0 3px;
  font-size:30px;
  line-height:1;
  font-weight:1000;
}
.task-stat small{
  color:var(--muted);
  font-weight:800;
  line-height:1.35;
}
.task-controls{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:22px;
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(14px);
}
.theme-dark .task-controls{
  background:rgba(15,23,42,.42);
  border-color:rgba(210,214,223,.12);
}
.task-filter-row,
.task-group-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.task-filter-row button,
.task-group-row button{
  min-height:38px;
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel-solid);
  color:var(--muted);
  font-weight:950;
  cursor:pointer;
}
.task-filter-row button{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.task-filter-row button b{
  min-width:24px;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(148,163,184,.14);
  color:var(--text);
  font-size:12px;
}
.task-filter-row button.active,
.task-group-row button.active{
  background:var(--graphite);
  color:#fff;
  border-color:var(--graphite);
}
.task-filter-row button.active b{
  background:rgba(255,255,255,.18);
  color:#fff;
}
.task-group{
  margin-top:14px;
}
.task-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  padding:0 2px;
}
.task-group-head h3{
  margin:0;
  font-size:18px;
  letter-spacing:-.01em;
}
.task-group-head p{
  margin:3px 0 0;
}
.task-card{
  border-radius:22px;
}
.task-card .actions{
  align-items:center;
}
.task-overdue{
  box-shadow:0 14px 34px rgba(239,68,68,.13);
}
@media(max-width:920px){
  .task-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .task-summary{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .task-stat{
    min-height:96px;
    padding:12px;
    border-radius:18px;
  }
  .task-stat strong{
    font-size:24px;
  }
  .task-controls{
    padding:10px;
    border-radius:18px;
  }
  .task-filter-row button,
  .task-group-row button{
    flex:1 1 calc(50% - 8px);
    justify-content:center;
  }
  .task-group-head{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* ===== v1.2 closed corporate calendar ===== */
.corporate-calendar-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:12px 0 14px;
  padding:14px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(246,248,251,.86));
  box-shadow:0 10px 26px rgba(15,23,42,.07);
}
.theme-dark .corporate-calendar-panel{
  background:linear-gradient(145deg,rgba(21,25,34,.94),rgba(30,36,48,.86));
  border-color:rgba(210,214,223,.12);
}
.corporate-calendar-panel p{
  margin:6px 0 0;
}
.corporate-event-card .badge-stack{
  min-width:118px;
}
@media(max-width:760px){
  .corporate-calendar-panel{
    align-items:flex-start;
    flex-direction:column;
  }
  .corporate-calendar-panel .actions{
    width:100%;
  }
  .corporate-calendar-panel .actions .btn{
    flex:1 1 calc(50% - 8px);
  }
}
@media(max-width:430px){
  .corporate-calendar-panel .actions .btn{
    flex:1 1 100%;
  }
}

/* ===== v1.2 manager balance workbench ===== */
.rating-workbench{
  display:grid;
  grid-template-columns:minmax(240px,320px) minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.rating-sidebar{
  display:grid;
  gap:10px;
  position:sticky;
  top:94px;
}
.manager-rating-card{
  width:100%;
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(246,248,251,.88));
  color:var(--text);
  text-align:left;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.manager-rating-card:hover{
  transform:translateY(-1px);
  border-color:rgba(37,99,235,.42);
  box-shadow:0 16px 34px rgba(15,23,42,.1);
}
.manager-rating-card.active{
  border-color:rgba(37,99,235,.7);
  background:linear-gradient(145deg,rgba(239,246,255,.98),rgba(255,255,255,.92));
  box-shadow:0 18px 40px rgba(37,99,235,.14);
}
.manager-rating-card span{
  min-width:0;
  display:grid;
  gap:5px;
}
.manager-rating-card b,
.manager-rating-card small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.manager-rating-card small{
  color:var(--muted);
  font-weight:700;
}
.manager-rating-card em{
  flex:0 0 auto;
  font-style:normal;
  font-weight:900;
  color:var(--graphite);
  white-space:nowrap;
}
.theme-dark .manager-rating-card{
  background:linear-gradient(145deg,rgba(21,25,34,.94),rgba(30,36,48,.86));
  border-color:rgba(210,214,223,.12);
}
.theme-dark .manager-rating-card.active{
  border-color:rgba(96,165,250,.62);
  background:linear-gradient(145deg,rgba(30,41,59,.96),rgba(21,25,34,.92));
}
.rating-main{
  display:grid;
  gap:14px;
}
.balance-card{
  overflow:hidden;
}
.balance-layout{
  display:grid;
  grid-template-columns:minmax(220px,320px) minmax(0,1fr);
  gap:18px;
  align-items:center;
  margin-top:14px;
}
.balance-wheel-box{
  display:grid;
  place-items:center;
  min-height:260px;
  padding:10px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:22px;
  background:radial-gradient(circle at 50% 50%,rgba(37,99,235,.09),transparent 68%);
}
.balance-wheel-svg{
  width:100%;
  max-width:320px;
  aspect-ratio:1;
}
.wheel-grid circle,
.wheel-grid line{
  fill:none;
  stroke:rgba(100,116,139,.38);
  stroke-width:1.2;
}
.wheel-poly{
  fill:rgba(37,99,235,.24);
  stroke:#2563eb;
  stroke-width:3;
  stroke-linejoin:round;
}
.wheel-center{
  fill:var(--panel);
  stroke:rgba(148,163,184,.35);
  stroke-width:1.4;
}
.wheel-score-text{
  font:900 24px Inter,system-ui,sans-serif;
  fill:var(--text);
}
.balance-criteria{
  display:grid;
  gap:10px;
}
.balance-criteria .criterion{
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px 12px;
  align-items:center;
  padding:10px 0;
}
.coach-panel{
  padding:18px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:24px;
  background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(246,248,251,.84));
  box-shadow:0 12px 32px rgba(15,23,42,.07);
}
.theme-dark .coach-panel{
  background:linear-gradient(145deg,rgba(21,25,34,.94),rgba(30,36,48,.84));
  border-color:rgba(210,214,223,.12);
}
.coach-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.coach-head h3,
.coach-card h4,
.coach-risks h4{
  margin:0;
}
.coach-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:10px;
}
.coach-card{
  min-height:150px;
  padding:14px;
  border:1px solid rgba(148,163,184,.2);
  border-radius:18px;
  background:rgba(255,255,255,.68);
}
.theme-dark .coach-card{
  background:rgba(15,23,42,.34);
}
.coach-card p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.45;
}
.coach-risks{
  margin-top:12px;
  padding:14px;
  border:1px dashed rgba(37,99,235,.32);
  border-radius:18px;
  background:rgba(37,99,235,.06);
}
.coach-risks ul{
  margin:10px 0 0;
  padding-left:20px;
  color:var(--muted);
}
.coach-risks li+li{
  margin-top:6px;
}
@media(max-width:920px){
  .rating-workbench,
  .balance-layout{
    grid-template-columns:1fr;
  }
  .rating-sidebar{
    position:static;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .balance-wheel-box{
    min-height:240px;
  }
}
@media(max-width:620px){
  .rating-sidebar{
    grid-template-columns:1fr;
  }
  .coach-head{
    flex-direction:column;
  }
  .coach-panel{
    padding:14px;
    border-radius:20px;
  }
  .coach-card{
    min-height:auto;
  }
}

/* ===== v1.2 mobile comfort audit fixes ===== */
@media(max-width:620px){
  .rating-workbench{
    gap:12px;
  }
  .rating-sidebar{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(220px,78vw);
    grid-template-columns:none;
    gap:9px;
    overflow-x:auto;
    padding:2px 2px 8px;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
  }
  .rating-sidebar::-webkit-scrollbar{
    display:none;
  }
  .manager-rating-card{
    min-height:70px;
    padding:12px;
    border-radius:18px;
    scroll-snap-align:start;
  }
  .manager-rating-card small{
    font-size:12px;
  }
  .balance-layout{
    gap:12px;
  }
  .balance-wheel-box{
    min-height:214px;
    border-radius:18px;
  }
  .balance-wheel-svg{
    max-width:240px;
  }
  .balance-criteria .criterion{
    padding:8px 0;
    font-size:13px;
  }
}

@media(max-width:560px){
  .app{
    padding-bottom:106px;
  }
  .premium-top{
    padding:8px 10px;
  }
  .premium-top-inner{
    gap:8px;
  }
  .premium-brand-head{
    gap:10px;
  }
  .premium-top .pulse-logo{
    width:44px;
    height:44px;
    border-radius:13px;
  }
  .premium-top .clean-title .header-kicker{
    display:none;
  }
  .premium-top .clean-title h1{
    font-size:19px;
    line-height:1.1;
    max-width:calc(100vw - 82px);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .premium-header-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
  }
  .premium-header-actions [data-tab="reports"],
  .premium-header-actions [data-tab="notifications"]{
    display:none;
  }
  .premium-header-actions .btn,
  .btn.small{
    min-height:44px;
  }
  .premium-user-pill{
    grid-column:1 / -1;
    min-height:46px;
    padding:6px 8px;
  }
  .premium-user-pill .mini{
    display:none;
  }
  .premium-user-pill .avatar{
    width:32px;
    height:32px;
  }
  .premium-bottom-nav{
    width:calc(100% - 10px);
    bottom:5px;
    padding:6px;
    border-radius:20px;
    scroll-snap-type:x mandatory;
  }
  .premium-bottom-nav button{
    min-width:66px;
    min-height:54px;
    scroll-snap-align:start;
  }
  .premium-bottom-nav button.active{
    min-width:76px;
  }
  .premium-bottom-nav span:last-child{
    font-size:9px;
  }
  .info-hero-shell{
    padding:12px;
    border-radius:18px;
    gap:10px;
  }
  .info-hero h2{
    font-size:21px;
  }
  .info-hero p,
  .hero-badges,
  .hero-copy .brand-divider{
    display:none;
  }
  .hero-stats{
    gap:8px;
  }
  .hero-stat{
    padding:10px;
    border-radius:14px;
  }
  .hero-stat span{
    font-size:9px;
    letter-spacing:.08em;
  }
  .hero-stat strong{
    font-size:19px;
  }
  .premium-metrics{
    gap:8px;
  }
  .premium-metric{
    min-height:102px;
  }
  .premium-action,
  .card,
  .metric,
  .table-wrap,
  .form-card{
    border-radius:18px;
  }
  .row.section-head,
  .premium-section-head{
    gap:10px;
  }
  .field{
    margin:11px 0;
  }
  .input,
  select,
  textarea{
    min-height:46px;
    font-size:16px;
    border-radius:13px;
  }
  textarea{
    min-height:84px;
  }
  .modal-backdrop{
    align-items:end;
    padding:8px;
  }
  .modal{
    width:100%;
    max-height:88vh;
    border-radius:20px;
    padding:13px;
  }
  .modal h2{
    font-size:20px;
  }
  .calendar-toolbar{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
  }
  .calendar-toolbar button{
    min-height:42px;
    padding:7px 4px;
    font-size:12px;
  }
  .month-grid{
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:3px;
  }
  .month-head{
    font-size:10px;
  }
  .month-cell{
    min-height:48px;
    padding:4px;
    border-radius:10px;
  }
  .month-cell small{
    font-size:9px;
  }
  .month-cell span{
    font-size:8px;
    padding:1px 3px;
  }
  .corporate-calendar-panel{
    padding:12px;
    border-radius:18px;
  }
  .corporate-calendar-panel .actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .coach-grid{
    grid-template-columns:1fr;
  }
  .coach-card{
    padding:12px;
    border-radius:16px;
  }
  .coach-card p{
    font-size:13px;
  }
  .coach-risks{
    padding:12px;
    border-radius:16px;
  }
}

@media(max-width:390px){
  .premium-bottom-nav button{
    min-width:62px;
  }
  .premium-bottom-nav button.active{
    min-width:72px;
  }
  .premium-metrics{
    grid-template-columns:1fr!important;
  }
  .hero-stats{
    grid-template-columns:1fr 1fr;
  }
  .actions .btn,
  .actions button,
  .actions a{
    flex-basis:100%;
  }
  .rating-sidebar{
    grid-auto-columns:minmax(210px,82vw);
  }
}

/* ===== v1.3 ergonomic Today-first redesign ===== */
.ergonomic-main{
  display:grid;
  gap:16px;
}
.ergonomic-top{
  background:linear-gradient(135deg,rgba(8,10,14,.97),rgba(23,28,38,.96) 52%,rgba(14,18,25,.96));
}
.today-hero{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:16px;
  align-items:stretch;
  padding:20px;
  border:1px solid rgba(210,214,223,.18);
  border-radius:28px;
  background:linear-gradient(135deg,#11151d,#252b36 56%,#171c25);
  color:#fff;
  box-shadow:0 18px 48px rgba(15,23,42,.18);
  overflow:hidden;
  position:relative;
}
.today-hero:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(120deg,rgba(255,255,255,.08),transparent 36%),repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 1px,transparent 1px 24px);
}
.today-hero>*{
  position:relative;
  z-index:1;
}
.today-kicker{
  color:#c9ced7;
  font-size:11px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.today-hero h1{
  margin:0;
  font-size:clamp(28px,4.2vw,46px);
  line-height:1.02;
  letter-spacing:0;
}
.today-hero p{
  margin:12px 0 0;
  max-width:64ch;
  color:rgba(248,250,252,.76);
  line-height:1.5;
}
.today-quick-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:18px;
}
.today-quick-actions .btn{
  min-height:44px;
}
.today-kpi-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.today-kpi{
  min-height:126px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
}
.today-kpi span{
  color:rgba(248,250,252,.66);
  font-size:11px;
  font-weight:950;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.today-kpi strong{
  display:block;
  margin:10px 0 5px;
  font-size:clamp(24px,3vw,34px);
  line-height:1;
  color:#fff;
}
.today-kpi small{
  color:rgba(248,250,252,.68);
  font-weight:800;
}
.today-kpi.green{border-color:rgba(34,197,94,.34)}
.today-kpi.orange{border-color:rgba(245,158,11,.42)}
.today-kpi.red{border-color:rgba(239,68,68,.46)}
.today-section{
  display:grid;
  gap:12px;
}
.primary-focus{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:17px;
  border:1px solid rgba(148,163,184,.26);
  border-radius:24px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(246,248,251,.94));
  box-shadow:0 14px 34px rgba(15,23,42,.09);
}
.theme-dark .primary-focus{
  background:linear-gradient(145deg,rgba(21,25,34,.98),rgba(30,36,48,.92));
  border-color:rgba(210,214,223,.12);
}
.primary-focus.red{
  border-color:rgba(239,68,68,.36);
  box-shadow:0 14px 34px rgba(239,68,68,.10);
}
.primary-focus.orange{
  border-color:rgba(245,158,11,.36);
  box-shadow:0 14px 34px rgba(245,158,11,.10);
}
.primary-focus.green{
  border-color:rgba(34,197,94,.34);
}
.primary-focus span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.primary-focus h2{
  margin:5px 0 6px;
  font-size:23px;
  line-height:1.1;
  letter-spacing:0;
}
.primary-focus p{
  margin:0;
  color:var(--muted);
  line-height:1.45;
}
.primary-focus .actions{
  flex:0 0 auto;
  justify-content:flex-end;
  min-width:260px;
}
.brief-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
}
.brief-card{
  min-height:142px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;
  padding:14px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(246,248,251,.92));
  box-shadow:0 10px 26px rgba(15,23,42,.07);
}
.theme-dark .brief-card{
  background:linear-gradient(145deg,rgba(21,25,34,.96),rgba(30,36,48,.9));
  border-color:rgba(210,214,223,.12);
}
.brief-card h3{
  margin:0;
  font-size:16px;
}
.brief-card p{
  margin:0;
  color:var(--muted);
  line-height:1.45;
  font-weight:750;
}
.today-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  padding:2px 2px 0;
}
.today-section-head h2{
  margin:0;
  font-size:22px;
  letter-spacing:0;
}
.today-section-head p{
  margin:5px 0 0;
  color:var(--muted);
  font-weight:750;
}
.today-worklist{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:10px;
}
.today-card{
  display:grid;
  gap:12px;
  align-content:start;
  min-height:176px;
  padding:14px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(246,248,251,.92));
  box-shadow:0 12px 30px rgba(15,23,42,.08);
}
.theme-dark .today-card{
  background:linear-gradient(145deg,rgba(21,25,34,.96),rgba(30,36,48,.9));
  border-color:rgba(210,214,223,.12);
}
.today-card h3{
  margin:4px 0 6px;
  font-size:17px;
  line-height:1.22;
}
.today-card p{
  margin:0;
  color:var(--muted);
  line-height:1.42;
}
.manager-radar-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:10px;
}
.manager-radar-card{
  min-height:88px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:12px;
  padding:14px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(246,248,251,.92));
  color:var(--text);
  text-align:left;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(15,23,42,.07);
}
.manager-radar-card.danger{
  border-color:rgba(239,68,68,.34);
}
.theme-dark .manager-radar-card{
  background:linear-gradient(145deg,rgba(21,25,34,.96),rgba(30,36,48,.9));
  border-color:rgba(210,214,223,.12);
}
.manager-radar-card span{
  min-width:0;
}
.manager-radar-card b,
.manager-radar-card small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.manager-radar-card small{
  margin-top:5px;
  color:var(--muted);
  font-weight:800;
}
.manager-radar-card em{
  font-style:normal;
  font-weight:950;
  white-space:nowrap;
}
.manager-radar-card i{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(37,99,235,.1);
  color:var(--blue2);
  font-style:normal;
  font-weight:1000;
}
.more-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:12px;
}
.more-card{
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:16px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(246,248,251,.92));
  color:var(--text);
  text-align:left;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(15,23,42,.07);
}
.theme-dark .more-card{
  background:linear-gradient(145deg,rgba(21,25,34,.96),rgba(30,36,48,.9));
  border-color:rgba(210,214,223,.12);
}
.more-card span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:rgba(37,99,235,.1);
  color:var(--blue2);
  font-weight:1000;
}
.more-card b{
  font-size:18px;
}
.more-card small{
  color:var(--muted);
  font-weight:800;
  line-height:1.4;
}
.ergonomic-bottom-nav{
  justify-content:center;
}
.ergonomic-bottom-nav button{
  min-width:82px;
}
@media(max-width:920px){
  .today-hero{
    grid-template-columns:1fr;
  }
  .today-kpi-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .ergonomic-bottom-nav{
    justify-content:flex-start;
  }
}
@media(max-width:680px){
  .today-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .ergonomic-main{
    gap:13px;
  }
  .ergonomic-header-actions{
    grid-template-columns:1fr 1fr;
  }
  .ergonomic-header-actions [data-tab="notifications"]{
    display:none;
  }
  .today-hero{
    padding:14px;
    border-radius:21px;
    gap:12px;
  }
  .today-hero h1{
    font-size:25px;
  }
  .today-hero p{
    display:block;
    margin-top:8px;
    font-size:13px;
  }
  .today-quick-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
    margin-top:12px;
  }
  .today-quick-actions .btn{
    min-width:0;
    padding:9px 8px;
    font-size:12px;
  }
  .today-kpi{
    min-height:98px;
    padding:11px;
    border-radius:16px;
  }
  .today-kpi span{
    font-size:9.5px;
    letter-spacing:.07em;
  }
  .today-kpi strong{
    font-size:20px;
  }
  .today-kpi small{
    font-size:11px;
  }
  .today-section-head{
    align-items:stretch;
    flex-direction:column;
  }
  .today-section-head h2{
    font-size:19px;
  }
  .today-section-head p{
    font-size:13px;
  }
  .today-section-head .btn{
    width:100%;
  }
  .primary-focus{
    align-items:stretch;
    flex-direction:column;
    padding:13px;
    border-radius:19px;
  }
  .primary-focus h2{
    font-size:19px;
  }
  .primary-focus p{
    font-size:13px;
  }
  .primary-focus .actions{
    min-width:0;
    justify-content:stretch;
  }
  .primary-focus .actions .btn{
    flex:1 1 100%;
  }
  .brief-grid{
    grid-template-columns:1fr;
  }
  .brief-card{
    min-height:auto;
    border-radius:17px;
    padding:12px;
  }
  .today-worklist,
  .manager-radar-grid,
  .more-grid{
    grid-template-columns:1fr;
  }
  .today-card{
    min-height:auto;
    border-radius:18px;
    padding:12px;
  }
  .manager-radar-card{
    grid-template-columns:minmax(0,1fr) auto;
    min-height:78px;
    border-radius:18px;
    padding:12px;
  }
  .manager-radar-card i{
    grid-column:2;
    grid-row:2;
    width:34px;
    height:34px;
  }
  .manager-radar-card em{
    grid-column:2;
    grid-row:1;
    font-size:13px;
  }
  .more-card{
    min-height:118px;
    border-radius:18px;
    padding:13px;
  }
  .ergonomic-bottom-nav button{
    min-width:70px;
  }
}
@media(max-width:390px){
  .today-kpi-grid{
    grid-template-columns:1fr;
  }
  .today-quick-actions{
    grid-template-columns:1fr;
  }
}

/* ===== v1.5 client workflow and deal pipeline ===== */
.pipeline-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.pipeline-summary .today-kpi{
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(246,248,251,.92));
  color:var(--text);
  border-color:rgba(148,163,184,.24);
}
.theme-dark .pipeline-summary .today-kpi{
  background:linear-gradient(145deg,rgba(21,25,34,.96),rgba(30,36,48,.9));
  border-color:rgba(210,214,223,.12);
}
.pipeline-summary .today-kpi span,
.pipeline-summary .today-kpi small{
  color:var(--muted);
}
.pipeline-summary .today-kpi strong{
  color:var(--text);
}
.deal-pipeline{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  align-items:start;
}
.pipeline-column{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:24px;
  background:rgba(255,255,255,.58);
  backdrop-filter:blur(14px);
}
.theme-dark .pipeline-column{
  background:rgba(15,23,42,.42);
  border-color:rgba(210,214,223,.12);
}
.pipeline-column.green{border-top:4px solid #22c55e}
.pipeline-column.orange{border-top:4px solid #f59e0b}
.pipeline-column.blue{border-top:4px solid #2563eb}
.pipeline-column-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.pipeline-column-head h2{
  margin:0;
  font-size:18px;
}
.pipeline-column-head p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}
.pipeline-column-head span{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(37,99,235,.1);
  color:var(--blue2);
  font-weight:1000;
}
.pipeline-column-total{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border-radius:16px;
  background:rgba(148,163,184,.10);
}
.pipeline-column-total b{
  font-size:17px;
}
.pipeline-column-total small{
  color:var(--muted);
  font-weight:850;
}
.pipeline-stack{
  display:grid;
  gap:10px;
}
.pipeline-card{
  display:grid;
  gap:11px;
  padding:13px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(246,248,251,.94));
  box-shadow:0 10px 24px rgba(15,23,42,.07);
}
.theme-dark .pipeline-card{
  background:linear-gradient(145deg,rgba(21,25,34,.98),rgba(30,36,48,.92));
  border-color:rgba(210,214,223,.12);
}
.pipeline-card.danger{
  border-color:rgba(239,68,68,.38);
}
.pipeline-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.pipeline-card-head span{
  color:var(--muted);
  font-size:10px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.pipeline-card-head h3{
  margin:4px 0 0;
  font-size:16px;
  line-height:1.2;
}
.pipeline-card-head b{
  white-space:nowrap;
}
.pipeline-money{
  display:grid;
  gap:6px;
}
.pipeline-money span{
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:7px 9px;
  border-radius:12px;
  background:rgba(148,163,184,.1);
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}
.pipeline-money b{
  color:var(--text);
}
.pipeline-card p{
  margin:0;
  color:var(--muted);
  line-height:1.4;
}
.client-command{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  padding:18px;
  border-radius:24px;
  background:linear-gradient(135deg,#11151d,#252b36 56%,#171c25);
  color:#fff;
}
.client-command span,
.client-next-step span{
  display:block;
  font-size:11px;
  font-weight:950;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.client-command span{
  color:#c9ced7;
}
.client-command h2{
  margin:5px 0 6px;
  font-size:28px;
  letter-spacing:0;
}
.client-command p{
  margin:0;
  color:rgba(248,250,252,.72);
}
.client-next-step{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:12px 0;
  padding:14px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(246,248,251,.94));
}
.theme-dark .client-next-step{
  background:linear-gradient(145deg,rgba(21,25,34,.98),rgba(30,36,48,.92));
  border-color:rgba(210,214,223,.12);
}
.client-next-step.red{border-color:rgba(239,68,68,.38)}
.client-next-step.orange{border-color:rgba(245,158,11,.38)}
.client-next-step.green{border-color:rgba(34,197,94,.34)}
.client-next-step span{
  color:var(--muted);
}
.client-next-step h3{
  margin:4px 0;
}
.client-next-step p{
  margin:0;
  color:var(--muted);
}
.client-workbench{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,360px);
  gap:14px;
  align-items:start;
  margin-top:14px;
}
.client-main-thread,
.client-side-panel{
  display:grid;
  gap:12px;
}
.client-timeline{
  position:relative;
  display:grid;
  gap:10px;
}
.timeline-item{
  position:relative;
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  gap:10px;
}
.timeline-dot{
  width:13px;
  height:13px;
  margin:8px auto 0;
  border-radius:999px;
  background:#94a3b8;
  box-shadow:0 0 0 5px rgba(148,163,184,.14);
}
.timeline-item.payment .timeline-dot{background:#22c55e}
.timeline-item.shipment .timeline-dot{background:#f59e0b}
.timeline-item.touch .timeline-dot{background:#2563eb}
.timeline-item.event .timeline-dot{background:#14b8a6}
.timeline-item.invoice .timeline-dot{background:#7c3aed}
.timeline-body,
.contact-mini-card{
  padding:13px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(246,248,251,.94));
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
.theme-dark .timeline-body,
.theme-dark .contact-mini-card{
  background:linear-gradient(145deg,rgba(21,25,34,.98),rgba(30,36,48,.92));
  border-color:rgba(210,214,223,.12);
}
.timeline-body span{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.timeline-body h3{
  margin:5px 0;
  font-size:16px;
}
.timeline-body p{
  margin:0;
  color:var(--muted);
  line-height:1.4;
}
.contact-mini-stack{
  display:grid;
  gap:9px;
}
.contact-mini-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.contact-mini-card p{
  margin:4px 0;
  color:var(--muted);
}
.contact-mini-card small{
  color:var(--muted);
  font-weight:800;
  line-height:1.35;
}
@media(max-width:980px){
  .deal-pipeline,
  .client-workbench{
    grid-template-columns:1fr;
  }
  .pipeline-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .pipeline-summary{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .deal-pipeline{
    gap:10px;
  }
  .pipeline-column{
    padding:10px;
    border-radius:19px;
  }
  .pipeline-card{
    border-radius:17px;
  }
  .client-command{
    align-items:stretch;
    flex-direction:column;
    padding:14px;
    border-radius:20px;
  }
  .client-command h2{
    font-size:22px;
  }
  .client-command .actions,
  .client-next-step{
    align-items:stretch;
    flex-direction:column;
  }
  .client-command .actions .btn,
  .client-next-step .btn{
    flex:1 1 100%;
  }
  .timeline-item{
    grid-template-columns:18px minmax(0,1fr);
    gap:8px;
  }
  .timeline-body,
  .contact-mini-card{
    border-radius:16px;
    padding:11px;
  }
  .contact-mini-card{
    flex-direction:column;
  }
}

/* ===== v1.6 operational testing layer ===== */
.ops-app{
  position:relative;
}
.theme-corner-btn{
  position:fixed;
  top:calc(env(safe-area-inset-top, 0px) + 10px);
  right:10px;
  z-index:80;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(148,163,184,.32);
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:var(--text);
  box-shadow:0 10px 24px rgba(15,23,42,.14);
  font-size:16px;
  font-weight:950;
  cursor:pointer;
  backdrop-filter:blur(14px);
}
.theme-dark .theme-corner-btn{
  background:rgba(18,22,30,.9);
  border-color:rgba(210,214,223,.16);
}
.ops-header-actions{
  padding-right:42px;
}
.logout-safe-btn{
  border-style:dashed;
  opacity:.82;
}
.logout-safe-btn:hover{
  opacity:1;
}
.back-btn{
  min-width:74px;
}
.modal-nav-row{
  margin-bottom:8px;
}
.kpi-click{
  width:100%;
  text-align:left;
  cursor:pointer;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.kpi-click:hover{
  transform:translateY(-2px);
  border-color:rgba(37,99,235,.36);
  box-shadow:0 16px 34px rgba(15,23,42,.12);
}
.kpi-click:active{
  transform:translateY(0);
}
.ops-modal-head{
  display:grid;
  gap:6px;
  margin-bottom:12px;
}
.ops-modal-head span{
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.ops-modal-head h2{
  margin:0;
  letter-spacing:0;
}
.ops-modal-head p{
  margin:0;
  color:var(--muted);
  line-height:1.45;
}
.ops-kpi-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:12px 0;
}
.ops-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.ops-split h3{
  margin:0 0 8px;
}
.ops-table{
  display:grid;
  gap:9px;
}
.ops-row{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(246,248,251,.94));
  color:var(--text);
  text-align:left;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
.theme-dark .ops-row{
  background:linear-gradient(145deg,rgba(21,25,34,.98),rgba(30,36,48,.92));
  border-color:rgba(210,214,223,.12);
}
button.ops-row{
  cursor:pointer;
}
button.ops-row:hover{
  border-color:rgba(37,99,235,.34);
}
.ops-row span{
  display:grid;
  gap:4px;
  min-width:0;
}
.ops-row b,
.ops-row small{
  overflow:hidden;
  text-overflow:ellipsis;
}
.ops-row small{
  color:var(--muted);
  font-weight:800;
  line-height:1.35;
}
.ops-row strong{
  white-space:nowrap;
}
.ops-row.danger{
  border-color:rgba(239,68,68,.36);
}
.month-switch{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0;
}
.planning-next{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,420px);
  gap:12px;
}
.planning-tips{
  display:grid;
  gap:9px;
}
.planning-tips.wide{
  margin:12px 0;
}
.planning-tips article{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:12px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:16px;
  background:rgba(37,99,235,.06);
}
.theme-dark .planning-tips article{
  background:rgba(96,165,250,.08);
  border-color:rgba(210,214,223,.12);
}
.planning-tips span{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-weight:950;
}
.planning-tips p{
  margin:0;
  color:var(--text);
  line-height:1.42;
  font-weight:820;
}
.plan-row{
  grid-template-columns:minmax(0,1fr) auto;
}
.plan-advice{
  grid-column:1/-1;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}
.heartbeat-splash{
  position:fixed;
  inset:0;
  z-index:999;
  display:grid;
  place-items:center;
  background:radial-gradient(circle at 50% 42%, rgba(255,255,255,.96), rgba(229,234,241,.96) 58%, rgba(14,18,26,.92));
}
.theme-dark .heartbeat-splash{
  background:radial-gradient(circle at 50% 42%, rgba(29,35,46,.98), rgba(13,17,25,.98) 60%, rgba(0,0,0,.96));
}
.heartbeat-core{
  display:grid;
  place-items:center;
  gap:10px;
  color:var(--text);
  text-align:center;
}
.heartbeat-core img{
  width:132px;
  height:132px;
  object-fit:cover;
  border-radius:28px;
  box-shadow:0 24px 70px rgba(0,0,0,.34);
  animation:heartbeatLogo 4.2s ease-in-out both;
}
.heartbeat-core span{
  width:160px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,#ef4444,#22c55e,#2563eb,transparent);
  animation:heartbeatLine 4.2s ease-in-out both;
}
.heartbeat-core b{
  font-size:22px;
  letter-spacing:0;
}
.heartbeat-core small{
  color:var(--muted);
  font-weight:850;
}
@keyframes heartbeatLogo{
  0%,100%{transform:scale(1); opacity:.62; filter:brightness(.88)}
  10%,20%,34%,44%,58%,68%,82%,92%{transform:scale(1.06); opacity:1; filter:brightness(1.16)}
  15%,39%,63%,87%{transform:scale(.98); opacity:.82; filter:brightness(.95)}
}
@keyframes heartbeatLine{
  0%,100%{transform:scaleX(.3); opacity:.28}
  10%,34%,58%,82%{transform:scaleX(1); opacity:1}
  20%,44%,68%,92%{transform:scaleX(.58); opacity:.48}
}
@media(max-width:980px){
  .ops-split,
  .planning-next{
    grid-template-columns:1fr;
  }
}
@media(max-width:640px){
  .ops-header-actions{
    padding-right:0;
  }
  .ops-header-actions .brand-btn,
  .ops-header-actions .success{
    display:none;
  }
  .ops-user-pill{
    padding-right:8px;
  }
  .logout-safe-btn{
    width:100%;
    justify-content:center;
  }
  .ops-kpi-grid{
    grid-template-columns:1fr;
  }
  .ops-row{
    grid-template-columns:1fr;
    gap:7px;
  }
  .ops-row strong{
    justify-self:start;
  }
  .theme-corner-btn{
    width:32px;
    height:32px;
    top:calc(env(safe-area-inset-top, 0px) + 8px);
    right:8px;
  }
  .heartbeat-core img{
    width:112px;
    height:112px;
    border-radius:24px;
  }
}

/* ===== v1.7 team, holidays and compact mobile navigation ===== */
.compact-bottom-nav{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  justify-content:stretch;
  gap:4px;
  overflow:visible;
  padding:7px max(6px,env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-right));
}
.compact-bottom-nav button,
.premium-bottom-nav.compact-bottom-nav button,
.ergonomic-bottom-nav.compact-bottom-nav button{
  min-width:0;
  width:100%;
  max-width:none;
  padding:7px 4px;
  border-radius:14px;
  overflow:hidden;
}
.compact-bottom-nav span:last-child{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10.5px;
}
.compact-bottom-nav .icon{
  font-size:18px;
  line-height:1;
}
.team-cal-app .main{
  padding-bottom:18px;
}
.calendar-head{
  align-items:flex-end;
}
.calendar-command{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
  gap:12px;
  align-items:center;
  padding:12px;
  margin-bottom:12px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(246,248,251,.92));
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.theme-dark .calendar-command{
  background:linear-gradient(145deg,rgba(21,25,34,.98),rgba(30,36,48,.9));
  border-color:rgba(210,214,223,.12);
}
.calendar-date-line{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.calendar-date-line strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  text-transform:capitalize;
}
.calendar-arrow{
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--panel-solid);
  color:var(--text);
  font-size:24px;
  font-weight:950;
  cursor:pointer;
}
.calendar-mode-tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
}
.calendar-mode-tabs button{
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 8px;
  background:var(--panel-solid);
  color:var(--muted);
  font-weight:950;
  cursor:pointer;
}
.calendar-mode-tabs button.active{
  background:var(--graphite);
  color:white;
  border-color:var(--graphite);
}
.theme-dark .calendar-mode-tabs button.active{
  background:#e2e8f0;
  color:#0f172a;
}
.holiday-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0 0 12px;
}
.holiday-strip button{
  display:grid;
  gap:4px;
  min-width:0;
  text-align:left;
  border:1px solid rgba(34,197,94,.25);
  border-radius:16px;
  padding:11px;
  background:linear-gradient(145deg,rgba(236,253,245,.95),rgba(240,253,250,.9));
  color:var(--text);
  cursor:pointer;
}
.theme-dark .holiday-strip button{
  background:linear-gradient(145deg,rgba(20,83,45,.26),rgba(20,184,166,.12));
  border-color:rgba(74,222,128,.2);
}
.holiday-strip span,
.holiday-strip b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.holiday-strip span{
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
}
.holiday-strip b{
  font-size:13px;
}
.calendar-week-grid .calendar-week-day{
  appearance:none;
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
.calendar-week-day.selected,
.month-cell.selected{
  border-color:rgba(37,99,235,.48);
  box-shadow:0 0 0 3px rgba(37,99,235,.13);
}
.calendar-week-day.today,
.month-cell.today{
  border-color:rgba(34,197,94,.44);
}
.calendar-month-grid .month-cell{
  cursor:pointer;
}
.holiday-mini,
.mini-event.holiday{
  background:rgba(34,197,94,.13)!important;
  color:#166534;
}
.theme-dark .holiday-mini,
.theme-dark .mini-event.holiday{
  color:#bbf7d0;
}
.event-dot.holiday{
  background:#22c55e;
}
.agenda-list{
  display:grid;
  gap:14px;
}
.agenda-day{
  display:grid;
  gap:10px;
}
.agenda-date{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel-solid);
  color:var(--text);
  padding:11px 12px;
  cursor:pointer;
  text-align:left;
}
.agenda-date b{
  text-transform:capitalize;
}
.agenda-date span{
  color:var(--muted);
  font-weight:900;
  white-space:nowrap;
}
.holiday-card{
  border-color:rgba(34,197,94,.28);
  background:linear-gradient(145deg,rgba(240,253,244,.96),rgba(255,255,255,.92));
}
.theme-dark .holiday-card{
  background:linear-gradient(145deg,rgba(20,83,45,.22),rgba(21,25,34,.96));
  border-color:rgba(74,222,128,.18);
}
.holiday-script{
  display:grid;
  gap:10px;
  margin:12px 0;
}
.holiday-script h3{
  margin:0;
}
.holiday-script ol{
  margin:0;
  padding-left:22px;
  color:var(--muted);
  line-height:1.5;
  font-weight:800;
}
.holiday-script textarea{
  min-height:110px;
  font-weight:850;
  line-height:1.45;
}
.holiday-client-list{
  display:grid;
  gap:9px;
}
.holiday-client{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel);
}
.holiday-client b,
.holiday-client small{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.holiday-client small{
  color:var(--muted);
  font-weight:800;
  margin-top:4px;
}
.team-metrics{
  margin-bottom:12px;
}
.team-board{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:12px;
}
.team-person-card{
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:18px;
  background:var(--panel);
  box-shadow:var(--soft);
}
.team-person-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.team-person-head h3{
  margin:0 0 4px;
  font-size:17px;
}
.team-person-head p{
  margin:0;
  color:var(--muted);
  font-weight:800;
}
.team-person-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.team-person-stats span{
  border:1px solid var(--line);
  border-radius:12px;
  padding:8px;
  background:rgba(148,163,184,.08);
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}
.team-person-stats b{
  color:var(--text);
}
.team-note{
  margin:0;
  color:var(--muted);
  line-height:1.4;
  font-weight:800;
}
.team-status-actions,
.team-self-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.team-status-actions .btn{
  flex:1 1 auto;
}
.team-payroll{
  margin-top:10px;
}
.check-line{
  display:flex;
  gap:9px;
  align-items:center;
  margin:12px 0;
  color:var(--text);
  font-weight:900;
}
.check-line input{
  width:18px;
  height:18px;
}
@media(max-width:920px){
  .calendar-command{
    grid-template-columns:1fr;
  }
  .holiday-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:640px){
  .team-cal-app .main{
    padding-left:10px;
    padding-right:10px;
  }
  .calendar-head{
    align-items:stretch;
  }
  .calendar-command{
    padding:10px;
    border-radius:16px;
  }
  .calendar-date-line{
    display:grid;
    grid-template-columns:auto 38px minmax(0,1fr) 38px;
  }
  .calendar-date-line .btn{
    padding-left:10px;
    padding-right:10px;
  }
  .calendar-mode-tabs{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .calendar-mode-tabs button{
    padding:8px 4px;
    font-size:12px;
  }
  .holiday-strip{
    grid-template-columns:1fr;
  }
  .week-grid.calendar-week-grid{
    grid-template-columns:1fr;
    overflow:visible;
  }
  .calendar-week-day{
    min-height:auto;
  }
  .calendar-month-grid{
    gap:4px;
  }
  .calendar-month-grid .month-cell{
    min-height:66px;
    padding:6px 4px;
    border-radius:12px;
  }
  .calendar-month-grid .month-cell span{
    display:none;
  }
  .calendar-month-grid .month-cell small{
    font-size:9px;
  }
  .holiday-client{
    grid-template-columns:1fr;
  }
  .holiday-client .actions{
    margin-top:0;
  }
  .team-board{
    grid-template-columns:1fr;
  }
  .team-person-head{
    display:grid;
  }
  .team-person-stats{
    grid-template-columns:1fr;
  }
  .team-status-actions .btn,
  .team-self-actions .btn{
    flex:1 1 42%;
  }
}
@media(max-width:390px){
  .compact-bottom-nav{
    gap:2px;
    padding-left:4px;
    padding-right:4px;
  }
  .compact-bottom-nav .icon{
    font-size:17px;
  }
  .compact-bottom-nav span:last-child{
    font-size:9.5px;
  }
  .calendar-date-line{
    grid-template-columns:1fr 34px 1fr 34px;
  }
  .calendar-date-line strong{
    font-size:13px;
  }
}

/* ===== v1.8 mobile test build ===== */
.mobile-test-banner{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:start;
  margin-bottom:14px;
  padding:14px;
  border:1px solid rgba(37,99,235,.24);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(239,246,255,.98),rgba(240,253,250,.92));
  box-shadow:0 12px 30px rgba(15,23,42,.08);
}
.theme-dark .mobile-test-banner{
  background:linear-gradient(145deg,rgba(30,64,175,.18),rgba(20,184,166,.1));
  border-color:rgba(96,165,250,.2);
}
.mobile-test-banner span,
.mobile-test-tools span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
}
.mobile-test-banner h2,
.mobile-test-tools h2{
  margin:4px 0 6px;
  letter-spacing:0;
}
.mobile-test-banner p,
.mobile-test-tools p{
  margin:0;
  color:var(--muted);
  line-height:1.45;
  font-weight:800;
}
.mobile-test-banner-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.mobile-test-counters{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.mobile-test-counters span{
  padding:9px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.55);
  color:var(--muted);
  text-transform:none;
}
.theme-dark .mobile-test-counters span{
  background:rgba(255,255,255,.05);
}
.mobile-test-counters b{
  color:var(--text);
}
.mobile-test-tools{
  display:grid;
  gap:12px;
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(34,197,94,.28);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(240,253,244,.96),rgba(255,255,255,.92));
  box-shadow:var(--soft);
}
.theme-dark .mobile-test-tools{
  background:linear-gradient(145deg,rgba(20,83,45,.22),rgba(21,25,34,.96));
  border-color:rgba(74,222,128,.18);
}
.mobile-test-import-label{
  position:relative;
  overflow:hidden;
}
.mobile-test-import-label input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.mobile-test-form-note{
  padding:10px 12px;
  margin-bottom:10px;
  border:1px dashed rgba(37,99,235,.35);
  border-radius:14px;
  background:rgba(37,99,235,.08);
  color:var(--text);
  font-weight:850;
  line-height:1.4;
}
.mobile-test-form-note.danger{
  border-color:rgba(239,68,68,.35);
  background:rgba(239,68,68,.08);
}
@media(max-width:640px){
  .mobile-test-banner{
    grid-template-columns:1fr;
  }
  .mobile-test-banner-actions{
    justify-content:stretch;
  }
  .mobile-test-banner-actions .btn{
    flex:1 1 30%;
  }
  .mobile-test-counters{
    grid-template-columns:1fr;
  }
  .mobile-test-tools .actions .btn,
  .mobile-test-tools .actions label{
    flex:1 1 100%;
  }
}
