/* Rok Online Attendance — ব্র্যান্ড কালার: নেভি + কমলা */
:root{
  --navy:#1B3A6B; --navy-ink:#0F1E3A; --navy-2:#1F3563; --navy-3:#172A4F;
  --orange:#F15A24; --orange-ink:#C2410C; --orange-soft:#FDF0E1;
  --bg:#F5F6FA; --card:#FFFFFF; --line:#E2E5EE; --line-2:#EDEFF5;
  --muted:#57607A; --ink:#0F1E3A;
  --green:#0E6B4E; --green-ink:#0A4F3A; --green-soft:#E3F1EA;
  --blue:#1D4ED8; --blue-soft:#E6EDFD;
  --amber:#B45309; --amber-soft:#FDF0E1;
  --red:#B42318; --red-soft:#FEF2F2;
  --link:#1B3A6B; --link-hover:#0F1E3A;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'Hind Siliguri',system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.5}
a{color:var(--link)}a:hover{color:var(--link-hover)}
h1,h2{margin:0;line-height:1.25}
button,input,select{font-family:inherit}

/* ---------- লেআউট ---------- */
.app{min-height:100vh;display:flex;flex-wrap:wrap}
.sidebar{flex:1 1 250px;max-width:100%;background:var(--navy-ink);color:#E8ECF5;padding:24px 18px;display:flex;flex-direction:column;gap:24px}
.main{flex:999 1 560px;min-width:0;padding:28px 36px 48px;display:flex;flex-direction:column;gap:22px}
/* মোবাইল লেআউট ফাইলের শেষে ("মোবাইল" অংশ) */
.brand{background:#fff;border-radius:12px;padding:10px 14px;display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none}
.brand img{width:150px;height:auto;display:block}
.brand span{font-size:12px;font-weight:700;letter-spacing:2px;color:var(--navy)}
.brand.admin span{color:var(--orange-ink)}
.nav{display:flex;flex-direction:column;gap:4px}
.nav a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:10px;color:#C9D1E3;text-decoration:none;font-size:15px}
.nav a:hover{background:var(--navy-3);color:#fff}
.nav a.active{background:var(--navy-2);color:#fff;font-weight:600}
.nav svg{flex-shrink:0}
.badge{margin-left:auto;background:var(--orange);color:var(--navy-ink);font-size:12px;font-weight:700;padding:1px 8px;border-radius:99px}
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:10px}
.lang-switch{display:flex;gap:4px;background:var(--navy-3);padding:4px;border-radius:10px}
.lang-switch a{flex:1;text-align:center;padding:8px;border-radius:8px;color:#C9D1E3;text-decoration:none;font-size:14px}
.lang-switch a.on{background:#fff;color:var(--navy-ink);font-weight:700}
.user-chip{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:var(--navy-3)}
.avatar{width:38px;height:38px;border-radius:50%;background:#2C4373;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;flex-shrink:0}
.user-chip .who{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.user-chip .who b{font-size:14px}
.user-chip .who small{font-size:12px;color:#A9B4CC}
.logout{color:#C9D1E3;font-size:14px;text-decoration:none;padding:6px 10px;background:none;border:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:40px;font-family:inherit}
.logout:hover{color:#fff}

/* ---------- হেডার ---------- */
.topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}
.topbar h1{font-size:26px}
.topbar .sub{color:var(--muted);font-size:15px}
.icon-btn{position:relative;width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);display:flex;align-items:center;justify-content:center;text-decoration:none}
.icon-btn .dot{position:absolute;top:8px;right:9px;width:9px;height:9px;border-radius:50%;background:var(--orange)}

/* ---------- কার্ড ---------- */
.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:20px}
.grid-4{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
@media (max-width:420px){.grid-2{grid-template-columns:1fr}}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:16px;min-width:0}
.card-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px}
.card-head h2{font-size:19px}
.note{font-size:13px;color:var(--muted)}
.stat{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px 20px;display:flex;flex-direction:column;gap:4px}
.stat .label{font-size:14px;color:var(--muted)}
.stat .value{font-size:28px;font-weight:700;line-height:1.2}
.stat .value small{font-size:16px;color:var(--muted);font-weight:500}
.stat .hint{font-size:13px;color:var(--muted)}
.plus{color:var(--blue)!important}
.minus{color:var(--amber)!important}

/* ---------- ফ্ল্যাশ বার্তা ---------- */
.flash{padding:12px 16px;border-radius:12px;font-weight:600;font-size:15px}
.flash.success{background:var(--green-soft);color:var(--green-ink)}
.flash.error{background:var(--red-soft);color:var(--red)}

/* ---------- ক্লক কার্ড ---------- */
.pill{display:inline-flex;align-items:center;gap:8px;padding:5px 14px;border-radius:99px;font-size:14px;font-weight:600;white-space:nowrap}
.pill .d{width:8px;height:8px;border-radius:50%;background:currentColor}
.pill.working{background:var(--green-soft);color:var(--green-ink)}
.pill.break{background:var(--orange-soft);color:var(--orange-ink)}
.pill.off{background:var(--line-2);color:var(--muted)}
.pill.done{background:var(--blue-soft);color:var(--blue)}
.clock-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.big-time{font-size:54px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:1px}
@media (max-width:420px){.big-time{font-size:44px}}
.progress{height:10px;border-radius:99px;background:var(--line-2);overflow:hidden}
.progress>div{height:100%;background:var(--orange);border-radius:99px;transition:width .5s}
.progress.sm{height:6px}
.row-between{display:flex;justify-content:space-between;gap:8px;font-size:14px;color:var(--muted)}
.btn{height:48px;padding:0 20px;border-radius:12px;border:1px solid transparent;font-size:16px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none}
.btn-xl{height:58px;font-size:18px;width:100%;border-radius:14px}
.btn-navy{background:var(--navy);color:#fff}.btn-navy:hover{background:var(--navy-ink)}
.btn-orange{background:var(--orange-ink);color:#fff}.btn-orange:hover{background:#9A3412}
.btn-line{background:#fff;color:var(--ink);border-color:var(--ink);height:44px;font-size:14px;padding:0 16px}
.btn-line:hover{background:var(--bg)}
.btn:disabled{opacity:.45;cursor:not-allowed}
form.inline{display:contents}

/* ---------- বিরতি ---------- */
.break-row{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--line);border-radius:14px}
.break-row.active{border-color:var(--orange);background:#FFF8F3}
.break-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.break-icon.meal{background:var(--amber-soft);color:var(--amber)}
.break-icon.tea{background:var(--blue-soft);color:var(--blue)}
.break-icon.prayer{background:var(--green-soft);color:var(--green)}
.break-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.break-body .top{display:flex;justify-content:space-between;gap:8px;font-size:15px}
.break-body .top span{color:var(--muted);white-space:nowrap}
.bar-meal>div{background:var(--amber)}.bar-tea>div{background:var(--blue)}.bar-prayer>div{background:var(--green)}
.bar-over>div{background:var(--red)!important}
.small-ok{font-size:13px;color:var(--green-ink)}
.small-warn{font-size:13px;color:var(--red);font-weight:600}
.break-timer{font-variant-numeric:tabular-nums;font-weight:700;color:var(--orange-ink)}
.break-timer.over{color:var(--red,#D64545)}
.alert-item.opened{outline:2px solid var(--orange);outline-offset:-2px;background:var(--orange-soft)}
.notif-link{color:inherit;text-decoration:none;display:block}

/* ---------- টাস্ক ---------- */
.task{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line-2)}
.task:last-child{border-bottom:none}
.task .t{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:2px}
.task .t b{font-size:15px}
.task .t small{font-size:13px;color:var(--muted)}
.task.done .t b{color:var(--muted);text-decoration:line-through}
.task form{display:flex;gap:6px}
.task select{height:40px;border:1px solid #CFD5E1;border-radius:10px;padding:0 10px;font-size:14px;background:#fff;color:var(--ink)}
.task .btn-line{height:40px}
.empty{color:var(--muted);font-size:15px;padding:8px 0}

/* ---------- টাইমলাইন ---------- */
.tl{display:flex;flex-direction:column}
.tl-item{display:flex;gap:14px;padding:9px 0;font-size:15px}
.tl-item .tm{width:96px;flex-shrink:0;font-size:14px;color:var(--muted)}
.tl-item .dt{width:10px;height:10px;margin-top:6px;border-radius:50%;flex-shrink:0}
.dt.in{background:var(--green)}.dt.out{background:var(--navy)}
.dt.meal{background:var(--amber)}.dt.tea{background:var(--blue)}.dt.prayer{background:var(--green)}
.dt.now{border:2px solid var(--ink);background:transparent}

/* ---------- লগইন ---------- */
.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(160deg,var(--navy-ink) 0%,var(--navy) 100%)}
.auth-card{width:100%;max-width:420px;background:#fff;border-radius:22px;padding:32px 28px;display:flex;flex-direction:column;gap:18px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.auth-card .logo{display:flex;flex-direction:column;align-items:center;gap:4px}
.auth-card .logo img{width:180px;height:auto}
.auth-card .logo span{font-size:12px;font-weight:700;letter-spacing:3px;color:var(--navy)}
.auth-card h1{font-size:24px;text-align:center}
.auth-card p{margin:0;text-align:center;color:var(--muted)}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted);font-weight:500}
.field input{height:48px;padding:0 14px;border:1px solid #CFD5E1;border-radius:12px;font-size:16px;color:var(--ink)}
.field input:focus{outline:2px solid var(--orange);outline-offset:1px;border-color:transparent}
.auth .lang-switch{background:var(--bg)}
.auth .lang-switch a{color:var(--muted)}
.auth .lang-switch a.on{background:var(--navy);color:#fff}
.auth .tz{font-size:13px;color:var(--muted);text-align:center}

/* ---------- অ্যাডমিন: টেবিল ---------- */
.table-wrap{overflow-x:auto}
.table{width:100%;border-collapse:collapse;font-size:15px}
.table th{text-align:left;font-size:13px;font-weight:600;color:var(--muted);padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.table td{padding:12px;border-bottom:1px solid var(--line-2);vertical-align:middle}
.table tr:last-child td{border-bottom:none}
.table .num{font-variant-numeric:tabular-nums;white-space:nowrap}
.person{display:flex;align-items:center;gap:10px}
.person .avatar{width:34px;height:34px;font-size:13px;background:var(--line-2);color:var(--ink)}
.person .who{display:flex;flex-direction:column;line-height:1.3}
.person small{font-size:13px;color:var(--muted)}
.tag{display:inline-block;padding:3px 10px;border-radius:99px;font-size:13px;font-weight:600;white-space:nowrap}
.tag.green{background:var(--green-soft);color:var(--green-ink)}
.tag.orange{background:var(--orange-soft);color:var(--orange-ink)}
.tag.gray{background:var(--line-2);color:var(--muted)}
.tag.blue{background:var(--blue-soft);color:var(--blue)}
.tag.red{background:var(--red-soft);color:var(--red)}
.link-btn{background:none;border:none;color:var(--link);font-weight:600;font-size:14px;cursor:pointer;padding:6px 4px;text-decoration:underline}
.link-btn.danger{color:var(--red)}
.actions{display:flex;flex-wrap:wrap;gap:4px;align-items:center}

/* ---------- অ্যাডমিন: ফর্ম ---------- */
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.form-grid .full{grid-column:1/-1}
.fld{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted);font-weight:500}
.fld input,.fld select,.fld textarea{min-height:44px;padding:8px 12px;border:1px solid #CFD5E1;border-radius:10px;font-size:15px;color:var(--ink);background:#fff;font-family:inherit}
.fld textarea{min-height:80px;resize:vertical}
.fld small{font-size:12px;color:var(--muted);font-weight:400}
.form-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.btn-sm{height:44px;font-size:14px;padding:0 18px}
.tabs{display:inline-flex;gap:4px;padding:4px;background:var(--line-2);border-radius:12px}
.tabs a{padding:9px 16px;border-radius:9px;color:var(--muted);text-decoration:none;font-weight:600;font-size:14px}
.tabs a.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;justify-content:space-between}
.toolbar form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.alert-item{display:flex;gap:12px;padding:12px;border-radius:12px;background:#F7F8FB}
.alert-item .dt{width:10px;height:10px;margin-top:7px;border-radius:50%;flex-shrink:0;background:var(--navy)}
.alert-item.break_over .dt{background:var(--orange)}
.alert-item.no_clockout .dt{background:var(--red)}
.alert-item.task_done .dt,.alert-item.leave_approved .dt{background:var(--green)}
.alert-item.leave_rejected .dt{background:var(--red)}
.alert-item.leave_request .dt,.alert-item.task_assigned .dt{background:var(--blue)}
.alert-item .body{display:flex;flex-direction:column;gap:2px}
.alert-item small{color:var(--muted);font-size:13px}
@media print{.sidebar,.toolbar,.no-print{display:none!important}.main{padding:0}.card{border:none;padding:0}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ============================================================
   স্মুথ UI — ট্রানজিশন, হোভার, ফোকাস, অ্যানিমেশন
   ============================================================ */
:root{
  --shadow-sm:0 1px 2px rgba(15,30,58,.04),0 1px 3px rgba(15,30,58,.06);
  --shadow-md:0 4px 12px rgba(15,30,58,.08),0 2px 4px rgba(15,30,58,.04);
  --ease:cubic-bezier(.2,.8,.2,1);
}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
::selection{background:var(--orange-soft);color:var(--navy-ink)}

/* ডেস্কটপে সাইডবার স্ক্রল করলেও স্থির থাকবে */
@media (min-width:821px){
  .sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;flex:0 0 260px}
}

/* পেজ খুললে কন্টেন্ট আলতো করে উঠে আসবে */
.main>*{animation:rise .45s var(--ease) both}
.main>*:nth-child(2){animation-delay:.04s}.main>*:nth-child(3){animation-delay:.08s}
.main>*:nth-child(4){animation-delay:.12s}.main>*:nth-child(5){animation-delay:.16s}
.main>*:nth-child(n+6){animation-delay:.2s}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* কার্ড ও স্ট্যাট */
.card,.stat{box-shadow:var(--shadow-sm);transition:box-shadow .25s var(--ease),transform .25s var(--ease),border-color .25s}
.stat:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.stat .value{transition:color .3s}

/* মেনু */
.nav a{transition:background .2s,color .2s,transform .15s}
.nav a:hover{transform:translateX(2px)}
.nav a.active{box-shadow:inset 3px 0 0 var(--orange)}
.lang-switch a{transition:background .2s,color .2s}

/* বাটন */
.btn,.link-btn,.icon-btn,.tabs a{transition:background .2s,color .2s,box-shadow .2s,transform .12s,opacity .2s}
.btn:active:not(:disabled),.icon-btn:active{transform:scale(.97)}
.btn-navy,.btn-orange{box-shadow:0 2px 6px rgba(15,30,58,.15)}
.btn-navy:hover,.btn-orange:hover{box-shadow:0 6px 16px rgba(15,30,58,.2)}
.icon-btn:hover{border-color:var(--navy);box-shadow:var(--shadow-sm)}
.btn.loading{pointer-events:none;opacity:.8}
.btn.loading::after{content:"";width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* কিবোর্ড ফোকাস স্পষ্ট */
:focus-visible{outline:2px solid var(--orange);outline-offset:2px;border-radius:6px}
.fld input,.fld select,.fld textarea,.task select,.field input{transition:border-color .2s,box-shadow .2s}
.fld input:focus,.fld select:focus,.fld textarea:focus,.task select:focus,.field input:focus{outline:none;border-color:var(--navy);box-shadow:0 0 0 3px rgba(27,58,107,.15)}

/* ফ্ল্যাশ বার্তা: স্লাইড করে আসবে, কয়েক সেকেন্ড পর মিলিয়ে যাবে */
.flash{display:flex;align-items:center;gap:10px;box-shadow:var(--shadow-sm);animation:flashIn .35s var(--ease) both;transition:opacity .4s,transform .4s,max-height .4s,margin .4s,padding .4s;max-height:120px;overflow:hidden}
.flash.hide{opacity:0;transform:translateY(-6px);max-height:0;padding-top:0;padding-bottom:0;margin:-11px 0}
.flash .x{margin-left:auto;background:none;border:none;color:inherit;font-size:20px;line-height:1;cursor:pointer;padding:2px 6px;border-radius:6px;opacity:.6}
.flash .x:hover{opacity:1}
@keyframes flashIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

/* স্ট্যাটাস ডট জীবন্ত */
.pill.working .d,.pill.break .d{animation:pulse 1.8s ease-in-out infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 currentColor}50%{box-shadow:0 0 0 4px transparent;opacity:.55}}
.progress>div{transition:width .8s var(--ease)}

/* বিরতি, টাস্ক, টেবিল */
.break-row{transition:border-color .25s,background .25s,box-shadow .25s}
.break-row:hover{box-shadow:var(--shadow-sm)}
.task{transition:background .2s;border-radius:10px}
.table tbody tr{transition:background .15s}
.table tbody tr:hover{background:#F8F9FC}
.alert-item{transition:background .2s,transform .2s}
.alert-item:hover{background:#EFF2F8}

/* লগইন কার্ড */
.auth-card{animation:rise .5s var(--ease) both}

/* রিপোর্টের ছোট বার চার্ট */
.mini-bar{height:8px;border-radius:99px;background:var(--line-2);overflow:hidden;min-width:80px}
.mini-bar>div{height:100%;border-radius:99px;background:var(--green);transition:width .8s var(--ease)}
.mini-bar.warn>div{background:var(--amber)}
.mini-bar.bad>div{background:var(--red)}
.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}

/* মোশন কমাতে চাইলে সব অ্যানিমেশন বন্ধ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media print{.main>*{animation:none}.card,.stat{box-shadow:none}}

/* ============================================================
   প্রোফাইল
   ============================================================ */
.avatar{overflow:hidden;position:relative}
.avatar.has-img{background:var(--line-2);font-size:0!important}
.avatar.has-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.avatar.uploading img{opacity:.55;filter:grayscale(.3)}
.avatar.uploading::after{content:"";position:absolute;inset:50% auto auto 50%;width:28px;height:28px;margin:-14px;border-radius:50%;border:3px solid #fff;border-right-color:transparent;animation:spin .7s linear infinite}
a.user-chip{text-decoration:none;color:inherit;transition:background .2s}
a.user-chip:hover,a.user-chip.active{background:var(--navy-2)}
a.user-chip>svg{margin-left:auto;opacity:.6;flex-shrink:0}
.profile-head{flex-direction:row;flex-wrap:wrap;align-items:center;gap:24px}
.profile-photo{position:relative;flex-shrink:0}
.profile-photo .avatar{box-shadow:0 0 0 4px #fff,0 0 0 6px var(--line);background:var(--navy);color:#fff;font-weight:700}
.photo-btn{position:absolute;right:0;bottom:0;width:38px;height:38px;border-radius:50%;background:var(--orange-ink);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(15,30,58,.25);transition:transform .15s,background .2s}
.photo-btn:hover{background:#9A3412;transform:scale(1.06)}
.photo-btn:focus-within{outline:2px solid var(--orange);outline-offset:2px}
.profile-meta{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:8px}
.profile-meta h2{font-size:24px}
.profile-meta .bio{margin:0;color:var(--ink);font-size:15px;max-width:60ch}
.profile-tags{display:flex;flex-wrap:wrap;gap:6px}
.fld input:disabled{background:var(--bg);color:var(--muted)}


/* ============================================================
   টাস্ক লিস্ট
   ============================================================ */
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--card);color:var(--ink);text-decoration:none;font-size:14px;font-weight:600;transition:background .2s,border-color .2s}
.chip b{font-size:12px;background:var(--line-2);border-radius:99px;padding:1px 8px}
.chip:hover{border-color:var(--navy)}
.chip.on{background:var(--navy);border-color:var(--navy);color:#fff}
.chip.on b{background:rgba(255,255,255,.2);color:#fff}
.chip.warn b{background:var(--red-soft);color:var(--red)}
.add-task{gap:0}
.add-task>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:28px;flex-wrap:wrap}
.add-task>summary::-webkit-details-marker{display:none}
.add-task>summary .note{flex-basis:100%;margin-left:28px}
.add-task[open]>summary{margin-bottom:16px}
.task-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.task-card{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--card);border-left:4px solid var(--line);transition:box-shadow .2s,border-color .2s,transform .15s}
.task-card:hover{box-shadow:var(--shadow-sm)}
.task-card.prio-high{border-left-color:var(--orange)}
.task-card.prio-medium{border-left-color:var(--blue)}
.task-card.due-overdue{background:#FFFAF8}
.task-card.done{opacity:.62}
.task-card.done .task-title{text-decoration:line-through}
.task-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;text-decoration:none;color:inherit}
.task-title{font-size:15.5px;line-height:1.35;word-break:break-word}
.task-meta{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:13px;color:var(--muted)}
.task-meta span{display:inline-flex;align-items:center;gap:4px}
.task-tags{display:flex;flex-wrap:wrap;gap:4px}
.task-tags:empty{display:none}
.task-tags .tag{display:inline-flex;align-items:center;gap:3px;font-size:12px;padding:2px 8px}
.task-status select{height:40px;border:1px solid #CFD5E1;border-radius:10px;padding:0 8px;font-size:13.5px;font-weight:600;background:#fff;color:var(--ink);max-width:132px;cursor:pointer}
select.status-todo{background:var(--line-2)}
select.status-in_progress{background:var(--blue-soft);color:var(--blue);border-color:#C7D5F7}
select.status-review{background:var(--orange-soft);color:var(--orange-ink);border-color:#F6CFB0}
select.status-done{background:var(--green-soft);color:var(--green-ink);border-color:#BFE0CF}
.task-list.compact .task-card{padding:10px 10px 10px 12px}
.empty-state{display:flex;flex-direction:column;align-items:center;gap:6px;padding:28px 12px;color:var(--muted);text-align:center}
.empty-state svg{color:var(--green)}
.empty-state p{margin:0}

/* টাস্ক বিস্তারিত */
.back-link{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--muted);text-decoration:none;margin-bottom:4px}
.back-link:hover{color:var(--ink)}
.task-h1{font-size:24px;word-break:break-word}
.task-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:20px;align-items:start}
@media (max-width:900px){.task-layout{grid-template-columns:1fr}}
.task-desc{font-size:15.5px;line-height:1.7;white-space:normal;word-break:break-word}
.status-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
@media (max-width:520px){.status-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}}
.st-btn{min-height:44px;border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-family:inherit;font-weight:600;font-size:14px;cursor:pointer;transition:background .2s,border-color .2s}
.st-btn:hover{border-color:var(--navy)}
.st-btn.on.status-todo{background:var(--ink);color:#fff;border-color:var(--ink)}
.st-btn.on.status-in_progress{background:var(--blue);color:#fff;border-color:var(--blue)}
.st-btn.on.status-review{background:var(--orange-ink);color:#fff;border-color:var(--orange-ink)}
.st-btn.on.status-done{background:var(--green);color:#fff;border-color:var(--green)}
.task-info dl{margin:0;display:flex;flex-direction:column;gap:12px}
.task-info dl>div{display:flex;flex-direction:column;gap:2px}
.task-info dt{font-size:12.5px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.3px}
.task-info dd{margin:0;font-size:15px;font-weight:500}
.comments{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.comment{display:flex;gap:10px;align-items:flex-start}
.comment .bubble{flex:1;min-width:0;background:#F4F6FA;border-radius:4px 14px 14px 14px;padding:10px 14px;display:flex;flex-direction:column;gap:4px}
.comment.mine{flex-direction:row-reverse}
.comment.mine .bubble{background:#EEF2FB;border-radius:14px 4px 14px 14px}
.comment .who{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.comment .text{word-break:break-word;line-height:1.6}
.comment-form{display:flex;gap:10px;align-items:flex-end;border-top:1px solid var(--line-2);padding-top:14px}
.comment-form textarea{flex:1;min-height:48px;padding:12px;border:1px solid #CFD5E1;border-radius:12px;font-family:inherit;font-size:15px;resize:vertical;color:var(--ink);background:#fff}
.comment-form textarea:focus{outline:none;border-color:var(--navy);box-shadow:0 0 0 3px rgba(27,58,107,.15)}

/* ============================================================
   নোটিশ বোর্ড
   ============================================================ */
.notices{display:flex;flex-direction:column;gap:10px}
.notice{display:flex;gap:14px;padding:16px 18px;border-radius:16px;background:linear-gradient(0deg,#FFF8F3,#FFF8F3);border:1px solid #F6D9C4;box-shadow:var(--shadow-sm)}
.notice.pinned{border-color:var(--orange);border-width:1.5px}
.notice-icon{width:40px;height:40px;border-radius:12px;background:var(--orange-ink);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.notice-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;line-height:1.55}
.notice-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:16px}
.notice details summary{cursor:pointer;list-style:none;color:var(--ink)}
.notice details summary::-webkit-details-marker{display:none}
.notice details[open] summary{display:none}
.notice .more{color:var(--orange-ink);font-weight:600;white-space:nowrap}
.notice-admin{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.notice-admin li{display:flex;flex-direction:column;gap:6px;padding:14px 0;border-bottom:1px solid var(--line-2)}
.notice-admin li:last-child{border-bottom:none}
.check{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--ink);font-weight:500;cursor:pointer;min-height:32px}
.check input{width:18px;height:18px;accent-color:var(--navy)}
.wa-share summary{list-style:none;display:inline}
.wa-share summary::-webkit-details-marker{display:none}
.wa-person{display:inline-flex;align-items:center;gap:6px;font-size:13px;padding:4px 8px;border:1px solid var(--line);border-radius:10px}

/* WhatsApp বাটন */
.btn-wa{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:10px;background:#1F8B4C;color:#fff;text-decoration:none;font-weight:600;font-size:14px;transition:background .2s}
.btn-wa:hover{background:#166C3A;color:#fff}
.btn-wa.sm{height:34px;padding:0 10px;font-size:13px}

/* অ্যাটেনডেন্সের কাজের রিপোর্ট */
details.report{margin-top:4px;font-size:13px}
details.report summary{cursor:pointer;color:var(--navy);font-weight:600}
details.report>div{margin-top:4px;padding:8px 10px;background:#F7F8FB;border-radius:8px;line-height:1.5;max-width:420px;white-space:normal}
.clockout-form{display:flex;flex-direction:column;gap:10px}
.clockout-form textarea{min-height:56px}

/* ============================================================
   বেতন ও পে-স্লিপ
   ============================================================ */
.pay-list{display:flex;flex-direction:column;gap:12px}
.pay-row{border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:12px}
.pay-row.final{background:#FAFCFB}
.pay-who{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.pay-facts{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;color:var(--muted)}
.pay-facts b{color:var(--ink)}
.pay-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.pay-form .fld{flex:1 1 130px}
.pay-calc{flex-basis:100%;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px}
.pay-net{display:flex;flex-direction:column;min-width:130px}
.pay-net small{color:var(--muted);font-size:12.5px}
.pay-net b{font-size:22px}
.payslip{max-width:860px}
.slip-head{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:3px solid var(--orange);padding-bottom:14px}
.slip-who{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.slip-who div{display:flex;flex-direction:column}
.slip-who small{color:var(--muted);font-size:12.5px}
.slip-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.slip-grid h3{margin:0 0 6px;font-size:15px;color:var(--muted)}
.slip-table td{padding:8px 4px}
.slip-table td.num{text-align:right}
.slip-net{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding:14px 16px;border-radius:12px;background:var(--navy);color:#fff;font-size:16px}
.slip-net b{font-size:24px}

/* ============================================================
   ইনস্টল বাটন, স্কিপ লিংক
   ============================================================ */
.install-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:10px;border:1px dashed #6B7FA8;background:transparent;color:#fff;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.install-btn:hover{background:var(--navy-3)}
.ios-hint{margin:0;font-size:12.5px;color:#A9B4CC;line-height:1.5}
.skip-link{position:absolute;left:-999px;top:8px;z-index:100;background:#fff;color:var(--ink);padding:10px 14px;border-radius:10px;font-weight:700}
.skip-link:focus{left:8px}

/* ============================================================
   মোবাইল — উপরে ছোট বার, নিচে মেনু বার, "আরও" চাপলে মেনু নিচ থেকে ওঠে
   ============================================================ */
.mobile-bar,.bottom-nav{display:none}
.scrim[hidden]{display:none}
@media (max-width:820px){
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  .app{display:block}
  .main{padding:16px 16px 28px;gap:16px}
  .mobile-bar{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:30;padding:10px 16px;padding-top:calc(10px + env(safe-area-inset-top));background:var(--navy-ink);color:#fff}
  .mb-brand{flex:1;min-width:0;display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:700;font-size:16px}
  .mb-brand img{border-radius:9px;flex-shrink:0;background:#fff}
  .mb-brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-bar .icon-btn{background:transparent;border-color:rgba(255,255,255,.18);color:#fff;width:40px;height:40px}
  .mobile-bar .avatar{border:2px solid rgba(255,255,255,.3)}

  /* সাইডবার = নিচ থেকে ওঠা মেনু */
  .sidebar{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:60;height:auto;max-height:82vh;overflow-y:auto;
    border-radius:22px 22px 0 0;padding:14px 16px calc(84px + env(safe-area-inset-bottom));transform:translateY(105%);
    transition:transform .3s var(--ease),visibility 0s linear .3s;visibility:hidden;box-shadow:0 -10px 40px rgba(0,0,0,.3);gap:14px;flex:none}
  .sidebar::before{content:"";display:block;width:44px;height:5px;border-radius:9px;background:#3A4E78;margin:0 auto 4px}
  body.nav-open .sidebar{transform:none;visibility:visible;transition:transform .3s var(--ease)}
  body.nav-open{overflow:hidden}
  .sidebar .brand{display:none}
  .sidebar .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .sidebar .nav a{min-height:52px;background:var(--navy-3);border-radius:12px}
  .sidebar .nav a.active{box-shadow:inset 0 0 0 2px var(--orange)}
  .nav a:hover{transform:none}
  .scrim{position:fixed;inset:0;z-index:50;background:rgba(10,18,36,.5);animation:fade .2s}
  @keyframes fade{from{opacity:0}to{opacity:1}}

  .bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:70;
    background:var(--card);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -4px 16px rgba(15,30,58,.06)}
  .bottom-nav a,.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;
    color:var(--muted);text-decoration:none;font-size:11.5px;font-weight:600;background:none;border:none;font-family:inherit;cursor:pointer;border-radius:12px;padding:0}
  .bottom-nav .active{color:var(--orange-ink)}
  .bottom-nav .active .bn-ic{background:var(--orange-soft)}
  .bn-ic{position:relative;display:flex;align-items:center;justify-content:center;width:48px;height:30px;border-radius:99px;transition:background .2s}
  .bn-badge{position:absolute;top:-2px;right:4px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--orange-ink);color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center}
  .bn-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  /* কন্টেন্ট মোবাইলে */
  .topbar h1{font-size:22px}
  .topbar>.icon-btn{display:none}
  .card{padding:16px;border-radius:16px}
  .grid-2,.grid-4,.kpi-row{gap:12px}
  .grid-4,.kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat{padding:14px}
  .stat .value{font-size:22px}
  .form-grid{grid-template-columns:1fr}
  .fld input,.fld select,.fld textarea{font-size:16px}       /* iPhone জুম এড়াতে */
  .toolbar,.toolbar form{width:100%}
  .toolbar form .fld{flex:1 1 140px}
  .big-time{font-size:46px}
  .break-row{padding:12px;gap:10px}
  .break-row .btn{padding:0 12px}
  .task-card{flex-wrap:wrap}
  .task-status{width:100%}
  .task-status select{width:100%;max-width:none}
  .task-list.compact .task-status{width:auto}
  .task-list.compact .task-status select{width:auto}
  .tabs{display:flex;overflow-x:auto;max-width:100%}
  .tabs a{white-space:nowrap}
  .flash{position:sticky;top:calc(64px + env(safe-area-inset-top));z-index:20}
  .comment-form{flex-direction:column;align-items:stretch}
  .profile-head{flex-direction:column;align-items:flex-start}
}
@media (max-width:380px){
  .grid-4,.kpi-row{grid-template-columns:1fr}
  .bn-label{font-size:10.5px}
}
/* অ্যাপ হিসেবে খুললে (হোম স্ক্রিন থেকে) উপরের বারে নচের জায়গা */
.is-app .mobile-bar{padding-top:calc(12px + env(safe-area-inset-top))}
@media print{.mobile-bar,.bottom-nav,.scrim{display:none!important}body{padding:0}}

/* ============================================================
   অ্যাডমিন সেটিংস — ফিচার সুইচ
   ============================================================ */
.feature-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.feature-toggle{position:relative;display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;cursor:pointer;transition:border-color .2s,background .2s}
.feature-toggle:hover{border-color:var(--navy)}
.feature-toggle:has(input:checked){background:#FFF6EE;border-color:#FFC999}
.ft-ic{width:36px;height:36px;border-radius:10px;background:var(--line-2);color:var(--navy);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.feature-toggle:has(input:checked) .ft-ic{background:var(--orange);color:#fff}
.ft-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}
.ft-text small{color:var(--muted);font-size:12.5px}
.feature-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.switch{width:44px;height:26px;border-radius:99px;background:#C9CFDC;position:relative;flex-shrink:0;transition:background .2s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s var(--ease)}
.feature-toggle input:checked+.switch{background:var(--orange)}
.feature-toggle input:checked+.switch::after{transform:translateX(18px)}
.feature-toggle input:focus-visible+.switch{outline:2px solid var(--orange);outline-offset:2px}
.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:4px 14px;margin-top:4px}
.card[id]{scroll-margin-top:84px}

/* ============================================================
   পপ-আপ নোটিফিকেশন (টোস্ট)
   ============================================================ */
.toasts{position:fixed;top:16px;right:16px;z-index:200;display:flex;flex-direction:column;gap:10px;width:min(380px,calc(100vw - 32px));pointer-events:none}
.toast{pointer-events:auto;display:flex;align-items:flex-start;gap:12px;padding:14px 14px 14px 16px;border-radius:16px;background:var(--card);color:var(--ink);text-decoration:none;
  border:1px solid var(--line);box-shadow:0 12px 32px rgba(15,30,58,.18),0 2px 6px rgba(15,30,58,.08);animation:toastIn .35s var(--ease) both;border-left:4px solid var(--navy)}
.toast:hover{color:var(--ink)}
.toast.t-auto_out,.toast.t-no_clockout,.toast.t-late,.toast.t-no_clockin{border-left-color:var(--orange)}
.toast.t-notice{border-left-color:var(--orange-ink)}
.toast.t-task_done,.toast.t-leave_approved{border-left-color:var(--green)}
.toast.t-break_over,.toast.t-leave_rejected{border-left-color:var(--red)}
.toast-ic{font-size:20px;line-height:1.2;flex-shrink:0}
.toast-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.toast-body b{font-weight:600;font-size:14.5px;line-height:1.45;word-break:break-word}
.toast-body small{color:var(--muted);font-size:12px}
.toast-x{background:none;border:none;color:var(--muted);font-size:20px;line-height:1;cursor:pointer;padding:0 4px;border-radius:6px;min-height:28px}
.toast-x:hover{color:var(--ink)}
.toast.out{animation:toastOut .3s ease forwards}
@keyframes toastIn{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@keyframes toastOut{to{opacity:0;transform:translateX(24px)}}
@media (max-width:820px){
  .toasts{top:calc(66px + env(safe-area-inset-top));right:12px;left:12px;width:auto}
  @keyframes toastIn{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
  @keyframes toastOut{to{opacity:0;transform:translateY(-14px)}}
}
.hint-tip{cursor:help;color:var(--muted);font-size:13px}
.theme-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:10px;border:1px solid #2C3E66;background:transparent;color:#E8ECF5;font-family:inherit;font-size:14px;cursor:pointer}
.theme-btn:hover{background:var(--navy-3)}
.theme-btn .ic-sun{display:none}
html[data-theme="dark"] .theme-btn .ic-sun{display:inline}
html[data-theme="dark"] .theme-btn .ic-moon{display:none}
.auth .theme-btn{position:absolute;top:16px;right:16px;color:#fff;border-color:rgba(255,255,255,.3);width:44px;height:44px;padding:0}
.mobile-bar .theme-btn{width:40px;height:40px;min-height:40px;padding:0;border-color:rgba(255,255,255,.18)}

/* ============================================================
   ডার্ক মোড
   ============================================================ */
html[data-theme="dark"]{
  color-scheme:dark;
  --navy:#3B66B5; --navy-ink:#0E1830; --navy-2:#1E3460; --navy-3:#16264A;
  --orange:#F26A35; --orange-ink:#F29A63; --orange-soft:#3A2416;
  --bg:#0B1220; --card:#121B2E; --line:#24324D; --line-2:#1B273D;
  --muted:#9AA6BF; --ink:#E6EBF5;
  --green:#3DBE84; --green-ink:#7FD1A8; --green-soft:#12301F;
  --blue:#82A9F5; --blue-soft:#172A4D;
  --amber:#E8A44A; --amber-soft:#3A2A12;
  --red:#F27B70; --red-soft:#3A1A1A;
  --shadow-sm:0 1px 2px rgba(0,0,0,.3),0 1px 3px rgba(0,0,0,.35);
  --shadow-md:0 6px 16px rgba(0,0,0,.4);
  --link:#8FB2F0; --link-hover:#B7CDF6;
}
html[data-theme="dark"] .sidebar{background:var(--navy-ink);border-right:1px solid var(--line)}
html[data-theme="dark"] .icon-btn,html[data-theme="dark"] .st-btn{background:var(--card);color:var(--ink)}
html[data-theme="dark"] .fld input,html[data-theme="dark"] .fld select,html[data-theme="dark"] .fld textarea,
html[data-theme="dark"] .task-status select,html[data-theme="dark"] .task select,html[data-theme="dark"] .comment-form textarea,
html[data-theme="dark"] .field input{background:#0E1729;color:var(--ink);border-color:#2A3A57}
html[data-theme="dark"] .fld input:disabled{background:#0B1322;color:var(--muted)}
html[data-theme="dark"] select.status-todo{background:var(--line-2)}
html[data-theme="dark"] select.status-in_progress{border-color:#2B4579}
html[data-theme="dark"] select.status-review{border-color:#5A3420}
html[data-theme="dark"] select.status-done{border-color:#1F5A3B}
html[data-theme="dark"] .btn-line{background:transparent;color:var(--ink);border-color:#3A4D72}
html[data-theme="dark"] .btn-line:hover{background:var(--line-2)}
html[data-theme="dark"] .btn-orange{background:#C2410C}
html[data-theme="dark"] .btn-orange:hover{background:#A3360A}
html[data-theme="dark"] .break-row.active{background:#2A1A10}
html[data-theme="dark"] .alert-item{background:#162139}
html[data-theme="dark"] .alert-item:hover{background:#1B2944}
html[data-theme="dark"] .table tbody tr:hover{background:#17223A}
html[data-theme="dark"] .task-card.due-overdue{background:#23161A}
html[data-theme="dark"] .comment .bubble{background:#18233A}
html[data-theme="dark"] .comment.mine .bubble{background:#1C2B49}
html[data-theme="dark"] .notice{background:#22170F;border-color:#4A2E1B}
html[data-theme="dark"] .notice.pinned{border-color:var(--orange)}
html[data-theme="dark"] .feature-toggle:has(input:checked){background:#2A1D12;border-color:#7A4A1E}
html[data-theme="dark"] .switch{background:#3A4762}
html[data-theme="dark"] .pay-row.final{background:#13201B}
html[data-theme="dark"] details.report>div{background:#162139}
html[data-theme="dark"] .auth-card{background:var(--card)}
html[data-theme="dark"] .auth-card .logo{background:#fff;border-radius:14px;padding:10px 16px;align-self:center}
html[data-theme="dark"] .profile-photo .avatar{box-shadow:0 0 0 4px var(--card),0 0 0 6px var(--line)}
html[data-theme="dark"] .skip-link{color:#0F1E3A}
html[data-theme="dark"] .chip.on{background:#2F5AA8;border-color:#2F5AA8}
html[data-theme="dark"] .bottom-nav{box-shadow:0 -4px 16px rgba(0,0,0,.4)}
html[data-theme="dark"] .mb-brand img{background:#fff}
html[data-theme="dark"] .slip-head img{background:#fff;border-radius:10px;padding:6px 10px}
html[data-theme="dark"] .tag.gray{color:#B5C0D6}
html[data-theme="dark"] .toast{box-shadow:0 12px 32px rgba(0,0,0,.5)}
@media print{html[data-theme="dark"]{--bg:#fff;--card:#fff;--ink:#0F1E3A;--muted:#57607A;--line:#E2E5EE;--line-2:#EDEFF5}}
a.person-link{text-decoration:none;color:inherit;border-radius:10px;padding:2px 6px 2px 2px;margin:-2px -6px -2px -2px;transition:background .2s}
a.person-link:hover{background:var(--line-2);color:inherit}
a.person-link:hover b{text-decoration:underline}
html[data-theme="dark"] .tabs a.on{background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.4)}
html[data-theme="dark"] .mobile-bar a{color:#fff}
html[data-theme="dark"] .back-link{color:var(--muted)}
