/* ============================================================
   Work SOP — Design System v2
   Inspired by modern task-management dashboard aesthetics:
   light sidebar, big rounded cards, pastel icon tiles,
   purple accent, orange highlight cards, soft shadows.
   ============================================================ */
:root {
  --bg: #f2f2f5;
  --card: #ffffff;
  --ink: #16161d;
  --ink-2: #5c5c6b;
  --ink-3: #9a9aa8;
  --line: #ececf1;
  --line-2: #e2e2ea;

  --brand: #6c5ce7;        /* purple */
  --brand-d: #5a49d8;
  --brand-soft: #efecff;
  --orange: #ffa51f;       /* highlight card */
  --orange-d: #f79009;
  --orange-soft: #fff3e0;
  --pink: #e0316e;         /* calendar / accents */
  --pink-soft: #fde7ef;
  --lime: #b5e352;
  --lime-d: #7bb929;
  --green: #22c55e;  --green-soft: #e9f9ef;
  --red: #ef4444;    --red-soft: #fdeceb;
  --blue: #3b82f6;   --blue-soft: #e8f1fe;
  --purple-soft: #f1ecfe;
  --yellow-soft: #fff4d6;
  --navy: #17172e;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22,22,43,.03), 0 4px 16px -6px rgba(22,22,43,.06);
  --shadow-lg: 0 24px 48px -16px rgba(22,22,43,.22);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.5; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14.5px; }
a { color: var(--brand); text-decoration: none; }

