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

:root {
  --bg:        #0d1117;
  --sb-bg:     #161b22;
  --surface:   #21262d;
  --surface2:  #2d333b;
  --border:    #30363d;
  --text:      #e6edf3;
  --text2:     #7d8590;
  --text3:     #484f58;

  --blue:      #58a6ff;
  --blue-dim:  #1c3461;
  --red:       #f85149;
  --red-dim:   #3d1010;
  --yellow:    #d29922;
  --yellow-dim:#3a2200;
  --green:     #3fb950;
  --green-dim: #0d2818;
  --purple:    #bc8cff;
  --purple-dim:#2d1e6b;

  --sb-w: 224px;
  --r:    8px;
  --r-sm: 6px;
  --r-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ── Layout ──────────────────────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sb-w);
  background: var(--sb-bg);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow-y: auto;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.sb-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}
.sb-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--text);
}
.sb-tagline {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.sb-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text3);
  padding: 14px 12px 6px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r);
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .12s, color .12s;
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
}
.sb-item:hover { background: var(--surface); color: var(--text); }
.sb-item.active {
  background: var(--surface);
  color: var(--blue);
  font-weight: 600;
}
.sb-item .sb-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.sb-item .sb-label { flex: 1; }
.sb-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 20px;
  min-width: 22px;
  text-align: center;
}

.sb-footer {
  padding: 16px 8px;
  border-top: 1px solid var(--border);
}
.sb-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r);
  color: var(--text3);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  transition: background .12s, color .12s;
}
.sb-logout:hover { background: var(--red-dim); color: var(--red); }

/* ── Mobile topbar ───────────────────────────────────────────────────── */
.topbar {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--sb-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-title { font-size: 18px; font-weight: 800; }
.hamburger {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r-sm);
  transition: background .12s;
}
.hamburger:hover { background: var(--surface); }
.sb-close {
  display: none;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  border-radius: var(--r-sm);
}

/* ── Content area ────────────────────────────────────────────────────── */
.content {
  margin-left: var(--sb-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.content-inner {
  padding: 36px 48px;
  max-width: 1080px;
  width: 100%;
}

/* ── Page header ─────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.page-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1.1;
}
.page-sub {
  font-size: 14px;
  color: var(--text2);
  margin-top: 4px;
  font-weight: 400;
}
.page-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s, background .12s;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary  { background: var(--blue);    color: #fff; }
.btn-primary:hover { background: #79b8ff; }
.btn-danger   { background: var(--red);     color: #fff; }
.btn-secondary{ background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-ghost    { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text3); }
.btn-lg       { padding: 14px 24px; font-size: 16px; font-weight: 700; width: 100%; }
.btn-sm       { padding: 6px 12px; font-size: 13px; }
.btn-icon     { padding: 8px 10px; }
.btn:disabled { opacity: .35; pointer-events: none; }

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 20px 24px;
  transition: border-color .15s;
}
.card:hover { border-color: var(--text3); }

/* ── Stat cards (for home KPIs) ──────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color .15s, transform .15s;
}
.stat-card:hover { border-color: var(--text3); transform: translateY(-1px); }
.stat-label { font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
.stat-value { font-size: 36px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.stat-sub   { font-size: 12px; color: var(--text2); margin-top: 6px; }

/* ── Status badges ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.b-mine     { background: var(--blue-dim);   color: var(--blue); }
.b-blocked  { background: var(--red-dim);    color: var(--red); }
.b-waiting  { background: var(--yellow-dim); color: var(--yellow); }
.b-done     { background: var(--green-dim);  color: var(--green); }
.b-gray     { background: var(--surface2);   color: var(--text2); }
.b-personal { background: var(--purple-dim); color: var(--purple); }

/* ── Section labels ──────────────────────────────────────────────────── */
.slabel {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text3);
  margin-bottom: 12px;
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.slabel:first-child { margin-top: 0; }

/* ── Quick capture ───────────────────────────────────────────────────── */
.qc-wrap {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin-bottom: 28px;
  transition: border-color .15s;
}
.qc-wrap:focus-within { border-color: var(--blue); }
.qc-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.qc-input {
  width: 100%; background: transparent; border: none;
  color: var(--text); font-size: 18px; font-family: inherit;
  line-height: 1.5; resize: none; padding: 0; margin: 0;
  min-height: 48px; max-height: 160px; overflow-y: auto;
  font-weight: 500;
}
.qc-input:focus { outline: none; }
.qc-input::placeholder { color: var(--text3); font-weight: 400; }
.qc-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px;
}
.qc-hint { font-size: 12px; color: var(--text3); }
.qc-send {
  background: var(--blue); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 8px 16px; font-size: 14px;
  font-weight: 700; cursor: pointer; font-family: inherit; transition: background .12s;
}
.qc-send:hover { background: #79b8ff; }
.qc-send:disabled { opacity: .35; cursor: default; }

/* ── Focus cards ─────────────────────────────────────────────────────── */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}
.focus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.focus-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.focus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
}
.focus-card.fc-blocked::before { background: var(--red); }
.focus-card.fc-waiting::before { background: var(--yellow); }
.focus-card.fc-done::before    { background: var(--green); }
.focus-num {
  font-size: 11px; font-weight: 800; color: var(--text3);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px;
}
.focus-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.focus-action { font-size: 13px; color: var(--text2); line-height: 1.4; }

