/* ═══════════════════════════════════════════════════
   APPLIX — OT Planner Style Theme
   Light green background, white cards, dark green accents
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f0fdf4;
  --bg2: #dcfce7;
  --g1: #14532d;
  --g2: #166534;
  --g3: #15803d;
  --g4: #16a34a;
  --g5: #22c55e;
  --g6: #86efac;
  --white: #ffffff;
  --card: #ffffff;
  --border: #dcfce7;
  --border2: #bbf7d0;
  --text: #0f172a;
  --text2: #374151;
  --text3: #64748b;
  --text4: #94a3b8;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warn: #d97706;
  --blue: #2563eb;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body, .dash-body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ══════════════════ LOGIN PAGE ══════════════════ */
.auth-body {
  background: var(--bg);
  min-height: 100vh; display: flex;
}
.auth-container { display: flex; width: 100%; min-height: 100vh; }

.auth-left {
  width: 45%; background: linear-gradient(160deg, var(--g1) 0%, var(--g2) 50%, var(--g3) 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 48px; position: relative; overflow: hidden;
}
.auth-left::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.05); top: -80px; right: -80px; }
.auth-left::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.04); bottom: -60px; left: -60px; }
.auth-left-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 320px; }
.brand-mark { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 32px; }
.brand-icon-wrap { width: 68px; height: 68px; background: rgba(255,255,255,.15); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 32px; border: 1px solid rgba(255,255,255,.2); margin-bottom: 8px; }
.brand-name { font-size: 26px; font-weight: 800; color: white; letter-spacing: -.5px; text-align: center; }
.brand-sub { font-size: 13px; color: rgba(255,255,255,.65); text-align: center; font-weight: 600; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 16px; border-radius: 20px; }
.hero-text h1 { font-size: 36px; font-weight: 800; color: white; line-height: 1.15; letter-spacing: -.8px; margin-bottom: 14px; text-align: center; }
.hero-text p { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.6; text-align: center; }
.left-footer { margin-top: 48px; font-size: 12px; color: rgba(255,255,255,.3); text-align: center; }
.deco { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.deco-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.deco-2 { width: 250px; height: 250px; bottom: -50px; left: -80px; background: rgba(255,255,255,.03); }
.deco-3 { width: 150px; height: 150px; top: 40%; right: 40px; background: rgba(255,255,255,.04); }

.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px; background: var(--bg); }
.auth-form-wrap { width: 100%; max-width: 420px; background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--border2); }
.form-header { margin-bottom: 24px; }
.form-header h2 { font-size: 24px; font-weight: 800; color: var(--g1); margin-bottom: 6px; letter-spacing: -.4px; }
.form-header p { font-size: 13px; color: var(--text3); }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 11px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.input-group { display: flex; align-items: center; border: 1.5px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #f8fafc; transition: all .15s; }
.input-group:focus-within { border-color: var(--g4); box-shadow: 0 0 0 3px rgba(22,163,74,.08); background: white; }
.input-prefix { padding: 0 14px; font-size: 13px; font-weight: 700; color: var(--g4); border-right: 1px solid #e2e8f0; height: 50px; display: flex; align-items: center; }
.input-group input { flex: 1; padding: 13px 14px; background: none; border: none; outline: none; font-size: 14px; color: var(--text); font-family: inherit; }
.input-group input::placeholder { color: var(--text4); }
.eye-btn { background: none; border: none; cursor: pointer; padding: 0 14px; color: var(--text4); display: flex; transition: color .15s; }
.eye-btn:hover { color: var(--g4); }
.btn-signin { width: 100%; padding: 14px; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--g3), var(--g4)); color: white; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; transition: all .15s; box-shadow: 0 4px 14px rgba(22,163,74,.25); letter-spacing: -.2px; }
.btn-signin:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22,163,74,.35); }
.btn-signin:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-footer { margin-top: 20px; text-align: center; font-size: 11px; color: var(--text4); }
.error-box { background: var(--danger-bg); border: 1px solid var(--danger-border); border-radius: 9px; padding: 10px 14px; font-size: 12px; color: var(--danger); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* ══════════════════ SIDEBAR ══════════════════ */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; min-width: 240px;
  background: white; border-right: 1px solid var(--border2);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 100; transition: transform .3s;
  box-shadow: 2px 0 16px rgba(0,0,0,.05);
}
.sb-head { padding: 18px 16px; border-bottom: 1px solid var(--border); }
.sb-logo { display: flex; align-items: center; gap: 10px; }
.sb-logo-box { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--g2), var(--g4)); display: flex; align-items: center; justify-content: center; }
.sb-brand { font-size: 15px; font-weight: 800; color: var(--g1); }
.sb-brand-sub { font-size: 10px; color: var(--text3); font-weight: 500; }
.sb-close { background: none; border: none; cursor: pointer; color: var(--text3); display: none; }
.sb-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.sb-group { font-size: 9px; font-weight: 700; color: var(--text4); letter-spacing: .08em; padding: 12px 8px 4px; text-transform: uppercase; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text2); text-decoration: none; font-size: 13px; font-weight: 500; transition: all .15s; margin-bottom: 2px; }
.sb-item:hover { background: var(--bg); color: var(--g2); }
.sb-item.active { background: #dcfce7; color: var(--g2); font-weight: 700; }
.sb-item svg { flex-shrink: 0; opacity: .6; }
.sb-item.active svg, .sb-item:hover svg { opacity: 1; }
.sb-mod-icon { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sb-mod-title { font-size: 13px; font-weight: 600; }
.sb-soon { font-size: 9px; font-weight: 700; background: #fef3c7; color: #d97706; padding: 2px 6px; border-radius: 4px; margin-left: auto; }
.sb-ext { margin-left: auto; opacity: .4; }
.sb-no-mod { font-size: 12px; color: var(--text4); padding: 12px; }
.sb-foot { padding: 12px 10px; border-top: 1px solid var(--border); }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg); }
.sb-user-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--g2), var(--g4)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: white; flex-shrink: 0; }
.sb-user-info { flex: 1; min-width: 0; }
.sb-user-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-sub { font-size: 10px; color: var(--text3); }
.sb-logout { background: none; border: none; cursor: pointer; color: var(--text3); padding: 4px; border-radius: 6px; transition: all .15s; display: flex; }
.sb-logout:hover { background: var(--danger-bg); color: var(--danger); }
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }

