:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --border: #e2e5ea;
  --text: #1c2536;
  --muted: #6b7280;
  --primary: #3b6cf6;
  --primary-dark: #2f57cc;
  --danger: #e5484d;
  --danger-dark: #c93b40;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.18);
  --radius: 10px;
  --high: #e5484d;
  --medium: #f2a13b;
  --low: #4aa96c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { font-size: 22px; }
.brand h1 { font-size: 18px; margin: 0; font-weight: 650; }
.whoami { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.whoami label { color: var(--muted); font-weight: 500; }

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.filters { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

/* Board */
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 20px 40px;
  align-items: start;
}
@media (max-width: 820px) { .board { grid-template-columns: 1fr; } }

.column {
  background: #eef0f4;
  border-radius: var(--radius);
  padding: 12px;
  min-height: 120px;
}
.column.drop-target { outline: 2px dashed var(--primary); outline-offset: -4px; }
.column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 6px 12px;
  font-weight: 650;
}
.column-head .count {
  background: #dfe3ea;
  color: var(--muted);
  border-radius: 20px;
  padding: 1px 9px;
  font-size: 12px;
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  cursor: grab;
  border-left: 3px solid var(--border);
}
.card:active { cursor: grabbing; }
.card.priority-high { border-left-color: var(--high); }
.card.priority-medium { border-left-color: var(--medium); }
.card.priority-low { border-left-color: var(--low); }
.card.dragging { opacity: 0.5; }
.card-title { font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.card-desc {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #eef0f4;
  color: var(--muted);
  font-weight: 500;
}
.chip.assignee { background: #e7edff; color: var(--primary-dark); }
.chip.due.overdue { background: #fde8e8; color: var(--danger-dark); }
.chip.prio-high { background: #fdecec; color: var(--danger-dark); }
.chip.prio-medium { background: #fef1e0; color: #a5641a; }
.chip.prio-low { background: #e6f5ec; color: #2f7d4f; }
.empty-hint { color: var(--muted); font-size: 13px; text-align: center; padding: 16px 8px; }

/* Buttons & inputs */
button { font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid transparent; padding: 8px 14px; }
.btn-primary { background: var(--primary); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: #eef0f4; }
.btn-danger { background: var(--danger); color: #fff; font-weight: 600; }
.btn-danger:hover { background: var(--danger-dark); }

input, select, textarea {
  font: inherit;
  color: var(--text);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary); }
textarea { resize: vertical; width: 100%; }
select { cursor: pointer; }

/* Dialogs */
dialog {
  border: none;
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow-lg);
  width: min(540px, calc(100vw - 32px));
}
dialog::backdrop { background: rgba(16, 24, 40, 0.45); }
#task-form, .staff-panel { padding: 22px; }
#task-form h2, .staff-panel h2 { margin: 0 0 16px; font-size: 18px; }
#task-form label, .staff-panel label { display: block; margin-bottom: 14px; font-weight: 500; color: var(--text); }
#task-form label input, #task-form label select, #task-form label textarea { width: 100%; margin-top: 5px; }
.row { display: flex; gap: 14px; }
.row label { flex: 1; }
.dialog-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dialog-actions .spacer { flex: 1; }

/* Staff manager */
.staff-list { list-style: none; padding: 0; margin: 0 0 14px; max-height: 340px; overflow-y: auto; }
.staff-list li {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px;
}
.staff-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.staff-name { font-weight: 500; }
.staff-list .remove { color: var(--danger); background: none; border: none; padding: 4px 8px; font-size: 13px; }
.staff-list .remove:hover { text-decoration: underline; }
.staff-list .link-btn { background: none; border: none; color: var(--accent, #3b6cf6); font-size: 13px; padding: 4px 6px; cursor: pointer; margin-left: auto; }
.staff-list .link-btn:hover { text-decoration: underline; }
.staff-editor { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.staff-editor .pf-field { margin-bottom: 10px; }
.staff-editor .pf-field.two { display: flex; gap: 10px; }
.staff-editor .pf-field.two > div { flex: 1; }
.staff-editor label { display: block; margin-bottom: 4px; font-weight: 500; font-size: 13px; }
.staff-editor .pf-hint { font-weight: 400; color: var(--muted, #8894a8); font-size: 11px; }
.staff-editor input, .staff-editor textarea { width: 100%; }
.staff-editor .pf-actions { text-align: right; }
.pf-photo-row { display: flex; align-items: center; gap: 10px; }
.pf-photo-preview { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: #e9ecf2; border: 1px solid var(--border); }
.pf-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.pf-photo-initial { font-weight: 700; color: #55617a; font-size: 18px; }

/* Photo avatars (replace the emoji where a person has uploaded one) */
.avatar-img {
  width: 1.5em; height: 1.5em; border-radius: 50%; object-fit: cover;
  vertical-align: middle; background: #e9ecf2;
}
.add-staff { display: flex; gap: 8px; margin-bottom: 16px; }
.add-staff input { flex: 1; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1c2536; color: #fff; padding: 10px 18px; border-radius: 8px;
  box-shadow: var(--shadow-lg); z-index: 100; font-weight: 500;
}

/* ---------------- Gamified dashboard ---------------- */

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 0; }
.tab {
  background: transparent; border: none; padding: 9px 16px; border-radius: 8px;
  font-weight: 600; color: var(--muted); font-size: 15px; white-space: nowrap;
}
.tab:hover { background: #e9ecf2; }
.tab.active { background: var(--primary); color: #fff; }

.view { padding: 16px 20px 48px; }

/* Hero */
.hero {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  background: linear-gradient(120deg, #3b6cf6, #9b5de5);
  color: #fff; border-radius: 14px; padding: 22px 24px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.hero-quote { font-size: 18px; font-weight: 650; line-height: 1.4; }
.hero #hero-new-task { background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.4); white-space: nowrap; }
.hero #hero-new-task:hover { background: rgba(255,255,255,0.28); }

/* Panels */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.panel h3 { margin: 0 0 14px; font-size: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h3 { margin: 0; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .dash-grid { grid-template-columns: 1fr; } }

/* Milestone thermometer */
.milestone-panel h3 { margin-bottom: 16px; }
.thermometer { height: 22px; background: #eef0f4; border-radius: 20px; overflow: hidden; }
.thermo-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #4aa96c, #f2a13b, #e5484d);
  border-radius: 20px; transition: width 0.8s cubic-bezier(.2,.8,.2,1);
}
.milestone-caption { margin-top: 10px; color: var(--muted); font-weight: 500; }

/* Employee of the Week */
.eow-panel h3 { margin-bottom: 14px; }
.eow-winner { display: flex; align-items: center; gap: 14px; }
.eow-avatar {
  font-size: 42px; width: 64px; height: 64px; display: grid; place-items: center;
  background: linear-gradient(135deg, #fff3d6, #ffe0a3); border-radius: 50%;
}
.eow-name { font-size: 18px; font-weight: 700; }
.eow-crown { font-size: 15px; }
.eow-stat { color: var(--muted); font-size: 13px; margin: 2px 0; }
.eow-title { font-size: 13px; font-weight: 600; color: var(--primary-dark); }
.eow-empty { color: var(--muted); }

/* Leaderboard */
.lb-toggle { display: flex; gap: 4px; background: #eef0f4; padding: 3px; border-radius: 8px; }
.lb-btn { background: transparent; border: none; padding: 6px 12px; border-radius: 6px; font-weight: 600; color: var(--muted); font-size: 13px; }
.lb-btn.active { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.leaderboard { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
}
.lb-row.top { background: linear-gradient(90deg, #fffdf5, #fff); border-color: #f0e2b8; }
.lb-rank { width: 30px; text-align: center; font-weight: 700; font-size: 18px; }
.lb-avatar { font-size: 26px; }
.lb-main { flex: 1; }
.lb-name { font-weight: 650; }
.lb-title { font-size: 12px; color: var(--muted); }
.lb-pts { font-size: 20px; font-weight: 800; color: var(--primary); }
.lb-pts span { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.lb-empty, .dundies .lb-empty { color: var(--muted); padding: 8px 0; }

/* Dundies */
.dundies-subtitle { color: var(--muted); font-size: 13px; font-weight: 600; }
.dundies { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dundie {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px; text-align: center;
}
.dundie.unlocked { background: linear-gradient(135deg, #f3f8ff, #fff); border-color: #cfe0ff; }
.dundie.locked { opacity: 0.6; filter: grayscale(0.4); }
.dundie-emoji { font-size: 34px; margin-bottom: 6px; }
.dundie-name { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.dundie-desc { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* Card chips: guide / checklist / covering */
.chip.brand { background: #1c2536; color: #fff; font-weight: 700; letter-spacing: 0.3px; }
.chip.recur { background: #e6f5ec; color: #2f7d4f; }
.chip.diff-easy { background: #eef0f4; color: var(--muted); }
.chip.diff-medium { background: #eef3ff; color: var(--primary-dark); }
.chip.diff-hard { background: #f3e8ff; color: #7a3ea8; font-weight: 700; }
.chip.attach-chip { background: #eef0f4; color: var(--muted); }

/* Attachments widget */
.attach-section { margin-bottom: 14px; }
.attach-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.attach-empty { font-size: 12.5px; color: var(--muted); }
.attach-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #f7f8fa; border: 1px solid var(--border); border-radius: 8px; }
.attach-name { flex: 1; font-size: 13px; color: var(--primary-dark); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-name:hover { text-decoration: underline; }
.attach-rm { background: none; border: none; color: var(--danger); cursor: pointer; padding: 2px 6px; flex-shrink: 0; }
.attach-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.attach-add .attach-link-url { flex: 1; min-width: 140px; padding: 6px 8px; font-size: 12.5px; }
.pb-attach { margin-top: 8px; font-size: 12px; color: var(--muted); }
.chip.guide { background: #e8f0ff; color: var(--primary-dark); }
.chip.checklist { background: #eef0f4; color: var(--muted); }
.chip.checklist.complete { background: #e6f5ec; color: #2f7d4f; }
.chip.covering { background: #f3e8ff; color: #7a3ea8; }

/* Hint text */
.hint { font-weight: 400; color: var(--muted); font-size: 12px; }

/* Checklist editor in task dialog */
.checklist-editor { margin-bottom: 14px; }
.checklist-label { font-weight: 500; margin-bottom: 6px; }
.checklist-items { list-style: none; padding: 0; margin: 0 0 8px; }
.checklist-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.checklist-item input[type="checkbox"] { width: 16px; height: 16px; }
.checklist-item span { flex: 1; }
.checklist-item span.done { text-decoration: line-through; color: var(--muted); }
.checklist-remove { background: none; border: none; color: var(--danger); padding: 2px 6px; }
.checklist-add { display: flex; gap: 8px; }
.checklist-add input { flex: 1; }

/* Annual leave overview */
.leave-year-grid { display: flex; flex-direction: column; gap: 4px; }
/* On phones the 12-month timeline scrolls inside its own box, never the page. */
@media (max-width: 560px) {
  .leave-year-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ly-row { min-width: 430px; }
}
.ly-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; }
.ly-header .ly-track { display: grid; grid-template-columns: repeat(12, 1fr); }
.ly-month { text-align: center; font-size: 10px; color: var(--muted); font-weight: 600; }
.ly-track { position: relative; }
.ly-track-bars { height: 22px; background: #f2f4f8; border-radius: 6px; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(100%/12 - 1px), var(--border) calc(100%/12 - 1px), var(--border) calc(100%/12)); }
.ly-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ly-bar { position: absolute; top: 3px; height: 16px; border-radius: 4px; min-width: 3px; }
.ly-bar.tentative { background: repeating-linear-gradient(45deg, #f2a13b, #f2a13b 4px, #f7bd6e 4px, #f7bd6e 8px); }
.ly-bar.confirmed { background: #4aa96c; }
.ly-legend { margin-top: 10px; font-size: 11px; color: var(--muted); }
.ly-key { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; }
.ly-key::before { content: ''; width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ly-key.tentative::before { background: repeating-linear-gradient(45deg, #f2a13b, #f2a13b 3px, #f7bd6e 3px, #f7bd6e 6px); }
.ly-key.confirmed::before { background: #4aa96c; }

/* Comp-off / overtime */
.co-balances { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.co-bal { border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.co-bal.pos { border-color: #b8e0c6; background: #f4fbf6; }
.co-bal.neg { border-color: #f3c2c2; background: #fdf3f3; }
.co-bal.co-clickable { cursor: pointer; transition: box-shadow .15s, transform .1s; }
.co-bal.co-clickable:hover { box-shadow: 0 0 0 2px var(--accent, #3b6cf6); transform: translateY(-1px); }
.co-use-hint { font-size: 11px; font-weight: 700; color: var(--accent, #3b6cf6); margin-top: 2px; }
.co-name { font-weight: 700; font-size: 13px; }
.co-hours { font-size: 22px; font-weight: 800; }
.co-days { font-size: 12px; color: var(--muted); }
.co-list { display: flex; flex-direction: column; gap: 6px; }
.co-entry { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #f7f8fa; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; }
.co-e-amt { font-weight: 800; min-width: 44px; }
.co-e-amt.up { color: #2f7d4f; }
.co-e-amt.down { color: var(--danger-dark); }
.co-e-info { flex: 1; }
.co-e-date { color: var(--muted); font-size: 11px; }
.co-e-del { background: none; border: none; color: var(--danger); cursor: pointer; padding: 2px 6px; }

/* Handover panel */
.handover-list { display: flex; flex-direction: column; gap: 12px; }
.handover-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.handover-card.soon { border-left: 4px solid var(--medium); }
.handover-card.active { border-left: 4px solid var(--primary); }
.handover-card.past { opacity: 0.7; }
.ho-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ho-people { display: flex; align-items: center; gap: 10px; }
.ho-avatar { font-size: 26px; }
.ho-title { font-size: 14px; }
.ho-dates { font-size: 12px; color: var(--muted); }
.ho-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.ho-status.soon { background: #fef1e0; color: #a5641a; }
.ho-status.active { background: #e7edff; color: var(--primary-dark); }
.ho-status.past { background: #eef0f4; color: var(--muted); }
.ho-ready { margin: 10px 0; font-size: 13px; font-weight: 500; }
.ho-ready.ok { color: #2f7d4f; }
.ho-ready.warn { color: var(--danger-dark); }
.ho-tasklist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ho-task {
  text-align: left; background: #f7f8fa; border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 10px; font-size: 13px; cursor: pointer;
}
.ho-task:hover { background: #eef0f4; }
.ho-task.missing { border-color: #f3c2c2; background: #fdf1f1; }
.ho-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ho-hint { font-size: 12px; color: var(--muted); }
.btn-warn { background: var(--medium); }
.btn-warn:hover { background: #d98a24; }

/* Notifications */
.notif-btn { position: relative; font-size: 16px; padding: 7px 10px; }
.notif-badge {
  position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff;
  border-radius: 20px; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px;
  display: grid; place-items: center; padding: 0 4px;
}
/* Author display:grid above would otherwise override the [hidden] attribute. */
.notif-badge[hidden] { display: none; }
.notif-panel {
  position: fixed; top: 62px; right: 20px; width: min(360px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 150; overflow: hidden;
}
.notif-head { padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--border); }
.notif-list { max-height: 400px; overflow-y: auto; padding: 8px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; padding: 10px 12px; border-radius: 8px; font-size: 13px; color: var(--text);
}
button.notif-item { cursor: pointer; }
button.notif-item:hover { background: #eef0f4; }
.notif-icon { font-size: 15px; }
.notif-item.overdue { color: var(--danger-dark); }
.notif-empty { padding: 16px; color: var(--muted); text-align: center; }

/* Unread badge on the Chat tab */
.tab-badge {
  display: inline-grid; place-items: center; margin-left: 6px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 20px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; vertical-align: middle;
}
.tab-badge[hidden] { display: none; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.chat-header .chat-online { margin-bottom: 0; }
.chat-sound { font-size: 12.5px; white-space: nowrap; }

/* Welcome / login overlay */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 500; padding: 20px;
  background: linear-gradient(135deg, #3b6cf6, #9b5de5);
  display: grid; place-items: center;
}
.welcome-overlay[hidden] { display: none; }
.welcome-card {
  background: var(--surface, #fff); border-radius: 16px; padding: 32px;
  width: min(380px, 100%); box-shadow: 0 24px 70px rgba(0,0,0,.35); text-align: center;
}
.welcome-logo { font-size: 44px; line-height: 1; }
.welcome-card h2 { margin: 8px 0 2px; }
.welcome-sub { color: var(--muted, #8894a8); margin: 0 0 16px; font-size: 13px; }
.welcome-greeting { font-size: 21px; font-weight: 700; margin: 2px 0 12px; color: var(--text); }
.welcome-greeting .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out infinite; }
.welcome-greeting #welcome-greeting-text { display: inline-block; }
.welcome-greeting.animate #welcome-greeting-text { animation: greetIn 0.5s ease; }
@keyframes wave {
  0%, 55%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}
@keyframes greetIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .welcome-greeting .wave, .welcome-greeting.animate #welcome-greeting-text { animation: none; }
}
.welcome-message { background: #eef3ff; color: #2954c8; border-radius: 10px; padding: 11px 14px; font-size: 13.5px; line-height: 1.5; margin: 0 0 20px; white-space: pre-wrap; }
.welcome-message[hidden] { display: none; }

/* Post-login welcome banner */
.login-greeting {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 20px 0; padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(120deg, #eef3ff, #f3edff);
  border: 1px solid #dfe4f5; color: #2954c8; font-size: 14px;
}
.login-greeting[hidden] { display: none; }
.login-greeting-text { flex: 1; line-height: 1.45; }
.login-greeting .lg-hi { font-weight: 700; }
.login-greeting .lg-msg { font-size: 13px; opacity: 0.92; margin-top: 2px; }
.login-greeting-close { background: none; border: none; color: #6a76a8; cursor: pointer; font-size: 15px; padding: 2px 6px; border-radius: 6px; }
.login-greeting-close:hover { background: rgba(41,84,200,0.1); }
@media (prefers-color-scheme: dark) {
  .login-greeting { background: linear-gradient(120deg, #1e2740, #262040); border-color: #33406b; color: #aec2ff; }
}
.welcome-card form { text-align: left; }
.welcome-card label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 14px; color: var(--text); }
.welcome-card select, .welcome-card input {
  width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; background: var(--surface, #fff); color: var(--text);
}
.welcome-enter { width: 100%; margin-top: 6px; padding: 12px; font-size: 15px; }
.welcome-error { background: #fdecec; color: #c0392b; padding: 9px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.welcome-error[hidden] { display: none; }
.welcome-hint { color: var(--muted, #8894a8); font-size: 12px; margin: 16px 0 0; }
.welcome-switch { display: block; width: 100%; background: none; border: none; color: var(--muted, #8894a8); font-size: 13px; margin-top: 12px; padding: 4px; cursor: pointer; }
.welcome-switch:hover { text-decoration: underline; color: var(--accent, #3b6cf6); }

/* Identity chip + role-based visibility */
.my-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #e9ecf2; cursor: pointer; padding: 0; overflow: hidden; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.my-avatar[hidden] { display: none; }
.my-avatar .avatar-img { width: 32px; height: 32px; border: none; }
.my-avatar:hover { box-shadow: 0 0 0 2px var(--accent, #3b6cf6); }
.whoami-id { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.role-chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.role-chip.mgr { background: #e8f0ff; color: #2954c8; }
.role-chip.staff { background: #eef0f4; color: #55617a; }
body.is-staff .mgr-only { display: none !important; }

/* Request-reassignment link in the task dialog */
.reassign-link { display: inline-block; margin-top: 6px; font-size: 12.5px; padding: 5px 8px; }
.reassign-link[disabled] { opacity: .7; cursor: default; }

/* Overtime approval states */
.co-badge { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 20px; margin-left: 4px; }
.co-badge.pend { background: #fff3d6; color: #9a6a00; }
.co-badge.rej { background: #fdecec; color: #c0392b; }
.co-badge.appr { background: #e4f6ea; color: #1f8a4c; }
.co-pending { margin: 12px 0; padding: 10px 12px; border: 1px solid #f1d99a; background: #fffaf0; border-radius: 10px; }
.co-pending-head { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.co-entry.pending { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-appr, .co-rej { padding: 4px 10px; font-size: 12.5px; }

/* Manager approvals hub — reassignment + overtime */
.mgmt-appr-sel { padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 12.5px; }
.mgmt-approval.reassign { border-left: 3px solid #9b5de5; }
.mgmt-approval.ot { border-left: 3px solid #f2a13b; }

/* Settings — backup section */
.settings-sep { border: none; border-top: 1px solid var(--border); margin: 22px 0 4px; }
.settings-subhead { margin: 12px 0 6px; font-size: 16px; font-weight: 800; }
/* Team & brands fields — full width, label above the control. */
.cfg-field { display: block; margin: 12px 0 14px; font-weight: 600; }
.cfg-field .hint { font-weight: 400; }
.cfg-field input, .cfg-field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 8px; font: inherit; box-sizing: border-box;
}
.cfg-field textarea { resize: vertical; line-height: 1.7; }

/* Task comments */
#task-comments-section { margin-top: 4px; }
.task-comments { max-height: 200px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 8px; margin-bottom: 8px; background: var(--bg, #f7f8fa); }
.tc-empty { color: var(--muted); font-size: 13px; padding: 6px; }
.tc-item { padding: 7px 8px; border-radius: 8px; margin-bottom: 6px; background: var(--surface, #fff); border: 1px solid var(--border); }
.tc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.tc-user { font-weight: 700; font-size: 12.5px; }
.tc-time { color: var(--muted); font-size: 11px; }
.tc-del { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.tc-del:hover { color: var(--danger); }
.tc-text { font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.task-comment-add { display: flex; gap: 8px; }
.task-comment-add input { flex: 1; }

/* My yearly goals (professional + personal) */
.yg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .yg-grid { grid-template-columns: 1fr; } }
.yg-section { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--bg, #f7f8fa); }
.yg-title { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.yg-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.yg-empty { color: var(--muted); font-size: 12.5px; padding: 2px; }
.yg-item { display: flex; align-items: center; gap: 8px; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; }
.yg-item input[type="checkbox"] { flex: none; }
.yg-text { flex: 1; font-size: 13.5px; word-break: break-word; }
.yg-item.done .yg-text { text-decoration: line-through; color: var(--muted); }
.yg-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.yg-del:hover { color: var(--danger); }
.yg-add { display: flex; gap: 6px; }
.yg-add input { flex: 1; padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }

/* Office GIFs (GIPHY) */
.office-gif-panel[hidden] { display: none; }
#office-gif { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.office-gif-img { max-width: 100%; max-height: 320px; border-radius: 10px; display: block; }
.gif-loading { color: var(--muted); font-size: 13px; padding: 20px; }
.gif-credit { font-size: 10.5px; color: var(--muted); align-self: flex-end; text-align: right; }
.gif-credit a { color: var(--muted); font-weight: 700; text-decoration: none; }
.gif-credit a:hover { text-decoration: underline; }

/* Pop-out GIF — no square frame, just the GIF floating in. */
#gif-pop { position: fixed; right: 20px; bottom: 20px; z-index: 400; opacity: 0; transform: translateY(12px) scale(.94); pointer-events: none; transition: opacity .28s ease, transform .28s cubic-bezier(.34,1.56,.64,1); }
#gif-pop.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.gif-pop-card { cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; }
.gif-pop-card img { max-width: 280px; max-height: 220px; border-radius: 16px; display: block; box-shadow: 0 18px 50px rgba(0,0,0,.38); }
#gif-pop:not(.framed) .gif-pop-card .gif-credit { text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.gif-pop-caption { font-weight: 800; font-size: 14px; text-align: center; color: var(--text, #1a1a2e); margin-bottom: 2px; }
/* Framed variant — card with a caption (the daily "dose of happiness"). */
#gif-pop.framed .gif-pop-card { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 18px; padding: 12px 12px 8px; box-shadow: 0 20px 54px rgba(0,0,0,.32); gap: 8px; }
#gif-pop.framed .gif-pop-card img { box-shadow: none; border-radius: 12px; }
/* Centered "GIF of the day" reveal on opening the app. */
#gif-pop.center { right: 0; left: 0; bottom: auto; top: 50%; display: flex; justify-content: center; transform: translateY(-50%) scale(.9); }
#gif-pop.center.show { transform: translateY(-50%) scale(1); }
#gif-pop.center .gif-pop-card img { max-width: min(74vw, 460px); max-height: 62vh; }

/* Chat GIF picker */
.chat-gif-btn { font-weight: 800; font-size: 12px; letter-spacing: .5px; border: 1px solid var(--border); padding: 8px 10px; }
.chat-gif-btn[hidden] { display: none; }
.chat-gif-picker { border: 1px solid var(--border); border-radius: 12px; background: var(--surface, #fff); padding: 10px; margin: 0 0 8px; box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,.1)); }
.chat-gif-picker[hidden] { display: none; }
.chat-gif-head { display: flex; gap: 8px; margin-bottom: 8px; }
.chat-gif-head input { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.gif-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; }
.gif-thumb { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; background: #eef0f4; transition: transform .1s; }
.gif-thumb:hover { transform: scale(1.04); box-shadow: 0 0 0 2px var(--accent, #3b6cf6); }
.chat-gif { max-width: 220px; max-height: 200px; border-radius: 10px; display: block; }

/* Feature access panel */
.access-note { color: var(--muted); font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
.access-table { display: flex; flex-direction: column; gap: 5px; }
.access-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; }
.access-row.access-head { border: none; padding: 2px 12px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.access-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.access-col { display: flex; justify-content: center; min-width: 90px; }
.access-toggle { width: 44px; height: 24px; border-radius: 20px; border: none; background: #cdd3e0; cursor: pointer; position: relative; padding: 0; transition: background .15s; }
.access-toggle.on { background: #4aa96c; }
.access-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.access-toggle.on .access-knob { left: 23px; }

/* Content tracker (video/reel shoots) */
.content-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.content-toolbar select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface, #fff); }
.content-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.content-pill { background: #eef0f4; border-radius: 20px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.content-progress { margin: 0 0 16px; }
.content-progress:empty { display: none; }
.cp-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cp-title { font-weight: 700; font-size: 13.5px; }
.cp-pct { font-size: 13px; color: var(--muted); font-weight: 600; }
.cp-bar { display: flex; height: 14px; border-radius: 20px; overflow: hidden; background: #eef0f4; }
.cp-seg { height: 100%; transition: width .3s; }
.cp-seg:not(:last-child) { border-right: 1px solid rgba(255,255,255,.6); }
.cp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.cp-leg { display: inline-flex; align-items: center; gap: 5px; }
.cp-leg b { color: var(--text); }
.cp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cp-dot.idea { background: #cbd2e0; } .cp-dot.to-shoot { background: #3b6cf6; } .cp-dot.shooting { background: #f2a13b; }
.cp-dot.editing { background: #9b5de5; } .cp-dot.done { background: #4aa96c; }

.content-list { display: block; }
/* Content kanban board — same lanes as the task Board. */
.content-board { padding: 0 0 24px; }
.content-board .column { min-height: 80px; }
.content-board .content-card { margin-bottom: 10px; }
.content-board .content-card.dragging { opacity: .5; }
.content-board .content-card:last-child { margin-bottom: 0; }
.content-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface, #fff); cursor: pointer; transition: box-shadow .15s, transform .1s; }
.content-card:hover { box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,.1)); transform: translateY(-1px); }
.content-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.content-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.content-status { flex: none; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.content-status.idea { background: #eef0f4; color: #55617a; }
.content-status.toshoot { background: #e8f0ff; color: #2954c8; }
.content-status.shooting { background: #fff3d6; color: #9a6a00; }
.content-status.editing { background: #f3edff; color: #6b3fc0; }
.content-status.done { background: #e4f6ea; color: #1f8a4c; }
.content-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.content-meta .chip.brand { color: #fff; font-weight: 700; padding: 2px 8px; border-radius: 20px; font-size: 11px; }
.content-inspo { color: var(--accent, #3b6cf6); font-weight: 700; text-decoration: none; }
.content-inspo:hover { text-decoration: underline; }
.content-cc { font-weight: 600; }

/* Activity feed */
.activity-feed { display: flex; flex-direction: column; gap: 2px; }
.act-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.act-item:last-child { border-bottom: none; }
.act-ico { font-size: 15px; line-height: 1.4; }
.act-body { flex: 1; }
.act-when { color: var(--muted); font-size: 11.5px; }
.act-empty { color: var(--muted); text-align: center; padding: 16px; }

/* Playbooks */
.playbooks-intro { color: var(--muted); margin: 0 0 16px; font-size: 13.5px; }
.sop-banner {
  background: linear-gradient(120deg, #3b6cf6, #9b5de5); color: #fff;
  border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow);
  display: grid; gap: 12px;
}
.sop-quote { font-size: 16px; font-weight: 650; line-height: 1.4; font-style: italic; }
.sop-progress-label { font-size: 13px; margin-bottom: 6px; }
.sop-progress-block .thermometer { height: 14px; background: rgba(255,255,255,0.25); }
.sop-progress-block .thermo-fill { background: linear-gradient(90deg, #ffe0a3, #4aa96c); }
.sop-champions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; }
.sop-champ-title { font-weight: 700; }
.sop-champ { background: rgba(255,255,255,0.18); padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.pb-author { margin-top: 10px; font-size: 12px; color: var(--primary-dark); font-weight: 600; }
.playbook-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pb-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; cursor: pointer; box-shadow: var(--shadow); border-top: 3px solid var(--primary);
  transition: transform 0.08s, box-shadow 0.15s;
}
.pb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pb-title { font-weight: 700; line-height: 1.3; }
.chip.pb-cat { background: #ede7ff; color: #6b3ea8; white-space: nowrap; }
.pb-steps { font-size: 12.5px; color: var(--muted); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.pb-empty { color: var(--muted); padding: 20px 4px; grid-column: 1 / -1; }

/* Insert-from-playbook control in task dialog */
.guide-insert { margin: -8px 0 14px; }
.guide-insert select { font-size: 13px; padding: 6px 8px; }
.inline-label { font-weight: 500; }

/* Management view */
.mgmt-hero { background: linear-gradient(120deg, #1c2536, #3b4a6b); color: #fff; border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.mgmt-title { margin: 0 0 4px; font-size: 20px; }
.mgmt-sub { font-size: 13px; opacity: 0.85; }
.mgmt-alerts-panel { border-left: 4px solid var(--medium); }
.mgmt-clear { color: var(--muted); padding: 6px 0; }
.mgmt-alert { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; margin-bottom: 8px; font-size: 13.5px; background: #f7f8fa; border: 1px solid var(--border); }
.mgmt-alert.risk { background: #fdecec; border-color: #f3c2c2; }
.mgmt-alert.attention { background: #fef3e6; border-color: #f6d9b0; }
.mgmt-alert-name { font-weight: 700; }
.mgmt-alert-why { color: var(--muted); }
.mgmt-alert.risk .mgmt-alert-why, .mgmt-alert.attention .mgmt-alert-why { color: var(--text); }

.mgmt-approval { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.mgmt-appr-info { font-size: 13.5px; }
.mgmt-appr-cover { font-size: 12px; color: var(--muted); }
.mgmt-appr-actions { display: flex; gap: 8px; }

.mgmt-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mgmt-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.mgmt-card.risk { border-color: #f3c2c2; }
.mgmt-card.attention { border-color: #f6d9b0; }
.mgmt-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mgmt-card-av { font-size: 26px; }
.mgmt-card-id { flex: 1; min-width: 0; }
.mgmt-card-name { font-weight: 700; }
.mgmt-card-role { font-size: 11px; color: var(--muted); }
.mgmt-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.mgmt-badge.ok { background: #e6f5ec; color: #2f7d4f; }
.mgmt-badge.attention { background: #fef3e6; color: #a5641a; }
.mgmt-badge.risk { background: #fdecec; color: var(--danger-dark); }
.mgmt-metrics { display: flex; justify-content: space-between; gap: 4px; }
.mgmt-metric { display: flex; flex-direction: column; align-items: center; flex: 1; }
.mgmt-metric .mm-num { font-size: 20px; font-weight: 800; }
.mgmt-metric .mm-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
.mgmt-metric.bad .mm-num { color: var(--danger-dark); }

.mgmt-assign-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 6px; }
.mgmt-assign-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; flex-wrap: wrap; }
.mgmt-assign-title { font-weight: 600; font-size: 13px; }
.mgmt-assign-brand { font-size: 10px; font-weight: 700; color: var(--muted); background: #eef0f4; padding: 1px 7px; border-radius: 20px; }
.mgmt-assign-due { font-size: 11px; color: var(--muted); }
.mgmt-assign-due.overdue { color: var(--danger-dark); font-weight: 600; }
.mgmt-assign-sel { flex-shrink: 0; padding: 5px 8px; font-size: 12.5px; }

/* Workload balance */
.mgmt-wl-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.mgmt-wl-name { min-width: 150px; font-weight: 600; font-size: 13px; }
.mgmt-wl-bar { flex: 1; background: #eef0f4; border-radius: 20px; height: 14px; overflow: hidden; }
.mgmt-wl-fill { display: block; height: 100%; background: var(--primary); border-radius: 20px; min-width: 2px; transition: width 0.4s; }
.mgmt-wl-fill.over { background: var(--danger); }
.mgmt-wl-fill.light { background: var(--low); }
.mgmt-wl-num { min-width: 100px; text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mgmt-wl-avg { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Completion trends */
.mgmt-trend-row { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.mgmt-trend-name { min-width: 150px; font-weight: 600; font-size: 13px; }
.mgmt-spark-row { flex: 1; display: flex; align-items: flex-end; gap: 6px; height: 44px; }
.mgmt-spark { flex: 1; background: #eef0f4; border-radius: 4px; height: 100%; display: flex; align-items: flex-end; overflow: hidden; }
.mgmt-spark-fill { width: 100%; background: linear-gradient(180deg, #3b6cf6, #9b5de5); border-radius: 4px; min-height: 2px; }
.mgmt-trend-total { min-width: 70px; text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mgmt-trend-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-left: 162px; margin-top: 4px; padding-right: 82px; }

/* Goals / KPIs */
#mgmt-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.mgmt-goal { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; }
.mgmt-goal:hover { background: #f7f8fa; }
.mgmt-goal.met { border-color: #b8e0c6; background: #f4fbf6; }
.mgmt-goal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mgmt-goal-who { font-weight: 700; font-size: 13px; }
.mgmt-goal-pct { font-weight: 800; font-size: 13px; color: var(--primary-dark); }
.mgmt-goal-title { font-size: 13px; margin-bottom: 10px; }
.mgmt-goal-period { color: var(--muted); font-size: 11px; }
.mgmt-goal-bar { background: #eef0f4; border-radius: 20px; height: 10px; overflow: hidden; }
.mgmt-goal-fill { display: block; height: 100%; background: linear-gradient(90deg, #3b6cf6, #4aa96c); border-radius: 20px; min-width: 2px; transition: width 0.4s; }

/* 1:1 notes */
.mgmt-notes-bar { margin-bottom: 10px; }
.mgmt-notes-person { padding: 7px 10px; font-weight: 600; }
.mgmt-notes-add { display: flex; gap: 8px; margin-bottom: 12px; }
.mgmt-notes-add textarea { flex: 1; }
.mgmt-notes-add button { align-self: flex-start; }
.mgmt-notes-list { display: flex; flex-direction: column; gap: 8px; }
.mgmt-note { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: #fffdf5; border: 1px solid #f0e2b8; border-radius: 10px; }
.mgmt-note-text { flex: 1; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.mgmt-note-meta { font-size: 11px; color: var(--muted); white-space: nowrap; }
.mgmt-note-del { background: none; border: none; color: var(--danger); cursor: pointer; padding: 2px 6px; font-size: 13px; flex-shrink: 0; }

.mgmt-export-btns { display: flex; gap: 8px; }
.mgmt-export-btns button { padding: 6px 12px; font-size: 12.5px; }
.mgmt-scorecard-wrap { overflow-x: auto; }
table.mgmt-scorecard { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13px; }
table.mgmt-scorecard th, table.mgmt-scorecard td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--border); }
table.mgmt-scorecard th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.3px; }
table.mgmt-scorecard td.sc-name, table.mgmt-scorecard th:first-child { text-align: left; font-weight: 600; }
table.mgmt-scorecard td.sc-bad { color: var(--danger-dark); font-weight: 700; }

/* Inventory (gifts & giveaways) */
.inv-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.inv-stat { background: #eef0f4; color: var(--text); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 20px; }
.inv-stat.low { background: #fdecec; color: var(--danger-dark); }
.inv-stat.util { background: #e7edff; color: var(--primary-dark); }
.inv-util-line { font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.inv-util-totals { display: flex; gap: 8px; margin-bottom: 12px; }
.inv-util-pill { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; }
.inv-util-pill.out { background: #e7edff; color: var(--primary-dark); }
.inv-util-pill.in { background: #e6f5ec; color: #2f7d4f; }
.inv-lowonly { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.inv-lowonly input { width: 15px; height: 15px; }
.inventory-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.inv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); cursor: pointer; }
.inv-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); transition: transform 0.08s, box-shadow 0.15s; }
.inv-card.low { border-color: #f3c2c2; }
.inv-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.inv-brand-tag { color: #fff; font-weight: 700; font-size: 10px; padding: 2px 9px; border-radius: 20px; letter-spacing: 0.3px; }
.inv-cat { font-size: 11px; color: var(--muted); font-weight: 600; }
.inv-name { font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.inv-qty-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.inv-qty { font-size: 30px; font-weight: 800; color: var(--text); }
.inv-unit { font-size: 13px; color: var(--muted); }
.inv-low-badge { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--danger-dark); background: #fdecec; padding: 3px 8px; border-radius: 20px; }
.inv-actions { display: flex; gap: 8px; }
.inv-actions button { flex: 1; padding: 7px 8px; font-size: 12.5px; font-weight: 600; }
.inv-out:hover { background: #fdecec; border-color: #f3c2c2; color: var(--danger-dark); }
.inv-in:hover { background: #e6f5ec; border-color: #b8e0c6; color: #2f7d4f; }

.inv-log { margin: 8px 0 4px; }
.inv-log-title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.inv-log-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 12.5px; border-top: 1px solid var(--border); }
.inv-log-amt { font-weight: 800; min-width: 44px; }
.inv-log-amt.up { color: #2f7d4f; }
.inv-log-amt.down { color: var(--danger-dark); }
.inv-log-reason { flex: 1; }
.inv-log-by { color: var(--muted); font-size: 11px; }

/* Brand Assets */
.assets-list { display: flex; flex-direction: column; gap: 18px; }
.asset-brand { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.asset-brand-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.asset-brand-name { margin: 0; font-size: 15px; }
.asset-count { font-size: 12px; color: var(--muted); }
.asset-upload-btn { margin-left: auto; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.asset-empty { color: var(--muted); font-size: 13px; padding: 4px 0; }
.asset-file { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.asset-file-icon { font-size: 26px; flex-shrink: 0; }
.asset-file-info { flex: 1; min-width: 0; }
.asset-file-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-file-sub { font-size: 11px; color: var(--muted); }
.asset-file-actions { display: flex; gap: 4px; flex-shrink: 0; }
.asset-dl, .asset-del {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  text-decoration: none; font-size: 15px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text);
}
.asset-dl:hover { background: #e7edff; border-color: #cfe0ff; }
.asset-del { color: var(--danger); }
.asset-del:hover { background: #fdecec; }

/* Events / displays */
.events-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.event-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; box-shadow: var(--shadow); }
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); transition: transform 0.08s, box-shadow 0.15s; }
.event-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.event-card-title { font-weight: 700; line-height: 1.3; }
.chip.event-status { white-space: nowrap; }
.event-status.status-planned { background: #eef0f4; color: var(--muted); }
.event-status.status-ongoing { background: #fef1e0; color: #a5641a; }
.event-status.status-completed { background: #e6f5ec; color: #2f7d4f; }
.event-status.status-cancelled { background: #fdecec; color: var(--danger-dark); }
.event-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.event-progress { background: #eef0f4; border-radius: 20px; height: 8px; overflow: hidden; margin-bottom: 8px; }
.event-progress-fill { background: linear-gradient(90deg, #4aa96c, #3b6cf6); height: 100%; border-radius: 20px; transition: width 0.4s; }
.event-card-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }

/* Event dialog: checklist + costs */
#event-dialog { width: min(680px, calc(100vw - 32px)); }
.event-section-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; }
.event-section-head h3 { margin: 0; font-size: 15px; }
.event-checklist { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.event-check-cat { background: #f2f4f8; font-weight: 700; font-size: 12px; padding: 6px 12px; color: var(--text); }
.event-check-row { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--border); }
.event-check-row input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; }
.event-check-label { flex: 1; font-size: 13px; }
.event-check-label.done { text-decoration: line-through; color: var(--muted); }
.event-check-note { width: 140px; padding: 4px 8px; font-size: 12px; }
.event-costs { display: flex; flex-direction: column; gap: 6px; }
.event-cost-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.event-cost-row input { padding: 6px 8px; font-size: 12.5px; }
.ec-medium { flex: 1 1 120px; }
.ec-desc { flex: 2 1 140px; }
.ec-cost { width: 80px; }
.ec-psup { flex: 1 1 120px; }
.event-cost-total { text-align: right; font-weight: 700; margin-top: 10px; }
.event-giveaways { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.event-gv-hint { font-size: 12.5px; color: var(--muted); }
.event-gv-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #f7f8fa; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.event-gv-qty-tag { font-weight: 800; color: var(--primary-dark); background: #e7edff; padding: 2px 8px; border-radius: 6px; }
.event-gv-name { flex: 1; }
.event-gv-by { font-size: 11px; color: var(--muted); }
.event-giveaway-add { display: flex; gap: 8px; align-items: center; }
.event-giveaway-add select { flex: 1; min-width: 0; }
.event-giveaway-add input { width: 80px; }
@media (max-width: 560px) { .event-check-note { width: 100px; } }

/* Settings dialog */
#settings-form .check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 500; }
#settings-form .check input { width: 16px; height: 16px; margin: 0; }
#settings-form .hint { display: block; margin-bottom: 14px; line-height: 1.5; }

/* Per-brand breakdown */
.brand-breakdown { display: flex; flex-direction: column; gap: 10px; }
.brand-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; }
.brand-tag { color: #fff; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 20px; text-align: center; letter-spacing: 0.3px; }
.brand-bar { background: #eef0f4; border-radius: 20px; height: 12px; overflow: hidden; }
.brand-bar-fill { height: 100%; border-radius: 20px; min-width: 2px; transition: width 0.5s; }
.brand-counts { font-size: 12px; color: var(--muted); white-space: nowrap; }
.team-nums .streak, .lb-streak { color: #d9822b; font-weight: 700; }
.lb-streak { font-size: 12px; }

/* Marketing Plan — overview + view toggle */
.plan-summary-bar { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-viewtoggle { display: inline-flex; gap: 4px; background: #eef0f4; padding: 3px; border-radius: 8px; }
.pv-btn { background: transparent; border: none; padding: 6px 12px; border-radius: 6px; font-weight: 600; color: var(--muted); font-size: 13px; cursor: pointer; }
.pv-btn.active { background: #fff; color: var(--text); box-shadow: var(--shadow); }

/* Compact year grid (brands × months) */
.pov-grid-wrap { overflow-x: auto; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.pov-grid { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 12px; }
.pov-grid th, .pov-grid td { text-align: center; }
.pov-grid thead th { padding: 9px 4px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pov-grid thead th.pov-grid-now { color: var(--primary-dark); background: #eef3ff; border-radius: 8px 8px 0 0; }
.pov-grid-brand { text-align: left; padding: 4px 10px; }
.pov-grid-tag { display: inline-block; color: #fff; font-weight: 700; font-size: 10px; padding: 2px 9px; border-radius: 20px; letter-spacing: 0.3px; }
.pov-grid-cell { width: 42px; height: 34px; border: 1px solid #f0f1f4; color: #1c2536; font-weight: 700; }
.pov-grid-cell.now { box-shadow: inset 0 0 0 2px #cfe0ff; }

/* Collapsible month list */
.pov-list { display: flex; flex-direction: column; gap: 8px; }
.pov-mrow { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.pov-mhead { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; padding: 12px 14px; cursor: pointer; font-size: 14px; }
.pov-mhead:hover { background: #f7f8fa; }
.pov-mchevron { color: var(--muted); font-size: 12px; width: 12px; flex-shrink: 0; }
.pov-mname { font-weight: 700; min-width: 78px; flex-shrink: 0; }
.pov-mbar { display: flex; height: 8px; border-radius: 20px; overflow: hidden; background: #eef0f4; flex: 1; max-width: 220px; }
.pov-mseg { min-width: 3px; }
.pov-mmeta { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; margin-left: auto; }
.pov-mbody { padding: 2px 14px 12px; }

.pov-item {
  display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; margin-bottom: 6px;
  background: #f7f8fa; border: 1px solid var(--border); border-left: 3px solid var(--muted);
  border-radius: 8px; padding: 7px 9px; font-size: 12.5px; cursor: pointer;
}
.pov-item:hover { background: #eef0f4; }
.pov-item.done .pov-title { text-decoration: line-through; color: var(--muted); }
.pov-kind { flex-shrink: 0; font-size: 12px; }
.pov-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pov-brand { flex-shrink: 0; font-size: 10px; font-weight: 700; color: var(--muted); }

/* Annual Plan — Gantt timeline */
.plan-summary { font-weight: 700; color: var(--text); background: #eef0f4; padding: 6px 14px; border-radius: 20px; font-size: 13px; display: inline-block; }
.gantt-brand-tag { display: inline-block; color: #fff; font-weight: 700; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-right: 6px; vertical-align: middle; letter-spacing: 0.2px; }
.plan-legend { display: flex; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.plan-scroll { overflow-x: auto; padding-bottom: 10px; }
.gantt { min-width: 880px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.gantt-header, .gantt-row { display: grid; grid-template-columns: 170px 1fr; }
.gantt-header { background: #f7f8fa; position: sticky; top: 0; z-index: 1; }
.gantt-months { display: grid; grid-template-columns: repeat(12, 1fr); }
.gantt-month {
  text-align: center; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 10px 0; border-left: 1px solid var(--border);
}
.gantt-month.now { background: #e7edff; color: var(--primary-dark); }
.gantt-rowhead { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; border-top: 1px solid var(--border); }
.gantt-header .gantt-rowhead { border-top: none; font-weight: 700; }
.gantt-item-title { font-weight: 600; font-size: 13px; line-height: 1.3; }
.gantt-item-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.gantt-row { cursor: pointer; }
.gantt-row:hover { background: #f7f8fa; }
.gantt-track {
  position: relative; height: 46px; border-top: 1px solid var(--border);
  background-image: repeating-linear-gradient(
    to right, transparent 0,
    transparent calc(100% / 12 - 1px),
    var(--border) calc(100% / 12 - 1px),
    var(--border) calc(100% / 12));
}
.gantt-bar {
  position: absolute; top: 9px; height: 28px; border-radius: 6px; color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center;
  padding: 0 8px; overflow: hidden; white-space: nowrap; box-shadow: var(--shadow);
}
.gantt-bar.status-planned { opacity: 0.9; }
.gantt-bar.status-done { opacity: 0.5; }

/* Chat + presence */
.pres-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: #c3c9d4; vertical-align: middle; }
.pres-dot.online { background: #2fbf6b; box-shadow: 0 0 0 2px #d6f5e3; }
.pres-dot.away { background: #f2a13b; }
.pres-dot.offline { background: #c3c9d4; }
.chat-online { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chat-presence { font-size: 12px; font-weight: 600; padding: 4px 12px 4px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.chat-presence::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: #c3c9d4; }
.chat-presence.online::before { background: #2fbf6b; }
.chat-presence.away::before { background: #f2a13b; }
.chat-presence.online { color: var(--text); }
.chat-presence.offline { color: var(--muted); }
.chat-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: 62vh; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.chat-empty { color: var(--muted); text-align: center; margin: auto; }
.chat-day { text-align: center; font-size: 11px; color: var(--muted); margin: 10px 0 4px; }
.chat-msg { display: flex; }
.chat-msg.mine { justify-content: flex-end; }
.chat-bubble { max-width: 78%; background: #f2f4f8; border-radius: 12px; padding: 8px 12px; }
.chat-msg.mine .chat-bubble { background: #e7edff; }
.chat-user { font-size: 11px; font-weight: 700; color: var(--primary-dark); margin-bottom: 2px; }
.chat-text { font-size: 13.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-time { font-size: 10px; color: var(--muted); text-align: right; margin-top: 2px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fafbfc; }
.chat-input input { flex: 1; }

/* Task requests inbox */
.inbox-panel { border-left: 4px solid var(--primary); }
.inbox-head { font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0 6px; }
.inbox-head:first-child { margin-top: 0; }
.inbox-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 6px; flex-wrap: wrap; }
.inbox-row.incoming { background: #eef3ff; border-color: #cfe0ff; }
.inbox-row.rejected { background: #fdf3f3; border-color: #f3c2c2; }
.inbox-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.inbox-title { font-weight: 600; font-size: 13.5px; }
.inbox-brand { font-size: 10px; font-weight: 700; color: var(--muted); background: #fff; padding: 1px 7px; border-radius: 20px; }
.inbox-actions { display: flex; align-items: center; gap: 8px; }
.inbox-from, .inbox-wait, .inbox-reason { font-size: 12px; color: var(--muted); }
.inbox-reason { font-style: italic; }
.inbox-btn { padding: 5px 12px; font-size: 12.5px; }
.chip.assign-pending { background: #eef3ff; color: var(--primary-dark); }
.chip.assign-rejected { background: #fdecec; color: var(--danger-dark); }

/* My Notes */
.mynotes-add { display: flex; gap: 8px; margin-bottom: 12px; }
.mynotes-add textarea { flex: 1; }
.mynotes-add button { align-self: flex-start; }
.mynotes-list { display: flex; flex-direction: column; gap: 8px; }
.mynote { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: #fffdf5; border: 1px solid #f0e2b8; border-radius: 10px; }
.mynote-text { flex: 1; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.mynote-actions { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }
.mynote-totask { padding: 4px 10px; font-size: 12px; }
.mynote-del { background: none; border: none; color: var(--danger); cursor: pointer; padding: 2px 6px; }

/* Birthdays & anniversaries */
.celebrate-banner {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  background: linear-gradient(120deg, #ff9a3c, #ff5f9e, #9b5de5); color: #fff;
  border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-lg);
}
.celebrate-emoji { font-size: 40px; line-height: 1; }
.celebrate-title { font-size: 18px; font-weight: 800; }
.celebrate-sub { font-size: 13px; opacity: 0.95; }
.celebrate-upcoming { font-size: 12.5px; color: var(--muted); background: #fff7ed; border: 1px solid #ffe0b8; border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; }

/* Team panel */
.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.team-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.team-top { display: flex; align-items: center; gap: 12px; }
.team-avatar {
  font-size: 28px; width: 46px; height: 46px; display: grid; place-items: center;
  background: #eef0f4; border-radius: 50%; flex-shrink: 0;
}
.team-id { flex: 1; min-width: 0; }
.team-name { font-weight: 700; }
.team-role { font-size: 12px; color: var(--primary-dark); font-weight: 600; }
.team-nums { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); text-align: right; }
.team-resp-toggle {
  background: none; border: none; color: var(--primary); font-weight: 600; font-size: 12px;
  padding: 8px 0 0; cursor: pointer;
}
.team-resp { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Confetti + celebration toast */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 200; }
.big-toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: #1c2536; color: #fff; padding: 14px 26px; border-radius: 12px;
  font-size: 17px; font-weight: 700; box-shadow: var(--shadow-lg); z-index: 201;
  opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.big-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