/* ── Alert bar ───────────────────────────────────────────────────────── */
.alert-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--red-dim);
  border: 1px solid var(--red);
  border-radius: var(--r-lg);
  padding: 16px 22px;
  margin-bottom: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s;
}
.alert-bar:hover { border-color: var(--red); background: #4a1515; }
.alert-count { font-size: 40px; font-weight: 900; color: var(--red); line-height: 1; }
.alert-label { font-size: 15px; font-weight: 700; }
.alert-sub   { font-size: 13px; color: var(--text2); }

/* ── Topic items ─────────────────────────────────────────────────────── */
.topic-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s;
}
.topic-row:hover { border-color: var(--text3); }
.topic-row.alert-row { border-left: 3px solid var(--red); }
.t-title  { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.t-action { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.t-noaction { font-size: 13px; color: var(--red); font-weight: 600; margin-bottom: 8px; }
.t-meta   { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.days-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--surface2); color: var(--text2); font-weight: 600;
}
.days-badge.stale { background: var(--red-dim); color: var(--red); }
.topic-expand { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.topic-expand.open { display: block; }

/* ── Personal checklist ──────────────────────────────────────────────── */
.personal-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 20px; background: var(--surface);
  border-radius: var(--r-lg); border: 1px solid var(--border);
  margin-bottom: 8px; transition: opacity .2s, border-color .15s;
}
.personal-item:hover { border-color: var(--text3); }
.personal-item.is-done { opacity: .45; }
.p-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all .15s;
  background: transparent; margin-top: 2px;
}
.p-check:hover { border-color: var(--green); }
.p-check.checked { background: var(--green); border-color: var(--green); }
.p-title { font-size: 15px; font-weight: 600; flex: 1; line-height: 1.4; }
.p-title.done-text { text-decoration: line-through; color: var(--text3); }