/* ══════════════════ MAIN AREA ══════════════════ */
.main-area { flex: 1; margin-left: 240px; display: flex; flex-direction: column; min-height: 100vh; }

/* ══════════════════ TOPBAR ══════════════════ */
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--border2); background: white; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.sb-toggle { background: none; border: none; cursor: pointer; color: var(--text3); padding: 6px; border-radius: 8px; transition: all .15s; display: flex; }
.sb-toggle:hover { background: var(--bg); color: var(--g2); }
.topbar-greet { flex: 1; }
.tg-sub { font-size: 10px; font-weight: 700; color: var(--text4); letter-spacing: .06em; text-transform: uppercase; }
.tg-title { font-size: 18px; font-weight: 800; color: var(--g1); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.btn-pill { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; background: var(--bg); border: 1px solid var(--border2); color: var(--g2); font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all .15s; }
.btn-pill:hover { background: var(--bg2); border-color: var(--g5); }
.ds-range-tabs { display: flex; gap: 4px; background: #f1f5f9; border-radius: 20px; padding: 3px; }
.rt-btn { background: none; border: none; padding: 5px 12px; border-radius: 16px; font-size: 11px; font-weight: 700; color: var(--text3); cursor: pointer; transition: all .15s; font-family: inherit; }
.rt-btn.active { background: white; color: var(--g2); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* ══════════════════ CONTENT ══════════════════ */
.dash-content { padding: 20px 24px; flex: 1; }
.section { padding: 20px 24px; }

/* ══════════════════ CARDS ══════════════════ */
.ds-card, .card-wrap, .section-card { background: white; border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.ds-card-head, .section-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.ds-card-title { font-size: 15px; font-weight: 700; color: var(--g1); }
.ds-card-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ══════════════════ HERO ══════════════════ */
.hero { background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 50%, var(--g3) 100%); border-bottom: none; }
.hero-inner { padding: 20px 24px; max-width: none; }
.hero-row { display: flex; align-items: center; gap: 12px; }
.hero-title h1 { font-size: 22px; font-weight: 800; color: white; }
.hero-title p { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }
.hero-sm { padding: 16px 0; }
.icon-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; cursor: pointer; color: white; padding: 8px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.icon-btn:hover { background: rgba(255,255,255,.25); }
.icon-btn.dark { background: var(--bg); border: 1px solid var(--border2); color: var(--text2); }
.icon-btn.dark:hover { background: var(--bg2); color: var(--g2); }

/* ══════════════════ STAT CARDS ══════════════════ */
.ds-stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.ds-metric { background: white; border: 1px solid var(--border2); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border-left: 3px solid var(--accent, var(--g4)); }
.m-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.m-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.m-lbl { font-size: 11px; font-weight: 600; color: var(--text3); }
.m-val { font-size: 28px; font-weight: 800; color: var(--g1); line-height: 1; }
.m-sub { font-size: 11px; color: var(--text3); margin-top: 4px; }

/* ══════════════════ CALENDAR ══════════════════ */
.cal-v3 { }
.cal-v3-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cal-v3-title { font-size: 16px; font-weight: 800; color: var(--g1); }
.cal-v3-sub { font-size: 11px; color: var(--text3); }
.cal-v3-right { display: flex; align-items: center; gap: 14px; }
.cal-v3-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text3); }
.cv-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cv-done { background: var(--g4); }
.cv-miss { background: #f87171; }
.cv-today { background: var(--g1); }
.cal-v3-nav { display: flex; gap: 6px; }
.btn-sq { width: 28px; height: 28px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border2); color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.btn-sq:hover { background: var(--bg2); color: var(--g2); }
.cal-v3-weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 6px; }
.cal-v3-weekdays div { text-align: center; font-size: 10px; font-weight: 700; color: var(--text3); padding: 4px; text-transform: uppercase; }
.cal-v3-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.ds-cell { border-radius: 14px; min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s; position: relative; }
.ds-cell:hover { transform: scale(1.06); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.ds-blank { min-height: 68px; }
.c-day { font-size: 14px; font-weight: 700; }
.ds-cell-icon { font-size: 18px; margin-top: 2px; }
.ds-cell-slots { font-size: 9px; font-weight: 700; }
.ds-today { background: linear-gradient(135deg, var(--g2), var(--g4)) !important; border-color: var(--g4) !important; box-shadow: 0 4px 14px rgba(22,163,74,.3) !important; }
.ds-today .c-day { color: white !important; font-weight: 800; }
.ds-today .ds-cell-slots { color: rgba(255,255,255,.8) !important; }
.ds-done { background: #dcfce7 !important; border-color: #86efac !important; }
.ds-done .c-day { color: var(--g2) !important; }
.ds-done .ds-cell-slots { color: var(--g4) !important; }
.ds-miss { background: #fef2f2 !important; border-color: #fecaca !important; }
.ds-miss .c-day { color: var(--danger) !important; }
.ds-miss .ds-cell-slots { color: var(--danger) !important; }
.ds-future { background: #f8fafc !important; border-color: #e2e8f0 !important; }
.ds-future .c-day { color: var(--text4) !important; }
.ds-sun { background: transparent !important; border-color: transparent !important; cursor: default; }
.ds-sun:hover { transform: none; box-shadow: none; }
.ds-sun .c-day { color: var(--text4) !important; font-size: 10px; }
.ds-cell-done-prof { border-color: #93c5fd !important; }
.ds-cell-done-pers { border-color: #f9a8d4 !important; }
.ds-cell-done-clin { border-color: #86efac !important; }

/* ══════════════════ CHARTS ROW ══════════════════ */
.ds-charts-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ds-chart-card { padding: 16px !important; }
.ds-card-head-sm { display: flex; flex-direction: column; margin-bottom: 12px; }
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut-legend { display: flex; flex-direction: column; gap: 6px; }
.donut-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text2); }
.donut-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.streak-body { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; }
.streak-num { font-size: 52px; font-weight: 800; color: var(--g3); line-height: 1; }
.streak-fire { font-size: 28px; margin: 6px 0; }
.streak-lbl { font-size: 12px; color: var(--text3); font-weight: 500; }

/* ══════════════════ TABLES ══════════════════ */
.tbl-wrap, .table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.ds-tbl, .users-table, .rpt-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ds-tbl th, .users-table th { padding: 10px 14px; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--text3); border-bottom: 2px solid var(--border2); white-space: nowrap; background: var(--bg); }
.ds-tbl td, .users-table td { padding: 11px 14px; color: var(--text2); border-bottom: 1px solid var(--border); }
.ds-tbl tr:hover td, .users-table tr:hover td { background: var(--bg); }
.ds-tbl tr:last-child td, .users-table tr:last-child td { border-bottom: none; }
.tbl-empty, .empty { text-align: center; padding: 32px; color: var(--text4); font-size: 13px; }
.t-time { color: var(--g4) !important; font-weight: 700; font-family: monospace; }
.t-name { font-weight: 700; color: var(--text) !important; }
.rpt-foot { font-size: 11px; color: var(--text3); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ══════════════════ REPORT TOOLS ══════════════════ */
.rpt-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rpt-date-group { display: flex; flex-direction: column; gap: 3px; }
.rpt-lbl { font-size: 9px; font-weight: 700; color: var(--text3); text-transform: uppercase; }
.rpt-date { background: var(--bg); border: 1.5px solid var(--border2); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-family: inherit; outline: none; transition: border-color .15s; }
.rpt-date:focus { border-color: var(--g4); }
.rpt-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); cursor: pointer; }
.rpt-check input { accent-color: var(--g4); }

/* ══════════════════ BUTTONS ══════════════════ */
.btn-primary-sm, .btn-primary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 9px; background: linear-gradient(135deg, var(--g3), var(--g4)); color: white; font-size: 12px; font-weight: 700; border: none; cursor: pointer; font-family: inherit; transition: all .15s; text-decoration: none; box-shadow: 0 2px 8px rgba(22,163,74,.2); }
.btn-primary-sm:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(22,163,74,.3); }
.btn-white { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 9px; background: rgba(255,255,255,.15); color: white; font-size: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,.25); cursor: pointer; font-family: inherit; transition: all .15s; text-decoration: none; }
.btn-white:hover { background: rgba(255,255,255,.25); }
.btn-ghost { background: var(--bg); border: 1.5px solid var(--border2); color: var(--text2); padding: 8px 16px; border-radius: 9px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; }
.btn-ghost:hover { background: var(--bg2); color: var(--g2); }

/* ══════════════════ PILLS & BADGES ══════════════════ */
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.pill-blue { background: #dbeafe; color: #1d4ed8; }
.pill-pink { background: #fce7f3; color: #be185d; }
.um-pill { background: var(--bg); color: var(--text2); border: 1px solid var(--border2); border-radius: 6px; padding: 2px 8px; font-size: 11px; display: inline-block; margin: 2px; }
.status.active { background: #dcfce7; color: var(--g2); border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.status.inactive { background: var(--danger-bg); color: var(--danger); border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700; }

/* ══════════════════ MODALS ══════════════════ */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(4px); }
.modal-card { position: relative; z-index: 1; background: white; border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-md); }
.modal-wide { max-width: 680px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 17px; font-weight: 800; color: var(--g1); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.modal-error, .error-box { background: var(--danger-bg); border: 1px solid var(--danger-border); border-radius: 8px; padding: 10px 14px; font-size: 12px; color: var(--danger); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* ══════════════════ FORMS ══════════════════ */
.input-plain { width: 100%; padding: 10px 14px; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: var(--radius-sm); color: var(--text); font-size: 13px; font-family: inherit; outline: none; transition: all .15s; }
.input-plain:focus { border-color: var(--g4); box-shadow: 0 0 0 3px rgba(22,163,74,.08); background: white; }
.input-plain::placeholder { color: var(--text4); }
select.input-plain option { background: white; color: var(--text); }
.field-label-dark { font-size: 10px; font-weight: 700; color: var(--text3); letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 6px; margin-top: 14px; }
.field-label-dark:first-child { margin-top: 0; }
.modules-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.mod-check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.mod-check input[type=checkbox] { accent-color: var(--g4); width: 14px; height: 14px; }
.mod-check-label { font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 5px; }
.mod-check-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ══════════════════ TOAST ══════════════════ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--g1); border: 1px solid var(--g3); color: white; padding: 10px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; z-index: 999; transition: transform .3s; box-shadow: var(--shadow-md); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ══════════════════ MAIN DASHBOARD ══════════════════ */
.profile-card { background: linear-gradient(135deg, var(--g1), var(--g3)); border: none; border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 16px; box-shadow: 0 4px 20px rgba(22,163,74,.2); }
.profile-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: white; border: 2px solid rgba(255,255,255,.3); flex-shrink: 0; }
.profile-info { flex: 1; }
.profile-name { font-size: 18px; font-weight: 800; color: white; }
.profile-sub { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }
.role { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.2); color: white; margin-top: 4px; }
.btn-white { background: rgba(255,255,255,.15) !important; }

.news-item { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 12px; }
.news-item:last-child { border-bottom: none; }
.news-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.news-sub { font-size: 11px; color: var(--text3); }
.news-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--bg); color: var(--text3); white-space: nowrap; }