/* ---------- generic ---------- */
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; color: var(--ink-3); }
.spacer { flex: 1; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.card + .card { margin-top: 16px; }
.card h3 { font-size: 15.5px; margin-bottom: 12px; letter-spacing: -.01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  padding: 10px 20px; font-size: 14px; font-weight: 600; line-height: 1.2;
  background: var(--brand); color: #fff; transition: .16s;
  min-height: 42px; box-shadow: 0 8px 20px -8px rgba(108,92,231,.5);
}
.btn:hover { background: var(--brand-d); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.secondary:hover { background: #f6f6f9; }
.btn.danger { background: var(--red); box-shadow: 0 8px 20px -8px rgba(239,68,68,.45); }
.btn.danger:hover { background: #dc2626; }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: none; }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.sm { padding: 7px 14px; font-size: 13px; min-height: 34px; }
.btn.success { background: var(--green); box-shadow: 0 8px 20px -8px rgba(34,197,94,.45); }
.btn.block { width: 100%; }

/* ---------- badges / tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  text-transform: uppercase;
}
.badge.pending      { background: var(--blue-soft); color: #1d5fd0; }
.badge.in_progress  { background: var(--purple-soft); color: #6941c6; }
.badge.completed,
.badge.approved     { background: var(--green-soft); color: #15803d; }
.badge.awaiting_approval { background: var(--yellow-soft); color: #b54708; }
.badge.overdue,
.badge.rejected     { background: var(--red-soft); color: #b42318; }
.badge.skipped      { background: #f1f1f4; color: var(--ink-2); }
.badge.active       { background: var(--green-soft); color: #15803d; }
.badge.inactive, .badge.archived { background: #f1f1f4; color: var(--ink-2); }
.badge.low      { background: #f1f1f4; color: var(--ink-2); }
.badge.normal   { background: var(--blue-soft); color: #1d5fd0; }
.badge.high     { background: var(--yellow-soft); color: #b54708; }
.badge.critical { background: var(--pink); color: #fff; }

.tag {
  display: inline-flex; font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  background: #f1f1f5; border-radius: 999px; padding: 3px 11px; white-space: nowrap;
}

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 10px 14px; background: #fff; color: var(--ink); outline: none;
  min-height: 42px; transition: border .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108,92,231,.14); }
textarea.input { min-height: 90px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
.checkline { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 6px 0; cursor: pointer; }
.checkline input { width: 17px; height: 17px; accent-color: var(--brand); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-3); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: #fbfbfd;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover { background: #fafaff; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(22,22,45,.5); backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 16px; z-index: 100; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 640px; padding: 26px; animation: pop .18s ease;
  margin-bottom: 4vh;
}
.modal.wide { max-width: 820px; }
.modal h2 { font-size: 18px; margin-bottom: 18px; letter-spacing: -.01em; }
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- toast ---------- */
#toast-wrap { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .2s ease;
  max-width: 92vw; text-align: center;
}
.toast.err { background: #b42318; }
.toast.ok  { background: #15803d; }

/* ---------- empty / loading ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--ink-3); }
.empty .big { font-size: 34px; margin-bottom: 8px; }
.empty p { font-size: 14px; }
.loading-center { display: flex; align-items: center; justify-content: center; padding: 60px; color: var(--ink-3); }
.spinner {
  width: 26px; height: 26px; border: 3px solid var(--line-2); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .8s linear infinite; margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   ADMIN LAYOUT — light sidebar
   ============================================================ */
.admin-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; background: #fff; border-right: 1px solid var(--line); flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo {
  display: flex; align-items: center; gap: 11px; padding: 20px 18px 14px;
  color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.25;
}
.sidebar .logo .mark {
  width: 40px; height: 40px; border-radius: 13px; background: var(--lime);
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--navy);
  flex-shrink: 0;
}
.sidebar .logo .sub { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.sidebar nav { flex: 1; padding: 4px 12px; overflow-y: auto; }
.sidebar nav .sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); padding: 14px 12px 5px; font-weight: 600; }
.sidebar nav a {
  display: flex; align-items: center; gap: 11px; color: var(--ink-2);
  padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; margin-bottom: 2px;
}
.sidebar nav a:hover { background: #f5f5f8; color: var(--ink); }
.sidebar nav a.active { background: #f1f1f4; color: var(--ink); font-weight: 600; }
.sidebar nav a .ico {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 14.5px; background: #f5f5f8; flex-shrink: 0;
}
.sidebar nav a.active .ico { background: #fff; box-shadow: var(--shadow); }
.sidebar .foot { padding: 12px; }
.prof-card {
  background: var(--navy); color: #fff; border-radius: 18px; padding: 14px;
  display: flex; align-items: center; gap: 11px;
}
.prof-card .avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.prof-card .who { flex: 1; min-width: 0; }
.prof-card .who .nm { font-weight: 600; font-size: 13.5px; }
.prof-card .who .em { font-size: 11.5px; color: #a5a5c0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-card .out {
  background: rgba(255,255,255,.12); border: 0; color: #fff; width: 32px; height: 32px;
  border-radius: 10px; cursor: pointer; font-size: 14px; flex-shrink: 0;
}
.prof-card .out:hover { background: rgba(255,255,255,.22); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 16px 28px 0;
}
.topbar h1 { display: none; }
.topbar .hamb { display: none; }
.content { padding: 20px 28px 40px; max-width: 1280px; width: 100%; margin: 0 auto; }

.bell { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; width: 42px; height: 42px; cursor: pointer; font-size: 16px; }
.bell .dot {
  position: absolute; top: 8px; right: 9px; width: 9px; height: 9px;
  background: var(--pink); border-radius: 50%; border: 2px solid #fff;
}
.notif-panel {
  position: absolute; right: 28px; top: 66px; width: 370px; max-width: 92vw;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  z-index: 90; max-height: 420px; overflow-y: auto;
}
.notif-panel .n-item { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.notif-panel .n-item:last-child { border-bottom: 0; }
.notif-panel .n-item .small { display: block; margin-top: 3px; }
.notif-panel .n-item.unread { background: #f7f6ff; }

/* ---------- greeting ---------- */
.greet { margin: 6px 0 22px; }
.greet h1 { font-size: 30px; font-weight: 400; letter-spacing: -.02em; }
.greet h1 b { font-weight: 800; }
.greet p { color: var(--ink-2); margin-top: 3px; }

/* ---------- stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); position: relative;
}
.stat .tile {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 19px; margin-bottom: 14px;
}
.stat .tile.purple { background: var(--purple-soft); }
.stat .tile.pinkk  { background: var(--pink-soft); }
.stat .tile.yell   { background: var(--yellow-soft); }
.stat .tile.greenn { background: var(--green-soft); }
.stat .tile.bluee  { background: var(--blue-soft); }
.stat .dots { position: absolute; top: 14px; right: 16px; color: var(--ink-3); letter-spacing: 2px; font-weight: 700; }
.stat .k { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stat .l { font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.stat.warn .k { color: var(--orange-d); }
.stat.bad .k { color: var(--pink); }
.stat.good .k { color: var(--green); }
.stat.brand .k { color: var(--brand); }

/* ---------- section heads ---------- */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 21px; letter-spacing: -.02em; font-weight: 800; }
.sect-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; }
.sect-head h2 { font-size: 19px; letter-spacing: -.02em; font-weight: 800; }
.sect-head .viewall { margin-left: auto; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.sect-head .viewall:hover { color: var(--brand); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters .input { width: auto; min-width: 130px; }
.tabs { display: flex; gap: 4px; background: #e9e9ef; border-radius: 999px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button {
  border: 0; background: transparent; padding: 8px 17px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.progressbar { height: 7px; border-radius: 6px; background: #eeeef2; overflow: hidden; min-width: 80px; }
.progressbar > div { height: 100%; background: #35d073; border-radius: 6px; transition: width .3s; }

.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }

/* ---------- dashboard grid + task cards ---------- */
.dash-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) { .tgrid { grid-template-columns: 1fr; } }
.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); cursor: pointer; transition: .15s;
  display: flex; flex-direction: column; gap: 9px; position: relative;
}
.tcard:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(22,22,43,.14); }
.tcard.dashed { border: 1.5px dashed var(--line-2); box-shadow: none; }
.tcard .tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tcard .tags .who { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.tcard .tt { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.tcard .td { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .details { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.tcard.hl {
  background: var(--orange); border-color: var(--orange);
  box-shadow: 0 16px 32px -12px rgba(255,165,31,.55);
}
.tcard.hl .tt, .tcard.hl .details { color: #fff; }
.tcard.hl .td { color: rgba(255,255,255,.85); }
.tcard.hl .tag { background: rgba(255,255,255,.22); color: #fff; }
.tcard.hl .tags .who { color: rgba(255,255,255,.8); }
.tcard.hl .badge { background: rgba(255,255,255,.22); color: #fff; }

/* dashed add-row (like "New Project") */
.add-row {
  border: 1.5px dashed #b9b1f2; border-radius: 14px; color: var(--brand);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; font-weight: 600; cursor: pointer; background: transparent;
  width: 100%; font-size: 14px; transition: .15s;
}
.add-row:hover { background: var(--brand-soft); }

/* employee row (like project row) */
.emp-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 6px;
  border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px;
}
.emp-row:hover { background: #fafaff; }
.emp-row:last-child { border-bottom: 0; }
.emp-row .etile {
  width: 42px; height: 42px; border-radius: 13px; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.emp-row .col { min-width: 0; }
.emp-row .col .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; }
.emp-row .col .val { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.emp-row .nm { font-weight: 700; font-size: 14.5px; }
.emp-row .rl { font-size: 12.5px; color: var(--ink-2); }
.statdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }

/* ---------- right rail ---------- */
.rail .card { padding: 18px; }
.weekcal { }
.weekcal .wtitle { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.weekcal .days { display: flex; gap: 6px; }
.weekcal .day {
  flex: 1; text-align: center; padding: 9px 2px 10px; border-radius: 13px;
  border: 1px solid transparent; color: var(--ink-2);
}
.weekcal .day .dn { font-size: 12px; font-weight: 700; }
.weekcal .day .dd { font-size: 13px; margin-top: 6px; color: var(--ink-3); }
.weekcal .day.today { background: var(--pink); color: #fff; box-shadow: 0 10px 20px -8px rgba(224,49,110,.5); }
.weekcal .day.today .dd { color: rgba(255,255,255,.85); }
.weekcal .day.off { opacity: .4; }

.rail-task {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
  display: flex; gap: 10px; align-items: flex-start;
}
.rail-task.dashed { border-style: dashed; border-color: var(--line-2); }
.rail-task .cb {
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2);
  flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px;
}
.rail-task.done .cb { background: var(--orange); border-color: var(--orange); }
.rail-task.done .rt-t { text-decoration: line-through; color: var(--orange-d); }
.rail-task .rt-t { font-weight: 600; font-size: 13.5px; }
.rail-task .rt-d { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.member-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.member-row .mtile {
  width: 40px; height: 40px; border-radius: 13px; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.member-row .mm { flex: 1; min-width: 0; }
.member-row .mm .n { font-weight: 600; font-size: 13.5px; }
.member-row .mm .e { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 400px; border-radius: 24px; padding: 32px; }
.login-card .logo { display: flex; align-items: center; gap: 11px; justify-content: center; margin-bottom: 22px; font-weight: 800; font-size: 18px; }
.login-card .logo .mark { width: 46px; height: 46px; border-radius: 15px; background: var(--lime); display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 21px; }

@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 80; height: 100vh; left: -260px; transition: left .2s ease; }
  .sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
  .topbar { padding: 14px 16px 0; }
  .topbar .hamb { display: inline-flex; }
  .content { padding: 16px 14px 40px; }
  .notif-panel { right: 10px; }
  .greet h1 { font-size: 24px; }
}

/* ============================================================
   EMPLOYEE PORTAL
   ============================================================ */
.ep-body { background: var(--bg); }
.ep-shell { max-width: 640px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 84px; }
.ep-head {
  background: linear-gradient(135deg, #6c5ce7 0%, #8d7bf7 100%);
  color: #fff; padding: 24px 20px 62px; border-radius: 0 0 30px 30px;
}
.ep-head .biz { font-size: 12px; opacity: .8; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ep-head h1 { font-size: 22px; margin-top: 6px; font-weight: 400; }
.ep-head h1 b { font-weight: 800; }
.ep-head .role-chip {
  display: inline-flex; margin-top: 10px; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28); padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.ep-content { padding: 0 14px; margin-top: -42px; flex: 1; }
.ep-progress-card { display: flex; gap: 9px; }
.ep-progress-card .pcell {
  flex: 1; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 6px; box-shadow: var(--shadow);
}
.pcell .k { font-size: 22px; font-weight: 800; }
.pcell .l { font-size: 10.5px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 1px; }
.pcell.bad .k { color: var(--pink); }
.pcell.good .k { color: var(--green); }
.pcell.warn .k { color: var(--orange-d); }

.ep-section { margin-top: 24px; }
.ep-section > h2 { font-size: 16.5px; margin-bottom: 11px; display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.01em; }
.task-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 15px 16px; margin-bottom: 10px;
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer; transition: .15s;
}
.task-card:active { transform: scale(.985); }
.task-card.critical { border-left: 4px solid var(--pink); }
.task-card.high { border-left: 4px solid var(--orange); }
.task-card .tc-main { flex: 1; min-width: 0; }
.task-card .tc-title { font-weight: 700; font-size: 14.5px; }
.task-card .tc-meta { display: flex; gap: 7px; margin-top: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.task-card .done-mark { color: var(--green); font-size: 20px; }

.ep-nav {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
  border-top: 1px solid var(--line); display: flex; z-index: 60;
  padding-bottom: env(safe-area-inset-bottom);
}
.ep-nav button {
  flex: 1; background: none; border: 0; padding: 10px 4px 9px; cursor: pointer;
  font-size: 10.5px; font-weight: 700; color: var(--ink-3); display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.ep-nav button .ico { font-size: 19px; }
.ep-nav button.active { color: var(--brand); }
.ep-nav-inner { max-width: 640px; margin: 0 auto; display: flex; width: 100%; }

.sop-block { margin-bottom: 14px; }
.sop-block h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 6px; }
.sop-block ol, .sop-block ul { padding-left: 22px; }
.sop-block li { margin-bottom: 5px; }

.welcome-hero { text-align: center; padding: 40px 20px; }
.welcome-hero .mark { width: 64px; height: 64px; border-radius: 20px; background: var(--lime); display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 30px; margin: 0 auto 18px; }
.welcome-hero h1 { font-size: 22px; margin-bottom: 8px; }
.welcome-hero p { color: var(--ink-2); max-width: 420px; margin: 0 auto 10px; }

.err-page { text-align: center; padding: 80px 24px; }
.err-page .big { font-size: 46px; margin-bottom: 12px; }

.duty-group { margin-bottom: 4px; }
.duty-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.duty-row:last-child { border-bottom: 0; }
.duty-row .when { margin-left: auto; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
