/* =====================================================
   PARU Tasks — style.css  v3.0  Notion-style
   www.paru.com.py
   ===================================================== */

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

:root {
  /* Notion-inspired palette */
  --bg:       #FFFFFF;
  --bg2:      #F7F7F5;
  --bg3:      #EFEFED;
  --border:   #E9E9E7;
  --border2:  #D3D1CB;
  --text:     #37352F;
  --t2:       #6B6B6B;
  --t3:       #9B9A97;
  --accent:   #37352F;
  --accent2:  #2F80ED;
  --danger:   #E03E3E;

  /* Status colors */
  --c-todo:  #2383E2;
  --c-prog:  #D9730D;
  --c-rev:   #9065B0;
  --c-done:  #0F7B6C;

  /* Priority */
  --p-high:  #E03E3E;
  --p-med:   #D9730D;
  --p-low:   #0F7B6C;

  --radius:    8px;
  --radius-sm: 5px;
  --shadow:    0 1px 3px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── LOGIN ─────────────────────────────────────────── */
#login-screen {
  min-height: 100vh;
  display: flex;
}
.login-left {
  flex: 1;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-brand-area {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}
.login-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.login-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
}
.login-brand-name span { color: var(--t3); font-weight: 400; }
.login-brand-url { font-size: 12px; color: var(--t3); margin-top: 2px; }
.login-tagline {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -.5px;
  margin-bottom: 32px;
}
.login-features { display: flex; flex-direction: column; gap: 12px; }
.lf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--t2);
}
.lf-item i { font-size: 16px; color: var(--t3); }

.login-right {
  width: 440px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
}
.login-card { width: 100%; }
.login-card-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 24px;
}
.login-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-bottom: 4px;
}
.login-sub { font-size: 13px; color: var(--t2); margin-bottom: 24px; }
.field-wrap { margin-bottom: 14px; }
.field-wrap label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  margin-bottom: 5px;
}
.login-err {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFF0F0;
  color: var(--danger);
  border: 1px solid #FFCECE;
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 12px;
  margin-bottom: 12px;
}
.btn-login {
  width: 100%;
  padding: 11px 16px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .15s;
  font-family: inherit;
  margin-top: 4px;
}
.btn-login:hover { opacity: .85; }

/* ── APP SHELL ─────────────────────────────────────── */
.app { display: flex; height: 100vh; overflow: hidden; }
.hidden { display: none !important; }

/* ── SIDEBAR ───────────────────────────────────────── */
.sidebar {
  width: 224px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 200;
  transition: transform .25s;
}
.sidebar-logo {
  padding: 14px 12px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  letter-spacing: -.2px;
}
.sidebar-logo-text span { color: var(--t3); font-weight: 400; }
.sidebar-close-btn { display: none; background: none; border: none; color: var(--t3); cursor: pointer; font-size: 16px; }

.sidebar-nav { padding: 8px 6px; flex: 1; overflow-y: auto; }
.nav-group { margin-bottom: 16px; }
.nav-group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 7px;
  margin-bottom: 3px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--t2);
  font-size: 13px;
  transition: all .12s;
  user-select: none;
  font-weight: 400;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--bg3); color: var(--text); font-weight: 500; }
.nav-item i { font-size: 15px; width: 16px; flex-shrink: 0; }
.nav-item.dim { opacity: .55; }
.nav-badge { margin-left: auto; background: var(--bg3); color: var(--t2); font-size: 11px; padding: 1px 6px; border-radius: 8px; font-weight: 500; }
.nav-badge-red { margin-left: auto; background: #FFECEC; color: var(--danger); font-size: 11px; padding: 1px 6px; border-radius: 8px; font-weight: 600; }
.nav-plus-btn { background: none; border: none; color: var(--t3); cursor: pointer; font-size: 14px; display: flex; align-items: center; padding: 2px; border-radius: 4px; }
.nav-plus-btn:hover { background: var(--bg3); color: var(--text); }
.project-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 199; }