.celeb-card { background: white; border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.celeb-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: white; flex-shrink: 0; }
.celeb-name { font-size: 13px; font-weight: 700; color: var(--text); }
.celeb-sub { font-size: 11px; color: var(--text3); }

.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.stat-card { background: white; border: 1px solid var(--border2); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-val { font-size: 22px; font-weight: 800; color: var(--g1); }
.stat-lbl { font-size: 11px; color: var(--text3); }

.range-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.range-tabs { display: flex; gap: 4px; background: #f1f5f9; border-radius: 20px; padding: 3px; }
.rangetab { background: none; border: none; padding: 6px 14px; border-radius: 16px; font-size: 12px; font-weight: 600; color: var(--text3); cursor: pointer; font-family: inherit; transition: all .15s; }
.rangetab.active { background: white; color: var(--g2); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.range-custom { display: flex; align-items: center; gap: 8px; }
.ds-date-input { background: var(--bg); border: 1.5px solid var(--border2); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-family: inherit; outline: none; }
.muted { color: var(--text3); font-size: 12px; }

.btn-icon { background: var(--bg); border: 1px solid var(--border2); color: var(--text2); padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; }
.btn-icon:hover { background: var(--bg2); color: var(--g2); }
.btn-icon.danger { color: var(--danger); border-color: var(--danger-border); }
.btn-icon.danger:hover { background: var(--danger-bg); }

.day-slots-list { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; }
.day-slot { background: var(--bg); border: 1px solid var(--border2); border-radius: 12px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 12px; }
.slot-time { font-size: 11px; font-weight: 700; color: var(--g4); font-family: monospace; min-width: 80px; }
.day-slot-body { flex: 1; }
.slot-activity-text { font-size: 13px; color: var(--text2); }
.role-office { background: #dbeafe; color: #1d4ed8; border-radius: 5px; padding: 1px 7px; font-size: 10px; font-weight: 700; display: inline-block; margin-bottom: 4px; }
.role-personal { background: #fce7f3; color: #be185d; border-radius: 5px; padding: 1px 7px; font-size: 10px; font-weight: 700; display: inline-block; margin-bottom: 4px; }
.role-professional { background: #dbeafe; color: #1d4ed8; border-radius: 5px; padding: 1px 7px; font-size: 10px; font-weight: 700; display: inline-block; margin-bottom: 4px; }

.mini-bar { height: 4px; background: var(--bg2); border-radius: 2px; width: 60px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.mini-fill { height: 100%; background: var(--g4); border-radius: 2px; }

.heatmap { display: flex; gap: 3px; overflow-x: auto; }
.hm-col { display: flex; flex-direction: column; gap: 3px; }
.hm-cell { width: 13px; height: 13px; border-radius: 3px; }
.hm-0 { background: #f1f5f9; }
.hm-1 { background: #bbf7d0; }
.hm-2 { background: #86efac; }
.hm-3 { background: #4ade80; }
.hm-4 { background: #16a34a; }
.heatmap-wrap { overflow-x: auto; padding-bottom: 8px; }
.cal-legend { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text3); }
.leg-item { display: flex; align-items: center; gap: 5px; }
.leg-dot { width: 12px; height: 12px; border-radius: 3px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.chart-head h3 { font-size: 14px; font-weight: 700; color: var(--g1); }
.chart-box { position: relative; height: 180px; }

.ds-load { text-align: center; padding: 32px; color: var(--text4); font-size: 13px; }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sb-close { display: flex; }
  .sb-overlay.show { display: block; }
  .main-area { margin-left: 0; }
  .ds-stat-row, .stats-grid { grid-template-columns: 1fr 1fr; }
  .ds-charts-row { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { width: 100%; }
}
@media (max-width: 480px) {
  .ds-stat-row, .stats-grid { grid-template-columns: 1fr; }
}
/* ???????????????????????????????????????????????????
   APPLIX DASHBOARD V2 ? Hero + Modules Grid + Compact Celebrations
??????????????????????????????????????????????????? */
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

.hero-strip { background: white; border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; box-shadow: var(--shadow); }
.hero-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--g2), var(--g4)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(22,101,52,.2); }
.hero-info { flex: 1; min-width: 0; }
.hero-row1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.hero-name { font-size: 15.5px; font-weight: 700; color: var(--g1); letter-spacing: -.2px; }
.hero-role { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bg2); color: var(--g2); display: inline-flex; align-items: center; gap: 4px; letter-spacing: .04em; text-transform: uppercase; }
.hero-role.admin { background: rgba(245,158,11,.14); color: #b45309; }
.hero-row2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text3); font-weight: 500; }
.hero-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta-item svg { opacity: .65; }
.hero-divider { width: 3px; height: 3px; border-radius: 50%; background: var(--text4); }
.hero-strip .btn-edit-profile { background: var(--bg); border: 1px solid var(--border2); color: var(--g2); padding: 8px 14px; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; transition: all .15s; flex-shrink: 0; }
.hero-strip .btn-edit-profile:hover { background: var(--bg2); border-color: var(--g4); color: var(--g1); }

.modules-grid { padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mod-card { background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: all .18s ease; cursor: pointer; min-height: 116px; }
.mod-card:hover { background: white; border-color: var(--g4); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,163,74,.1); }
.mod-card.disabled { cursor: not-allowed; opacity: .65; }
.mod-card.disabled:hover { transform: none; box-shadow: none; background: var(--bg); border-color: var(--border2); }
.mod-card-top { display: flex; align-items: center; justify-content: space-between; }
.mod-card-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.mod-card-status { font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .06em; }
.mod-card-status.live { background: var(--bg2); color: var(--g2); }
.mod-card-status.beta { background: rgba(245,158,11,.14); color: #b45309; }
.mod-card-status.soon { background: #f1f5f9; color: var(--text3); }
.mod-card-body { display: flex; flex-direction: column; gap: 3px; }
.mod-card-title { font-size: 13.5px; font-weight: 700; color: var(--g1); letter-spacing: -.1px; display: flex; align-items: center; gap: 6px; }
.mod-card-title .ext-ico { opacity: .5; }
.mod-card-desc { font-size: 11.5px; color: var(--text3); font-weight: 500; line-height: 1.45; }
.mod-empty { grid-column: 1 / -1; padding: 28px 16px; text-align: center; background: var(--bg); border: 1px dashed var(--border2); border-radius: var(--radius); }
.mod-empty-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--bg2); color: var(--g3); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.mod-empty-title { font-weight: 700; color: var(--g1); font-size: 13.5px; }
.mod-empty-sub { font-size: 12px; margin-top: 3px; color: var(--text3); }

.news-empty { padding: 28px 16px; text-align: center; }
.news-empty-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(147,51,234,.1); color: #9333EA; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.news-empty-title { font-weight: 700; color: var(--text); font-size: 13.5px; }
.news-empty-sub { font-size: 11.5px; margin-top: 3px; color: var(--text3); }

.celeb-list { padding: 6px 16px 14px; }
.celeb-row { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-bottom: 1px dashed var(--border2); }
.celeb-row:last-child { border-bottom: none; }
.celeb-row-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; flex-shrink: 0; box-shadow: 0 3px 8px rgba(0,0,0,.08); }
.celeb-row-info { flex: 1; min-width: 0; }
.celeb-row-name { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.celeb-row-sub { font-size: 11.5px; color: var(--text3); margin-top: 1px; }
.celeb-row-badge { font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.celeb-row-badge.bday { background: rgba(236,72,153,.1); color: #db2777; }
.celeb-row-badge.work { background: rgba(59,130,246,.1); color: #2563eb; }

@media (max-width: 1024px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .hero-strip { flex-wrap: wrap; padding: 12px 14px; }
  .hero-strip .btn-edit-profile { width: 100%; justify-content: center; margin-top: 4px; }
  .modules-grid { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .celeb-list { padding: 4px 12px 12px; }
  .celeb-row-name { font-size: 12.5px; }
}
/* ???????????????????????????????????????????????????
   APPLIX DASHBOARD V2 ? Hero + Modules Grid + Compact Celebrations
??????????????????????????????????????????????????? */
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

.hero-strip { background: white; border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; box-shadow: var(--shadow); }
.hero-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--g2), var(--g4)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(22,101,52,.2); }
.hero-info { flex: 1; min-width: 0; }
.hero-row1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.hero-name { font-size: 15.5px; font-weight: 700; color: var(--g1); letter-spacing: -.2px; }
.hero-role { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bg2); color: var(--g2); display: inline-flex; align-items: center; gap: 4px; letter-spacing: .04em; text-transform: uppercase; }
.hero-role.admin { background: rgba(245,158,11,.14); color: #b45309; }
.hero-row2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text3); font-weight: 500; }
.hero-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta-item svg { opacity: .65; }
.hero-divider { width: 3px; height: 3px; border-radius: 50%; background: var(--text4); }
.hero-strip .btn-edit-profile { background: var(--bg); border: 1px solid var(--border2); color: var(--g2); padding: 8px 14px; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; transition: all .15s; flex-shrink: 0; }
.hero-strip .btn-edit-profile:hover { background: var(--bg2); border-color: var(--g4); color: var(--g1); }

.modules-grid { padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mod-card { background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: all .18s ease; cursor: pointer; min-height: 116px; }
.mod-card:hover { background: white; border-color: var(--g4); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,163,74,.1); }
.mod-card.disabled { cursor: not-allowed; opacity: .65; }
.mod-card.disabled:hover { transform: none; box-shadow: none; background: var(--bg); border-color: var(--border2); }
.mod-card-top { display: flex; align-items: center; justify-content: space-between; }
.mod-card-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.mod-card-status { font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .06em; }
.mod-card-status.live { background: var(--bg2); color: var(--g2); }
.mod-card-status.beta { background: rgba(245,158,11,.14); color: #b45309; }
.mod-card-status.soon { background: #f1f5f9; color: var(--text3); }
.mod-card-body { display: flex; flex-direction: column; gap: 3px; }
.mod-card-title { font-size: 13.5px; font-weight: 700; color: var(--g1); letter-spacing: -.1px; display: flex; align-items: center; gap: 6px; }
.mod-card-title .ext-ico { opacity: .5; }
.mod-card-desc { font-size: 11.5px; color: var(--text3); font-weight: 500; line-height: 1.45; }
.mod-empty { grid-column: 1 / -1; padding: 28px 16px; text-align: center; background: var(--bg); border: 1px dashed var(--border2); border-radius: var(--radius); }
.mod-empty-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--bg2); color: var(--g3); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.mod-empty-title { font-weight: 700; color: var(--g1); font-size: 13.5px; }
.mod-empty-sub { font-size: 12px; margin-top: 3px; color: var(--text3); }

.news-empty { padding: 28px 16px; text-align: center; }
.news-empty-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(147,51,234,.1); color: #9333EA; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.news-empty-title { font-weight: 700; color: var(--text); font-size: 13.5px; }
.news-empty-sub { font-size: 11.5px; margin-top: 3px; color: var(--text3); }

.celeb-list { padding: 6px 16px 14px; }
.celeb-row { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-bottom: 1px dashed var(--border2); }
.celeb-row:last-child { border-bottom: none; }
.celeb-row-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; flex-shrink: 0; box-shadow: 0 3px 8px rgba(0,0,0,.08); }
.celeb-row-info { flex: 1; min-width: 0; }
.celeb-row-name { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.celeb-row-sub { font-size: 11.5px; color: var(--text3); margin-top: 1px; }
.celeb-row-badge { font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.celeb-row-badge.bday { background: rgba(236,72,153,.1); color: #db2777; }
.celeb-row-badge.work { background: rgba(59,130,246,.1); color: #2563eb; }

@media (max-width: 1024px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .hero-strip { flex-wrap: wrap; padding: 12px 14px; }
  .hero-strip .btn-edit-profile { width: 100%; justify-content: center; margin-top: 4px; }
  .modules-grid { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .celeb-list { padding: 4px 12px 12px; }
  .celeb-row-name { font-size: 12.5px; }
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   USER MGMT ??? Modal layout (modules picker + status switch)
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */

/* Modules picker grid */
.modules-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}
.mod-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background .12s;
  font-size: 13px;
  color: var(--text2);
  user-select: none;
}
.mod-check:hover { background: rgba(255,255,255,.6); }
.mod-check input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--g4);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}
.mod-check-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.mod-check-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.mod-picker-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px dashed var(--border2);
}
.btn-tiny {
  background: white;
  border: 1px solid var(--border2);
  color: var(--g2);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .12s;
}
.btn-tiny:hover { background: var(--bg2); border-color: var(--g4); }

/* STATUS toggle row in modal */
#activeWrap.row-2 {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border2);
}
#activeWrap .field-label-dark {
  margin: 0;
  flex-shrink: 0;
}
.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  user-select: none;
}
.switch-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--g4);
  cursor: pointer;
  margin: 0;
}

/* User list ??? Status badges (existing classes - ensure they look right) */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status.active { background: var(--bg2); color: var(--g2); }
.status.active::before { background: var(--g4); }
.status.inactive { background: #fef2f2; color: #b91c1c; }
.status.inactive::before { background: #dc2626; }

/* Toggle activate/deactivate button in row */
.btn-icon.toggle-on {
  color: var(--g3);
}
.btn-icon.toggle-on:hover {
  background: var(--bg2);
  color: var(--g1);
}
.btn-icon.toggle-off {
  color: #d97706;
}
.btn-icon.toggle-off:hover {
  background: #fef3c7;
  color: #b45309;
}



/* DAILY SCHEDULE - Activity Breakdown panel + 2-col layout */
.ds-overview { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
@media (max-width: 1100px) { .ds-overview { grid-template-columns: 1fr; } }
.breakdown-card { display: flex; flex-direction: column; padding: 18px; }
.bd-head { margin-bottom: 14px; }
.bd-title { font-size: 15px; font-weight: 700; color: var(--g1); letter-spacing: -.2px; }
.bd-sub { font-size: 11.5px; color: var(--text3); margin-top: 2px; font-weight: 500; }
.bd-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.bd-tab { background: transparent; border: none; padding: 7px 4px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: var(--text3); cursor: pointer; font-family: inherit; transition: all .15s; white-space: nowrap; }
.bd-tab:hover { color: var(--g2); }
.bd-tab.active { background: white; color: var(--g1); box-shadow: 0 2px 6px rgba(0,0,0,0.06); font-weight: 700; }

@media (max-width: 600px) {   }


.bd-chart-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.bd-center-num { font-size: 26px; font-weight: 800; color: var(--g1); letter-spacing: -.5px; line-height: 1; }
.bd-center-lbl { font-size: 10px; font-weight: 600; color: var(--text3); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }

.bd-legend::-webkit-scrollbar { width: 4px; }
.bd-legend::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.bd-leg-item { display: grid; grid-template-columns: 10px 1fr auto 38px; gap: 8px; align-items: center; padding: 5px 0; font-size: 12px; border-bottom: 1px dashed var(--border); }
.bd-leg-item:last-child { border-bottom: none; }
.bd-leg-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.bd-leg-name { font-weight: 600; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-leg-count { font-weight: 700; color: var(--text); font-size: 12px; }
.bd-leg-pct { font-weight: 600; color: var(--text3); font-size: 11px; text-align: right; }
.bd-empty { text-align: center; padding: 32px 16px; color: var(--text3); font-size: 12.5px; font-weight: 500; }

/* Breakdown layout v2 */

@media (max-width: 600px) {  }

/* Breakdown layout v3 - centered */
.bd-body { display: flex; flex-direction: column; align-items: center; gap: 18px; flex: 1; min-height: 220px; padding: 4px; }
.bd-chart-wrap { position: relative; width: 200px; height: 200px; flex-shrink: 0; }
.bd-chart-wrap canvas { width: 200px !important; height: 200px !important; }
.bd-legend { display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow-y: auto; padding-right: 4px; width: 100%; max-width: 360px; }


/* ═══════════════════════════════════════════════════
   APPLIX SIDEBAR — External Tools (collapsible groups)
═══════════════════════════════════════════════════ */
.sb-ext-group {
  margin: 0 0 4px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sb-ext-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  text-align: left;
  transition: background .14s, color .14s;
}
.sb-ext-head:hover { background: var(--bg); color: var(--g2); }
.sb-ext-ico { flex-shrink: 0; opacity: .7; color: var(--g3); }
.sb-ext-head:hover .sb-ext-ico { opacity: 1; }
.sb-ext-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-ext-count {
  font-size: 9.5px;
  font-weight: 700;
  background: var(--bg2);
  color: var(--g2);
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: .03em;
  flex-shrink: 0;
}
.sb-ext-chev {
  flex-shrink: 0;
  opacity: .55;
  transition: transform .2s ease;
}
.sb-ext-group.open .sb-ext-chev { transform: rotate(-180deg); }
.sb-ext-body {
  display: none;
  flex-direction: column;
  padding: 2px 0 6px 22px;
  gap: 1px;
  border-left: 2px solid var(--border2);
  margin: 2px 0 4px 18px;
}
.sb-ext-group.open .sb-ext-body { display: flex; }
.sb-ext-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border-radius: 6px;
  color: var(--text2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background .12s, color .12s;
  line-height: 1.3;
}
.sb-ext-link:hover { background: var(--bg); color: var(--g2); }
.sb-ext-link span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-ext-bullet {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text4);
  flex-shrink: 0;
}
.sb-ext-link:hover .sb-ext-bullet { background: var(--g4); }
.sb-ext-out {
  flex-shrink: 0;
  opacity: 0;
  color: var(--text3);
  transition: opacity .12s;
}
.sb-ext-link:hover .sb-ext-out { opacity: .8; }


/* ═══════════════════════════════════════════════════
   EMBED PAGE — iframe with top bar + blocked fallback
═══════════════════════════════════════════════════ */
.embed-area {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 0;
  background: var(--bg);
}
.embed-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: white;
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.embed-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  flex-shrink: 0;
}
.embed-back:hover { background: var(--bg2); color: var(--g1); border-color: var(--g4); }
.embed-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.embed-title-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--g1);
  letter-spacing: -.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.embed-title-group {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.embed-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.embed-reload, .embed-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all .15s;
  border: 1px solid var(--border2);
  background: var(--bg);
  color: var(--text2);
}
.embed-reload:hover, .embed-external:hover { background: var(--bg2); color: var(--g1); border-color: var(--g4); }
.embed-external { background: linear-gradient(135deg, var(--g3), var(--g4)); color: white; border-color: transparent; }
.embed-external:hover { color: white; background: linear-gradient(135deg, var(--g2), var(--g3)); border-color: transparent; transform: translateY(-1px); }

.embed-frame-wrap {
  flex: 1;
  position: relative;
  background: white;
  overflow: hidden;
}
.embed-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.embed-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  gap: 14px;
  z-index: 2;
}
.embed-loader-spin {
  width: 36px; height: 36px;
  border: 3px solid var(--bg2);
  border-top-color: var(--g4);
  border-radius: 50%;
  animation: embedSpin .8s linear infinite;
}
@keyframes embedSpin { to { transform: rotate(360deg); } }
.embed-loader-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text3);
}

.embed-blocked {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 32px 20px;
  text-align: center;
  z-index: 3;
  gap: 10px;
}
.embed-blocked-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(245,158,11,.12);
  color: #d97706;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.embed-blocked-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--g1);
  letter-spacing: -.2px;
}
.embed-blocked-sub {
  font-size: 13px;
  color: var(--text3);
  max-width: 480px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.embed-blocked-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--g3), var(--g4));
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  box-shadow: 0 4px 12px rgba(22,163,74,.25);
}
.embed-blocked-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22,163,74,.35); }