/* ── Tabs ────────────────────────────────────────────────────────────── */
.tab-row {
  display: flex; gap: 4px; margin-bottom: 24px;
  background: var(--surface); border-radius: var(--r);
  padding: 4px; border: 1px solid var(--border);
  width: fit-content;
}
.tab-btn {
  padding: 8px 20px; border: none; background: transparent;
  color: var(--text2); font-size: 14px; font-weight: 600;
  cursor: pointer; border-radius: var(--r-sm); font-family: inherit;
  transition: all .15s; white-space: nowrap;
}
.tab-btn.active { background: var(--blue); color: #fff; }

/* ── People grid ─────────────────────────────────────────────────────── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.person-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
  cursor: pointer; transition: border-color .15s, transform .15s;
}
.person-card:hover { border-color: var(--text3); transform: translateY(-2px); }
.p-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; margin-bottom: 14px; color: #fff;
}
.p-name { font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.p-role { font-size: 12px; color: var(--text3); margin-bottom: 10px; font-weight: 500; }
.p-open { font-size: 28px; font-weight: 900; color: var(--blue); }
.p-stats { font-size: 13px; color: var(--text2); }

/* ── Overlay + Panel ─────────────────────────────────────────────────── */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 200; backdrop-filter: blur(2px);
}
.overlay.open { display: block; }
.panel {
  position: fixed; bottom: 0; right: 0; left: var(--sb-w);
  background: var(--surface); border-top: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 88vh;
  overflow-y: auto; transform: translateY(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  z-index: 201;
}
.panel.open { transform: translateY(0); }
.panel-handle {
  width: 48px; height: 4px; background: var(--border); border-radius: 2px;
  margin: 14px auto 0; cursor: pointer;
}
.panel-inner { padding: 20px 32px 40px; }
.panel-title { font-size: 22px; font-weight: 900; margin-bottom: 24px; }

/* ── Forms ───────────────────────────────────────────────────────────── */
label {
  display: block; font-size: 12px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
input, textarea, select {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r); color: var(--text); font-size: 15px;
  padding: 11px 14px; font-family: inherit; margin-bottom: 16px;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--blue);
}
textarea { resize: vertical; min-height: 90px; }
select option { background: var(--surface); }
input::placeholder, textarea::placeholder { color: var(--text3); }

/* ── Chips ───────────────────────────────────────────────────────────── */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--border);
  background: transparent; color: var(--text2); font-family: inherit; transition: all .12s;
}
.chip:active { transform: scale(.96); }
.chip.sel-pendiente { border-color: var(--blue);   color: var(--blue);   background: var(--blue-dim); }
.chip.sel-bloqueo   { border-color: var(--red);    color: var(--red);    background: var(--red-dim); }
.chip.sel-idea      { border-color: var(--green);  color: var(--green);  background: var(--green-dim); }
.chip.sel-info      { border-color: var(--yellow); color: var(--yellow); background: var(--yellow-dim); }
.chip.sel-persona   { border-color: var(--blue);   color: var(--blue);   background: var(--blue-dim); }

/* ── Toast ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: calc(var(--sb-w) + 28px);
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); padding: 12px 20px; border-radius: var(--r);
  font-weight: 600; font-size: 14px; opacity: 0;
  transition: opacity .2s, transform .2s;
  transform: translateY(12px); z-index: 400; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err  { border-color: var(--red); color: var(--red); }
.toast.ok   { border-color: var(--green); color: var(--green); }

/* ── Wizard ──────────────────────────────────────────────────────────── */
.wiz-progress { display: flex; gap: 8px; margin-bottom: 32px; }
.wiz-dot { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.wiz-dot.done { background: var(--blue); }
.wiz-step { display: none; }
.wiz-step.active { display: block; }
.wiz-q    { font-size: 24px; font-weight: 900; margin-bottom: 10px; line-height: 1.3; }
.wiz-hint { font-size: 14px; color: var(--text3); margin-bottom: 20px; line-height: 1.6; }

/* ── Notsure ─────────────────────────────────────────────────────────── */
.ns-center { max-width: 520px; margin: 60px auto; }
.ns-q {
  font-size: 26px; font-weight: 900; text-align: center;
  line-height: 1.3; margin-bottom: 36px; letter-spacing: -.3px;
}
.ns-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 22px; border-radius: var(--r-lg); font-size: 18px; font-weight: 700;
  cursor: pointer; border: 2px solid var(--border); background: var(--surface);
  color: var(--text2); width: 100%; margin-bottom: 12px; font-family: inherit;
  transition: all .15s;
}
.ns-btn:active { transform: scale(.97); }
.ns-btn.yes { border-color: var(--blue);   color: var(--blue); }
.ns-btn.no  { border-color: var(--text3);  color: var(--text2); }
.ns-btn:hover.yes { background: var(--blue-dim); }
.ns-btn:hover.no  { background: var(--surface2); }
.suggestion-card {
  background: var(--blue-dim); border: 2px solid var(--blue);
  border-radius: var(--r-lg); padding: 28px; margin-bottom: 20px;
}
.suggestion-card.blocked { background: var(--red-dim); border-color: var(--red); }
.s-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--blue); margin-bottom: 10px; }
.suggestion-card.blocked .s-label { color: var(--red); }
.s-title  { font-size: 22px; font-weight: 900; margin-bottom: 10px; line-height: 1.3; }
.s-action { font-size: 15px; color: var(--text2); }