/* ── TOPBAR ────────────────────────────────────────── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar {
  padding: 0 16px;
  height: 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  flex-shrink: 0;
}
.topbar-title { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hamburger { display: none; }

/* ── BUTTONS ───────────────────────────────────────── */
.btn-top {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--t2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .12s;
  white-space: nowrap;
  font-weight: 500;
  font-family: inherit;
}
.btn-top:hover { background: var(--bg2); border-color: var(--border2); color: var(--text); }
.btn-top i { font-size: 14px; }
.btn-top-primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn-top-primary:hover { opacity: .85; background: var(--text); color: #fff; }
.btn-ghost { padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; border: 1px solid var(--border); background: transparent; color: var(--t2); font-family: inherit; transition: all .12s; }
.btn-ghost:hover { background: var(--bg2); }
.btn-danger-sm { padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; border: 1px solid #FFCECE; background: #FFF0F0; color: var(--danger); font-family: inherit; display: flex; align-items: center; gap: 5px; margin-top: 8px; width: 100%; justify-content: center; transition: all .12s; }
.btn-danger-sm:hover { background: #FFE0E0; }
.btn-icon-sm { background: none; border: none; cursor: pointer; color: var(--t2); font-size: 16px; padding: 4px 5px; border-radius: 5px; display: flex; align-items: center; }
.btn-icon-sm:hover { background: var(--bg3); color: var(--text); }

/* ── VIEW TOGGLE ───────────────────────────────────── */
.view-toggle { display: flex; gap: 1px; background: var(--bg2); padding: 2px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.view-btn { padding: 3px 8px; border-radius: 4px; cursor: pointer; font-size: 12px; color: var(--t2); border: none; background: transparent; display: flex; align-items: center; gap: 4px; transition: all .12s; font-weight: 500; white-space: nowrap; font-family: inherit; }
.view-btn.active { background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.view-btn i { font-size: 13px; }

/* ── CONTENT ───────────────────────────────────────── */
.content { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.view-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.view-header-left { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }

/* ── KANBAN ────────────────────────────────────────── */
.kanban-view { display: flex; gap: 12px; padding: 16px; overflow-x: auto; flex: 1; align-items: flex-start; }
.kanban-col {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.col-header { padding: 10px 12px 8px; display: flex; align-items: center; gap: 7px; }
.col-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.col-title { font-weight: 600; font-size: 12px; flex: 1; color: var(--t2); text-transform: uppercase; letter-spacing: .04em; }
.col-count { font-size: 11px; color: var(--t3); background: var(--bg3); padding: 1px 6px; border-radius: 8px; }
.col-body { padding: 6px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.col-body.drag-over { background: rgba(55,53,47,.04); }

.task-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: grab;
  transition: all .12s;
  box-shadow: var(--shadow);
  user-select: none;
}
.task-card:hover { border-color: var(--border2); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.task-card.dragging { opacity: .35; cursor: grabbing; }

.task-priority { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 3px; margin-bottom: 5px; }
.p-high { background: #FFECEC; color: var(--p-high); }
.p-med  { background: #FAEBDD; color: var(--p-med);  }
.p-low  { background: #DDEDEA; color: var(--p-low);  }

.task-title { font-size: 13px; font-weight: 500; margin-bottom: 7px; line-height: 1.4; color: var(--text); }
.task-meta { display: flex; align-items: center; gap: 5px; }
.task-date { font-size: 11px; color: var(--t3); display: flex; align-items: center; gap: 3px; }
.task-date.overdue { color: var(--danger); font-weight: 500; }
.task-assignees { display: flex; margin-left: auto; }

.tag-pill { display: inline-flex; align-items: center; font-size: 11px; padding: 2px 7px; border-radius: 3px; font-weight: 500; }
.add-task-btn { margin: 0 8px 8px; padding: 6px; border-radius: 5px; border: none; cursor: pointer; color: var(--t3); font-size: 12px; text-align: center; transition: all .12s; background: transparent; width: calc(100% - 16px); font-family: inherit; }
.add-task-btn:hover { background: var(--bg3); color: var(--t2); }

.av { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #fff; margin-left: -5px; flex-shrink: 0; }
.av:first-child { margin-left: 0; }

/* ── LIST VIEW ─────────────────────────────────────── */
.list-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.list-toolbar { padding: 10px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; background: var(--bg); flex-shrink: 0; }
.search-wrap { display: flex; align-items: center; gap: 7px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 9px; flex: 1; min-width: 140px; }
.search-wrap i { color: var(--t3); font-size: 14px; }
.search-wrap input { border: none; background: none; outline: none; font-size: 13px; width: 100%; color: var(--text); font-family: inherit; }
.filter-sel { padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; background: var(--bg2); color: var(--t2); cursor: pointer; font-family: inherit; }
.list-scroll { flex: 1; overflow-y: auto; }
.list-table { width: 100%; border-collapse: collapse; }
.list-table th { font-size: 11px; color: var(--t3); font-weight: 600; text-align: left; padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--bg2); position: sticky; top: 0; text-transform: uppercase; letter-spacing: .04em; }
.list-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
.list-table tr:hover td { background: var(--bg2); cursor: pointer; }
.status-pill { font-size: 11px; padding: 2px 8px; border-radius: 3px; font-weight: 600; white-space: nowrap; }
.s-todo { background: #EBF3FD; color: var(--c-todo); }
.s-prog { background: #FAEBDD; color: var(--c-prog); }
.s-rev  { background: #F4F0F8; color: var(--c-rev);  }
.s-done { background: #DDEDEA; color: var(--c-done); }

/* ── NOTIF VIEW ────────────────────────────────────── */
.notif-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.wa-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; display: flex; gap: 10px; }
.wa-card.unread { border-left: 3px solid #25D366; }
.wa-bubble { background: #25D366; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; flex-shrink: 0; }
.wa-body { flex: 1; }
.wa-header { font-size: 11px; color: var(--t3); margin-bottom: 3px; }
.wa-msg { font-size: 13px; line-height: 1.45; }
.wa-msg .mention, .wa-notif-msg .mention { background: #EBF3FD; color: var(--accent2); border-radius: 3px; padding: 0 3px; font-weight: 600; }
.wa-footer { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.wa-status { font-size: 11px; color: #25D366; display: flex; align-items: center; gap: 3px; }
.wa-time { font-size: 11px; color: var(--t3); }

/* ── WA PANEL ──────────────────────────────────────── */
.wa-panel { border-top: 1px solid var(--border); background: var(--bg); flex-shrink: 0; }
.wa-panel-header { padding: 8px 14px; display: flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.wa-panel-title { font-size: 12px; font-weight: 500; color: var(--text); }
.wa-new-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.wa-notif-item { display: flex; align-items: flex-start; gap: 8px; padding: 7px 14px; border-top: 1px solid var(--border); }
.wa-notif-item.new { background: #F0FFF4; }
.wa-mini-bubble { width: 24px; height: 24px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; flex-shrink: 0; }
.wa-notif-body { flex: 1; }
.wa-notif-phone { font-size: 10px; color: var(--t3); margin-bottom: 1px; }
.wa-notif-msg { font-size: 12px; line-height: 1.4; }
.wa-delivered { font-size: 10px; color: #25D366; display: flex; align-items: center; gap: 2px; }
.wa-notif-time { font-size: 10px; color: var(--t3); }

/* ── INTEGRATIONS ──────────────────────────────────── */
.integ-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.int-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; background: var(--bg); }
.int-icon { width: 34px; height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.int-wa { background: #25D366; color: #fff; }
.int-gc { background: #4285F4; color: #fff; }
.int-title { font-weight: 600; font-size: 13px; }
.int-desc { font-size: 11px; color: var(--t3); margin-top: 2px; }
.toggle { width: 36px; height: 20px; border-radius: 10px; cursor: pointer; position: relative; transition: background .15s; flex-shrink: 0; border: none; }
.toggle.on { background: var(--text); }
.toggle.off { background: var(--border2); }
.toggle::after { content: ''; position: absolute; width: 14px; height: 14px; background: #fff; border-radius: 50%; top: 3px; transition: left .15s; }
.toggle.on::after { left: 19px; }
.toggle.off::after { left: 3px; }
.int-info { margin-top: 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; font-size: 12px; color: var(--t2); line-height: 1.8; }
.int-info code { background: var(--bg3); padding: 1px 5px; border-radius: 3px; font-size: 11px; }
.int-info a { color: var(--accent2); }

/* ── TEAM ──────────────────────────────────────────── */
.team-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); margin-bottom: 7px; transition: border-color .12s; }
.member-row:hover { border-color: var(--border2); }
.member-name { font-weight: 500; font-size: 13px; }
.member-role { font-size: 11px; color: var(--t3); margin-top: 1px; }
.member-task-count { font-size: 14px; font-weight: 700; color: var(--text); text-align: right; }
.member-active { font-size: 11px; color: var(--t3); text-align: right; }

/* ── REPORTS ───────────────────────────────────────── */
.reports-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 4px; letter-spacing: -.5px; }
.stat-label { font-size: 11px; color: var(--t3); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.reports-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.chart-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.chart-title { font-weight: 600; font-size: 12px; color: var(--t2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.bar-label { width: 80px; flex-shrink: 0; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; background: var(--bg2); border-radius: 3px; height: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; transition: width .5s; }
.bar-val { width: 24px; text-align: right; color: var(--t3); font-size: 11px; flex-shrink: 0; }

/* ── MODALS ────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; backdrop-filter: blur(2px); }
.modal { background: var(--bg); border-radius: var(--radius); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 40px rgba(0,0,0,.18); border: 1px solid var(--border); }
.modal-wide { max-width: 740px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 22px 14px; border-bottom: 1px solid var(--border); }
.modal-task-title { font-weight: 700; font-size: 16px; letter-spacing: -.2px; }
.modal-close { cursor: pointer; color: var(--t3); border: none; background: none; font-size: 18px; padding: 2px 4px; border-radius: 4px; flex-shrink: 0; }
.modal-close:hover { color: var(--text); background: var(--bg2); }
.modal-body-cols { display: flex; gap: 0; }
.modal-col-main { flex: 1; min-width: 0; padding: 16px 22px; border-right: 1px solid var(--border); }
.modal-col-side { width: 190px; flex-shrink: 0; padding: 16px 18px; }
.task-priority-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 3px; margin-bottom: 6px; }

/* ── FIELDS ────────────────────────────────────────── */
.field-label { font-size: 11px; color: var(--t2); margin-bottom: 4px; margin-top: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
input[type=text], input[type=email], input[type=password], input[type=date], textarea, select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color .12s;
}
input:focus, textarea:focus, select:focus { border-color: var(--border2); box-shadow: 0 0 0 2px rgba(55,53,47,.08); }
textarea { resize: vertical; min-height: 60px; }

/* ── MEMBER CHIPS ──────────────────────────────────── */
.member-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.chip { display: flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 4px; font-size: 12px; cursor: pointer; border: 1px solid var(--border); background: var(--bg2); transition: all .12s; font-weight: 400; color: var(--t2); }
.chip.selected { background: var(--text); border-color: var(--text); color: #fff; }
.chip:hover:not(.selected) { border-color: var(--border2); }

/* ── COLOR SWATCHES ────────────────────────────────── */
.color-swatches { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 5px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: transform .12s; }
.swatch:hover { transform: scale(1.15); }
.swatch.selected { border-color: var(--text); }

/* ── COMMENTS ──────────────────────────────────────── */
.comments-section { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.comment { display: flex; gap: 8px; margin-bottom: 10px; }
.comment-body { flex: 1; background: var(--bg2); border-radius: var(--radius-sm); padding: 8px 10px; }
.comment-author { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.comment-text { font-size: 12px; color: var(--t2); line-height: 1.5; }
.comment-text .mention { background: #EBF3FD; color: var(--accent2); border-radius: 3px; padding: 0 3px; font-weight: 600; }
.comment-input-row { display: flex; gap: 7px; margin-top: 10px; align-items: center; }
.mention-badge { background: var(--bg2); color: var(--t2); border-radius: 3px; padding: 2px 6px; font-size: 11px; font-weight: 500; }
.mention-hint { font-size: 11px; color: var(--t3); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.autocomplete { position: absolute; top: calc(100% + 3px); left: 0; right: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-md); z-index: 100; }
.ac-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; cursor: pointer; font-size: 13px; transition: background .1s; }
.ac-item:hover, .ac-item.focused { background: var(--bg2); }
.ac-av { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; flex-shrink: 0; }

/* ── SUBTASKS ──────────────────────────────────────── */
.subtask-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; padding: 3px 0; }
.subtask-row input[type=checkbox] { width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; accent-color: var(--text); }
.subtask-row span { font-size: 13px; color: var(--t2); flex: 1; }
.subtask-row span.done { text-decoration: line-through; color: var(--t3); }

/* ── TOAST ─────────────────────────────────────────── */
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--text); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; display: flex; align-items: center; gap: 7px; z-index: 2000; max-width: 300px; box-shadow: var(--shadow-md); font-weight: 500; transition: opacity .3s; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  .login-left { display: none; }
  .login-right { width: 100%; }
}
@media (max-width: 768px) {
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; }
  .sidebar-close-btn { display: flex; }
  .hamburger { display: flex; }
  .modal-wide { max-width: 100%; }
  .modal-body-cols { flex-direction: column; }
  .modal-col-side { width: 100%; border-right: none; border-top: 1px solid var(--border); }
  .kanban-view { padding: 10px; gap: 10px; }
  .kanban-col { width: 232px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .reports-charts { grid-template-columns: 1fr; }
  .topbar-right .view-btn span { display: none; }
}