/* Sidebar external tools (collapsible) */
.sb-ext-group { margin: 0 0 4px 0; border-radius: var(--radius-sm); overflow: hidden; }
.sb-ext-head { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: transparent; border: none; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text2); text-align: left; transition: background .14s, color .14s; }
.sb-ext-head:hover { background: var(--bg); color: var(--g2); }
.sb-ext-ico { flex-shrink: 0; opacity: .7; color: var(--g3); }
.sb-ext-head:hover .sb-ext-ico { opacity: 1; }
.sb-ext-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-ext-count { font-size: 9.5px; font-weight: 700; background: var(--bg2); color: var(--g2); padding: 2px 6px; border-radius: 999px; letter-spacing: .03em; flex-shrink: 0; }
.sb-ext-chev { flex-shrink: 0; opacity: .55; transition: transform .2s ease; }
.sb-ext-group.open .sb-ext-chev { transform: rotate(-180deg); }
.sb-ext-body { display: none; flex-direction: column; padding: 2px 0 6px 22px; gap: 1px; border-left: 2px solid var(--border2); margin: 2px 0 4px 18px; }
.sb-ext-group.open .sb-ext-body { display: flex; }
.sb-ext-link { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border-radius: 6px; color: var(--text2); text-decoration: none; font-size: 12px; font-weight: 500; transition: background .12s, color .12s; line-height: 1.3; }
.sb-ext-link:hover { background: var(--bg); color: var(--g2); }
.sb-ext-link.active { background: var(--bg2); color: var(--g1); font-weight: 700; }
.sb-ext-link span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-ext-bullet { width: 4px; height: 4px; border-radius: 50%; background: var(--text4); flex-shrink: 0; }
.sb-ext-link:hover .sb-ext-bullet, .sb-ext-link.active .sb-ext-bullet { background: var(--g4); }

