/* Базовые стили инструмента PI Planning — копия общих правил трекера (public/initiatives/index.html):
   AICODE-NOTE: у трекера стили встроены в index.html, вынести их в общий файл — значит трогать весь трекер.
   При смене дизайна кнопок, полей и тостов трекера обнови и этот файл. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f5f6fb;
  --bg2: #ffffff;
  --bg3: #f8f9fd;
  --bg4: #eef0f8;
  --text: #1a1d2e;
  --text2: #5e6278;
  --text3: #6b7080;
  --border: #e6e8f2;
  --border2: #d0d3e2;
  --purple: #7c3aed;
  --purple-2: #6025c8;
  --purple-light: #f3efff;
  --purple-mid: #c5b3f5;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #00a854;
  --yellow: #f59e0b;
  --red: #f1416c;
  --orange: #ff6b35;
  --shadow-sm: 0 1px 4px rgba(8,10,37,0.06);
  --shadow: 0 4px 20px rgba(8,10,37,0.08), 0 1px 4px rgba(8,10,37,0.04);
  --shadow-lg: 0 8px 32px rgba(8,10,37,0.12);
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
}
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'Manrope', system-ui, sans-serif; font-size: 14px; line-height: 1.5; }
.btn-text { background: none; border: none; color: var(--text2); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: var(--r); transition: all 0.15s; }
.btn-text:hover { color: var(--purple); background: var(--purple-light); }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: var(--r); font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.15s; white-space: nowrap;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 2px 8px rgba(124,58,237,0.25); }
.btn-primary:hover { background: var(--purple-2); box-shadow: 0 4px 12px rgba(124,58,237,0.4); transform: translateY(-1px); }
.btn-secondary { background: var(--bg2); color: var(--text2); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--bg3); color: var(--text); border-color: var(--border2); }
.btn-outline { background: transparent; color: var(--purple); border: 1.5px solid var(--purple); }
.btn-outline:hover { background: var(--purple-light); }
.btn-danger { background: #fff5f8; color: var(--red); border: 1.5px solid #ffd0df; }
.btn-danger:hover { background: #ffe0eb; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
input[type=text], input[type=email], input[type=number], input[type=date], textarea, select {
  width: 100%; padding: 10px 14px; background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: var(--r); color: var(--text); font-family: inherit; font-size: 13px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; resize: vertical;
}
input[type=text]:focus, input[type=email]:focus, input[type=number]:focus, input[type=date]:focus,
textarea:focus, select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); background: var(--bg2); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235e6278' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
select option { background: var(--bg2); }
input[type=range] { width: 130px; accent-color: var(--purple); cursor: pointer; }
.ai-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(124,58,237,0.15); border-top-color: var(--purple); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { padding: 12px 16px; border-radius: var(--r); font-size: 13px; margin: 12px 0; line-height: 1.5; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-error { background: #fff5f8; border: 1px solid #ffd0df; color: #9f1239; }
.alert-success { background: #f0fdf4; border: 1px solid #a7f3d0; color: #065f46; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.loading { display: flex; align-items: center; justify-content: center; padding: 80px; gap: 12px; color: var(--text3); font-size: 13px; }
.empty { text-align: center; padding: 80px 40px; color: var(--text3); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; background: var(--bg3); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast {
  padding: 12px 18px; border-radius: var(--r); font-size: 13px; font-weight: 500;
  animation: slideIn 0.25s ease; max-width: 320px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
}
.toast-success { background: #059669; color: #fff; }
.toast-error { background: #f1416c; color: #fff; }
.toast-info { background: var(--purple); color: #fff; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Title type hint */