/* ── Triage ──────────────────────────────────────────────────────────── */
.triage-wrap { max-width: 640px; }
.triage-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.tp-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.tp-fill  { height: 100%; background: var(--blue); border-radius: 3px; transition: width .3s ease; }
.tp-count { font-size: 13px; color: var(--text2); font-weight: 700; white-space: nowrap; }
.item-bubble {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 24px;
  font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--text);
  min-height: 80px; display: flex; align-items: center;
}
.cat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.cat-btn {
  padding: 20px; border-radius: var(--r-lg); font-size: 16px; font-weight: 700;
  cursor: pointer; border: 2px solid var(--border); background: var(--surface);
  color: var(--text2); font-family: inherit; text-align: center; transition: all .15s;
}
.cat-btn:active { transform: scale(.97); }
.cat-btn.sel-work     { border-color: var(--blue);   color: var(--blue);   background: var(--blue-dim); }
.cat-btn.sel-personal { border-color: var(--purple); color: var(--purple); background: var(--purple-dim); }
.work-detail { display: none; }
.work-detail.open { display: block; }
.summary-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.summary-item:last-child { border-bottom: none; }
.summary-cat {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  padding: 3px 8px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}

/* ── Login ───────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 24px;
  background: radial-gradient(ellipse at 30% 20%, #1c3461 0%, var(--bg) 60%);
}
.login-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px; width: 100%; max-width: 380px;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.login-logo { font-size: 40px; font-weight: 900; margin-bottom: 4px; letter-spacing: -1px; }
.login-sub  { font-size: 14px; color: var(--text3); margin-bottom: 32px; }
.login-err  { color: var(--red); font-size: 13px; margin-top: 8px; display: none; }

/* ── Misc ────────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 60px 20px; color: var(--text3); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-text { font-size: 16px; }
.loading { text-align: center; padding: 60px; color: var(--text3); font-size: 14px; }
.add-row {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  border: 2px dashed var(--border); border-radius: var(--r-lg);
  cursor: pointer; color: var(--text3); font-size: 14px; font-weight: 600;
  margin-bottom: 8px; background: transparent; width: 100%;
  font-family: inherit; text-align: left; transition: border-color .15s, color .15s;
}
.add-row:hover { border-color: var(--blue); color: var(--blue); }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.text-preview {
  background: var(--bg); border-radius: var(--r); padding: 14px 18px;
  font-size: 16px; color: var(--text2); margin-bottom: 24px;
  line-height: 1.5; word-break: break-word; font-weight: 500;
}
.skip-btn {
  background: none; border: none; color: var(--text3); font-size: 13px;
  cursor: pointer; font-family: inherit; padding: 8px 0; text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .content-inner { padding: 28px 32px; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 300;
    box-shadow: 4px 0 24px rgba(0,0,0,.4);
  }
  .sidebar.open { transform: translateX(0); }
  .sb-close { display: flex; }
  .content { margin-left: 0; }
  .panel { left: 0; }
  .toast { left: 16px; bottom: 20px; }
  .topbar { display: flex; }
  .content-inner { padding: 20px 18px; }
  .focus-grid { grid-template-columns: 1fr; }
  .stat-grid  { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .people-grid { grid-template-columns: 1fr; }
  .panel-inner { padding: 16px 18px 32px; }
}