/* Sidebar collapsible JS init */


/* Sidebar - flat external tools list */
.sb-ext-flat { display: flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: var(--radius-sm); color: var(--text2); text-decoration: none; font-size: 12.5px; font-weight: 500; transition: background .12s, color .12s; margin-bottom: 1px; }
.sb-ext-flat:hover { background: var(--bg); color: var(--g2); }
.sb-ext-flat.active { background: var(--bg2); color: var(--g1); font-weight: 700; }
.sb-ext-flat-bullet { width: 6px; height: 6px; border-radius: 50%; background: var(--text4); flex-shrink: 0; }
.sb-ext-flat:hover .sb-ext-flat-bullet, .sb-ext-flat.active .sb-ext-flat-bullet { background: var(--g4); }
.sb-ext-flat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* User mgmt modal: external tools group headers */
.ext-picker { max-height: 280px; overflow-y: auto; }
.ext-picker::-webkit-scrollbar { width: 4px; }
.ext-picker::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.ext-group-header {
  grid-column: 1 / -1;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text3);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 4px 4px;
  margin-top: 4px;
  border-top: 1px dashed var(--border2);
}
.ext-group-header:first-child { border-top: none; margin-top: 0; padding-top: 2px; }


/* ══════════════════ DAILY SCHEDULE - SUBMIT PAGE ══════════════════ */
.sub-page { max-width: 800px; margin: 0 auto; padding: 16px; }

