/* ===== Доска БТР — дизайн-токены по брифу (синяя гамма, Plus Jakarta Sans) ===== */

:root {
  --bg: #eef2f7;
  --text: #16233b;
  --muted: #6b7a93;
  --muted-2: #8b97ab;
  --muted-3: #9aa6ba;
  --muted-4: #7e8ba2;
  --muted-5: #aab4c5;
  --panel: #ffffff;
  --line: #e3e9f2;
  --line-2: #eaeff7;
  --line-3: #eef1f7;
  --line-4: #e0e6f0;
  --line-5: #d6deeb;
  --line-6: #cdd8e8;
  --line-7: #f0f3f8;
  --accent: #2563eb;
  --accent-strong: #0d56f5;
  --accent-text: #1d4ed8;
  --chip-blue-bg: #e7eefc;
  --col-bg: #e6ebf3;

  --prio-high: #e5483d;
  --prio-med: #e8920c;
  --prio-low: #7a8aa3;
  --prio-quick: #2f9e6b;
}

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

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cdd6e4; border-radius: 999px; }

.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ===== верхняя навигация ===== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 14px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.brand { font-weight: 800; font-size: 18px; margin-right: 8px; }
.tabbar { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  font-family: inherit;
}
.tab.active { color: #fff; background: var(--accent); padding: 8px 16px; font-weight: 700; }
.nav-spacer { flex: 1; }
.userbox { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--chip-blue-bg);
  color: var(--accent);
  font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-name { font-size: 14px; font-weight: 600; background: none; border: none; cursor: pointer; color: var(--text); font-family: inherit; }
.logout { font-size: 14px; color: var(--muted-3); background: none; border: none; cursor: pointer; font-family: inherit; }

/* ===== контейнер ===== */

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px) clamp(16px, 4vw, 28px) 64px;
}

