/* ==========================================================================
   Design Flow v3 — "Graphite layout × Soft Indigo"
   Visual-only layer, loaded after ui-refresh.css.
   - No application logic, no data/API behaviour lives here.
   - Light theme is the default; dark theme via <html data-theme="dark">.
   Remove the <link> to this file to roll back instantly.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  color-scheme: light;
  --df-font: 'Anuphan', 'IBM Plex Sans Thai', system-ui, sans-serif;

  /* design tokens (from the Design Flow redesign canvas) */
  --ds-bg: #F5F6FB;
  --ds-surface: #FFFFFF;
  --ds-surface2: #F7F8FC;
  --ds-line: #E6E8F2;
  --ds-line2: #EEF0F7;
  --ds-line-strong: #D9DCEA;
  --ds-text: #1E1F3B;
  --ds-text2: #3A3D63;
  --ds-muted: #5E6287;
  --ds-faint: #A3A6C4;
  --ds-tint: #ECEBFF;
  --ds-tint-line: #DCDAFB;
  --ds-accent: #5B5BD6;
  --ds-accent-hover: #4646B8;
  --ds-accent-ink: #4343B5;
  --ds-leave: #9DBDFB;
  --ds-leave-bg: #E3EEFF;
  --ds-leave-fg: #234A8A;
  --ds-hol: #F2C77E;
  --ds-hol-bg: #FFF1DC;
  --ds-hol-fg: #7A4E0B;
  --ds-ok: #1F8A5B;
  --ds-ok-bg: #E2F5EC;
  --ds-warn: #B4451C;
  --ds-warn-bg: #FDE7DD;
  --ds-shadow: rgba(91, 91, 214, .28);
  --ds-scrim: rgba(20, 20, 50, .45);

  /* legacy variable names used across index.html / team-manager.js */
  --bg: var(--ds-bg);
  --surface: var(--ds-surface);
  --surface2: var(--ds-surface2);
  --surface3: var(--ds-line2);
  --border: var(--ds-line);
  --border2: var(--ds-line-strong);
  --text: var(--ds-text);
  --text2: var(--ds-text2);
  --text3: var(--ds-muted);
  --accent: var(--ds-accent);
  --accent2: var(--ds-accent-hover);
  --green: #1F8A5B;
  --green-bg: #E2F5EC;
  --yellow: #9A6408;
  --yellow-bg: #FFF1DC;
  --red: #C4352B;
  --red-bg: #FDE8E6;
  --purple: #6E4BC8;
  --purple-bg: #EFE9FD;
  --orange: #B4451C;
  --orange-bg: #FDE7DD;
  --mono: var(--df-font);
  --radius: 20px;
  --radius-sm: 12px;
  --control-height: 46px;
  --control-height-sm: 36px;
  --control-radius: 12px;
  --control-bg: var(--ds-surface2);
  --control-bg-hover: #F0F1F8;
  --control-border: var(--ds-line-strong);
  --control-border-hover: #C5C9DD;
  --focus-ring: 0 0 0 3px rgba(91, 91, 214, .18);
  --card-radius: 20px;
  --card-padding: 22px;
  --card-border: var(--ds-line);
  --card-bg: var(--ds-surface);
  --shadow-sm: 0 1px 2px rgba(20, 20, 60, .04);
  --shadow-lg: 0 24px 60px rgba(10, 10, 40, .14);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ds-bg: #10111C;
  --ds-surface: #181A29;
  --ds-surface2: #1F2235;
  --ds-line: #2A2D44;
  --ds-line2: #24273B;
  --ds-line-strong: #383C5E;
  --ds-text: #ECEDF7;
  --ds-text2: #C9CBE3;
  --ds-muted: #9EA1C4;
  --ds-faint: #5D6085;
  --ds-tint: #262750;
  --ds-tint-line: #35366E;
  --ds-accent: #6767EE;
  --ds-accent-hover: #8A8AF7;
  --ds-accent-ink: #B4B3FF;
  --ds-leave: #5F86D6;
  --ds-leave-bg: #1E2D4D;
  --ds-leave-fg: #B7D0FF;
  --ds-hol: #C9993F;
  --ds-hol-bg: #3A2E17;
  --ds-hol-fg: #F2C77E;
  --ds-ok: #5FD39C;
  --ds-ok-bg: #173327;
  --ds-warn: #F08A5D;
  --ds-warn-bg: #3D2219;
  --ds-shadow: rgba(0, 0, 0, .45);
  --ds-scrim: rgba(0, 0, 0, .6);

  --green: #5FD39C;
  --green-bg: rgba(95, 211, 156, .14);
  --yellow: #F2C77E;
  --yellow-bg: rgba(242, 199, 126, .14);
  --red: #FF8A80;
  --red-bg: rgba(255, 138, 128, .14);
  --purple: #C3A8FF;
  --purple-bg: rgba(195, 168, 255, .14);
  --orange: #F5A585;
  --orange-bg: rgba(245, 165, 133, .14);
  --control-bg-hover: #252942;
  --control-border-hover: #4A4F78;
  --focus-ring: 0 0 0 3px rgba(103, 103, 238, .3);
  --shadow-sm: none;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

/* ---------- 2. Base ------------------------------------------------------ */
html { background: var(--bg); }
body {
  font-family: var(--df-font);
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
::selection { color: #fff; background: var(--ds-accent); }
a { color: var(--ds-accent-ink); }

/* ---------- 3. Sign-in & registration ------------------------------------ */
#login-screen,
#registration-screen { background: var(--bg); }
#login-screen::before,
#registration-screen::before { display: none; }
.login-box {
  background: var(--surface);
  border: 1px solid var(--ds-line);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(10, 10, 40, .08);
  backdrop-filter: none;
}
.login-box::after { display: none; }
.login-logo { font-size: 26px; font-weight: 700; letter-spacing: 0; }
.login-logo::first-letter,
.logo-title::first-letter { color: inherit; }
.login-sub { font-size: 14px; color: var(--ds-muted); }
.app-brand-icon { box-shadow: none; border-radius: 12px; }

/* ---------- 4. Sidebar --------------------------------------------------- */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--ds-line);
  box-shadow: none;
  backdrop-filter: none;
  padding: 24px 16px 16px;
}
.logo { border-bottom: 0; padding: 0 8px 18px; margin-bottom: 6px; }
.logo-title { font-size: 17px; letter-spacing: 0; }
.app-brand-icon-sidebar { width: 44px; height: 44px; }
.logo-sub { font-size: 12px; letter-spacing: 0; color: var(--ds-muted); font-family: var(--df-font); }
.nav-section { margin-bottom: 14px; }
.nav-label {
  padding: 0 14px 6px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ds-muted);
  font-family: var(--df-font);
}
.nav-item {
  min-height: 44px;
  margin: 1px 0;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ds-text2);
  font-size: 15px;
  box-shadow: none;
}
.nav-item:hover { color: var(--ds-text); background: var(--ds-surface2); transform: none; }
.nav-item.active {
  color: var(--ds-accent-ink);
  background: var(--ds-tint);
  box-shadow: none;
  font-weight: 600;
}
.nav-item.active::before { display: none; }
.nav-icon { width: 20px; font-size: 16px; opacity: 1; color: inherit; }
.badge {
  background: #E5484D;
  color: #fff;
  font-family: var(--df-font);
  font-weight: 700;
  font-size: 11px;
  min-width: 20px;
  border-radius: 999px;
  text-align: center;
}
.user-panel { border-top: 1px solid var(--ds-line); padding-top: 14px; }
.user-info { background: transparent; border: 0; padding: 6px 4px; border-radius: 14px; }
.user-avatar {
  width: 40px; height: 40px;
  background: var(--ds-tint) !important;
  color: var(--ds-accent-ink) !important;
  border: 0 !important;
  font-weight: 700;
}
.user-name { font-size: 14px; font-weight: 600; color: var(--ds-text); }
.user-role-txt { font-size: 12px !important; color: var(--ds-muted); }
#sb-fullname { font-size: 12px !important; color: var(--ds-muted) !important; }
.logout-btn {
  border: 1px solid var(--ds-line-strong) !important;
  background: var(--surface);
  color: var(--ds-text2) !important;
  border-radius: 12px;
  min-height: 40px;
  font-size: 13px;
  font-family: var(--df-font);
}
.logout-btn:hover { background: var(--ds-surface2); color: var(--ds-text) !important; }