.sub-date-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--g3), var(--g4)); color: white; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 14px; box-shadow: 0 4px 14px rgba(22,163,74,0.2); }
.sub-date-icon { width: 38px; height: 38px; background: rgba(255,255,255,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sub-date-info { flex: 1; min-width: 0; }
.sub-date-text { font-size: 15px; font-weight: 700; }
.sub-date-sub { font-size: 11px; opacity: 0.85; margin-top: 1px; }
.sub-date-picker { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: white; padding: 6px 10px; border-radius: 8px; font-size: 12px; cursor: pointer; }

.sub-progress-card { background: white; border: 1px solid var(--border2); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.sub-progress-head { font-size: 14px; font-weight: 700; color: var(--g1); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sub-progress-icon { font-size: 16px; }
.sub-progress-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.sub-progress-fill { height: 100%; background: linear-gradient(90deg, var(--g4), #34d399); transition: width .3s; border-radius: 4px; }
.sub-progress-pct { text-align: right; font-size: 11px; color: var(--text3); font-weight: 600; margin-bottom: 12px; }
.sub-progress-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sub-stat { text-align: center; }
.sub-stat-num { font-size: 26px; font-weight: 800; line-height: 1; }
.sub-stat-num.green { color: var(--g4); }
.sub-stat-num.orange { color: #f59e0b; }
.sub-stat-num.blue { color: #3b82f6; }
.sub-stat-lbl { font-size: 11px; color: var(--text3); margin-top: 4px; font-weight: 600; }

.sub-slots-head { font-size: 16px; font-weight: 800; color: var(--g4); margin: 16px 0 10px; display: flex; align-items: center; gap: 8px; }
.sub-slots-icon { font-size: 18px; }

.sub-slot-card { background: white; border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); border-left: 3px solid #e5e7eb; }
.sub-slot-card.filled { border-left-color: var(--g4); background: #f0fdf4; }
.sub-slot-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--g1); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sub-slot-head svg { color: var(--g4); }

.sub-chip-row { margin-bottom: 10px; }
.sub-chip-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--text2); margin-bottom: 6px; }
.sub-chip-icon { font-size: 13px; }
.sub-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sub-chip { background: white; border: 1.5px solid #e2e8f0; color: var(--text2); padding: 5px 12px; border-radius: 18px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; font-family: inherit; }
.sub-chip:hover { border-color: var(--g4); color: var(--g2); }
.sub-chip.selected { background: var(--g4); color: white; border-color: var(--g4); box-shadow: 0 2px 6px rgba(22,163,74,0.25); }

.sub-textarea-wrap { margin-top: 10px; position: relative; }
.sub-textarea { width: 100%; min-height: 60px; padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 10px; background: #f8fafc; font-size: 13px; color: var(--text); font-family: inherit; resize: vertical; outline: none; transition: all .15s; }
.sub-textarea:focus { border-color: var(--g4); background: white; box-shadow: 0 0 0 3px rgba(22,163,74,0.08); }
.sub-counter { position: absolute; bottom: 6px; right: 10px; font-size: 10px; color: var(--text4); pointer-events: none; }

.sub-submit-bar { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(to top, var(--bg) 60%, transparent); margin-top: 14px; z-index: 10; }
.sub-submit-btn { width: 100%; padding: 14px; border: none; border-radius: 12px; background: linear-gradient(135deg, var(--g3), var(--g4)); color: white; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 14px rgba(22,163,74,0.3); transition: all .15s; font-family: inherit; }
.sub-submit-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22,163,74,0.4); }
.sub-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Mobile responsive: sidebar hidden by default below 768px (already in CSS), main-area full width */
@media (max-width: 768px) {
  .sub-page { padding: 12px; }
  .sub-slot-card { padding: 12px; }
  .sub-stat-num { font-size: 22px; }
  .sub-chip { padding: 4px 10px; font-size: 11px; }
  .sub-date-text { font-size: 14px; }
  .topbar-right .ds-range-tabs, .topbar-right .btn-pill span { display: none; }
  .topbar-right .btn-pill { padding: 7px 10px; }
  .main-area { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sb-overlay.active { display: block; }
  .sb-close { display: flex; }
}


/* Orderable checkbox list */
.ord-section { margin-bottom: 14px; }
.ord-section-head { font-size: 11px; font-weight: 800; color: #6B7280; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.ord-list { display: flex; flex-direction: column; gap: 5px; }
.ord-empty { padding: 10px; background: #F9FAFB; border: 1px dashed #E5E7EB; border-radius: 8px; color: #9CA3AF; font-size: 12px; text-align: center; }
.ord-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: white; border: 1px solid #E5E7EB; border-radius: 10px; }
.ord-item.selected { border-color: #10B981; background: #F0FDF4; }
.ord-item.available { background: #F9FAFB; }
.ord-num { width: 22px; height: 22px; background: #059669; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.ord-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ord-name { flex: 1; font-size: 13px; font-weight: 600; color: #111827; }
.ord-arrow { background: white; border: 1px solid #D1D5DB; border-radius: 6px; padding: 2px 8px; font-size: 11px; cursor: pointer; color: #059669; font-weight: 700; }
.ord-arrow:hover:not(:disabled) { background: #ECFDF5; border-color: #10B981; }
.ord-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.ord-remove { background: white; border: 1px solid #FCA5A5; color: #DC2626; border-radius: 6px; padding: 2px 8px; font-size: 11px; cursor: pointer; font-weight: 700; }
.ord-remove:hover { background: #FEE2E2; }
.ord-add { background: #059669; color: white; border: none; border-radius: 6px; padding: 4px 10px; font-size: 11px; cursor: pointer; font-weight: 700; }
.ord-add:hover { background: #047857; }


/* ========== Desktop layout for Daily Schedule submit page ========== */

/* Top row: Date card + Progress card side by side */
.sub-page .sub-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.sub-page .sub-top-row > .sub-date-card,
.sub-page .sub-top-row > .sub-progress-card {
  margin-bottom: 0;
  height: 100%;
}

/* Slot grid: 2 columns on desktop */
.sub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 80px;
}

/* Chips: 2x2 grid within slot card */
.sub-slot-card .sub-chip-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.sub-slot-card .sub-chip-row {
  margin-bottom: 0;
}

/* Make chip wrap horizontal scroll if too many */
.sub-slot-card .sub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Mobile responsive: back to single column */
@media (max-width: 1200px) {
  .sub-slot-card .sub-chip-rows { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sub-page .sub-top-row { grid-template-columns: 1fr; gap: 10px; }
  .sub-grid { grid-template-columns: 1fr; gap: 10px; }
  .sub-slot-card .sub-chip-rows { grid-template-columns: 1fr; }
}

/* Tighten slot card spacing for desktop density */
@media (min-width: 901px) {
  .sub-slot-card { padding: 18px 22px; margin-bottom: 0; }
  .sub-slot-head { margin-bottom: 14px; font-size: 16px; padding-bottom: 10px; font-weight: 700; }
  .sub-slot-card .sub-chip-rows { gap: 14px; margin-bottom: 14px; }
  .sub-slot-card .sub-chip-row { gap: 8px; }
  .sub-slot-card .sub-chip-label { font-size: 13px; margin-bottom: 8px; font-weight: 600; }
  .sub-slot-card .sub-chip-icon { font-size: 15px; }
  .sub-slot-card .sub-chips { gap: 6px; }
  .sub-slot-card .sub-chip { font-size: 13px; padding: 7px 14px; border-radius: 16px; }
  .sub-slot-card .sub-textarea-wrap { padding: 10px 14px; }
  .sub-slot-card .sub-textarea { font-size: 14px; min-height: 40px; padding: 4px 6px; }
  .sub-slot-card .sub-counter { font-size: 11px; }
  .sub-grid { gap: 14px; margin-bottom: 100px; }
}

/* Submit page full width */
.dash-content.sub-page { max-width: none !important; width: 100% !important; padding: 16px 24px !important; margin: 0 !important; }
.dash-content.sub-page .sub-top-row,
.dash-content.sub-page .sub-grid,
.dash-content.sub-page .sub-slots-head,
.dash-content.sub-page .sub-submit-bar { width: 100% !important; max-width: none !important; }
.main-area:has(.sub-page) { padding: 0 !important; max-width: none !important; }


/* Inline label + chips per row (desktop) */
@media (min-width: 901px) {
  .sub-slot-card .sub-chip-row {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: nowrap;
  }
  .sub-slot-card .sub-chip-label {
    flex-shrink: 0;
    min-width: 110px;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
  }
  .sub-slot-card .sub-chips {
    flex: 1;
    flex-wrap: wrap;
  }
}


/* Copy button below Submit */
.sub-submit-bar { display: flex; flex-direction: column; gap: 10px; }
.sub-copy-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 18px;
  background: white; color: #059669;
  border: 2px solid #059669; border-radius: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.sub-copy-btn:hover { background: #ECFDF5; }
.sub-copy-btn.copied { background: #059669; color: white; }
.sub-chip-add-btn{background:none;border:1.5px dashed #6366f1;color:#6366f1;padding:4px 10px;border-radius:20px;font-size:11px;font-weight:700;cursor:pointer;margin-left:4px}
.sub-chip-add-btn:hover{background:#f5f3ff}
.sub-chip-inline-input{border:1.5px solid #6366f1;border-radius:8px;padding:4px 8px;font-size:12px;outline:none;width:120px;margin-left:6px}
