/*
 * BeautyPay Campaign CRM — VibeFarsi-inspired design layer (Bootstrap 5 RTL adapter)
 * Components: button, card, stat, badge, sidebar, table, data-table, input,
 * dialog, toast, stepper, jalali date-picker, timeline, empty-state, kanban.
 * Original adaptations for PHP 8.4 + Vanilla JS; no React runtime required.
 * Reference: https://vibefarsi.ir/components  and /templates/crm /templates/kanban
 */
:root {
  --accent:#C2185B;
  --accent-dark:#9c1148;
  --accent-light:#fff0f6;
  --accent-rgb:194,24,91;
  --canvas:#f7f7fb;
  --line:#e9e7ef;
  --dark:#241e2c;
  --muted:#77778a;
  --card:#fff;
  --radius:20px;
  --vf-surface:#ffffff;
  --vf-subtle:#faf8fb;
  --vf-border:#ebe6ef;
  --vf-text:#2b2434;
  --vf-muted:#7b788a;
  --vf-plum:#5f2143;
  --vf-focus:0 0 0 4px rgba(194,24,91,.13);
  --vf-shadow:0 12px 32px rgba(51,21,49,.042),0 2px 7px rgba(47,24,47,.025);
  --vf-easing:cubic-bezier(.2,.8,.2,1);
}
html {scroll-behavior:smooth;scroll-padding-top:20px}
body {
  color:var(--vf-text);
  background:radial-gradient(ellipse 580px 410px at 80% -210px,rgba(194,24,91,.065),transparent),var(--canvas);
  line-height:1.85;
  font-size:14px;
  -webkit-font-smoothing:antialiased;
}
body::selection {background:#f5c1d8;color:#391e31}
* {scrollbar-width:thin;scrollbar-color:#e0d7df transparent}
a {text-decoration-thickness:1px;text-underline-offset:3px}
h1,h2,h3,h4,.brandline strong,.metric-card strong {letter-spacing:-.35px}
h1 {font-weight:800}
h2,h3 {font-weight:800}
:focus-visible {outline:3px solid rgba(194,24,91,.42);outline-offset:3px}
button, a, input, textarea,select {transition:border-color .2s var(--vf-easing),box-shadow .2s var(--vf-easing),background-color .2s var(--vf-easing),color .2s var(--vf-easing)}
button:disabled {cursor:not-allowed;opacity:.58}

/* VibeFarsi Button / Brand & Ghost Variants */
.btn {
  border-radius:12px;
  min-height:40px;
  padding:8px 16px;
  font-size:13px;
  line-height:1.6;
  font-weight:750;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:none;
  white-space:normal;
}
.btn:active:not(:disabled) {transform:translateY(1px)}
.btn-primary {
  background:linear-gradient(135deg,#d82370,#b91450);
  color:#fff;
  border:1px solid #bd1955;
  box-shadow:0 4px 13px rgba(194,24,91,.13);
}
.btn-primary:hover,.btn-primary:focus-visible {
  background:linear-gradient(135deg,#c61a60,#97113f);
  color:#fff;
  border-color:#a11349;
  box-shadow:0 7px 19px rgba(194,24,91,.22);
}
.btn-light {background:#f8f6f9;border:1px solid #ebe7ee;color:#534658}
.btn-light:hover {background:#f0ebf1;border-color:#e3d8e3;color:#3b2c43}
.btn-outline-primary {background:#fff;border-color:#ead4de;color:var(--accent)}
.btn-outline-primary:hover {background:#fff0f6;border-color:#d68caa;color:#a6134d}
.btn-outline-light {background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.42);color:#fff}
.btn-outline-light:hover {background:rgba(255,255,255,.2);color:#fff;border-color:#fff}
.btn-sm {min-height:33px;padding:6px 11px;border-radius:9px;font-size:11.5px}
.btn-danger-soft {background:#fff0f2;color:#ab3c50;border:1px solid #f4dbe0}
button[data-act]:focus-visible,.btn:focus-visible {box-shadow:var(--vf-focus)}
.icon-btn {
  width:42px;height:42px;border:1px solid var(--vf-border);border-radius:13px;
  color:#5e5264;background:#fff;box-shadow:0 2px 8px #24101d05;
}
.icon-btn:hover {background:#fef2f7;color:var(--accent);border-color:#efd0dd}
.icon-btn svg,.vf-icon {width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto;vertical-align:middle}
.btn .vf-icon {width:16px;height:16px}

/* VibeFarsi Sidebar: grouped menu / active indicator / user identity */
.app-shell {min-height:100vh}
.sidebar {
  width:272px;min-width:272px;
  padding:26px 16px 16px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  border-left:1px solid #eee9ee;
  box-shadow:-4px 0 24px rgba(36,27,40,.012);
}
.brandline {margin:2px 8px 32px;gap:11px}
.brandmark {
  width:48px;height:48px;border-radius:16px;
  background:linear-gradient(148deg,#f44d96 0%,#c31a62 58%,#8e164c 100%);
  color:white;box-shadow:0 9px 20px rgba(194,24,91,.21);
  font-family:var(--crm-font) !important;font-size:25px;letter-spacing:-2px;
  position:relative;isolation:isolate;
}
.brandmark:after {content:'';position:absolute;inset:3px;border:1px solid rgba(255,255,255,.28);border-radius:13px;pointer-events:none}
.brandline strong {font-size:19px;line-height:1.35;font-weight:900;color:#342437}
.brandline small {font-size:11px;color:#97879a;letter-spacing:.1px}
.side-caption {font-size:10px;letter-spacing:.25px;color:#a09aaa;margin:4px 13px 12px;font-weight:700}
.sidebar nav {padding-left:3px}
.sidebar nav button {
  position:relative;min-height:46px;padding:11px 13px;border-radius:12px;
  margin:2px 0;color:#655d6e;font-size:13px;gap:12px;font-weight:650;
  border:1px solid transparent;
}
.sidebar nav button span {
  width:23px;height:23px;font-size:17px;display:grid;place-items:center;
  color:#928796;
}
.sidebar nav button span .vf-icon {width:19px;height:19px}
.sidebar nav button:hover {background:#faf6f9;color:#a01650}
.sidebar nav button.active {
  background:linear-gradient(90deg,#fff1f6,#fce4ee);
  color:#a3124c;border-color:#fae5ee;font-weight:800;
}
.sidebar nav button.active:before {
  content:'';width:3px;height:24px;position:absolute;right:-16px;top:50%;transform:translateY(-50%);
  background:#cd2464;border-radius:10px;
}
.sidebar nav button.active span {color:#b51652}
.side-bottom {margin-top:12px;border:1px solid #eee8ee;border-radius:16px;padding:12px 10px;background:#fcfafc;gap:10px}
.user-avatar {width:40px;height:40px;flex-shrink:0;border-radius:12px;background:#f6dbe8;color:#ae2157;font-size:17px}
.user-meta b {font-size:12.5px}
.user-meta small {font-size:10.5px}
.logout {border-radius:9px;width:34px;height:34px;display:grid;place-items:center;background:transparent}
.logout:hover {background:#ffedf2;color:var(--accent)}
.logout .vf-icon {width:18px;height:18px}

/* VibeFarsi navbar / content canvas */
.content-wrap {background:transparent}
.topbar {
  min-height:98px;height:auto;
  padding:20px clamp(20px,3vw,43px);
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid #efeaef;
  position:sticky;top:0;z-index:16;
}
.eyebrow {font-size:11.5px;color:#97829a;font-weight:650;letter-spacing:.2px}
.topbar h1 {font-size:23px;color:#2e2332;font-weight:850;line-height:1.35}
.top-actions {gap:12px}
.date-today {font-size:12px;color:#8e8192}
.profile-pill {border-radius:14px;padding:9px 14px;border:1px solid #eee8ee;background:#faf9fb;color:#4b3d50}
.green-dot {background:#18b98c;box-shadow:0 0 0 3px #dbf9ee}
.main-content {padding:30px clamp(17px,3vw,43px) 65px;max-width:1920px}
.page-head {margin:0 0 22px;align-items:flex-start;gap:12px}
.page-head h2 {color:#2e2635;font-size:22px;font-weight:850;line-height:1.45}
.page-head p {color:#8a8392;line-height:1.9;font-size:13px}
.page-actions {align-self:center}

/* VibeFarsi Card / Stat / Dashboard blocks */
.surface,.metric-card {
  background:var(--vf-surface);border:1px solid var(--vf-border);
  border-radius:20px;box-shadow:var(--vf-shadow);
}
.surface {padding:clamp(16px,2vw,25px);margin-bottom:20px}
.surface h3 {font-size:15px;font-weight:800;color:#382b3e;margin-bottom:17px}
.metric-grid {gap:15px;margin-bottom:22px}
.metric-card {
  padding:22px 21px 18px;min-height:170px;position:relative;overflow:hidden;
  transition:transform .2s var(--vf-easing),box-shadow .2s var(--vf-easing),border-color .2s;
}
.metric-card:hover {transform:translateY(-2px);border-color:#f0ccdc;box-shadow:0 14px 26px rgba(64,28,49,.075)}
.metric-card:after {
  content:'';position:absolute;top:0;right:22px;left:22px;height:2px;
  background:linear-gradient(90deg,transparent,rgba(194,24,91,.3),transparent);opacity:.6
}
.metric-card .metric-icon {
  border-radius:13px;width:43px;height:43px;background:#fdf0f6;color:#c31b5c;
  margin-bottom:18px;display:grid;place-items:center;
}
.metric-icon .vf-icon {width:21px;height:21px}
.metric-card:nth-child(2) .metric-icon {background:#eaf5ff;color:#367eb4}
.metric-card:nth-child(3) .metric-icon {background:#f1eaff;color:#7956ba}
.metric-card:nth-child(4) .metric-icon {background:#e6f8f1;color:#208b6a}
.metric-card:nth-child(5) .metric-icon {background:#fff4e6;color:#d49237}
.metric-card small {color:#898192;font-size:11.8px;margin-bottom:6px}
.metric-card strong {font-weight:850;color:#2b2331;font-size:clamp(18px,1.6vw,23px);line-height:1.7;white-space:normal;overflow-wrap:anywhere}
.welcome-hero {
  border-radius:23px;
  background:linear-gradient(116deg,#541631 0%,#8d194b 45%,#c42165 100%);
  padding:37px 40px;min-height:220px;margin-bottom:23px;
  box-shadow:0 16px 29px rgba(119,21,64,.12);
  isolation:isolate;overflow:hidden;
}
.welcome-hero:before {
  content:'';pointer-events:none;position:absolute;inset:0;z-index:-1;
  background:radial-gradient(circle at 12% 16%,rgba(255,255,255,.15),transparent 29%),
   repeating-linear-gradient(45deg,transparent,transparent 38px,rgba(255,255,255,.022) 39px);
}
.welcome-hero:after {
  content:'';border:1px solid rgba(255,255,255,.2);border-radius:50%;width:320px;height:320px;
  left:-58px;top:-65px;font-size:0;opacity:1;
  box-shadow:0 0 0 42px rgba(255,255,255,.035),0 0 0 95px rgba(255,255,255,.022);
}
.welcome-hero h2 {font-size:26px;max-width:730px;font-weight:850;color:white;line-height:1.6}
.welcome-hero p {color:#fce3ed;font-size:13px;max-width:650px;line-height:2}
.welcome-hero .quick-actions {position:relative;z-index:1;gap:11px}
.welcome-hero .btn-light {color:#81204d;background:white;border-color:white}
.welcome-hero .btn-light:hover {background:#fff3f8}
.tiny-list li {border-color:#f1edf2;padding:15px 2px;line-height:1.9}
.tiny-list li b {font-size:13px;font-weight:780}
.tiny-list small {line-height:1.8}
.notice {background:#fbf8fe;border:1px solid #eae4f3;border-right:3px solid #b18dd2;border-radius:14px;color:#584a61;padding:17px 19px;line-height:2}
.notice.warning {background:#fffaf1;border-color:#f5e5bd;border-right:3px solid #e4ab43;color:#695234}
.footer-tip {font-size:11.5px;color:#948b9a;line-height:2}

/* VibeFarsi Badge / Status */
.pill {
  padding:5px 11px;min-height:25px;line-height:1.35;
  border-radius:999px;background:#f3f1f5;color:#766a7d;
  font-size:11px;border:1px solid #ece8ef;font-weight:700;
}
.pill-success {background:#eafaf3;border-color:#cfefe1;color:#16835c}
.pill-warning {background:#fff7e9;border-color:#f8eacb;color:#9b6c18}
.pill-danger {background:#fff0f2;border-color:#f8d9e0;color:#bd4b5c}

/* VibeFarsi Data Table / Filters / Search */
.table-wrap {overflow:auto;border-radius:19px}
.data-table {font-variant-numeric:tabular-nums;text-align:right;border-collapse:separate;border-spacing:0;min-width:650px}
.data-table th {font-size:11.5px;padding:15px 13px;background:#fbf9fc;color:#898092;letter-spacing:.05px;border-bottom:1px solid #ede7ed}
.data-table td {font-size:12.5px;padding:15px 13px;border-bottom:1px solid #f2eef2;color:#4e4554}
.data-table tr:last-child td {border-bottom:0}
.data-table tbody tr:hover {background:#fcf8fb}
.data-table tbody td b {font-weight:800;color:#36283b}
.data-table .table-muted {color:#9b94a2;font-size:11px}
.data-table .btn {margin-inline:2px}
.toolbar {gap:11px;margin-bottom:19px}
.toolbar .search-input {max-width:340px}
.search-input,.nice-select,.message-area,.form-control,.form-select,.form-grid input,.form-grid textarea,.form-grid select {
  min-height:44px;border:1px solid #e5dfe8;border-radius:12px;background:#fff;
  color:#3c3041;padding:10px 13px;outline:0;
  box-shadow:inset 0 1px 1px rgba(54,37,54,.015);
}
.form-grid label,.field-label {font-size:12px;color:#5b4e60;font-weight:750;gap:7px;line-height:1.9}
.form-grid input::placeholder,.form-grid textarea::placeholder,.search-input::placeholder {color:#aaa1ac}
.search-input:focus,.nice-select:focus,.message-area:focus,.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus,.form-control:focus,.form-select:focus {
  border-color:#d45688;box-shadow:var(--vf-focus);background:#fff;
}
input[type=checkbox] {accent-color:var(--accent);width:16px;height:16px;cursor:pointer}
input[type=color] {padding:4px;height:45px;max-width:130px;cursor:pointer}
.form-grid {gap:15px}
.form-actions {padding-top:7px}
.link-btn {font-size:12px;font-weight:750}
.link-btn:hover {color:#8b1140;text-decoration:underline}

/* VibeFarsi Kanban template: movable columns/cards with clear colored stage metadata */
.board {gap:17px;padding:4px 3px 25px;scroll-snap-type:x proximity;min-height:56vh;scrollbar-color:#d5c9d3 #eeeaf0}
.board-col {
  flex:0 0 302px;background:#f4f2f7;border:1px solid #eae5ed;
  border-radius:18px;padding:10px;min-height:200px;max-height:78vh;
  scroll-snap-align:start;
}
.board-col.drag-over {background:#fff0f7;border-color:#db97b4;outline:2px dashed #c2185b;outline-offset:-4px}
.board-head {
  padding:11px 9px 15px;gap:10px;top:-10px;background:#f4f2f7;border-radius:13px;
  border-bottom:1px solid #e8e2eb;
}
.board-head h3 {font-size:12.5px;line-height:1.8;color:#46394b;font-weight:800}
.board-color {height:11px;width:11px;box-shadow:0 0 0 3px white;border:1px solid #fff}
.board-count {border:1px solid #e6e1e9;color:#796c7f;border-radius:8px;background:white;font-size:10px}
.board-head .handle {font-size:15px;cursor:grab;color:#988d9e}
.kanban-card {
  padding:16px;border-radius:13px;border:1px solid #ebe5ed;background:white;
  box-shadow:0 4px 14px rgba(56,37,63,.025);
  position:relative;overflow:hidden;
  transition:transform .16s var(--vf-easing),border-color .16s,box-shadow .16s;
}
.kanban-card:before {content:'';position:absolute;height:3px;top:0;right:0;left:0;background:linear-gradient(90deg,transparent,#eed7e2,transparent)}
.kanban-card:hover {transform:translateY(-2px);border-color:#e5c4d4;box-shadow:0 9px 21px rgba(63,30,54,.075)}
.kanban-card:focus-visible {outline:3px solid #e09ab8;outline-offset:-2px}
.kanban-card strong {font-size:12.7px;line-height:1.8;color:#362839;font-weight:850}
.kanban-card .tel {color:#8a7e90;font-size:11.5px}
.kanban-foot {border-top:1px solid #f2edf1;margin-top:14px;padding-top:10px;color:#94899c}
.card-counter {border-radius:7px;background:#f7f5f8;color:#776b7c}
.more-btn {border-color:#cec2d0;color:#806c82;border-radius:11px;background:#fcfafd}
.more-btn:hover {background:#faeef4;color:#ab2159;border-color:#e4b3c9}

/* VibeFarsi Dialog / Tabs / Timeline / Toast */
.modal-shade {background:rgba(26,14,32,.54);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:18px}
.modal-pane {
  border:1px solid rgba(255,255,255,.67);border-radius:23px;
  box-shadow:0 24px 90px rgba(27,14,32,.24);
  animation:vfDialogIn .22s var(--vf-easing) both;
}
.modal-head {padding:21px 25px;border-bottom:1px solid #f0ebf1}
.modal-head h2 {font-size:19px;color:#35283a}
.modal-inner {padding:23px 25px}
.tab-row {gap:4px;border-bottom:1px solid #f0ebf0;margin-top:20px}
.tab-row button {padding:11px 14px;border-radius:10px 10px 0 0;color:#8b7e8d}
.tab-row button:hover {background:#fcf5f9;color:#ad1d54}
.tab-row button.active {color:#bb1a59;background:#fff4f8;border-bottom:2px solid #c2185b}
.timeline {border-right:2px solid #f1dce7}
.timeline li:before {background:var(--accent);box-shadow:0 0 0 4px #fcebf3}
.timeline li b {font-size:12.5px;color:#45354b}
.timeline li p {font-size:12.5px;color:#696071}
.toast-message {
  bottom:24px;left:24px;max-width:min(420px,calc(100vw - 35px));
  padding:14px 18px 14px 52px;
  border-radius:14px;background:#24202c;
  color:white;box-shadow:0 13px 35px rgba(28,17,33,.24);
  border:1px solid rgba(255,255,255,.14);
  font-size:13px;animation:vfToastIn .22s var(--vf-easing) both;
}
.toast-message:before {content:'✓';display:grid;place-items:center;position:absolute;left:16px;top:50%;transform:translateY(-50%);width:26px;height:26px;background:#246d54;color:white;border-radius:9px}
.toast-message.error {background:#8a263c}
.toast-message.error:before {content:'!';background:#fff1f1;color:#a92243;font-weight:900}
.empty {
  border:1px dashed #e4d9e4;border-radius:17px;
  background:#fff;min-height:150px;padding:35px 20px;
  line-height:2;color:#8c8391;
}
.empty:before {content:'✦';display:block;margin:0 auto 9px;width:40px;height:40px;line-height:40px;border-radius:12px;color:#bf4277;background:#fcecf3;font-size:20px}
.loading {position:relative;color:#9a8699;padding:85px 20px;line-height:1.9}
.loading:before {content:'';display:block;margin:0 auto 12px;width:30px;height:30px;border-radius:50%;border:3px solid #f4d6e4;border-top-color:var(--accent);animation:vfSpin .8s linear infinite}

/* VibeFarsi Persian Date Picker — existing Jalali engine is retained */
.jalali-popup {width:min(340px,calc(100vw - 28px));border-radius:17px;padding:18px;border:1px solid #efe3eb;box-shadow:0 22px 55px rgba(46,28,44,.19)}
.calendar-head {margin-bottom:14px;font-size:13px;font-weight:850;color:#4a334b}
.calendar-head button {border:1px solid #efe7ee;border-radius:10px;padding:6px 12px;background:#fcf9fc}
.calendar-head button:hover {background:#fce8f1;color:#af1253}
.calendar-days {gap:5px}
.calendar-days button,.calendar-days span {border-radius:9px;font-size:12px;padding:8px 0}
.calendar-days .wk {color:#978c9c}
.calendar-days button:hover {background:#fff0f6}
.calendar-days button.today {box-shadow:inset 0 0 0 1.5px #df568d}
.calendar-days button.selected {background:var(--accent);color:#fff}
.calendar-footer {border-top:1px solid #f4ebf0;padding-top:9px}
.calendar-footer button {color:#b01551}

/* VibeFarsi Auth Card / Stepper — covers login.php and install.php */
.auth-body {
  background:radial-gradient(ellipse 640px 460px at 9% 8%,rgba(194,24,91,.11),transparent),
    radial-gradient(ellipse 520px 500px at 95% 90%,rgba(150,93,168,.075),transparent),#faf8fc;
  padding:26px 16px;
}
.login-box,.install-shell {
  border-radius:25px;padding:clamp(23px,3vw,39px);
  border:1px solid #f0e7ef;box-shadow:0 26px 76px rgba(69,31,59,.082);
  background:rgba(255,255,255,.95);position:relative;
}
.login-box:before,.install-shell:before {content:'';height:4px;position:absolute;top:0;right:15%;left:15%;background:linear-gradient(90deg,transparent,#c2185b,transparent);border-radius:15px}
.login-box {width:min(465px,100%)}
.login-box .brandline,.install-shell .brandline {margin:18px 0 30px}
.login-box h1 {font-size:25px;margin-bottom:8px;color:#34243a}
.login-box p.muted {font-size:13px;line-height:1.9}
.login-box .form-grid {margin-top:24px}
.login-box .auth-submit {min-height:49px;margin-top:5px;justify-content:space-between;padding-inline:19px;font-size:13px}
.auth-kicker {display:inline-flex;align-items:center;gap:8px;color:#8e6480;background:#fff3f8;border:1px solid #f5dfeb;padding:5px 12px;border-radius:99px;font-size:11px;font-weight:700}
.auth-kicker-dot {display:block;width:7px;height:7px;background:#cc3b78;border-radius:50%;box-shadow:0 0 0 3px #fadce9}
.footer-note {font-size:11.5px;color:#988e9b;margin-top:24px}
.install-shell {width:min(755px,100%)}
.install-shell .brandline {margin-bottom:26px}
.install-box {padding:24px 5px 6px}
.install-box h2 {font-size:21px}
.steps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.steps span {padding:11px 6px;display:grid;place-items:center;min-height:49px;border:1px solid #ece6ee;border-radius:12px;background:#faf8fb;color:#908796;text-align:center;line-height:1.5}
.steps span.selected {border-color:#edb5cc;color:#ae1450;background:#ffeff6;box-shadow:0 3px 12px #c2185b0d}
.checklist {border:1px solid #f0eaf0;border-radius:14px;padding:0 13px;background:#fff}
.checklist>div {padding:11px 6px;border-bottom:1px solid #f3eef3;font-size:12px}
.checklist strong {font-size:11px;padding:3px 10px;border-radius:7px}
.checklist strong.pass {background:#eaf9f2;color:#17845b}
.checklist strong.fail {background:#fff0f1;color:#ba334d}
.progress {height:10px;border-radius:99px;background:#f7e9ef;overflow:hidden}
.progress-bar {border-radius:99px;background:linear-gradient(90deg,#ad0f49,#ef498e)}

/* Native Bootstrap / browser color consistency */
.alert {border-radius:12px;font-size:12.5px;line-height:1.9;border-width:1px}
.alert-danger {color:#97304a;background:#fff1f3;border-color:#f4d4dd}
.btn-close:focus-visible {box-shadow:var(--vf-focus)}
::placeholder {font-family:var(--crm-font)}

/* Responsive RTL navigation / fixed-width kanban scrolling */
@keyframes vfSpin {to {transform:rotate(360deg)}}
@keyframes vfDialogIn {from {opacity:0;transform:translateY(14px) scale(.985)} to {opacity:1;transform:none}}
@keyframes vfToastIn {from {opacity:0;transform:translateY(12px)} to {opacity:1;transform:none}}
@media (max-width:1200px) {
  .metric-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .split-grid {grid-template-columns:1fr}
}
@media (max-width:880px) {
  .sidebar {right:-295px;box-shadow:-12px 0 42px #2b1a2b22;transition:right .23s var(--vf-easing)}
  .sidebar.open {right:0}
  .topbar {min-height:76px;padding:15px 19px}
  .main-content {padding:22px 16px 48px}
  .welcome-hero {padding:27px 25px;min-height:190px}
  .metric-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-head {align-items:flex-start}
  .date-today,.profile-pill {display:none}
  .mobile-shade {position:fixed;z-index:19;inset:0;background:rgba(19,11,21,.4);backdrop-filter:blur(3px)}
}
@media (max-width:540px) {
  .topbar h1 {font-size:19px}
  .page-head h2 {font-size:19px}
  .metric-grid {gap:10px}
  .metric-card {padding:16px;min-height:155px}
  .metric-card .metric-icon {width:38px;height:38px;margin-bottom:13px}
  .metric-card strong {font-size:18px}
  .welcome-hero {padding:22px 20px;border-radius:18px}
  .welcome-hero h2 {font-size:21px}
  .surface {padding:16px;border-radius:15px}
  .board-col {flex-basis:min(286px,84vw);max-height:70vh}
  .form-grid.two {grid-template-columns:1fr}
  .modal-shade {padding:10px;align-items:center}
  .modal-pane {border-radius:17px;max-height:92dvh}
  .modal-head {padding:15px 17px}
  .modal-inner {padding:17px}
  .steps {gap:5px}
  .steps span {font-size:10px;min-height:48px;padding:7px 2px}
  .login-box,.install-shell {padding:23px 18px}
  .toolbar .search-input {max-width:100%;width:100%}
  .toast-message {left:12px;bottom:12px;max-width:calc(100vw - 24px)}
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation-duration:.01ms !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}