/* Theme switch (markup added in index.html) */
.df-theme-switch {
  display: flex; gap: 3px; padding: 3px; margin-top: 10px;
  border-radius: 12px; background: var(--ds-surface2); border: 1px solid var(--ds-line);
}
.df-theme-switch button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--ds-muted); font: 600 13px var(--df-font);
}
.df-theme-switch button[aria-pressed="true"] {
  background: var(--surface); color: var(--ds-accent-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* ---------- 5. Main area & headers -------------------------------------- */
.main { background: var(--bg); }
.mobile-nav-bar { background: var(--surface); border-bottom: 1px solid var(--ds-line); }
.page-title { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: 0; color: var(--ds-text); }
.page-sub { font-size: 14px; letter-spacing: 0; color: var(--ds-muted); font-family: var(--df-font); }
#notif-bell {
  background: var(--surface) !important;
  border: 1px solid var(--ds-line-strong) !important;
  border-radius: 12px !important;
  width: 44px !important; height: 44px !important;
  box-shadow: none; backdrop-filter: none;
}
#notif-bell i { color: var(--ds-text2) !important; }
#notif-bell-count { background: #E5484D !important; font-family: var(--df-font) !important; border: 2px solid var(--surface); }
#notif-panel {
  background: var(--surface);
  border: 1px solid var(--ds-line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* ---------- 6. Cards ----------------------------------------------------- */
.card,
.dashboard-panel,
.dashboard-stat,
.excard {
  background: var(--surface);
  border: 1px solid var(--ds-line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.card:hover,
.dashboard-panel:hover,
.dashboard-stat:hover { border-color: var(--ds-line); }
.card-title,
.dashboard-panel-title { font-size: 18px; font-weight: 600; color: var(--ds-text); letter-spacing: 0; }
.dashboard-panel-link { font-size: 13px; color: var(--ds-accent-ink); }
.dashboard-stat { min-height: 128px; padding: 20px; }
.dashboard-stat::after { display: none; }
.dashboard-stat-label { font-size: 14px; color: var(--ds-muted); letter-spacing: 0; margin-bottom: 8px; }
.dashboard-stat-value { font-size: 30px; font-weight: 700; letter-spacing: 0; color: var(--ds-text); }
.dashboard-stat-note { font-size: 13px; color: var(--ds-muted); }
.dashboard-list-item {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ds-line2);
  border-radius: 0;
  padding: 12px 2px;
}
.dashboard-list-item:hover { background: transparent; transform: none; }
.dashboard-list-item:hover .dashboard-list-title { color: var(--ds-accent-ink); }
.dashboard-list-title { font-size: 14px; font-weight: 600; }
.dashboard-list-meta { font-size: 12px; color: var(--ds-muted); }
.dashboard-ex-metric { background: var(--ds-surface2); border: 1px solid var(--ds-line2); border-radius: 14px; }
.dashboard-ex-metric strong { color: var(--ds-text); font-family: var(--df-font); }
.dashboard-ex-metric span { font-size: 12px; color: var(--ds-muted); }
.dashboard-empty { color: var(--ds-muted); }
.info-box { background: var(--ds-leave-bg); color: var(--ds-leave-fg); border: 0; border-radius: 14px; }
.warning-box { background: var(--ds-hol-bg); color: var(--ds-hol-fg); border: 0; border-radius: 14px; }
.danger-box { background: var(--ds-warn-bg); color: var(--ds-warn); border: 0; border-radius: 14px; }

/* ---------- 7. Buttons --------------------------------------------------- */
.btn {
  font-family: var(--df-font);
  font-weight: 600;
  border-radius: 12px;
  min-height: 44px;
  letter-spacing: 0;
}
.btn:hover { transform: none; }
.btn-primary {
  background: var(--ds-accent);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 18px var(--ds-shadow);
}
.btn-primary:hover { background: var(--ds-accent-hover); color: #fff; box-shadow: 0 8px 18px var(--ds-shadow); }
.btn-ghost {
  background: var(--surface);
  color: var(--ds-text2);
  border: 1px solid var(--ds-line-strong);
}
.btn-ghost:hover { background: var(--ds-surface2); color: var(--ds-text); border-color: var(--control-border-hover); }
.btn-green { background: var(--ds-ok); color: #fff; border: 0; }
.btn-red { background: var(--ds-warn-bg); color: var(--ds-warn); border: 1px solid transparent; }
.btn-red:hover { background: var(--ds-warn); color: #fff; }
.btn-sm { min-height: 36px; border-radius: 10px; font-size: 13px; }

/* ---------- 8. Chips & tabs ---------------------------------------------- */
.chip {
  font-family: var(--df-font);
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  padding: 4px 12px;
  border: 0;
  letter-spacing: 0;
}
.chip-pending { background: var(--ds-hol-bg); color: var(--ds-hol-fg); }
.chip-approved { background: var(--ds-ok-bg); color: var(--ds-ok); }
.chip-rejected { background: var(--ds-warn-bg); color: var(--ds-warn); }
.chip-escalated,
.chip-pm { background: var(--ds-tint); color: var(--ds-accent-ink); }
.tabs {
  background: var(--ds-surface2);
  border: 1px solid var(--ds-line);
  border-radius: 12px;
  padding: 4px;
}
.tab {
  border-radius: 9px;
  color: var(--ds-muted);
  font-family: var(--df-font);
  font-weight: 600;
  letter-spacing: 0;
}
.tab:hover { color: var(--ds-text); }
.tab.active {
  background: var(--surface);
  color: var(--ds-accent-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* ---------- 9. Forms ----------------------------------------------------- */
.form-group label,
label {
  font-family: var(--df-font);
  color: var(--ds-text2);
  letter-spacing: 0;
  text-transform: none;
}
.form-group label { font-size: 14px; font-weight: 600; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not(.date-part),
select,
textarea,
.date-display {
  font-family: var(--df-font);
  background-color: var(--ds-surface2);
  border: 1px solid var(--ds-line-strong);
  border-radius: 12px;
  color: var(--ds-text);
}
input:not([type="checkbox"]):not([type="radio"]):not(.date-part):focus,
select:focus,
textarea:focus {
  border-color: var(--ds-accent);
  box-shadow: var(--focus-ring);
  outline: none;
}
input::placeholder,
textarea::placeholder { color: var(--ds-faint); }
.date-part { color: var(--ds-text); background: transparent; }
.date-sep { color: var(--ds-faint); }
.date-cal-btn { color: var(--ds-muted); }
.form-hint { color: var(--ds-muted); }
.reg-email-hint { background: var(--ds-hol-bg) !important; color: var(--ds-hol-fg) !important; border-radius: 14px !important; padding: 12px 14px !important; }
.login-err { background: var(--ds-warn-bg); color: var(--ds-warn); border: 0; border-radius: 12px; }

/* ---------- 10. Tables --------------------------------------------------- */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--ds-line);
  border-radius: 16px;
}
table th {
  background: var(--ds-surface2);
  color: var(--ds-muted);
  font-family: var(--df-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid var(--ds-line);
}
table td { border-bottom: 1px solid var(--ds-line2); color: var(--ds-text); }
table tbody tr:hover td { background: var(--ds-surface2); }
.bar-track { background: var(--ds-line2); border-radius: 3px; }
.bar-fill { border-radius: 3px; }

/* ---------- 11. Modals --------------------------------------------------- */
.modal-overlay { background: var(--ds-scrim); backdrop-filter: blur(2px); }
.modal {
  background: var(--surface);
  border: 1px solid var(--ds-line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.modal-title { font-size: 22px; font-weight: 700; letter-spacing: 0; color: var(--ds-text); }
.modal-close {
  background: var(--ds-surface2);
  border: 1px solid var(--ds-line);
  color: var(--ds-text2);
  border-radius: 12px;
}
.modal-close:hover { background: var(--ds-line2); color: var(--ds-text); }

/* ---------- 12. Calendars ------------------------------------------------ */
.dashboard-calendar-day,
.leave-calendar-day,
.team-cal-day { border-radius: 12px; }
.dashboard-calendar-day:hover { background: var(--ds-surface2); transform: none; }
.leave-calendar-today,
.dashboard-calendar-day.today { box-shadow: inset 0 0 0 2px var(--ds-accent); }

/* ---------- 13. Scrollbars ----------------------------------------------- */
* { scrollbar-color: var(--ds-line-strong) transparent; }

/* ---------- 14. Fixes found in preview ----------------------------------- */
.tab { white-space: nowrap; }

/* ---------- 15. Inline-style bridges --------------------------------------
   Some screens are rendered by team-manager.js with inline colours written
   for the old dark-only UI. These selectors re-map them to v3 tokens without
   touching the JavaScript. */

/* dark tiles/cards hard-coded as #1a1c26 / #111 → v3 surfaces (both themes) */
[style*="background:#1a1c26"],
[style*="background: #1a1c26"] {
  background: var(--ds-surface2) !important;
  border-color: var(--ds-line) !important;
  box-shadow: none !important;
}
.ex-review-item[style*="#1a1c26"] { background: var(--surface) !important; }
[style*="background: #111"],
[style*="background:#111"] { background: var(--ds-surface2) !important; }

/* light theme: text/hairlines that assumed a dark canvas */
html:not([data-theme="dark"]) [style*="color:#fff"]:not([style*="background"]),
html:not([data-theme="dark"]) [style*="color: #fff"]:not([style*="background"]),
html:not([data-theme="dark"]) [style*="var(--surface3)"][style*="color:#fff"],
html:not([data-theme="dark"]) [style*="var(--surface3)"][style*="color: #fff"],
html:not([data-theme="dark"]) [style*="#1a1c26"][style*="color:#fff"],
html:not([data-theme="dark"]) [style*="rgba(255,255,255"][style*="color:#fff"],
html:not([data-theme="dark"]) [style*="background:transparent"][style*="color:#fff"] {
  color: var(--ds-text) !important;
}
html:not([data-theme="dark"]) [style*="color:#d1d5db"]:not([style*="background"]) { color: var(--ds-text2) !important; }
html:not([data-theme="dark"]) [style*="background:rgba(255,255,255"],
html:not([data-theme="dark"]) [style*="background: rgba(255,255,255"],
html:not([data-theme="dark"]) [style*="background: rgba(255, 255, 255"] {
  background: var(--ds-surface2) !important;
}
html:not([data-theme="dark"]) [style*="solid rgba(255,255,255"],
html:not([data-theme="dark"]) [style*="solid rgba(255, 255, 255"],
html:not([data-theme="dark"]) [style*="dashed rgba(255,255,255"] {
  border-color: var(--ds-line) !important;
}
html:not([data-theme="dark"]) option[style*="#1a1c26"] { background: #fff !important; color: var(--ds-text) !important; }

/* exercise "accumulated money" hero keeps its graphite look in both themes */
[style*="linear-gradient(110deg, #1f232b"] { border: 0 !important; }
html [style*="linear-gradient(110deg, #1f232b"] [style*="color:#d1d5db"] { color: #d1d5db !important; }

/* ---------- 16. Date pickers (leave / exercise / unified popover) -------- */
.leave-calendar,
.unified-date-popover {
  background: var(--surface);
  border: 1px solid var(--ds-line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.leave-calendar { box-shadow: none; background: var(--ds-surface2); }
.leave-calendar-head strong { color: var(--ds-text); }
.leave-calendar-today { background: var(--ds-tint); color: var(--ds-accent-ink); border-color: var(--ds-tint-line); border-radius: 8px; font-weight: 600; }
.leave-calendar-nav:hover,
.leave-calendar-day:hover { background: var(--ds-line2); }
.leave-calendar-day { border-radius: 10px; color: var(--ds-text); }
.leave-calendar-day.today:not(.range-start):not(.range-end) {
  color: var(--ds-accent-ink); background: transparent;
  box-shadow: inset 0 0 0 2px var(--ds-accent); border-radius: 10px;
}
.leave-calendar-day.today:not(.range-start):not(.range-end)::after { background: var(--ds-accent); }
.leave-calendar-day.bank-holiday { color: var(--ds-hol-fg); background: var(--ds-hol-bg); box-shadow: none; border-radius: 10px; }
.leave-calendar-day.bank-holiday::after,
.leave-calendar-legend-dot { background: var(--ds-hol); }
.leave-calendar-legend-dot { box-shadow: 0 0 0 3px var(--ds-hol-bg); }
.leave-calendar-day.in-range { background: var(--ds-tint); }
.leave-calendar-day.range-start,
.leave-calendar-day.range-end,
.unified-date-popover .leave-calendar-day.selected { background: var(--ds-accent); color: #fff; border-radius: 10px; }
.unified-date-select { background-color: var(--ds-surface2); border-color: var(--ds-line-strong); border-radius: 8px; color: var(--ds-text); }
.dashboard-calendar-day.on-leave,
.team-cal-leave { background: var(--ds-tint); color: var(--ds-accent-ink); }

/* ---------- 17. Exercise detail modal (exd-*) ---------------------------- */
#modal-ex-detail .modal.exd-modal {
  background: var(--surface);
  border: 1px solid var(--ds-line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.exd-top { background: transparent; border-bottom-color: var(--ds-line); }
.exd-foot { background: var(--ds-surface2); border-top-color: var(--ds-line); }
.exd-label, .exd-id .k, .exd-x, .exd-reward-b, .exd-reward-sub, .exd-meta svg, .exd-sect-title,
.exd-submitter-email, .exd-ev-meta, .exd-ev-btn, .exd-empty, .exd-add-input::placeholder { color: var(--ds-muted); }
.exd-dot { background: var(--ds-faint); }
.exd-id, .exd-ct, .exd-empty-ic, .exd-ev-thumb.link { background: var(--ds-line2); color: var(--ds-text2); }
.exd-x:hover, .exd-ev-btn:hover { background: var(--ds-line2); color: var(--ds-text); }
.exd-title, .exd-submitter-name, .exd-ev-title, .exd-add-input { color: var(--ds-text); }
.exd-meta-row, .exd-empty-t, .exd-note { color: var(--ds-text2); }
.exd-submitter, .exd-ev-item, .exd-add-area, .exd-member {
  background: var(--ds-surface2);
  border: 1px solid var(--ds-line);
  color: var(--ds-text2);
}
.exd-ev-item:hover { border-color: var(--ds-line-strong); }
.exd-add-wrap, .exd-ev-edit-row input { background: var(--surface); border: 1px solid var(--ds-line-strong); color: var(--ds-text); }
.exd-add-wrap:focus-within, .exd-add-area:focus-within { border-color: var(--ds-accent); }
.exd-empty { background: transparent; border-color: var(--ds-line-strong); }
.exd-note { background: var(--ds-surface2); border-color: var(--ds-line-strong); }
.exd-body { scrollbar-color: var(--ds-line-strong) transparent; }
.exd-body::-webkit-scrollbar-thumb { background: var(--ds-line-strong); }
.exd-btn-add { background: var(--ds-accent); }
.exd-btn-add:hover { background: var(--ds-accent-hover); }
.exd-btn-ghost { background: var(--surface); color: var(--ds-text2); border: 1px solid var(--ds-line-strong); }
.exd-btn-ghost:hover { background: var(--ds-surface2); }
.exd-btn-ok { background: var(--ds-ok); color: #fff; box-shadow: none; }
.exd-btn-ok:hover { background: var(--ds-ok); filter: brightness(1.08); }
.exd-btn-reject, .exd-btn-danger { color: var(--ds-warn); border-color: var(--ds-warn-bg); }
.exd-dept-pill, .exd-dept { background: var(--ds-tint); color: var(--ds-accent-ink); }
html:not([data-theme="dark"]) .exd-status.pending,
html:not([data-theme="dark"]) .exd-week,
html:not([data-theme="dark"]) .exd-role-pill { color: var(--ds-hol-fg); background: var(--ds-hol-bg); border-color: transparent; }
html:not([data-theme="dark"]) .exd-status.approved,
html:not([data-theme="dark"]) .exd-reward-a { color: var(--ds-ok); }
html:not([data-theme="dark"]) .exd-status.approved { background: var(--ds-ok-bg); border-color: transparent; }
html:not([data-theme="dark"]) .exd-status.rejected { color: var(--ds-warn); background: var(--ds-warn-bg); border-color: transparent; }
html:not([data-theme="dark"]) .exd-ev-thumb.tiktok { background: var(--ds-line2); color: var(--ds-text); }
.exd-add-input { background: transparent !important; border: 0 !important; box-shadow: none !important; }

/* ==========================================================================
   v3 round 2 — layout per design (dashboard, my leave, mobile shell)
   ========================================================================== */

/* ---------- 18. Icon tiles (leave / exercise types) ---------------------- */
.df-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 30%;
  background: var(--tbg, var(--ds-tint)); color: var(--tfg, var(--ds-accent-ink));
}
.df-tile .ic {
  display: block; width: 56%; height: 56%; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.ic-vac  { --tbg: #E3EEFF; --tfg: #2457B3; }
.ic-biz  { --tbg: #ECEBFF; --tfg: #4343B5; }
.ic-sick { --tbg: #FDE8EF; --tfg: #A3335A; }
.ic-dent { --tbg: #DFF3F6; --tfg: #1D6672; }
.ic-bday { --tbg: #FBE7F6; --tfg: #963083; }
.ic-acc  { --tbg: #EEF0F7; --tfg: #3A3D63; }
.ic-solo { --tbg: #FDE7DD; --tfg: #9A3B14; }
.ic-run  { --tbg: #ECEBFF; --tfg: #4343B5; }
.ic-eat  { --tbg: #FFF1DC; --tfg: #8A5A0B; }
.ic-hol  { --tbg: #FFF1DC; --tfg: #7A4E0B; }
html[data-theme="dark"] .ic-vac  { --tbg: #1E2D4D; --tfg: #A9C7FF; }
html[data-theme="dark"] .ic-biz  { --tbg: #262750; --tfg: #B4B3FF; }
html[data-theme="dark"] .ic-sick { --tbg: #3A1D2A; --tfg: #F4A7C1; }
html[data-theme="dark"] .ic-dent { --tbg: #16343A; --tfg: #8FD6E0; }
html[data-theme="dark"] .ic-bday { --tbg: #36193A; --tfg: #EFA6E0; }
html[data-theme="dark"] .ic-acc  { --tbg: #262A40; --tfg: #C9CBE3; }
html[data-theme="dark"] .ic-solo { --tbg: #3D2219; --tfg: #F5A585; }
html[data-theme="dark"] .ic-run  { --tbg: #262750; --tfg: #B4B3FF; }
html[data-theme="dark"] .ic-eat,
html[data-theme="dark"] .ic-hol  { --tbg: #3A2E17; --tfg: #F2C77E; }
.ic-vac{--m:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M3 12a9 9 0 0 1 18 0z"%3E%3C/path%3E%3Cpath d="M8.5 12c0-4.5 1.5-7.5 3.5-9M15.5 12c0-4.5-1.5-7.5-3.5-9"%3E%3C/path%3E%3Cpath d="M12 12v7"%3E%3C/path%3E%3Cpath d="M3.5 21c2.7-1.4 5.8-1.4 8.5 0s5.8 1.4 8.5 0"%3E%3C/path%3E%3C/svg%3E')}
.ic-biz{--m:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="7" width="18" height="13" rx="3"%3E%3C/rect%3E%3Cpath d="M8.5 7V5.5A1.5 1.5 0 0 1 10 4h4a1.5 1.5 0 0 1 1.5 1.5V7"%3E%3C/path%3E%3Cpath d="M3 13h18"%3E%3C/path%3E%3Cpath d="M10.5 12v2.5h3V12"%3E%3C/path%3E%3C/svg%3E')}
.ic-sick{--m:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M10 14.3V5a2 2 0 0 1 4 0v9.3a4 4 0 1 1-4 0z"%3E%3C/path%3E%3Cpath d="M12 9v7"%3E%3C/path%3E%3Cpath d="M17.5 6h2M17.5 9.5h2M17.5 13h2"%3E%3C/path%3E%3C/svg%3E')}
.ic-dent{--m:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M8 3.5c-2.6 0-4 2-4 4.6 0 3 1.3 4.6 1.9 7 .6 2.7 1.2 5.4 2.6 5.4s1.4-2.6 1.9-4.4c.3-1 .9-1.5 1.6-1.5s1.3.5 1.6 1.5c.5 1.8.5 4.4 1.9 4.4s2-2.7 2.6-5.4c.6-2.4 1.9-4 1.9-7 0-2.6-1.4-4.6-4-4.6-1.8 0-2.6 1-4 1s-2.2-1-4-1z"%3E%3C/path%3E%3C/svg%3E')}
.ic-bday{--m:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="4" y="12" width="16" height="9" rx="2"%3E%3C/rect%3E%3Cpath d="M4 16.5c1.3 1 2.7 1 4 0s2.7-1 4 0 2.7 1 4 0 2.7-1 4 0"%3E%3C/path%3E%3Cpath d="M8 12V9M12 12V9M16 12V9"%3E%3C/path%3E%3Cpath d="M8 5.5v.01M12 5.5v.01M16 5.5v.01" stroke-width="2.6"%3E%3C/path%3E%3C/svg%3E')}
.ic-acc{--m:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M13 19H6a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v4"%3E%3C/path%3E%3Cpath d="M3 10h14M7.5 3v4M12.5 3v4"%3E%3C/path%3E%3Ccircle cx="18" cy="18" r="4"%3E%3C/circle%3E%3Cpath d="M18 16.2v3.6M16.2 18h3.6"%3E%3C/path%3E%3C/svg%3E')}
.ic-solo{--m:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="15" cy="4.5" r="2"%3E%3C/circle%3E%3Cpath d="M13.5 8.5 10 14l4 2.5-1.5 5"%3E%3C/path%3E%3Cpath d="M9.5 10.5 13.5 8.5l3.5 3"%3E%3C/path%3E%3Cpath d="M10 14l-4 2"%3E%3C/path%3E%3Cpath d="M3 8.5h3M2 12.5h3"%3E%3C/path%3E%3C/svg%3E')}
.ic-run{--m:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="6.5" r="2.5"%3E%3C/circle%3E%3Ccircle cx="5" cy="9" r="2"%3E%3C/circle%3E%3Ccircle cx="19" cy="9" r="2"%3E%3C/circle%3E%3Cpath d="M7.5 20v-1.5a4.5 4.5 0 0 1 9 0V20"%3E%3C/path%3E%3Cpath d="M2 19v-.8a3 3 0 0 1 4.5-2.6M22 19v-.8a3 3 0 0 0-4.5-2.6"%3E%3C/path%3E%3C/svg%3E')}
.ic-eat{--m:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M3 12h18a9 8 0 0 1-18 0z"%3E%3C/path%3E%3Cpath d="M9 21h6"%3E%3C/path%3E%3Cpath d="M14 3l-2.5 7M19 4.5l-4.5 6"%3E%3C/path%3E%3Cpath d="M6.5 12a3.2 3.2 0 0 1 4.8-2.4"%3E%3C/path%3E%3C/svg%3E')}
.ic-hol{--m:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="5" width="18" height="16" rx="2"/%3E%3Cpath d="M3 10h18M8 3v4M16 3v4"/%3E%3Cpath d="M12 13.5l1 2 2 .3-1.5 1.4.4 2.1-1.9-1-1.9 1 .4-2.1L9 15.8l2-.3z"/%3E%3C/svg%3E')}
/* ---------- 19. Page header: subtitle becomes the eyebrow above the title */
.page-header > div:first-child { display: flex; flex-direction: column-reverse; gap: 4px; }
.page-header > div:first-child > .page-sub { margin-top: 0; font-size: 14px; }
.page-title { line-height: 1.2; }

/* ---------- 20. Dashboard ------------------------------------------------ */
.dashboard-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dashboard-stat { display: flex; flex-direction: column; gap: 4px; min-height: 0; padding: 20px; }
.dashboard-stat .df-tile { margin-bottom: 8px; }
.dashboard-stat-label { margin: 0; }
.dashboard-stat-value { font-size: 30px; line-height: 1.15; }
.dashboard-stat-value small { font-size: 14px; font-weight: 500; color: var(--ds-muted); }
.dashboard-stat-note { margin: 0; }
.dashboard-stat-note.warn { color: var(--ds-warn); font-weight: 600; }
.dashboard-stat.df-hero { background: var(--ds-tint); border-color: var(--ds-tint-line); }
@media (max-width: 1100px) { .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; } .dashboard-stat { padding: 16px; } .dashboard-stat-value { font-size: 24px; } }

.dashboard-layout { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; }
@media (max-width: 1000px) { .dashboard-layout { grid-template-columns: minmax(0, 1fr); } }
.dashboard-panel { padding: 24px; }
.df-cal-head { display: flex !important; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.df-cal-month { font-size: 13px; color: var(--ds-muted); }
.df-cal-nav { display: flex; gap: 8px; }
.df-cal-head .dashboard-calendar-nav {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--ds-line-strong); background: var(--surface); color: var(--ds-text2); font-size: 18px;
}
.df-cal-head .dashboard-calendar-nav:hover { background: var(--ds-surface2); }
.dashboard-calendar-weekdays { gap: 6px; margin-bottom: 6px; }
.dashboard-calendar-weekdays span { font-size: 13px; color: var(--ds-muted); }
.dashboard-calendar-days { gap: 6px; text-align: left; }
.dashboard-calendar-day.df-day {
  min-height: 62px; padding: 8px 10px; border-radius: 12px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 2px; font-size: 14px;
  background: var(--bg); color: var(--ds-text); border: 2px solid transparent; box-shadow: none;
  opacity: 1; overflow: hidden;
}
.dashboard-calendar-day.df-day b { font-weight: 600; }
.df-day-tag { font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-calendar-day.df-day.other { background: var(--ds-surface2); color: var(--ds-faint); }
.dashboard-calendar-day.df-day.on-leave { background: var(--ds-leave-bg); color: var(--ds-leave-fg); }
.dashboard-calendar-day.df-day.leave-pending { border-style: dashed; border-color: var(--ds-hol); }
.dashboard-calendar-day.df-day.holiday { background: var(--ds-hol-bg); color: var(--ds-hol-fg); }
.dashboard-calendar-day.df-day.today { border: 2px solid var(--ds-accent); box-shadow: none; }
.dashboard-calendar-day.df-day:hover { transform: none; filter: brightness(.98); }
.dashboard-calendar-legend { gap: 16px; margin-top: 16px; font-size: 13px; color: var(--ds-muted); }
.dashboard-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.df-dot-leave { background: var(--ds-leave); }
.df-dot-hol { background: var(--ds-hol); }
.df-dot-today { border: 2px solid var(--ds-accent); box-sizing: border-box; }
@media (max-width: 760px) {
  .dashboard-calendar-days, .dashboard-calendar-weekdays { gap: 3px; }
  .dashboard-calendar-day.df-day { min-height: 44px; padding: 4px; font-size: 12px; border-radius: 8px; }
  .df-day-tag { font-size: 10px; }
}

.df-bal-list { display: flex; flex-direction: column; gap: 14px; }
.df-bal-row { display: flex; flex-direction: column; gap: 6px; }
.df-bal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.df-bal-name { display: flex; align-items: center; gap: 8px; color: var(--ds-text); }
.df-bal-num { font-weight: 600; color: var(--ds-text); white-space: nowrap; }
.df-bal-num.warn { color: var(--ds-warn); }
.df-bar { height: 6px; border-radius: 3px; background: var(--ds-line2); overflow: hidden; }
.df-bar-fill { height: 100%; border-radius: 3px; background: var(--ds-accent); }
.df-bar-fill.warn { background: #EFA27E; }
.df-up-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--ds-line2); }
.df-up-row:first-child { border-top: 0; padding-top: 0; }
.df-datebox {
  width: 50px; height: 50px; flex: none; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.df-datebox b { font-size: 18px; line-height: 1; }
.df-datebox span { font-size: 11px; }
.df-datebox.leave { background: var(--ds-leave-bg); color: var(--ds-leave-fg); }
.df-datebox.hol { background: var(--ds-hol-bg); color: var(--ds-hol-fg); }
.df-up-main { min-width: 0; }
.df-up-title { font-size: 14px; font-weight: 600; color: var(--ds-text); }
.df-up-sub { font-size: 12px; color: var(--ds-muted); }

/* ---------- 21. My leave: balance cards ---------------------------------- */
.df-mybal-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) { .df-mybal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.df-bal-card {
  background: var(--surface); border: 1px solid var(--ds-line); border-radius: 20px;
  padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.df-bal-card-head { display: flex; align-items: center; gap: 10px; }
.df-bal-card-head b { font-size: 15px; color: var(--ds-text); flex: 1; }
.df-bal-card-num b { font-size: 28px; color: var(--ds-text); }
.df-bal-card-num span { font-size: 14px; color: var(--ds-muted); }
.df-bal-card-foot { font-size: 13px; color: var(--ds-muted); }
.df-pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.df-pill.warn { background: var(--ds-warn-bg); color: var(--ds-warn); }
.df-pill.info { background: var(--ds-hol-bg); color: var(--ds-hol-fg); }

/* ---------- 22. Mobile shell: top bar + bottom tab bar -------------------- */
.mobile-menu-btn { display: flex; align-items: center; gap: 10px; }
.mobile-menu-btn > i { display: none; }
.mobile-menu-btn .app-brand-icon { width: 34px; height: 34px; border-radius: 10px; }
.df-mtitle { font-size: 16px; font-weight: 700; color: var(--ds-text); }
#df-tabbar { display: none; }
@media (max-width: 768px) {
  .mobile-nav-bar { padding: 10px 16px; min-height: 60px; }
  #notif-bell { top: 9px !important; right: 16px !important; }
  #df-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 940;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--ds-line);
  }
  #df-tabbar button {
    min-height: 54px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--ds-muted); font: 600 11px var(--df-font);
  }
  #df-tabbar button i { font-size: 18px; }
  #df-tabbar button[aria-current="page"] { background: var(--ds-tint); color: var(--ds-accent-ink); }
  .main { padding-bottom: 96px !important; }
  #toast { bottom: 90px !important; }
}

/* ==========================================================================
   v3 round 3 — design kit shared by every page (df-*)
   ========================================================================== */

/* ---------- 23. Sidebar per design --------------------------------------- */
.df-sidebar { width: 264px; padding: 28px 18px 18px; gap: 0; }
.df-sidebar .logo { padding: 0 8px 22px; margin: 0; border: 0; }
.df-sidebar .logo-title { display: flex; align-items: center; gap: 12px; }
.df-sidebar .app-brand-icon-sidebar { width: 44px; height: 44px; border-radius: 12px; }
.df-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.df-logo-text > span:first-child { font-size: 17px; font-weight: 700; color: var(--ds-text); }
.df-sidebar .logo-sub { margin: 0; font-size: 12px; color: var(--ds-muted); }
.df-sidebar .nav-section { padding: 0; margin: 0 0 18px; }
.df-sidebar .nav-label { padding: 0 14px 6px; font-size: 12px; }
.df-sidebar .nav-item { gap: 12px; padding: 11px 14px; min-height: 44px; font-size: 15px; border-radius: 12px; text-decoration: none; }
.df-sidebar .nav-item .nav-icon { width: 19px; display: inline-flex; }
.df-sidebar .nav-item .badge { margin-left: auto; }
.df-sidebar .df-grow { flex: 1; }
.df-sidebar .df-ext { color: var(--ds-faint); }
.df-sidebar .user-panel { margin-top: auto; border-top: 1px solid var(--ds-line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.df-profile-link.user-info { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; cursor: pointer; }
.df-profile-link.nav-item.active { background: var(--ds-tint); }
.df-user-text { display: flex; flex-direction: column; min-width: 0; }
.df-user-text .user-name { font-size: 14px; font-weight: 600; }
.df-user-text .user-role-txt { opacity: 1 !important; }
.df-sidebar .df-theme-switch { margin: 0 4px; }
.df-version { font-size: 11px; line-height: 1.4; color: var(--ds-muted); padding: 0 8px; }

/* ---------- 24. Page header, cards, fields ------------------------------- */
.df-view { display: flex; flex-direction: column; gap: 22px; }
.df-ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-right: 56px; }
.df-ph-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.df-eyebrow { font-size: 14px; color: var(--ds-muted); }
.df-eyebrow a { color: var(--ds-text2); }
.df-h1 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--ds-text); letter-spacing: 0; }
.df-ph-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.df-card { background: var(--surface); border: 1px solid var(--ds-line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.df-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.df-card-head h2, .df-card h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ds-text); }
.df-muted { margin: 0; font-size: 13px; color: var(--ds-muted); }
.df-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ds-muted); background: var(--ds-surface2); border: 1px solid var(--ds-line); border-radius: 999px; padding: 4px 12px; }
.df-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .df-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.df-field { background: var(--ds-surface2); border: 1px solid var(--ds-line2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.df-field span { font-size: 13px; color: var(--ds-muted); }
.df-field b { font-size: 16px; font-weight: 600; color: var(--ds-text); overflow-wrap: anywhere; }

/* avatars, chips */
.df-av { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; font-weight: 700; color: #1E1F3B; }
.df-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.df-chip.pending { background: var(--ds-hol-bg); color: var(--ds-hol-fg); }
.df-chip.pm { background: var(--ds-tint); color: var(--ds-accent-ink); }
.df-chip.ok { background: var(--ds-leave-bg); color: var(--ds-leave-fg); }
.df-chip.no { background: var(--ds-warn-bg); color: var(--ds-warn); }
.df-tchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; background: var(--tbg); color: var(--tfg); font-size: 13px; font-weight: 600; white-space: nowrap; }
.df-tchip .ic { width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* buttons in v3 views */
.df-view .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.df-danger { color: var(--ds-warn) !important; }

/* ---------- 25. Profile --------------------------------------------------- */
.df-profile-hero { padding: 0; overflow: hidden; gap: 0; }
.df-profile-cover { height: 120px; background: var(--ds-tint); border-bottom: 1px solid var(--ds-line); }
.df-profile-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; padding: 0 28px 24px; margin-top: -56px; }
.df-av-ring { box-shadow: 0 0 0 6px var(--surface), 0 0 0 9px var(--ds-tint-line); }
.df-profile-name { flex: 1; min-width: 200px; padding-bottom: 6px; }
.df-profile-name h2 { margin: 0; font-size: 26px; font-weight: 700; color: var(--ds-text); }
.df-profile-name span { font-size: 15px; color: var(--ds-muted); }
.df-profile-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 6px; }

/* solo icon tile per X boards (blue); the dashboard money card keeps the warm tile from the J board */
.ic-solo { --tbg: #E3EEFF; --tfg: #2457B3; }
html[data-theme="dark"] .ic-solo { --tbg: #1E2D4D; --tfg: #A9C7FF; }
.dashboard-stat .ic-solo { --tbg: #FDE7DD; --tfg: #9A3B14; }
html[data-theme="dark"] .dashboard-stat .ic-solo { --tbg: #3D2219; --tfg: #F5A585; }
/* date-part boxes: Anuphan digits are wider than the old font — widen everywhere */
.date-part[data-part="d"], .date-part[data-part="m"] { width: 2.6ch !important; min-width: 24px !important; text-align: center; }
.date-part[data-part="y"] { width: 4.6ch !important; min-width: 42px !important; }

/* ---------- 26. Profile tabs + display settings (theme, font size) -------- */
.df-ptabs { display: flex; gap: 4px; padding: 0 28px; border-top: 1px solid var(--ds-line); }
.df-ptab {
  min-height: 48px; padding: 0 16px; border: 0; background: transparent; cursor: pointer;
  font: 600 15px var(--df-font); color: var(--ds-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.df-ptab:hover { color: var(--ds-text); }
.df-ptab.on { color: var(--ds-accent-ink); border-bottom-color: var(--ds-accent); }
.df-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.df-opts-3 { grid-template-columns: repeat(3, minmax(0, 200px)); }
@media (max-width: 600px) { .df-opts, .df-opts-3 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.df-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  min-height: 96px; padding: 16px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--ds-line-strong); background: var(--surface); color: var(--ds-text); font-family: var(--df-font);
}
.df-opt:hover { background: var(--ds-surface2); }
.df-opt.on { border: 2px solid var(--ds-accent); background: var(--ds-tint); padding: 15px; }
.df-opt-ic { height: 26px; display: flex; align-items: center; color: var(--ds-accent-ink); }
.df-opt b { font-size: 15px; font-weight: 600; }
.df-opt small { font-size: 12px; color: var(--ds-muted); }
.df-font-sample { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--ds-surface2); border: 1px solid var(--ds-line2); }
.df-font-sample b { font-size: 16px; color: var(--ds-text); }
.df-font-sample span { font-size: 14px; color: var(--ds-text2); }

/* whole-site text size: zoom the page; keep viewport-height boxes the right size */
html { --df-z: 1; }
html[data-font="sm"] { --df-z: .875; zoom: .875; }
html[data-font="lg"] { --df-z: 1.125; zoom: 1.125; }
html[data-font] .sidebar { height: calc(100vh / var(--df-z)); }
html[data-font] .modal { max-height: calc(90vh / var(--df-z)); }
html[data-font] #modal-ex-detail .modal.exd-modal { max-height: calc((100vh - 48px) / var(--df-z)); }
html[data-font] .df-ex-xdetail { max-height: calc((100vh - 32px) / var(--df-z)); }
html[data-font] #notif-list { max-height: min(560px, calc((100vh - 145px) / var(--df-z))); }
html[data-font] #login-screen, html[data-font] #registration-screen { min-height: calc(100vh / var(--df-z)); }
@media (max-width: 768px) {
  html[data-font] .modal { max-height: calc((100dvh - 20px) / var(--df-z)); }
}
#df-m-avatar { display: none; }
@media (max-width: 768px) {
  #df-m-avatar {
    display: inline-flex; align-items: center; justify-content: center; position: fixed; top: 9px; right: 68px; z-index: 951;
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--ds-tint); color: var(--ds-accent-ink); font: 700 16px var(--df-font);
  }
}

/* ---------- 27. Calendar tooltip (holiday name / who is on leave) ---------- */
#df-tip {
  position: fixed; z-index: 30000; max-width: 260px; pointer-events: none;
  padding: 8px 12px; border-radius: 10px; background: var(--ds-text); color: var(--ds-bg);
  font: 600 13px/1.4 var(--df-font); box-shadow: 0 8px 24px rgba(10, 10, 40, .22);
}
#df-tip::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px;
  background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
#df-tip.below::after { bottom: auto; top: -5px; }


/* ---------- 28. J dashboard (static): hero card + board icons ---------- */
.ic-approve { --m: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAMTElEQVR4nO2dXawdVRXHf/fe01I+VGgFWkUErK0fJCiWKmA1kmgIIh8BVF7UqImRICIgiQ/45EvbtEDUJ1GIBk0I8QOhEAJC+SremlBFpT4QDX6EYNVga0V6zj0+rPln9pmec++ZPXvOzJnZ/2Qy95w7Z8/MXv+99tp7r7X2DOVhBpgtsfwq0av6AeqMWWCu6oeIGA8zgcubI20dc8DpwKnAycAxwHJSrdAHusBC8reeZzY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qgZvmuZLmt/FCrRAJPq+0dBw7ZzsN27VyafNf3rwt3QsYe5n2t6twnWfuNiA8eF+vH3Y4bhaaTTvx3S2AItWh0FfBe4iuYIvxCmzQgcBnUHG7GcfZ/BtEEXI0MX8ze8AMvW+VmaJ3zv4XCRSvBdqSsDUu9rgNsxJ9Mngf8BR2JxheuTa5Xpq0mohAB1ELyLWdJ18rckhwv1kxNxmpgwIgESaMUwm4fP189wWhAJkEHTBZ5FJcvBdSZAxJiY5nmAiBStnQeIMFTiDxC7gPogaoAIP0QN0AxU0gVE1AeN9gmMWBqVEGBf0ZtHBMO+pS8ZDt84ebAESxAJUCUkiwOZz2OjCAEepxwf/YjxIA+oF4FfO9/lgo/wehgJ5rGtUrX4EjFZaOVzHvgbfkmtvQigVn8QuIPy4/UihkMrn9urvPmx2E6Y8rWrOl6+LYcyquwgTac7ceimFzoPpcSP8SjvUE6lV4B3JjKozA4TCW7EHi5qgnIPt5FdkdR95e5tIsG1DD6omFp1pU37sZDUp9T+q8CnMnXvjVDz+fLRPx9LzLTW+V834H3ahj6DLXwPtuvYE/jtZlIqxMaVwE3Yw0YNUPzYjyW2/hzm4ezWdWGEbpkuK48AzsCygJ+EhXS7G0BIvWnsquidOQZzAolEOGdd75bRd36j+L8Z53dZR1Fd43oTZ8vS3gUzmWvc52DIvfojytD/1T26zzTnlCPB/xH4HfBc5l61nndx06tFhEGWRMFQZt/sk/g54nBI65SC/wOrMjy+pSD9DAAAAABJRU5ErkJggg=='); --tbg: #ECEBFF; --tfg: #4343B5; }
html[data-theme="dark"] .ic-approve { --tbg: #262750; --tfg: #B4B3FF; }
.ic-hol { --m: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAPNUlEQVR4nO2daaxdVRXHf/e910cpLWWUFrEqqFRBlIqCgRAgQBCBEOMHDSqIfsAgmCBq1IQEPyiKBhUMEVIlqJBgicoQhjIqgwwV1DKIYaqgVYYylaHv3Xf9sM6fve/pOfcMd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hqAFbG6rUGWqVR+Frc07FUfotKlbf2SwAjP3fpd0aaC/d4z9X3mIFLvQ3keGckikvwZ8JErrNO193Pa09/UzFNNn/EAP9wMHeu9WfADhJiqsAyTBJ0BomfIrqIW17nd5aZ8PHIdF99B9ZZdma9s8/f1D3DIvsJgA58TSE9LR9fLwkHcMUb+/L+YgeiUmEfbFafLdOmvIUqhFnl8FTsC8kl/HlMZdCXjVTx5UeccQaf/bAcd756W49so3wHdL3x6TMP63Klv5UGFftgiSBE3v/35ViK9c9vtbA0PVCQBOVI/atwaCTgxuYn0dGPNrjCCSCKDKfgFYFztXo3roaM1NI8AkFujovuhcpb1exhRSguUtndiI07oAnV8b/YY8GqiRDO2TcG30f2IjTiOAxMYlmDFopKY7xwAyTN2J+UymTpilEUDz4o9hodZ1rkZ10MDiKXT0eOok2jVDthdwL50DNNYIB7KA3o8F2uoYZi9rGDiBzbmfi1sSXSNcyGw9g4XUUZDr0vAjZN+KMekNwvUUGufDD5f/uaj+emKpFIO2w5FAYVNrIgz/8GctZ7EJK8hpscwrHhS2bT7mSHk6jl2zjIBNvIIQAVTR67AYSqtx+ltP4ZPlAGxplJhXH8M7nsd0NPkqFJqrKLOaRiFSwObfD8cCOe5S4n01iqMJPAM8gi1PuxHbGgf61PKToK1RaoSBPGsZEtFti5WBoWoh3asOOcNKNyttpPs/XHSMjlugR/gAAAAASUVORK5CYII='); }
.df-jhero {
  position: relative; min-height: 260px; margin-bottom: 16px; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--ds-tint-line); background: var(--ds-tint); display: flex; align-items: center; padding: 22px; box-sizing: border-box; isolation: isolate;
}
.df-jhero-img {
  position: absolute; right: 0; top: 0; height: 100%; width: 70%; object-fit: cover; object-position: 60% 60%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.df-jhero-glass {
  position: relative; width: min(460px, 100%); box-sizing: border-box; border-radius: 20px; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px rgba(20,20,60,.18);
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
}
html[data-theme="dark"] .df-jhero-glass { background: rgba(24,26,41,.9); }
.df-jhero-chip { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--ds-tint); color: var(--ds-accent-ink); }
.df-jhero h1 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.25; color: var(--ds-text); }
.df-jhero p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ds-text2); }
.df-jhero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 4px; }
.df-jhero-btn {
  display: inline-flex; align-items: center; font-family: inherit; font-size: 15px; font-weight: 600; min-height: 46px; padding: 0 18px;
  border-radius: 14px; border: 1px solid var(--ds-line-strong); background: var(--ds-surface); color: var(--ds-text); cursor: pointer;
}
.df-jhero-btn.primary { padding: 0 20px; border: 0; background: var(--ds-accent); color: #fff; box-shadow: 0 8px 18px var(--ds-shadow); }
.df-jhero-btn.primary:hover { background: var(--ds-accent-hover); }
.df-jhero-btn:focus-visible { outline: 3px solid var(--ds-accent); outline-offset: 2px; }
.df-jhero-badge { position: absolute; right: 16px; bottom: 16px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(20,20,40,.62); color: #fff; }
/* J: greeting + quick actions live in the hero, header keeps only "วิธีใช้งาน" */
#page-dashboard > .page-header { justify-content: flex-end; margin: -11px 0 14px; }
#page-dashboard > .page-header > div:first-child,
#page-dashboard .dashboard-head-actions > .btn:not(.df-help-btn) { display: none !important; }
@media (max-width: 760px) {
  .df-jhero { min-height: 440px; align-items: flex-end; padding: 14px; }
  #page-dashboard > .page-header { margin-bottom: 10px; }
  #page-dashboard .dashboard-head-actions { width: auto; margin-left: auto; }
  #page-dashboard .dashboard-head-actions > .df-help-btn { width: auto; flex: 0 0 auto; }
  .df-jhero h1 { font-size: 26px; }
  .df-jhero-img { width: 100%; height: 50%; object-position: 55% 80%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .df-jhero-badge { top: 14px; bottom: auto; right: 14px; }
}
.df-up-row .df-av { margin-left: auto; }

/* ---------- 29. Profile photo + frames (P1) ------------------------------- */
.df-av-photo { position: relative; display: inline-flex; flex: none; border-radius: 50%; padding: var(--ring, 2px); box-sizing: border-box; background: conic-gradient(#8B8BF5, #7EC8FF, #F29AD0, #B9A6FF, #8B8BF5); color: transparent !important; overflow: hidden; }
.df-av-photo.f-sparkle { background: conic-gradient(#FFC56B, #F29AD0, #8B8BF5, #7EC8FF, #FFC56B); }
.df-av-photo.f-plain { background: var(--ds-accent); }
.df-av-photo.f-none { background: transparent; padding: 0; }
.df-av-photo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; background: var(--ds-tint); box-sizing: border-box; }
.df-av-photo:not(.f-none) img { border: max(1px, calc(var(--ring, 2px) * .6)) solid var(--surface); }
.user-avatar.df-has-photo, #df-m-avatar.df-has-photo { padding: 0; overflow: hidden; background: var(--ds-tint); }
.user-avatar.df-has-photo img, #df-m-avatar.df-has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }

.df-profile-cover { position: relative; overflow: hidden; }
.df-profile-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .55; display: block; }
.df-profile-row { position: relative; }
.df-pava { position: relative; flex: none; }
.df-ring { position: relative; width: 132px; height: 132px; border-radius: 50%; padding: 5px; box-sizing: border-box; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.df-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#8B8BF5, #7EC8FF, #F29AD0, #B9A6FF, #8B8BF5); animation: df-spin 6s linear infinite; }
.df-ring.f-sparkle::before { background: conic-gradient(#FFC56B, #F29AD0, #8B8BF5, #7EC8FF, #FFC56B); animation-duration: 2.5s; }
.df-ring.f-plain::before { background: var(--ds-accent); animation: none; }
.df-ring.f-none::before { background: transparent; animation: none; }
.df-ring:hover { transform: scale(1.05) rotate(-3deg); }
.df-ring.is-busy { opacity: .6; }
.df-ring .inner { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--surface); box-sizing: border-box; overflow: hidden; background: #DAD8FF; }
.df-ring .inner img, .df-ring .inner .df-av { width: 100% !important; height: 100% !important; object-fit: cover; display: flex; transition: transform .4s; border-radius: 0; font-size: 48px !important; }
.df-ring:hover .inner img { transform: scale(1.08); }
.df-ring .spark { position: absolute; z-index: 1; width: 14px; height: 14px; background: #FFC56B; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; pointer-events: none; }
.df-ring .spark.s1 { top: -4px; left: 18px; }
.df-ring .spark.s2 { top: 20px; right: -6px; width: 10px; height: 10px; animation-delay: .6s !important; }
.df-ring .spark.s3 { bottom: 6px; left: -6px; width: 9px; height: 9px; animation-delay: 1.2s !important; }
.df-ring.f-sparkle .spark { animation: df-tw 1.8s ease-in-out infinite; }
@keyframes df-spin { to { transform: rotate(360deg); } }
@keyframes df-tw { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.df-online { position: absolute; left: -6px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--surface); box-shadow: 0 4px 12px rgba(10, 10, 40, .15); font-size: 12px; font-weight: 700; color: var(--ds-text); }
.df-online i { width: 8px; height: 8px; border-radius: 50%; background: #2E9E6B; }
.df-pcam { position: absolute; right: 2px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface); background: var(--ds-accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.df-pcam:disabled { opacity: .6; cursor: default; }
.df-frames { padding: 0 28px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.df-frames .lbl { font-size: 14px; font-weight: 600; color: var(--ds-text); }
.df-frame-list { display: flex; flex-wrap: wrap; gap: 8px; }
.df-frame { font-family: inherit; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; background: var(--surface); color: var(--ds-text2); border: 2px solid var(--ds-line); }
.df-frame.on { background: var(--ds-tint); color: var(--ds-accent-ink); border-color: var(--ds-accent); }
.df-frame:disabled { cursor: default; opacity: .7; }
.df-frame .sw { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#8B8BF5, #7EC8FF, #F29AD0, #B9A6FF, #8B8BF5); }
.df-frame .sw.f-sparkle { background: conic-gradient(#FFC56B, #F29AD0, #8B8BF5, #7EC8FF, #FFC56B); }
.df-frame .sw.f-plain { background: var(--ds-accent); }
.df-frame .sw.f-none { background: var(--ds-line-strong); box-shadow: inset 0 0 0 2px var(--surface); }
.df-photo-hint { margin: 0; padding: 0 28px 20px; font-size: 13px; color: var(--ds-muted); }
.df-photo-msg { margin: 0 28px 20px; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.df-photo-msg.ok { background: var(--ds-leave-bg); color: var(--ds-leave-fg); }
.df-photo-msg.err { background: var(--ds-warn-bg); color: var(--ds-warn); }
.df-photo-msg:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .df-ring::before, .df-ring.f-sparkle .spark { animation: none; } .df-ring, .df-ring .inner img { transition: none; } }
@media (max-width: 760px) { .df-frames, .df-photo-hint { padding-left: 18px; padding-right: 18px; } .df-photo-msg { margin-left: 18px; margin-right: 18px; } }
.df-drive-st { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.df-drive-st.on { background: var(--ds-leave-bg); color: var(--ds-leave-fg); }
.df-drive-st.off { background: var(--ds-hol-bg); color: var(--ds-hol-fg); }

/* ---------- 30. Sticky side panels ("สรุปก่อนส่ง") --------------------------
   legacy .main had overflow:auto while the window is what scrolls, which made
   .main the sticky container and broke position:sticky. clip keeps the
   horizontal clipping without creating a scroll container. */
.main { overflow: visible !important; overflow-x: clip !important; }
/* keep the floating bell clear of the stuck panel */
.df-ex-new .df-ex-sum, .df-leave-aside { top: 76px !important; }

/* ---------- 31. Sidebar account actions (profile · display · logout) ---------- */
.df-user-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.df-ua { font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--ds-line); background: var(--surface); color: var(--ds-text2); font-size: 11px; font-weight: 600; cursor: pointer; line-height: 1.2; }
.df-ua span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.df-ua:hover, .df-ua:focus-visible { background: var(--ds-tint); color: var(--ds-accent-ink); border-color: var(--ds-tint-line); }
.df-ua.out:hover, .df-ua.out:focus-visible { background: var(--ds-warn-bg); color: var(--ds-warn); border-color: transparent; }

/* ---------- 32. Confirm dialog (logout) ---------- */
.df-confirm { width: 380px; max-width: 100%; background: var(--ds-surface); color: var(--ds-text); border-radius: 22px; box-shadow: 0 24px 60px rgba(10, 10, 40, .3); padding: 28px 24px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.df-confirm-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--ds-warn-bg); color: var(--ds-warn); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.df-confirm h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--ds-text); }
.df-confirm p { margin: 0; font-size: 14px; color: var(--ds-muted); line-height: 1.6; }
.df-confirm-act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 14px; }
.df-confirm-act button { font-family: inherit; font-size: 15px; font-weight: 600; min-height: 46px; border-radius: 12px; cursor: pointer; }
.df-confirm-no { border: 1px solid var(--ds-line-strong); background: var(--ds-surface); color: var(--ds-text2); }
.df-confirm-yes { border: 0; background: var(--ds-warn); color: #fff; }
.df-confirm-yes:hover { filter: brightness(1.05); }
#df-logout { z-index: 5000; }

/* ---------- 33. Guided tour ("วิธีใช้งาน") ---------- */
.df-help-btn svg { flex: none; }
.df-tour-hole { position: fixed; z-index: 1300; pointer-events: none; border-radius: 16px; box-shadow: 0 0 0 4px var(--ds-accent), 0 0 0 9999px rgba(10, 10, 40, .55); transition: left .25s, top .25s, width .25s, height .25s; }
.df-tour-hole.full { inset: 0; border-radius: 0; box-shadow: none; background: rgba(10, 10, 40, .55); transition: none; }
.df-tour-hole[hidden], #df-tour[hidden] { display: none !important; }
#df-tour.df-tour-welcome { position: fixed; inset: 0; z-index: 1310; display: flex; align-items: center; justify-content: center; padding: 16px; }
#df-tour.df-tour-stepwrap { position: fixed; right: 24px; bottom: 24px; z-index: 1310; width: 380px; max-width: calc(100% - 32px); }
.df-tour-card { background: var(--ds-surface); color: var(--ds-text); box-shadow: 0 24px 60px rgba(10, 10, 40, .35); font-family: inherit; }
.df-tour-card.welcome { width: 440px; max-width: 100%; border-radius: 24px; padding: 32px 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.df-tour-card.welcome img { width: 72px; height: 72px; border-radius: 20px; }
.df-tour-card.welcome h2 { margin: 4px 0 0; font-size: 24px; font-weight: 700; }
.df-tour-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ds-muted); }
.df-tour-go { width: 100%; font-family: inherit; font-size: 16px; font-weight: 600; min-height: 52px; margin-top: 8px; border-radius: 14px; border: 0; background: var(--ds-accent); color: #fff; cursor: pointer; box-shadow: 0 8px 18px var(--ds-shadow, rgba(91, 91, 214, .28)); }
.df-tour-skip { font-family: inherit; font-size: 14px; min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--ds-muted); cursor: pointer; }
.df-tour-card.step { border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.df-tour-top { display: flex; justify-content: space-between; align-items: center; }
.df-tour-top span { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ds-accent-ink); }
.df-tour-x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--ds-line2, var(--ds-line)); color: var(--ds-text2); font-size: 18px; cursor: pointer; }
.df-tour-card.step h2 { margin: 0; font-size: 19px; font-weight: 700; }
.df-tour-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; }
.df-tour-dots { display: flex; gap: 6px; }
.df-tour-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--ds-line-strong); }
.df-tour-dots span.on { width: 22px; background: var(--ds-accent); }
.df-tour-btns { display: flex; gap: 8px; }
.df-tour-back, .df-tour-next { font-family: inherit; font-size: 14px; font-weight: 600; min-height: 44px; border-radius: 12px; cursor: pointer; }
.df-tour-back { padding: 0 14px; border: 1px solid var(--ds-line-strong); background: var(--ds-surface); color: var(--ds-text2); }
.df-tour-next { padding: 0 18px; border: 0; background: var(--ds-accent); color: #fff; }
@media (max-width: 760px) { #df-tour.df-tour-stepwrap { right: 16px; bottom: 88px; } }
@media (prefers-reduced-motion: reduce) { .df-tour-hole { transition: none; } }

/* ---------- 34. UXUI workspace link ---------- */
#nav-sec-uxui .df-ws-link { margin: 0; }
.df-ws-link { background: var(--ds-tint); color: var(--ds-accent-ink) !important; font-weight: 600; }
.df-ws-link:hover { background: color-mix(in srgb, var(--ds-accent) 16%, var(--ds-tint)); }
.df-ws-link .nav-icon { color: var(--ds-accent); }
/* account block (UXUI Work Space + name + actions) stays pinned at the bottom of the sidebar */
.df-sidebar .user-panel { position: sticky; bottom: -18px; z-index: 2; background: var(--surface); padding-bottom: 18px; margin-bottom: -18px; }

/* ---------- 35. Welcome animation (first visit) ---------- */
#df-tour.df-tour-welcome { animation: df-w-fade .4s ease-out both; }
.df-tour-hole.full { animation: df-w-fade .4s ease-out both; }
.df-tour-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.df-tour-fx span { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0; animation: df-w-blob 1.1s cubic-bezier(.2, .8, .2, 1) forwards, df-w-float 7s ease-in-out 1.1s infinite alternate; }
.df-tour-fx .b1 { width: 280px; height: 280px; background: radial-gradient(circle at 30% 30%, #9C9CFF, #5B5BD6); left: calc(50% - 360px); top: calc(50% - 260px); }
.df-tour-fx .b2 { width: 180px; height: 180px; background: radial-gradient(circle at 30% 30%, #FFC2E6, #F29AD0); left: calc(50% + 170px); top: calc(50% - 230px); animation-delay: .12s, 1.2s; }
.df-tour-fx .b3 { width: 220px; height: 220px; border-radius: 64px; transform: rotate(18deg); background: radial-gradient(circle at 30% 30%, #CFE3FF, #8FB5FF); left: calc(50% + 120px); top: calc(50% + 90px); animation-delay: .2s, 1.3s; }
.df-tour-fx .b4 { width: 120px; height: 120px; background: radial-gradient(circle at 30% 30%, #FFE3A8, #FFC56B); left: calc(50% - 300px); top: calc(50% + 140px); animation-delay: .28s, 1.4s; }
.df-tour-card.welcome { position: relative; animation: df-w-pop .7s cubic-bezier(.2, 1.3, .3, 1) .15s both; }
.df-tour-card.welcome > * { animation: df-w-up .55s cubic-bezier(.2, .8, .2, 1) both; }
.df-tour-card.welcome > :nth-child(1) { animation: none; }
.df-tour-card.welcome > :nth-child(2) { animation-delay: .45s; }
.df-tour-card.welcome > :nth-child(3) { animation-delay: .55s; }
.df-tour-card.welcome > :nth-child(4) { animation-delay: .65s; }
.df-tour-card.welcome > :nth-child(5) { animation-delay: .75s; }
.df-tour-card.welcome > :nth-child(6) { animation-delay: .85s; }
.df-tour-logo { position: relative; width: 72px; height: 72px; }
.df-tour-logo img { position: relative; z-index: 2; display: block; animation: df-w-logo .9s cubic-bezier(.2, 1.4, .3, 1) .3s both, df-w-bob 3.2s ease-in-out 1.4s infinite; }
.df-tour-logo .ring { position: absolute; inset: -10px; border-radius: 28px; background: conic-gradient(#8B8BF5, #7EC8FF, #F29AD0, #FFC56B, #8B8BF5); opacity: 0; filter: blur(10px); animation: df-w-ring 1s ease-out .5s forwards, df-spin 6s linear 1.5s infinite; }
.df-tour-logo .burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 1; }
.df-tour-logo .burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; background: var(--c); opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.4); animation: df-w-burst .9s cubic-bezier(.15, .8, .3, 1) calc(.6s + var(--d)) forwards; }
.df-tour-logo .burst i:nth-child(odd) { border-radius: 50%; }
.df-tour-hi { font-size: 14px; font-weight: 700; color: var(--ds-accent-ink); background: var(--ds-tint); padding: 4px 12px; border-radius: 999px; margin-top: 6px; }
@keyframes df-w-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes df-w-pop { 0% { opacity: 0; transform: translateY(24px) scale(.88); } 100% { opacity: 1; transform: none; } }
@keyframes df-w-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes df-w-logo { 0% { opacity: 0; transform: scale(.3) rotate(-20deg); } 70% { opacity: 1; transform: scale(1.12) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes df-w-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes df-w-ring { from { opacity: 0; transform: scale(.6); } to { opacity: .55; transform: scale(1); } }
@keyframes df-w-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-78px) scale(1); } }
@keyframes df-w-blob { from { opacity: 0; transform: scale(.4); } to { opacity: .55; transform: scale(1); } }
@keyframes df-w-float { from { translate: 0 0; } to { translate: 14px -18px; } }
@media (max-width: 760px) { .df-tour-fx .b1 { left: -90px; top: 6%; } .df-tour-fx .b2 { left: auto; right: -50px; top: 10%; } .df-tour-fx .b3 { left: auto; right: -70px; top: auto; bottom: 6%; } .df-tour-fx .b4 { left: -40px; top: auto; bottom: 14%; } }
@media (prefers-reduced-motion: reduce) {
  #df-tour.df-tour-welcome, .df-tour-hole.full, .df-tour-card.welcome, .df-tour-card.welcome > *, .df-tour-logo img, .df-tour-logo .ring, .df-tour-fx span { animation: none !important; opacity: 1; }
  .df-tour-fx span { opacity: .55; } .df-tour-logo .ring { opacity: .55; } .df-tour-logo .burst { display: none; }
}
