/* ==========================================================================
   SAER Support — unified panel UI ("st")
   Desktop: white sidebar + sticky topbar. Mobile: app shell with gradient
   header, raised-home bottom nav, FAB and "More" sheet (SportsGuru Family style).
   ========================================================================== */
:root {
  --st-primary: #2336a8;
  --st-primary-dark: #131c5e;
  --st-primary-soft: #eef1ff;
  --st-blue: #2f80ed;
  --st-accent: #ff7a1a;
  --st-accent-2: #ffb020;
  --st-grad: linear-gradient(135deg, #131c5e 0%, #2338a8 52%, #2f80ed 100%);
  --st-grad-accent: linear-gradient(135deg, #ff6a00, #ffb020);

  --st-green: #16a34a;  --st-green-soft: #e9f9ef;
  --st-red: #dc2626;    --st-red-soft: #fdecec;
  --st-amber: #d97706;  --st-amber-soft: #fff5e1;
  --st-blue-c: #2563eb; --st-blue-soft: #e8f0ff;
  --st-purple: #7c3aed; --st-purple-soft: #f1ebff;
  --st-teal: #0d9488;   --st-teal-soft: #e3f7f5;
  --st-grey: #64748b;   --st-grey-soft: #eef1f5;

  --st-page: #f4f6fb;
  --st-card: #ffffff;
  --st-text: #141a2e;
  --st-muted: #6b7690;
  --st-border: #e6e9f2;
  --st-radius: 18px;
  --st-radius-sm: 12px;
  --st-shadow: 0 10px 30px rgba(19, 28, 94, .07);
  --st-shadow-lg: 0 18px 44px rgba(19, 28, 94, .14);
  --st-sidebar: 264px;
  --st-nav-h: 68px;
  --st-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.st-body {
  margin: 0; background: var(--st-page); color: var(--st-text);
  font-family: var(--st-font); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.st-body *, .st-body *::before, .st-body *::after { box-sizing: border-box; }
.st-body a { color: inherit; text-decoration: none; }
.st-body img { max-width: 100%; }
.st-body button, .st-body input, .st-body select, .st-body textarea { font-family: inherit; }
.st-body a, .st-body button { -webkit-tap-highlight-color: transparent; }
.st-hidden { display: none !important; }
.st-muted { color: var(--st-muted); }
.st-nowrap { white-space: nowrap; }

/* ---------- app frame ---------- */
.st-app { min-height: 100vh; }
.st-main { min-width: 0; }
.st-content { padding: 22px 26px 40px; max-width: 1480px; margin: 0 auto; }

/* ---------- sidebar (desktop) ---------- */
.st-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--st-sidebar); z-index: 60;
  background: #fff; border-right: 1px solid var(--st-border);
  display: flex; flex-direction: column;
}
.st-sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 14px; }
.st-sidebar-brand img { height: 38px; width: auto; }
.st-sidebar-brand small { display: block; font-size: 11px; color: var(--st-muted); font-weight: 600; letter-spacing: .3px; }
.st-sidebar-search { margin: 4px 16px 10px; position: relative; }
.st-sidebar-search input {
  width: 100%; height: 38px; border-radius: 11px; border: 1px solid var(--st-border);
  background: var(--st-page); padding: 0 12px 0 34px; font-size: 13px; outline: none;
}
.st-sidebar-search input:focus { border-color: var(--st-primary); background: #fff; }
.st-sidebar-search i { position: absolute; left: 12px; top: 10px; color: var(--st-muted); font-size: 14px; }
.st-menu { flex: 1; overflow-y: auto; padding: 4px 12px 16px; scrollbar-width: thin; }
.st-menu-item, .st-menu-group > summary {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 2px 0;
  border-radius: 11px; color: #3b4563; font-weight: 600; font-size: 13.5px; cursor: pointer;
  list-style: none; user-select: none;
}
.st-menu-group > summary::-webkit-details-marker { display: none; }
.st-menu-item i, .st-menu-group > summary i.st-mi { font-size: 17px; width: 20px; text-align: center; color: #7c86a2; }
.st-menu-item:hover, .st-menu-group > summary:hover { background: var(--st-page); color: var(--st-text); }
.st-menu-item.active { background: var(--st-primary-soft); color: var(--st-primary); }
.st-menu-item.active i { color: var(--st-primary); }
.st-menu-group > summary .st-caret { margin-left: auto; font-size: 12px; transition: transform .2s; color: #9aa3ba; }
.st-menu-group[open] > summary .st-caret { transform: rotate(90deg); }
.st-menu-group.has-active > summary { color: var(--st-primary); }
.st-menu-group.has-active > summary i.st-mi { color: var(--st-primary); }
.st-submenu { padding: 2px 0 6px 22px; margin-left: 10px; border-left: 2px solid var(--st-border); }
.st-submenu a { display: block; padding: 7px 12px; border-radius: 9px; font-size: 13px; color: #56607c; font-weight: 500; }
.st-submenu a:hover { background: var(--st-page); color: var(--st-text); }
.st-submenu a.active { color: var(--st-primary); background: var(--st-primary-soft); font-weight: 700; }
.st-sidebar-foot { border-top: 1px solid var(--st-border); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.st-sidebar-foot .st-who { min-width: 0; flex: 1; }
.st-sidebar-foot strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-sidebar-foot span { font-size: 11.5px; color: var(--st-muted); }

@media (min-width: 992px) {
  .st-main { margin-left: var(--st-sidebar); }
}

/* ---------- topbar ---------- */
.st-topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(244, 246, 251, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 233, 242, .8);
}
.st-topbar-inner { display: flex; align-items: center; gap: 14px; padding: 14px 26px; max-width: 1480px; margin: 0 auto; }
.st-page-head { flex: 1; min-width: 0; }
.st-page-head h1 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-crumbs { font-size: 12px; color: var(--st-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-crumbs a:hover { color: var(--st-primary); }
.st-top-actions { display: flex; align-items: center; gap: 8px; }
.st-icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--st-border);
  background: #fff; display: grid; place-items: center; color: #3b4563; cursor: pointer; font-size: 18px;
}
.st-icon-btn:hover { color: var(--st-primary); border-color: #cfd6ee; }
.st-dot-badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--st-accent); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.st-shift {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 12px; border-radius: 13px;
  background: #fff; border: 1px solid var(--st-border); font-weight: 700; font-size: 13px;
}
.st-shift .st-shift-time { font-variant-numeric: tabular-nums; min-width: 62px; }
.st-shift .st-live { width: 8px; height: 8px; border-radius: 50%; background: #c3c9d8; }
.st-shift.on .st-live { background: var(--st-green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.st-shift button { height: 30px; border: 0; border-radius: 9px; padding: 0 11px; font-weight: 700; font-size: 12px; cursor: pointer; }
.st-shift .st-in { background: var(--st-green); color: #fff; }
.st-shift .st-out { background: var(--st-red-soft); color: var(--st-red); }
.st-shift button:disabled { opacity: .45; cursor: default; }
.st-avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; }

/* ---------- mobile app header ---------- */
.st-mhead { display: none; }

/* ---------- dropdown ---------- */
.st-dropdown { position: relative; }
.st-dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border-radius: 14px;
  border: 1px solid var(--st-border); box-shadow: var(--st-shadow-lg); padding: 8px; z-index: 80; display: none;
}
.st-dropdown.open .st-dropdown-menu { display: block; }
.st-dropdown-menu .st-dd-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--st-border); margin-bottom: 6px; }
.st-dropdown-menu .st-dd-head strong { display: block; }
.st-dropdown-menu .st-dd-head span { font-size: 12px; color: var(--st-muted); }
.st-dropdown-menu a, .st-dropdown-menu button.st-dd-item {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px;
  font-weight: 600; color: #3b4563; background: none; border: 0; cursor: pointer; text-align: left;
}
.st-dropdown-menu a:hover, .st-dropdown-menu button.st-dd-item:hover { background: var(--st-page); color: var(--st-text); }

/* ---------- avatar ---------- */
.st-avatar {
  --s: 40px; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 13px; overflow: hidden;
  display: inline-grid; place-items: center; font-weight: 800; font-size: calc(var(--s) * .36); color: #fff;
  background: #6d7cff; letter-spacing: .3px;
}
.st-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-avatar.round { border-radius: 50%; }
.st-avatar.sm { --s: 32px; border-radius: 10px; }
.st-avatar.xs { --s: 26px; border-radius: 8px; }
.st-avatar.lg { --s: 64px; border-radius: 20px; }
.st-avatar.xl { --s: 88px; border-radius: 26px; }
/* avatar with a camera button to change the photo */
.st-photo-edit { position: relative; display: inline-block; flex: 0 0 auto; margin: 0; }
.st-photo-btn { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--st-primary); color: #fff; display: grid; place-items: center; cursor: pointer; border: 3px solid #fff; font-size: 15px; box-shadow: 0 4px 12px rgba(19, 28, 94, .2); }
.st-photo-btn:hover { filter: brightness(1.1); }
.st-photo-edit.busy .st-avatar { opacity: .45; }
.st-photo-edit.busy .st-photo-btn i::before { content: "\F130"; animation: st-spin 1s linear infinite; display: inline-block; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-avatar.t1 { background: linear-gradient(135deg, #5b6cff, #8c5bff); }
.st-avatar.t2 { background: linear-gradient(135deg, #ff7a1a, #ffb020); }
.st-avatar.t3 { background: linear-gradient(135deg, #10b981, #22c3a6); }
.st-avatar.t4 { background: linear-gradient(135deg, #e6007e, #ff4fa6); }
.st-avatar.t5 { background: linear-gradient(135deg, #0ea5e9, #2f80ed); }
.st-avatar.t6 { background: linear-gradient(135deg, #475569, #64748b); }
.st-avatar-stack { display: flex; }
.st-avatar-stack .st-avatar { border: 2px solid #fff; margin-left: -8px; }
.st-avatar-stack .st-avatar:first-child { margin-left: 0; }

/* ---------- cards ---------- */
.st-card { background: var(--st-card); border-radius: var(--st-radius); border: 1px solid rgba(19, 28, 94, .06); box-shadow: var(--st-shadow); }
.st-card-pad { padding: 18px 20px; }
.st-card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--st-border); }
.st-card-head h2, .st-card-head h3 { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: -.2px; flex: 1; }
.st-card-head .st-link { font-size: 12.5px; font-weight: 700; color: var(--st-primary); }
.st-card-body { padding: 18px 20px; }
.st-section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 2px 12px; }
.st-section-title h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.st-section-title a { font-size: 12.5px; font-weight: 700; color: var(--st-primary); }

.st-grid { display: grid; gap: 16px; }
.st-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-grid-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.st-layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.st-stack { display: flex; flex-direction: column; gap: 16px; }
.st-row { display: flex; align-items: center; gap: 10px; }
.st-row-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-spacer { flex: 1; }

/* ---------- hero / stats ---------- */
.st-hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 24px 26px; color: #fff; background: var(--st-grad);
  box-shadow: 0 18px 40px rgba(35, 54, 168, .25);
}
.st-hero::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -150px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.st-hero::after { content: ""; position: absolute; width: 180px; height: 180px; left: -70px; bottom: -120px; border-radius: 50%; background: rgba(255, 122, 26, .22); }
.st-hero > * { position: relative; z-index: 1; }
.st-hero h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.st-hero p { margin: 0; opacity: .82; font-size: 13.5px; }
.st-hero-stats { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.st-hero-stat { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 10px 14px; min-width: 110px; }
.st-hero-stat b { display: block; font-size: 20px; line-height: 1.1; }
.st-hero-stat span { font-size: 11.5px; opacity: .85; font-weight: 600; }

.st-stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.st-stat-icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; }
.st-stat b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.4px; }
.st-stat span { font-size: 12.5px; color: var(--st-muted); font-weight: 600; }
a.st-stat:hover { background: #fbfcff; }

.tone-green { background: var(--st-green-soft); color: var(--st-green); }
.tone-red { background: var(--st-red-soft); color: var(--st-red); }
.tone-amber { background: var(--st-amber-soft); color: var(--st-amber); }
.tone-blue { background: var(--st-blue-soft); color: var(--st-blue-c); }
.tone-purple { background: var(--st-purple-soft); color: var(--st-purple); }
.tone-teal { background: var(--st-teal-soft); color: var(--st-teal); }
.tone-grey { background: var(--st-grey-soft); color: var(--st-grey); }
.tone-primary { background: var(--st-primary-soft); color: var(--st-primary); }

/* ---------- badges / chips ---------- */
.st-badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap; line-height: 1;
}
.st-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-badge.plain::before { display: none; }
.st-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--st-border);
  background: #fff; font-size: 12.5px; font-weight: 700; color: #4a5470; white-space: nowrap; cursor: pointer;
}
.st-chip b { font-weight: 800; color: var(--st-muted); font-size: 11.5px; }
.st-chip:hover { border-color: #cdd4ea; color: var(--st-text); }
.st-chip.active { background: var(--st-primary); border-color: var(--st-primary); color: #fff; }
.st-chip.active b { color: rgba(255, 255, 255, .8); }
.st-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.st-chips::-webkit-scrollbar { display: none; }

/* ---------- buttons ---------- */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; line-height: 1;
  background: var(--st-primary); color: #fff !important; transition: transform .08s, box-shadow .15s, background .15s;
}
.st-btn:hover { background: #1c2c8f; box-shadow: 0 8px 18px rgba(35, 54, 168, .22); }
.st-btn:active { transform: translateY(1px); }
.st-btn i { font-size: 15px; }
.st-btn.light { background: #fff; color: #36405c !important; border-color: var(--st-border); }
.st-btn.light:hover { border-color: #c9d0e6; box-shadow: none; background: #fff; }
.st-btn.soft { background: var(--st-primary-soft); color: var(--st-primary) !important; }
.st-btn.soft:hover { background: #e2e7ff; box-shadow: none; }
.st-btn.accent { background: var(--st-grad-accent); }
.st-btn.accent:hover { box-shadow: 0 8px 18px rgba(255, 122, 26, .3); }
.st-btn.success { background: var(--st-green); }
.st-btn.danger { background: var(--st-red-soft); color: var(--st-red) !important; }
.st-btn.danger:hover { background: #fbd9d9; box-shadow: none; }
.st-btn.ghost { background: transparent; color: #4a5470 !important; }
.st-btn.ghost:hover { background: var(--st-grey-soft); box-shadow: none; }
.st-btn.sm { height: 32px; padding: 0 11px; border-radius: 10px; font-size: 12.5px; }
.st-btn.icon { width: 36px; height: 36px; padding: 0; border-radius: 11px; }
.st-btn.icon.sm { width: 32px; height: 32px; }
.st-btn.block { width: 100%; }
.st-btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- toolbar / filters ---------- */
.st-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.st-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.st-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--st-muted); }
.st-search input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--st-border); background: #fff; padding: 0 12px 0 38px; font-size: 14px; outline: none; }
.st-search input:focus { border-color: var(--st-primary); box-shadow: 0 0 0 4px rgba(35, 54, 168, .08); }
.st-select-sm { height: 42px; border-radius: 12px; border: 1px solid var(--st-border); background: #fff; padding: 0 34px 0 12px; font-size: 13.5px; font-weight: 600; color: #36405c; outline: none;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7690' d='M8 11 3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; max-width: 220px; }

/* ---------- table (turns into cards on mobile) ---------- */
.st-table-wrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.st-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--st-muted); font-weight: 700; padding: 12px 16px; background: #fafbfe; border-bottom: 1px solid var(--st-border); white-space: nowrap; }
.st-table td { padding: 13px 16px; border-bottom: 1px solid var(--st-border); vertical-align: middle; font-size: 13.5px; }
.st-table tr:last-child td { border-bottom: 0; }
.st-table tbody tr:hover td { background: #fbfcff; }
.st-table .st-cell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-table .st-cell-main strong { display: block; font-weight: 700; }
.st-table .st-cell-main small { display: block; color: var(--st-muted); font-size: 12px; }
.st-table .st-actions { display: flex; gap: 6px; justify-content: flex-end; }
.st-sub { color: var(--st-muted); font-size: 12px; }

/* ---------- entity cards (asset / employee / project) ---------- */
.st-entity { display: flex; flex-direction: column; overflow: hidden; }
.st-entity-top { display: flex; gap: 14px; padding: 16px 16px 12px; align-items: flex-start; }
.st-entity-media {
  width: 76px; height: 76px; flex: 0 0 76px; border-radius: 16px; overflow: hidden; background: var(--st-primary-soft);
  display: grid; place-items: center; color: var(--st-primary); font-size: 30px;
}
.st-entity-media img { width: 100%; height: 100%; object-fit: cover; }
.st-entity-title { min-width: 0; flex: 1; }
.st-entity-title strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.2px; line-height: 1.25; }
.st-entity-title .st-code { font-size: 11.5px; font-weight: 700; color: var(--st-primary); letter-spacing: .3px; }
.st-entity-title small { display: block; color: var(--st-muted); font-size: 12.5px; margin-top: 2px; }
.st-entity-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 0 16px 14px; font-size: 12.5px; }
.st-entity-meta span { display: block; color: var(--st-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.st-entity-meta b { font-weight: 700; word-break: break-word; }
.st-entity-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--st-border); background: #fcfdff; }
.st-holder { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.st-holder strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-holder small { display: block; font-size: 11.5px; color: var(--st-muted); }

/* ---------- key/value list ---------- */
.st-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 18px; }
.st-kv div span { display: block; font-size: 11.5px; color: var(--st-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.st-kv div b { font-weight: 700; font-size: 14px; word-break: break-word; }
.st-pre { white-space: pre-line; }

/* ---------- profile header ---------- */
.st-profile { display: flex; gap: 18px; align-items: center; padding: 22px; flex-wrap: wrap; }
.st-profile h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.st-profile p { margin: 3px 0 0; color: var(--st-muted); }
.st-profile .st-row-wrap { margin-top: 10px; }

/* ---------- tabs ---------- */
.st-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--st-border); padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab { padding: 13px 12px; font-weight: 700; font-size: 13.5px; color: var(--st-muted); border: 0; background: none; border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.st-tab.active { color: var(--st-primary); border-bottom-color: var(--st-primary); }
.st-tab .st-count { margin-left: 5px; font-size: 11px; background: var(--st-grey-soft); color: var(--st-grey); border-radius: 8px; padding: 1px 7px; }
.st-tab.active .st-count { background: var(--st-primary-soft); color: var(--st-primary); }
.st-tab-panel { display: none; }
.st-tab-panel.active { display: block; }

/* ---------- timeline ---------- */
.st-timeline { list-style: none; margin: 0; padding: 4px 0; position: relative; }
.st-timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.st-timeline li::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--st-border); }
.st-timeline li:last-child::before { display: none; }
.st-timeline li:last-child { padding-bottom: 0; }
.st-tl-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; }
.st-tl-body { min-width: 0; flex: 1; padding-top: 2px; }
.st-tl-body strong { font-weight: 700; }
.st-tl-body .st-tl-meta { font-size: 12px; color: var(--st-muted); margin-top: 1px; }
.st-tl-body .st-tl-note { margin-top: 6px; font-size: 13px; background: var(--st-page); border-radius: 10px; padding: 8px 11px; white-space: pre-line; }

/* ---------- forms ---------- */
.st-form-section { padding: 20px; border-bottom: 1px solid var(--st-border); }
.st-form-section:last-of-type { border-bottom: 0; }
.st-form-section h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.st-form-section > p { margin: 0 0 16px; font-size: 12.5px; color: var(--st-muted); }
.st-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 16px; }
.st-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-field.full { grid-column: 1 / -1; }
.st-field label, .st-label { font-size: 12.5px; font-weight: 700; color: #3b4563; }
.st-field label .req { color: var(--st-red); }
.st-input, .st-body .st-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .st-body .st-field select, .st-body .st-field textarea {
  width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid #dde2ee; background: #fff; padding: 10px 13px;
  font-size: 14.5px; color: var(--st-text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.st-body .st-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.st-body .st-field select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7690' d='M8 11 3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.st-body .st-field input:focus, .st-body .st-field select:focus, .st-body .st-field textarea:focus, .st-input:focus { border-color: var(--st-primary); box-shadow: 0 0 0 4px rgba(35, 54, 168, .09); }
.st-body .st-field input[readonly] { background: var(--st-page); }
.st-field .st-hint { font-size: 11.5px; color: var(--st-muted); }
.st-field .st-error, .st-error { font-size: 12px; color: var(--st-red); font-weight: 600; }
.st-field.has-error input, .st-field.has-error select, .st-field.has-error textarea { border-color: #f1a3a3 !important; }
.st-file { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px dashed #cfd6ea; border-radius: 14px; background: #fbfcff; cursor: pointer; }
.st-file input { font-size: 13px; max-width: 100%; }
.st-file-preview { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: var(--st-primary-soft); display: grid; place-items: center; color: var(--st-primary); font-size: 22px; flex: 0 0 58px; overflow: hidden; }
.st-file-preview img { width: 100%; height: 100%; object-fit: cover; }
.st-form-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid var(--st-border); background: #fcfdff; border-radius: 0 0 var(--st-radius) var(--st-radius); }
.st-days { display: flex; gap: 6px; flex-wrap: wrap; }
.st-days label { cursor: pointer; }
.st-days input { position: absolute; opacity: 0; pointer-events: none; }
.st-days span { display: grid; place-items: center; width: 44px; height: 40px; border-radius: 11px; border: 1px solid #dde2ee; font-weight: 700; font-size: 12.5px; color: #56607c; background: #fff; }
.st-days input:checked + span { background: var(--st-primary); border-color: var(--st-primary); color: #fff; }
.st-segment { display: inline-flex; background: var(--st-grey-soft); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.st-segment label { cursor: pointer; }
.st-segment input { position: absolute; opacity: 0; pointer-events: none; }
.st-segment span { display: block; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; color: #56607c; }
.st-segment input:checked + span, .st-segment a.on span { background: #fff; color: var(--st-primary); box-shadow: 0 2px 8px rgba(19, 28, 94, .1); }
.st-segment a { text-decoration: none; }

/* switch */
.st-switch { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12.5px; font-weight: 700; color: #4a5470; user-select: none; }
.st-switch input { position: absolute; opacity: 0; pointer-events: none; }
.st-switch i { width: 36px; height: 21px; border-radius: 20px; background: #d5dae6; position: relative; transition: background .15s; flex: 0 0 36px; }
.st-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.st-switch input:checked + i { background: var(--st-green); }
.st-switch input:checked + i::after { transform: translateX(15px); }

/* ---------- alerts / toast / empty ---------- */
.st-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px; border-radius: 14px; font-weight: 600; font-size: 13.5px; margin-bottom: 16px; }
.st-alert i { font-size: 17px; line-height: 1.2; }
.st-alert ul { margin: 4px 0 0; padding-left: 18px; font-weight: 500; }
.st-toasts { position: fixed; right: 20px; top: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.st-toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #141a2e; color: #fff; font-weight: 600; font-size: 13.5px; box-shadow: var(--st-shadow-lg); max-width: 380px; animation: stToast .25s ease; }
.st-toast.ok i { color: #4ade80; } .st-toast.err i { color: #f87171; }
@keyframes stToast { from { opacity: 0; transform: translateY(-8px); } }
.st-empty { text-align: center; padding: 44px 20px; color: var(--st-muted); }
.st-empty i { font-size: 38px; color: #c2c9dc; display: block; margin-bottom: 8px; }
.st-empty strong { display: block; color: var(--st-text); font-size: 15px; margin-bottom: 3px; }

/* ---------- pagination ---------- */
.st-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; flex-wrap: wrap; font-size: 13px; color: var(--st-muted); }
.st-pager .st-pages { display: flex; gap: 5px; flex-wrap: wrap; }
.st-pager .st-pages a, .st-pager .st-pages span { min-width: 34px; height: 34px; padding: 0 9px; border-radius: 10px; border: 1px solid var(--st-border); display: grid; place-items: center; font-weight: 700; background: #fff; color: #4a5470; }
.st-pager .st-pages .active { background: var(--st-primary); border-color: var(--st-primary); color: #fff; }
.st-pager .st-pages .disabled { opacity: .45; }

/* ---------- modal (native <dialog>) ---------- */
dialog.st-modal { border: 0; padding: 0; border-radius: 22px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--st-shadow-lg); color: var(--st-text); }
dialog.st-modal::backdrop { background: rgba(13, 18, 50, .45); backdrop-filter: blur(3px); }
dialog.st-modal[open] { animation: stModal .2s ease; }
@keyframes stModal { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.st-modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; border-bottom: 1px solid var(--st-border); }
.st-modal-head h3 { margin: 0; font-size: 17px; font-weight: 800; flex: 1; }
.st-modal-body { padding: 18px 20px; display: grid; gap: 14px; }
.st-modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px 18px; }

/* ---------- gallery ---------- */
.st-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.st-gallery a { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--st-page); border: 1px solid var(--st-border); }
.st-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.st-gallery a:hover img { transform: scale(1.04); }

/* ---------- list rows (simple) ---------- */
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list > li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--st-border); }
.st-list > li:last-child { border-bottom: 0; }
.st-list .st-li-main { min-width: 0; flex: 1; }
.st-list .st-li-main strong { display: block; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-list .st-li-main small { display: block; color: var(--st-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-mini-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; }

/* progress */
.st-progress { height: 8px; border-radius: 8px; background: var(--st-grey-soft); overflow: hidden; }
.st-progress > span { display: block; height: 100%; border-radius: 8px; background: var(--st-grad); }

/* ---------- todo ---------- */
.st-todo-add { display: flex; gap: 10px; align-items: center; padding: 14px; flex-wrap: wrap; }
.st-todo-add .st-todo-input { flex: 1; min-width: 200px; height: 46px; border: 1px solid #dde2ee; border-radius: 13px; padding: 0 14px; font-size: 15px; outline: none; }
.st-todo-add .st-todo-input:focus { border-color: var(--st-primary); box-shadow: 0 0 0 4px rgba(35, 54, 168, .09); }
.st-todo-opts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-todo-opts input[type=date], .st-todo-opts select { height: 40px; border: 1px solid #dde2ee; border-radius: 11px; padding: 0 10px; font-size: 13px; background: #fff; }
.st-star-toggle { position: relative; cursor: pointer; }
.st-star-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.st-star-toggle span { height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid #dde2ee; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: #6b7690; background: #fff; }
.st-star-toggle input:checked + span { background: var(--st-amber-soft); border-color: #f6d08a; color: var(--st-amber); }
.st-todo-list { list-style: none; margin: 0; padding: 0; }
.st-todo { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--st-border); }
.st-todo:last-child { border-bottom: 0; }
.st-check { position: relative; width: 24px; height: 24px; flex: 0 0 24px; margin-top: 1px; cursor: pointer; }
.st-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.st-check span { position: absolute; inset: 0; border: 2px solid #c6cde0; border-radius: 8px; display: grid; place-items: center; color: transparent; transition: all .15s; pointer-events: none; }
.st-check input:checked + span { background: var(--st-green); border-color: var(--st-green); color: #fff; }
.st-todo-main { flex: 1; min-width: 0; }
.st-todo-title { font-weight: 600; font-size: 14px; word-break: break-word; }
.st-todo.done .st-todo-title { text-decoration: line-through; color: var(--st-muted); }
.st-todo-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; font-size: 11.5px; color: var(--st-muted); font-weight: 600; }
.st-todo-meta .late { color: var(--st-red); }
.st-todo-meta .today { color: var(--st-amber); }
.st-todo-actions { display: flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.st-todo:hover .st-todo-actions { opacity: 1; }
.st-todo-star { color: #c6cde0; } .st-todo-star.on { color: #f5a000; }

/* todo popover */
.st-pop { position: fixed; right: 26px; top: 72px; width: 360px; max-width: calc(100vw - 24px); background: #fff; border-radius: 20px; box-shadow: var(--st-shadow-lg); border: 1px solid var(--st-border); z-index: 120; display: none; overflow: hidden; }
.st-pop.open { display: block; animation: stModal .18s ease; }
.st-pop-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--st-border); }
.st-pop-head strong { flex: 1; font-size: 15px; }
.st-pop-body { max-height: 380px; overflow-y: auto; }
.st-pop-body .st-todo { padding: 11px 16px; }
.st-pop-add { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--st-border); }
.st-pop-add input { flex: 1; height: 40px; border: 1px solid #dde2ee; border-radius: 11px; padding: 0 12px; font-size: 14px; outline: none; }
.st-pop-foot { padding: 10px 16px; border-top: 1px solid var(--st-border); text-align: center; }
.st-pop-foot a { font-weight: 700; color: var(--st-primary); font-size: 13px; }

/* ---------- bottom nav / FAB / sheet (mobile only) ---------- */
.st-bottomnav, .st-fab, .st-sheet, .st-overlay { display: none; }

/* ---------- legacy page wrapper ---------- */
.st-legacy { min-width: 0; }
.st-legacy .container, .st-legacy .container-fluid { max-width: 100% !important; padding-left: 0; padding-right: 0; }
.st-legacy .card { border-radius: var(--st-radius) !important; border: 1px solid rgba(19, 28, 94, .06) !important; box-shadow: var(--st-shadow) !important; overflow: hidden; }
.st-legacy table { max-width: 100%; }
.st-legacy .table-responsive, .st-legacy .table-wrap { overflow-x: auto; }
.st-legacy .btn-primary { background: var(--st-primary); border-color: var(--st-primary); }
.st-legacy img { max-width: 100%; height: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .st-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-layout-side { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1100px) {
  .st-layout-side { grid-template-columns: 1fr; }
  .st-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  :root { --st-radius: 20px; }
  body.st-body { padding-bottom: calc(var(--st-nav-h) + 18px + env(safe-area-inset-bottom, 0px)); background: var(--st-page); }
  .st-sidebar { display: none; }
  .st-topbar { display: none; }
  .st-content { padding: 14px 14px 24px; }

  /* gradient app header */
  .st-mhead {
    display: block; position: relative; overflow: hidden; color: #fff; background: var(--st-grad);
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 20px; border-radius: 0 0 28px 28px;
    box-shadow: 0 14px 34px rgba(35, 54, 168, .22);
  }
  .st-mhead::before { content: ""; position: absolute; width: 210px; height: 210px; right: -70px; top: -130px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
  .st-mhead::after { content: ""; position: absolute; width: 150px; height: 150px; left: -70px; bottom: -100px; border-radius: 50%; background: rgba(255, 122, 26, .2); pointer-events: none; }
  .st-mhead > * { position: relative; z-index: 1; }
  .st-mhead-row { display: flex; align-items: center; gap: 10px; }
  .st-mhead-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
  .st-mhead-mark { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 5px; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
  .st-mhead-mark img { width: 100%; height: 100%; object-fit: contain; }
  .st-mhead-hi { min-width: 0; }
  .st-mhead-hi small { display: block; font-size: 11px; opacity: .78; font-weight: 600; }
  .st-mhead-hi strong { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .st-round {
    position: relative; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 18px; cursor: pointer;
  }
  .st-round .st-dot-badge { border-color: #2338a8; }
  .st-mhead-title { margin-top: 16px; display: flex; align-items: flex-end; gap: 10px; }
  .st-mhead-title .st-back { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-size: 17px; }
  .st-mhead-title h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; flex: 1; min-width: 0; }
  .st-mhead-title p { margin: 3px 0 0; font-size: 12px; opacity: .8; }
  .st-mshift { margin-top: 14px; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18); border-radius: 15px; padding: 8px 8px 8px 12px; }
  .st-mshift .st-live { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
  .st-mshift.on .st-live { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .22); }
  .st-mshift .st-shift-label { flex: 1; font-size: 12px; font-weight: 600; opacity: .9; }
  .st-mshift .st-shift-time { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
  .st-mshift button { height: 32px; border: 0; border-radius: 10px; padding: 0 12px; font-weight: 800; font-size: 12px; cursor: pointer; }
  .st-mshift .st-in { background: #fff; color: var(--st-primary); }
  .st-mshift .st-out { background: rgba(255, 255, 255, .18); color: #fff; }
  .st-mshift button:disabled { display: none; }

  .st-page-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  .st-page-actions .st-btn { flex: 1 1 auto; }

  /* bottom nav */
  .st-bottomnav {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #fff; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(19, 28, 94, .06);
    box-shadow: 0 -10px 30px rgba(19, 28, 94, .09); border-radius: 22px 22px 0 0;
  }
  .st-nav-link { height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #8a93a8; font-size: 10px; font-weight: 700; background: none; border: 0; cursor: pointer; min-width: 0; }
  .st-nav-link i { font-size: 20px; line-height: 1; }
  .st-nav-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .st-nav-link.active { color: var(--st-primary); }
  .st-nav-home { transform: translateY(-18px); }
  .st-nav-home .st-nav-icon { width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center; color: #fff; background: var(--st-grad); border: 4px solid #fff; box-shadow: 0 12px 28px rgba(35, 54, 168, .3); }
  .st-nav-home .st-nav-icon i { font-size: 23px; }
  .st-nav-home > span:last-child { color: var(--st-primary); font-weight: 800; }

  /* FAB */
  .st-fab { display: block; position: fixed; right: 16px; bottom: calc(var(--st-nav-h) + 22px + env(safe-area-inset-bottom, 0px)); z-index: 110; }
  .st-fab-main { width: 54px; height: 54px; border: 0; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--st-grad-accent); font-size: 24px; box-shadow: 0 14px 28px rgba(255, 122, 26, .35); cursor: pointer; transition: transform .2s; }
  .st-fab.open .st-fab-main { transform: rotate(45deg); }
  .st-fab-menu { position: absolute; right: 0; bottom: 66px; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .2s; }
  .st-fab.open .st-fab-menu { opacity: 1; pointer-events: auto; transform: none; }
  .st-fab-item { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 7px 13px 7px 7px; border-radius: 15px; background: #fff; color: var(--st-text); font-size: 13px; font-weight: 700; box-shadow: 0 12px 30px rgba(19, 28, 94, .16); white-space: nowrap; border: 0; cursor: pointer; }
  .st-fab-item i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--st-primary-soft); color: var(--st-primary); font-size: 16px; }
  .st-overlay { display: block; position: fixed; inset: 0; z-index: 100; background: rgba(13, 18, 50, .28); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: all .2s; }
  .st-overlay.show { opacity: 1; visibility: visible; }

  /* More sheet */
  .st-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; background: #fff; border-radius: 26px 26px 0 0; max-height: 86vh; overflow-y: auto; transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -20px 50px rgba(19, 28, 94, .2); }
  .st-sheet.open { transform: none; }
  .st-sheet-grip { width: 42px; height: 5px; border-radius: 5px; background: #d6dbe7; margin: 4px auto 12px; }
  .st-sheet-user { display: flex; align-items: center; gap: 12px; padding: 4px 2px 14px; }
  .st-sheet-user strong { display: block; font-size: 15px; }
  .st-sheet-user span { font-size: 12px; color: var(--st-muted); }
  .st-sheet h4 { margin: 16px 2px 10px; font-size: 12px; color: var(--st-muted); text-transform: uppercase; letter-spacing: .6px; }
  .st-sheet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .st-sheet-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 10px 2px; border-radius: 16px; font-size: 11px; font-weight: 700; color: #3b4563; line-height: 1.2; }
  .st-sheet-tile i { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--st-primary-soft); color: var(--st-primary); font-size: 20px; }
  .st-sheet-tile.active i { background: var(--st-primary); color: #fff; }
  .st-sheet-search { position: relative; margin: 2px 0 6px; }
  .st-sheet-search input { width: 100%; height: 44px; border-radius: 13px; border: 1px solid var(--st-border); background: var(--st-page); padding: 0 12px 0 38px; font-size: 15px; outline: none; }
  .st-sheet-search i { position: absolute; left: 13px; top: 13px; color: var(--st-muted); }

  .st-pop { top: auto; bottom: calc(var(--st-nav-h) + 16px + env(safe-area-inset-bottom, 0px)); right: 12px; left: 12px; width: auto; max-width: none; }
  .st-toasts { left: 12px; right: 12px; top: 12px; align-items: stretch; }
  .st-toast { max-width: none; }

  .st-grid-3, .st-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-grid-2 { grid-template-columns: 1fr; }
  .st-grid { gap: 12px; }
  .st-hero { border-radius: 22px; padding: 20px; }
  .st-stat { padding: 14px; gap: 11px; }
  .st-stat-icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 18px; border-radius: 12px; }
  .st-stat b { font-size: 19px; }
  .st-toolbar { gap: 8px; }
  .st-search { min-width: 100%; max-width: none; }
  .st-select-sm { flex: 1 1 140px; max-width: none; }
  .st-form-actions { position: sticky; bottom: calc(var(--st-nav-h) + env(safe-area-inset-bottom, 0px)); z-index: 20; }
  .st-form-actions .st-btn { flex: 1; }
  .st-card-head, .st-card-body, .st-form-section { padding-left: 16px; padding-right: 16px; }

  /* responsive table → stacked cards */
  .st-table.st-stack-mobile thead { display: none; }
  .st-table.st-stack-mobile, .st-table.st-stack-mobile tbody, .st-table.st-stack-mobile tr, .st-table.st-stack-mobile td { display: block; width: 100%; }
  .st-table.st-stack-mobile tr { padding: 12px 14px; border-bottom: 1px solid var(--st-border); }
  .st-table.st-stack-mobile tr:last-child { border-bottom: 0; }
  .st-table.st-stack-mobile td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .st-table.st-stack-mobile td[data-label]::before { content: attr(data-label); color: var(--st-muted); font-size: 12px; font-weight: 600; text-align: left; flex: 0 0 auto; }
  .st-table.st-stack-mobile td.st-td-main { display: block; text-align: left; padding-bottom: 8px; }
  .st-table.st-stack-mobile td.st-td-actions { justify-content: flex-start; padding-top: 8px; }
  .st-table.st-stack-mobile td.st-td-actions .st-actions { justify-content: flex-start; flex-wrap: wrap; }
  .st-table.st-stack-mobile tbody tr:hover td { background: none; }
}

@media (max-width: 480px) {
  .st-grid-cards { grid-template-columns: 1fr; }
  .st-kv { grid-template-columns: 1fr 1fr; }
  .st-entity-meta { grid-template-columns: 1fr 1fr; }
  .st-profile { padding: 18px; gap: 14px; }
  .st-sheet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .st-days span { width: 40px; }
}
@media (max-width: 360px) {
  .st-grid-3, .st-grid-4 { grid-template-columns: 1fr 1fr; }
  .st-nav-link { font-size: 9px; }
  .st-sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .st-body * { animation: none !important; transition: none !important; }
}

/* page actions (desktop) */
@media (min-width: 992px) {
  .st-page-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin: -4px 0 16px; }
}

.st-grid > *, .st-layout-side > *, .st-stack > * { min-width: 0; }
.st-chips { max-width: 100%; }
.st-kv b, .st-pre { overflow-wrap: anywhere; }
.st-body .st-bottomnav .st-nav-link { color: #8a93a8; }
.st-body .st-bottomnav .st-nav-link.active, .st-body .st-bottomnav .st-nav-home > span:last-child { color: var(--st-primary); }
.st-body .st-menu-item, .st-body .st-menu-group > summary { color: #3b4563; }
.st-body .st-menu-item.active { color: var(--st-primary); }
.st-body .st-submenu a { color: #56607c; }
.st-body .st-submenu a.active { color: var(--st-primary); }
.st-body .st-sheet-tile { color: #3b4563; }
.st-body .st-fab-item { color: var(--st-text); }
.st-body .st-sheet-tile.active { color: var(--st-primary); }
.st-body .st-dropdown-menu a { color: #3b4563; }

@media (max-width: 991.98px) {
  .st-select-sm { min-width: 0; width: 0; flex: 1 1 40%; }
  .st-fields { grid-template-columns: minmax(0, 1fr); }
  .st-segment { max-width: 100%; }
}

@media (max-width: 991.98px) { .st-sheet { visibility: hidden; } .st-sheet.open { visibility: visible; } }

@media (max-width: 991.98px) {
  .st-dash-hero { padding: 12px; border-radius: 20px; }
  .st-dash-hero h2, .st-dash-hero > p { display: none; }
  .st-dash-hero .st-hero-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .st-dash-hero .st-hero-stat { min-width: 0; padding: 9px 10px; }
}

/* ---------- multi-pick (people / departments) ---------- */
.st-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 2px; }
.st-pick-item { position: relative; cursor: pointer; }
.st-pick-item input { position: absolute; opacity: 0; pointer-events: none; }
.st-pick-item > span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid #dde2ee; border-radius: 13px; background: #fff; transition: all .12s; }
.st-pick-item > span > .st-avatar, .st-pick-item > span > i { grid-row: 1 / 3; }
.st-pick-item b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pick-item small { font-size: 11.5px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pick-item input:checked + span { border-color: var(--st-primary); background: var(--st-primary-soft); box-shadow: 0 0 0 3px rgba(35, 54, 168, .1); }
.st-pick-item input:checked + span b { color: var(--st-primary); }

/* ---------- activity thread ---------- */
.st-thread { list-style: none; margin: 0; padding: 0; }
.st-thread li { display: flex; gap: 12px; padding: 12px 20px; }
.st-thread li.ev { padding-top: 6px; padding-bottom: 6px; align-items: center; }
.st-thread li.ev .st-ev { font-size: 12.5px; color: var(--st-muted); }
.st-thread li.ev .st-ev b { color: #3b4563; }
.st-thread .st-bubble { flex: 1; min-width: 0; background: var(--st-page); border-radius: 4px 16px 16px 16px; padding: 10px 13px; }
.st-thread .st-bubble.me { background: var(--st-primary-soft); }
.st-thread .st-bubble .st-bmeta { font-size: 12px; color: var(--st-muted); margin-bottom: 3px; }
.st-thread .st-bubble .st-bmeta b { color: var(--st-text); }
.st-thread .st-bubble .st-btext { white-space: pre-line; word-break: break-word; font-size: 14px; }
.st-ev-dot { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; }

.st-menu-label { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #9aa3ba; padding: 12px 12px 4px; }
.st-menu-count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--st-accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ---------- month calendar ---------- */
.st-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.st-cal-dow { font-size: 11px; font-weight: 800; color: var(--st-muted); text-align: center; text-transform: uppercase; letter-spacing: .5px; padding-bottom: 2px; }
.st-cal-day { position: relative; min-height: 66px; border: 1px solid transparent; border-radius: 13px; padding: 6px 7px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font-family: inherit; }
.st-cal-day:hover { border-color: rgba(19, 28, 94, .18); }
.st-cal-day.is-today { box-shadow: 0 0 0 2px var(--st-primary); }
.st-cal-day.is-muted { background: #f7f8fb !important; color: #b3bacb !important; }
.st-cal-n { font-size: 12px; font-weight: 700; opacity: .8; }
.st-cal-code { font-size: 16px; font-weight: 800; line-height: 1.1; }
.st-cal-t { font-size: 10.5px; font-weight: 600; opacity: .8; }
.st-cal-flag { position: absolute; right: 6px; top: 6px; font-size: 10px; opacity: .7; }
.st-cal-day .st-cal-list { font-size: 10.5px; font-weight: 600; line-height: 1.25; overflow: hidden; }
@media (max-width: 600px) {
  .st-cal { gap: 4px; }
  .st-cal-day { min-height: 52px; padding: 5px; border-radius: 10px; }
  .st-cal-code { font-size: 14px; }
  .st-cal-t { display: none; }
}

/* ---------- attendance grid (HR) ---------- */
.st-att { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
.st-att th, .st-att td { border-bottom: 1px solid var(--st-border); padding: 6px 3px; text-align: center; white-space: nowrap; }
.st-att th { position: sticky; top: 0; background: #fafbfe; font-size: 10.5px; color: var(--st-muted); font-weight: 700; z-index: 2; }
.st-att th.we { color: #c1c7d6; }
.st-att .st-att-name { position: sticky; left: 0; background: #fff; text-align: left; padding: 6px 10px; z-index: 3; min-width: 190px; max-width: 220px; }
.st-att th.st-att-name { background: #fafbfe; z-index: 4; }
.st-att .st-att-name a { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px; }
.st-att .st-att-name small { display: block; font-weight: 500; color: var(--st-muted); font-size: 11px; }
.st-att .c { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-weight: 800; font-size: 11px; }
.st-att .sum { font-weight: 800; padding: 6px 8px; }
.st-att tr:hover td { background: #fbfcff; }
.st-att tr:hover .st-att-name { background: #f6f8ff; }
@media (max-width: 991.98px) { .st-att .st-att-name { min-width: 140px; max-width: 150px; } }
/* employee month: day list (compact rows on phones) */
.st-daylist td.mt { display: none; }
@media (max-width: 767.98px) {
  .st-daylist thead { display: none; }
  .st-daylist, .st-daylist tbody { display: block; }
  .st-daylist tr { display: grid; grid-template-columns: 58px 1fr auto; gap: 3px 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--st-border); }
  .st-daylist td { display: block; padding: 0 !important; border: 0 !important; }
  .st-daylist td.dt { display: none; }
  .st-daylist td.st-td-main { grid-row: span 2; line-height: 1.2; }
  .st-daylist td.st-td-main .st-sub { display: block; font-size: 11.5px; }
  .st-daylist td.mt { display: block; text-align: right; font-size: 12px; white-space: nowrap; }
  .st-daylist td.why { grid-column: 2 / 4; font-size: 12px; }
  .st-daylist td.why:empty { display: none; }
  .st-daylist td.st-td-actions { grid-column: 2 / 4; }
  .st-daylist .st-badge { height: 22px; font-size: 11.5px; }
}
.st-att td.st-att-name { overflow: hidden; z-index: 1; }
.st-att .st-att-name > .st-row, .st-att .st-att-name a { min-width: 0; overflow: hidden; }
.st-att .st-att-name a > span { overflow: hidden; text-overflow: ellipsis; }
.st-att .st-att-name a small { overflow: hidden; text-overflow: ellipsis; }

/* grid editing: tap cells, bulk bar */
.st-att td.cell { cursor: pointer; user-select: none; -webkit-user-select: none; }
.st-att td.cell .c { transition: transform .12s, box-shadow .12s; position: relative; }
.st-att td.cell:hover .c { box-shadow: 0 0 0 2px #cfd6f3; }
.st-att td.cell.off { cursor: not-allowed; }
.st-att td.cell.off:hover .c { box-shadow: none; }
.st-att td.cell .tone-none { background: #f6f7fb; }
.st-att td.cell.off .tone-none { background: transparent; }
.st-att td.cell.ov .c::after { content: ''; position: absolute; top: -2px; right: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--st-primary); border: 1.5px solid #fff; }
.st-att td.cell.sel .c { box-shadow: 0 0 0 2px var(--st-primary); transform: scale(1.08); }
.st-att td.cell.sel { background: var(--st-primary-soft) !important; }
.st-att td.cell.flash .c { animation: stFlash 1s ease; }
@keyframes stFlash { 0% { transform: scale(1.3); } 100% { transform: scale(1); } }
.st-att th.day { cursor: pointer; }
.st-att th.day:hover { color: var(--st-primary); }
.st-attbar {
  position: fixed; z-index: 120; left: calc(var(--st-sidebar) + 24px); right: 24px; bottom: 18px;
  background: #fff; border: 1px solid var(--st-border); border-radius: 18px; box-shadow: 0 18px 50px rgba(20, 30, 80, .22); padding: 10px 14px 12px;
}
.st-attbar[hidden] { display: none; }
.st-attbar.busy { opacity: .6; pointer-events: none; }
.st-attbar-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-attbar-head .st-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.st-attbar-body { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.st-attbar-btn { border: 0; height: 34px; padding: 0 12px; border-radius: 10px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.st-attbar-btn.tone-none { background: #fff; border: 1px dashed #c9cfdf; color: var(--st-muted); }
.st-attbar-btn:hover { filter: brightness(.95); }
.st-attbar-body input { flex: 1 1 200px; min-width: 0; height: 34px; border: 1px solid #dde2ee; border-radius: 10px; padding: 0 10px; font: inherit; font-size: 13px; }
body.st-attbar-open .st-content { padding-bottom: 170px; }
@media (max-width: 991.98px) {
  .st-hide-sm { display: none; }
  .st-attbar { left: 8px; right: 8px; bottom: calc(var(--st-nav-h) + 10px + env(safe-area-inset-bottom, 0px)); border-radius: 16px; padding: 10px; }
  .st-attbar-body { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .st-attbar-body input { flex: 0 0 200px; }
}

/* ---------- payroll sheet ---------- */
.st-pay td { padding: 6px 4px; font-size: 12.5px; }
.st-pay .st-att-name { min-width: 210px; }
.st-pay-in { width: 58px; height: 32px; border: 1px solid #dde2ee; border-radius: 9px; padding: 0 6px; font-size: 13px; text-align: right; background: #fff; font-family: inherit; color: var(--st-text); }
.st-pay-in:focus { outline: none; border-color: var(--st-primary); box-shadow: 0 0 0 3px rgba(35, 54, 168, .1); }
.st-pay-in.wide { width: 84px; }
.st-pay-in.date { width: 128px; text-align: left; }
.st-pay-in.txn { width: 120px; text-align: left; }
.st-pay-in.is-ov { border-color: #b69cf7; background: var(--st-purple-soft); }
.st-pay-in:disabled { background: #f5f6fa; color: var(--st-muted); }
.st-pay-status { text-align: left; font-weight: 700; border: 0; }
.st-pay tr.is-saving td { opacity: .6; }
.st-pay tr.is-saved td { background: #effbf3 !important; transition: background .6s; }
.st-pay-total td { position: sticky; bottom: 0; background: #fafbfe; font-weight: 800; border-top: 2px solid var(--st-border); }
.st-breakup { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.st-breakup td { padding: 8px 0; border-bottom: 1px dashed var(--st-border); }
.st-breakup td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-breakup tr.sum td { border-bottom: 0; border-top: 2px solid var(--st-border); font-weight: 800; font-size: 15px; }
.st-breakup .f { color: var(--st-muted); font-size: 11.5px; display: block; }

/* ---------- work reports ---------- */
.rep-file { position: relative; width: 74px; height: 74px; border-radius: 12px; border: 1px solid var(--st-border); overflow: hidden; background: #f6f7fb; }
.rep-file a { display: grid; place-items: center; width: 100%; height: 100%; color: var(--st-muted); font-size: 11px; font-weight: 700; text-align: center; }
.rep-file a i { font-size: 22px; display: block; }
.rep-file img { width: 100%; height: 100%; object-fit: cover; }
.rep-file-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 14px; }
.rep-day { border-top: 1px solid var(--st-border); }
.rep-person { display: flex; align-items: center; gap: 10px; padding: 14px 18px 6px; }
.rep-person b { font-size: 14px; }
.rep-item { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 18px 12px; }
.rep-item + .rep-item { border-top: 1px dashed var(--st-border); }
.rep-item input[type=checkbox] { margin-top: 3px; width: 18px; height: 18px; }
.rep-item-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rep-item-head strong { font-size: 13.5px; }
.rep-desc { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.55; margin: 6px 0; color: var(--st-text); }
.rep-desc.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rep-more { border: 0; background: none; color: var(--st-primary); font-weight: 700; font-size: 12.5px; padding: 0; cursor: pointer; }
.rep-notes { margin-top: 8px; display: grid; gap: 6px; }
.rep-note { background: #f6f8ff; border-radius: 10px; padding: 7px 10px; font-size: 12.5px; }
.rep-note b { font-size: 12px; }
.rep-bar { position: sticky; bottom: 12px; z-index: 20; margin-top: 12px; }
@media (max-width: 991.98px) { .rep-bar { bottom: calc(var(--st-nav-h) + 12px + env(safe-area-inset-bottom, 0px)); } .rep-item { padding: 10px 14px 12px; } }

/* ---------- attachments ---------- */
.st-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.st-files.small { grid-template-columns: repeat(auto-fill, 64px); gap: 6px; }
.st-fcard { position: relative; border: 1px solid var(--st-border); border-radius: 12px; overflow: hidden; background: #fff; }
.st-files.small .st-fcard { border-radius: 10px; }
.st-fcard-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #f4f6fb; color: var(--st-muted); }
.st-files.small .st-fcard-thumb { aspect-ratio: 1; }
.st-fcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-fcard-thumb.doc { text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.st-fcard-thumb.doc i { font-size: 30px; display: block; color: var(--st-primary); }
.st-files.small .st-fcard-thumb.doc i { font-size: 22px; }
.st-fcard-meta { padding: 7px 9px; min-width: 0; }
.st-fcard-meta b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-fcard-meta small { font-size: 11px; color: var(--st-muted); }
.st-fcard-x { position: absolute; top: 4px; right: 4px; }
.st-fcard-x button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 15px; }
.st-dropfiles { border: 1.5px dashed #c9cfdf; border-radius: 12px; padding: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #fafbfe; }
.st-dropfiles input[type=file] { font-size: 13px; max-width: 100%; }

/* ---------- repeat ---------- */
.st-repeat { display: grid; gap: 8px; }
.st-daypick { display: flex; gap: 4px; flex-wrap: wrap; }
.st-daypick label { cursor: pointer; }
.st-daypick input { position: absolute; opacity: 0; pointer-events: none; }
.st-daypick span { display: grid; place-items: center; min-width: 42px; height: 34px; padding: 0 8px; border-radius: 10px; border: 1px solid #dde2ee; font-weight: 700; font-size: 12.5px; color: #56607c; background: #fff; }
.st-daypick input:checked + span { background: var(--st-primary); border-color: var(--st-primary); color: #fff; }
.st-daypick input:focus-visible + span { outline: 2px solid var(--st-primary); outline-offset: 2px; }

/* ---------- lightbox ---------- */
.st-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.st-lightbox::backdrop { background: rgba(10, 14, 30, .88); }
.st-lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 50px 60px 20px; box-sizing: border-box; }
.st-lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.st-lightbox figcaption { color: #fff; font-size: 13px; opacity: .85; padding-top: 10px; text-align: center; }
.st-lightbox button, .st-lightbox a.lb-open { position: fixed; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.st-lightbox button:hover, .st-lightbox a.lb-open:hover { background: rgba(255, 255, 255, .25); }
.st-lightbox .lb-close { top: 14px; right: 14px; }
.st-lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.st-lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.st-lightbox .lb-open { top: 14px; right: 66px; font-size: 16px; }
@media (max-width: 600px) { .st-lightbox figure { padding: 60px 8px 16px; } .st-lightbox .lb-prev, .st-lightbox .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- priority chips (to-do) ---------- */
.st-prio { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 20px; }
.st-todo.prio-4 { box-shadow: inset 3px 0 0 var(--st-red); }
.st-todo.prio-3 { box-shadow: inset 3px 0 0 var(--st-amber); }
.st-todo-main[data-open] { cursor: pointer; }
.st-todo-main[data-open]:hover .st-todo-title { color: var(--st-primary); }

/* the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* ---------- notices ---------- */
.st-notices li { align-items: flex-start; }
.st-notices li.unseen { background: #f7f9ff; }
.st-notices li.unseen strong { font-weight: 800; }
.st-notices li.pinned { box-shadow: inset 3px 0 0 var(--st-primary); }
.st-dot-new { width: 9px; height: 9px; border-radius: 50%; background: var(--st-primary); flex: 0 0 9px; margin-top: 8px; }
.st-notice-body { white-space: pre-wrap; word-break: break-word; line-height: 1.65; font-size: 14.5px; }
.st-ack { border: 1.5px solid #f3c2c7; background: #fff7f8; }
.st-ack.ok { border-color: #bfe6cf; background: #f4fbf7; }
.st-checks { list-style: none; margin: 0; padding: 0; }
.st-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 18px; border-top: 1px solid var(--st-border); }
.st-checks li:first-child { border-top: 0; }
.st-checks label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; flex: 1; min-width: 0; }
.st-checks input { width: 19px; height: 19px; margin-top: 1px; accent-color: var(--st-green); flex: 0 0 19px; }
.st-checks .done .t { text-decoration: line-through; color: var(--st-muted); }
.st-checks small { display: block; color: var(--st-muted); font-size: 11.5px; }
.st-rcpt li { padding: 9px 16px; }

/* ---------- personal dashboard quick actions ---------- */
.st-quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.st-quick-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; background: #fff; border: 1px solid var(--st-border); border-radius: 16px; text-decoration: none; color: var(--st-text); font-weight: 700; font-size: 12.5px; text-align: center; transition: transform .15s, box-shadow .15s; }
.st-quick-btn i { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; }
.st-quick-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 30, 80, .08); }
@media (max-width: 991.98px) { .st-quick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 400px) { .st-quick { gap: 8px; } .st-quick-btn { font-size: 11.5px; padding: 12px 6px; } }