h1.screen-title { font-size: clamp(24px, 4vw, 32px); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.screen-sub { font-size: 14px; color: var(--muted); font-weight: 500; margin-top: 7px; }
.overline { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }

/* ===== чипы ===== */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 8px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.chip.project .dot { width: 6px; height: 6px; }
.chip.tag { background: var(--line-3); color: #5b6b82; }
.chip.deadline { background: var(--chip-blue-bg); color: var(--accent-text); }
.chip.project { background: var(--line-3); color: #5b6b82; }

.prio-high { background: #fdeceb; color: #cc3a2f; }
.prio-med { background: #fdf2e0; color: #b67408; }
.prio-low { background: #eef1f6; color: #5b6b82; }
.prio-quick { background: #e6f5ee; color: #2f9e6b; }
.dot-high { background: var(--prio-high); }
.dot-med { background: var(--prio-med); }
.dot-low { background: var(--prio-low); }
.dot-quick { background: var(--prio-quick); }

/* ===== кнопки ===== */

.btn {
  border: none; border-radius: 12px; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 700; padding: 13px 18px;
  background: var(--accent); color: #fff;
}
.btn.outline { border: 1px solid var(--line-5); background: #fff; color: #46566f; font-weight: 600; }
.btn.add { background: var(--accent-strong); padding: 0 26px; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ===== Мой день ===== */

.myday-cols { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.myday-left { flex: 1 1 440px; min-width: 0; }
.myday-right { flex: 1 1 270px; max-width: 340px; min-width: 0; }
.myday-left .overline { display: block; margin: 20px 0 12px; }

.hero {
  background: var(--panel);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 28px) clamp(20px, 4vw, 26px);
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 20px 44px -22px rgba(20,50,110,.32);
}
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-title { font-size: clamp(22px, 4vw, 28px); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; cursor: pointer; }
.hero-progress { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.track { flex: 1; height: 10px; background: #e9eef6; border-radius: 999px; overflow: hidden; }
.track > div { height: 100%; background: var(--accent); border-radius: 999px; }
.hero-progress .pct { font-size: 14px; font-weight: 800; color: var(--accent); }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-actions .btn:first-child { flex: 1; min-width: 160px; padding: 13px; }

.hero-empty {
  background: var(--panel); border-radius: 20px; padding: 34px; text-align: center;
  border: 1px dashed var(--line-6);
}
.hero-empty h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.hero-empty p { font-size: 14px; color: var(--muted); margin: 0; }

.list-head { display: flex; justify-content: space-between; align-items: center; margin: 28px 2px 12px; }
.list-head .ttl { font-size: 14px; font-weight: 700; }
.list-head .cnt { font-size: 12px; font-weight: 700; color: var(--muted-2); }
.list-sub { font-size: 13px; color: var(--muted-2); margin: 0 2px 12px; }

.row-task {
  display: flex; align-items: center; gap: 13px;
  background: var(--panel); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
  border: 1px solid var(--line-3); box-shadow: 0 1px 2px rgba(0,0,0,.04);
  cursor: pointer;
}
.row-task .r-title { font-size: 15px; font-weight: 600; }
.row-task.done .r-title { color: var(--muted-3); text-decoration: line-through; }
.row-task .spacer { flex: 1; }
.row-task .r-deadline { font-size: 12px; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.row-task .r-prio { font-size: 12px; font-weight: 700; color: var(--muted-2); }

.checkbox {
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer; flex-shrink: 0;
  border: 2px solid var(--line-6); background: #fff; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.checkbox.checked { border: none; background: var(--accent); }

.week-link { margin-top: 20px; font-size: 14px; color: var(--muted-2); font-weight: 600; background: none; border: none; cursor: pointer; font-family: inherit; }

/* правая колонка */
.mini-card { background: var(--panel); border-radius: 18px; padding: 20px; border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.mini-card + .mini-card { margin-top: 16px; }
.mini-card .overline { display: block; }
.numbers-row { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.ring-wrap { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
.ring-wrap .ring-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.numbers-list { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.numbers-list .nr { display: flex; justify-content: space-between; align-items: center; }
.numbers-list .nr .lab { font-size: 13px; font-weight: 600; color: var(--muted); }
.numbers-list .nr .val { font-size: 15px; font-weight: 800; }

.week-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.week-all { font-size: 12px; font-weight: 700; color: var(--accent); background: none; border: none; cursor: pointer; font-family: inherit; }
.week-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-7); }
.week-row .nm { font-size: 14px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-row .dy { font-size: 12px; font-weight: 700; color: var(--muted-2); }

/* ===== Фокус недели ===== */

.filters { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filters label { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
select {
  font-size: 14px; font-weight: 600; color: var(--text); padding: 8px 12px;
  border: 1px solid var(--line-5); border-radius: 10px; background: #fff; font-family: inherit;
}

.week-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.day-col { flex: 1 0 210px; min-width: 210px; background: var(--col-bg); border-radius: 14px; padding: 12px; min-height: 240px; }
.day-col.drag-over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.day-col h3 { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-4); font-weight: 800; margin: 4px 4px 12px; }

.kanban-card {
  background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px;
  border-left: 4px solid var(--line-6);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 18px -12px rgba(20,50,110,.3);
  cursor: grab;
}
.kanban-card.dragging { opacity: 0.5; }
.kanban-card .kc-title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.kc-assignee { display: flex; align-items: center; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.mini-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--chip-blue-bg); color: var(--accent); font-size: 9px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.kc-assignee .nm { font-size: 12px; font-weight: 600; color: var(--muted); }
.kc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.btn-back { margin-top: 12px; border: 1px solid var(--line-4); background: #f7f9fc; color: var(--muted); font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 8px; cursor: pointer; font-family: inherit; }
.board-note { text-align: center; font-size: 13px; color: var(--muted-2); margin-top: 16px; }

/* ===== Бэклог / Идеи общее ===== */

.add-row { display: flex; gap: 12px; margin-bottom: 14px; }
.add-row input {
  flex: 1; min-width: 0; font-size: 15px; padding: 14px 16px;
  border: 1px solid var(--line-5); border-radius: 12px; background: #fff; font-family: inherit; color: var(--text);
}
input::placeholder { color: var(--muted-3); }
.search {
  width: 100%; font-size: 14px; padding: 11px 15px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; font-family: inherit;
}

.seg { display: inline-flex; background: var(--col-bg); border-radius: 10px; padding: 3px; }
.seg-btn { border: none; background: transparent; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 7px 14px; border-radius: 8px; }
.seg-btn.active { font-weight: 700; color: var(--text); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.group { margin-bottom: 22px; }
.group > h3 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; margin: 0 0 10px; }
.group.drag-over { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: 14px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }

.task-card {
  display: flex; align-items: flex-start; gap: 14px; background: #fff;
  border-radius: 14px; padding: 15px 16px; border: 1px solid var(--line-3);
  border-left: 4px solid var(--line-6); box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: grab;
}
.task-card .tc-body { flex: 1; min-width: 0; }
.tc-title { font-size: 16px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.tc-title.done { color: var(--muted-3); text-decoration: line-through; }
.tc-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; align-items: center; }
.btn-today { border: 1px solid #cfe0fb; background: #f2f6fe; color: var(--accent); font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 9px; cursor: pointer; font-family: inherit; }
.board-note.center { text-align: center; }

/* По проектам — лёгкие панели */
.proj-panel { background: #fff; border: 1px solid var(--line-3); border-radius: 14px; padding: 4px 18px 10px; margin-bottom: 14px; }
.proj-head { display: flex; align-items: center; gap: 9px; padding: 13px 0 11px; flex-wrap: wrap; }
.proj-head .pdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.proj-head .pname { font-size: 15px; font-weight: 800; letter-spacing: -0.005em; }
.proj-head .pcount { font-size: 13px; font-weight: 700; color: var(--muted-5); }
.proj-head .spacer { flex: 1; }
.proj-head .pstream { font-size: 13px; font-weight: 600; color: var(--muted); }
.proj-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line-7); cursor: grab; }
.proj-row .pr-title { font-size: 16px; font-weight: 600; line-height: 1.3; flex: 1; cursor: pointer; }
.proj-row .pr-title.done { color: var(--muted-3); text-decoration: line-through; }
.proj-row .pr-deadline { font-size: 12px; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.proj-row .pr-prio { font-size: 12px; font-weight: 700; color: var(--muted-3); min-width: 52px; text-align: right; }
.proj-row .pr-today { border: none; background: none; color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }

/* ===== Светофор проектов ===== */

.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dash-head .btn.add { padding: 9px 16px; font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 22px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.leg-dot { width: 13px; height: 13px; border-radius: 50%; }
.st-green { background: #2bbf6f; }
.st-yellow { background: #f2b21a; }
.st-red { background: #ec3b30; }
.st-white { background: #fff; border: 1px solid #cdd8e8; }

.stream-block { display: flex; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.stream-tag {
  flex: 0 0 168px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  background: var(--accent);
  box-shadow: 0 8px 18px -12px rgba(20,50,110,.5);
}
.stream-rows { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line-3); border-radius: 14px; padding: 4px 16px; }
.dash-row { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-top: 1px solid var(--line-7); cursor: pointer; }
.dash-row:first-child { border-top: none; }
.dash-row:hover { background: #fafbfe; }
.status-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; cursor: pointer; border: none; padding: 0; }
.status-dot.st-white { background: #fff; border: 1px solid #cdd8e8; }
.dash-row .dr-name { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; }
.dash-row .dr-count { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--chip-blue-bg); border-radius: 999px; padding: 2px 9px; }
.dash-row .dr-status { font-size: 13px; font-weight: 700; min-width: 88px; text-align: right; white-space: nowrap; }
.st-text-green { color: #18794e; }
.st-text-yellow { color: #9a6b1f; }
.st-text-red { color: #cc3a2f; }
.st-text-white { color: var(--muted-2); }
.dash-row .dr-lead { font-size: 14px; color: var(--muted); min-width: 120px; text-align: right; cursor: text; }

.status-pop {
  position: absolute;
  z-index: 130;
  background: #fff;
  border: 1px solid var(--line-3);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 40, 90, .18);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.status-pop button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: left;
  color: var(--text);
  white-space: nowrap;
}
.status-pop button:hover { background: var(--line-7); }
.dash-row .dr-lead:empty::before { content: '—'; color: var(--muted-3); }
.dash-row .dr-del { border: none; background: none; color: var(--muted-3); cursor: pointer; font-size: 15px; padding: 0 2px; }
.dash-row .dr-del:hover { color: #cc3a2f; }
.stream-cap { width: 100%; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-3); margin-top: 8px; }
.stream-cap:first-child { margin-top: 0; }
.lead-input { font-family: inherit; font-size: 14px; border: 1px solid var(--accent); border-radius: 6px; padding: 4px 6px; width: 150px; }

/* выезжающая панель */
.drawer-overlay { position: fixed; inset: 0; background: rgba(20,30,45,.4); z-index: 110; display: flex; justify-content: flex-end; }
.drawer { background: var(--bg); width: min(460px, 100%); height: 100%; overflow-y: auto; padding: 22px; box-shadow: -8px 0 30px rgba(20,40,90,.18); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.drawer-title { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.drawer-section h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; margin: 18px 0 8px; }
.drawer-card { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line-3); border-left: 4px solid var(--line-6); cursor: pointer; }
.drawer-card .dc-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.drawer-card.done .dc-title { color: var(--muted-3); text-decoration: line-through; }
.drawer-card .dc-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ===== Идеи ===== */

.ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.idea-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 15px 16px; border: 1px solid var(--line-3); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.idea-card .idot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.idea-card .itext { font-size: 15px; font-weight: 600; flex: 1; cursor: pointer; }
.idea-vote { border: 1px solid var(--line-5); background: #fff; border-radius: 9px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; color: var(--muted); }
.idea-vote.voted { border-color: var(--accent); background: var(--chip-blue-bg); color: var(--accent-text); }
.idea-promote { border: 1px solid #cfe0fb; background: #f2f6fe; color: var(--accent); font-size: 12px; font-weight: 700; padding: 7px 13px; border-radius: 9px; cursor: pointer; font-family: inherit; white-space: nowrap; }

.empty { background: #fff; border-radius: 14px; padding: 34px; text-align: center; color: var(--muted); border: 1px solid var(--line-3); }

/* ===== модалки ===== */

.modal-overlay { position: fixed; inset: 0; background: rgba(20,30,45,.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.modal { background: #fff; border-radius: 18px; padding: 22px; width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; gap: 13px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; font-size: 19px; font-weight: 800; }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.modal input, .modal textarea, .modal select { padding: 10px 12px; font-size: 15px; border: 1px solid var(--line-5); border-radius: 10px; background: #fff; color: var(--text); font-family: inherit; }
.modal .row { display: flex; gap: 12px; }
.modal .row > label { flex: 1; }
.x-btn { border: none; background: none; cursor: pointer; font-size: 18px; color: var(--muted-3); }
.field-name { font-size: 13px; color: var(--muted); font-weight: 600; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pick { cursor: pointer; }
.pick input { display: none; }
.pick .chip { opacity: 0.45; }
.pick input:checked + .chip { opacity: 1; outline: 2px solid currentColor; }
.modal-actions { display: flex; gap: 8px; margin-top: 4px; }
.modal-actions .btn { flex: 1; }
.btn.danger { background: #fdeceb; color: #cc3a2f; }
.bucket-action { display: flex; gap: 8px; }
.bucket-action .btn { flex: 1; background: #eef2f9; color: var(--text); font-weight: 600; }
.bucket-action select { padding: 10px; border: 1px solid var(--line-5); border-radius: 10px; font-family: inherit; }
.link-code { font-size: 22px; font-weight: 800; letter-spacing: 0.18em; text-align: center; background: #f0f3f9; padding: 14px; border-radius: 12px; cursor: pointer; }
.link-code:hover { background: #e6ebf4; }
#link-instructions code { background: #f0f3f9; padding: 2px 6px; border-radius: 6px; }

/* ===== тосты ===== */

.toast-box { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; pointer-events: none; width: max-content; max-width: 90vw; }
.toast { background: #16233b; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 15px; box-shadow: 0 6px 20px rgba(20,25,40,.28); opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #18794e; }
.toast.error { background: #c0392b; }

/* ===== вход ===== */

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: #fff; padding: 34px 30px; border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 20px 44px -22px rgba(20,50,110,.32); width: 100%; max-width: 360px; text-align: center; margin: 16px; }
.login-box h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; }
.login-box form { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.login-box input { padding: 13px 15px; font-size: 15px; border: 1px solid var(--line-5); border-radius: 12px; font-family: inherit; }
.login-box .btn { width: 100%; }
.error { color: #cc3a2f; font-size: 14px; }

/* ===== адаптив ===== */

@media (max-width: 700px) {
  .myday-right { max-width: none; flex-basis: 100%; }
  .cards-grid, .ideas-grid { grid-template-columns: 1fr; }
  .modal .row { flex-direction: column; }
  .add-row .btn.add { padding: 0 18px; }
  .stream-block { flex-direction: column; gap: 0; margin-bottom: 16px; }
  .stream-tag { flex-basis: auto; border-radius: 12px 12px 0 0; padding: 12px 16px; font-size: 14px; }
  .stream-rows { border-radius: 0 0 12px 12px; }
  .dash-row { gap: 10px; }
  .dash-row .dr-name { font-size: 14px; }
  .dash-row .dr-lead { min-width: 0; font-size: 13px; }
  .drawer { width: 100%; }
}
