/* Кабинет DevContent — стили по Figma «Экраны MVP» (01, 03). */
:root {
  --navy: #0f1729;
  --navy-2: #1a2238;
  --blue: #2f66f5;
  --blue-dark: #2453cc;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 17px; margin: 0 0 8px; }
.muted { color: var(--muted); }

/* ── Раскладка ── */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; flex: 0 0 220px; background: var(--navy); color: #cbd5e1;
  display: flex; flex-direction: column; padding: 18px 12px;
}
.logo { font-weight: 700; color: #fff; font-size: 17px; padding: 0 10px 14px; }
.logo .dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue); margin-right: 4px;
}
.logo-sub { font-size: 11px; font-weight: 400; color: #64748b; margin-top: 2px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a, .nav-soon {
  padding: 8px 10px; border-radius: 8px; color: #cbd5e1;
  text-decoration: none; font-size: 14px;
}
.sidebar nav a:hover { background: var(--navy-2); color: #fff; }
.sidebar nav a.active { background: var(--navy-2); color: #fff; font-weight: 600; }
.nav-soon { color: #475569; cursor: default; }
.sidebar-user {
  display: flex; align-items: center; gap: 9px; padding: 10px;
  border-top: 1px solid var(--navy-2); font-size: 13px;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; flex: 0 0 30px;
}
.user-name { color: #fff; }
.user-role { color: #64748b; font-size: 11px; }
.link-btn {
  background: none; border: none; color: #64748b; cursor: pointer;
  font-size: 15px; margin-left: auto;
}
.link-btn:hover { color: #fff; }

.main { flex: 1; min-width: 0; }
.topbar {
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 16px 28px;
}
.content { padding: 24px 28px; }

/* ── Карточки и формы ── */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
label { display: block; font-size: 13px; color: var(--text); margin-bottom: 12px; }
input[type=email], input[type=password], input[type=text], textarea, select {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 8px; font: inherit;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 102, 245, .15);
}
.btn-primary {
  display: block; width: 100%; padding: 10px; border: none;
  border-radius: 8px; background: var(--blue); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.btn-primary:hover { background: var(--blue-dark); }
.error {
  background: #fef2f2; color: var(--danger); border: 1px solid #fecaca;
  border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-bottom: 14px;
}

/* ── Этап 2: кнопки, бейджи, вкладки, канбан, таблицы ── */
.topbar { display: flex; align-items: center; justify-content: space-between; }
.topbar-actions { display: flex; gap: 10px; }
.btn-primary.inline, .btn-dark, .btn-secondary {
  display: inline-block; width: auto; padding: 8px 16px; border-radius: 8px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; border: none; text-align: center;
}
.btn-primary.inline { background: var(--blue); color: #fff; }
.btn-primary.inline:hover { background: var(--blue-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--muted); }
button:disabled { opacity: .45; cursor: not-allowed; }

.tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 6px 14px; border-radius: 16px; border: 1px solid var(--border);
  background: #fff; color: var(--text); text-decoration: none; font-size: 13px;
  font-weight: 600;
}
.tab-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-note { font-size: 12px; }

.banner {
  border: 1px solid #f6c453; background: #fffbeb; border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 16px; font-size: 14px;
}
.banner-blue { border-color: #bfdbfe; background: #eff6ff; }
.banner-green { border-color: #86efac; background: #f0fdf4; }
.banner form { margin-top: 10px; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11px;
  font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-blue-soft { background: #eff6ff; color: #2453cc; font-weight: 600; letter-spacing: 0; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-gray { background: #f1f5f9; color: #64748b; }

.row-card {
  background: var(--card); border-radius: var(--radius); padding: 14px 18px;
  margin-bottom: 10px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.row-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.row-title { color: var(--text); font-weight: 600; text-decoration: none; }
.row-title:hover { color: var(--blue); }
.row-sub { font-size: 13px; }
.row-action { flex: 0 0 auto; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.card-title { font-size: 20px; margin: 0 0 8px; }
.why { margin: 0 0 14px; }
.narrow { max-width: 640px; }
.panel {
  background: var(--bg); border-radius: 8px; padding: 12px 16px; margin-bottom: 12px;
  font-size: 14px;
}
.panel-blue { background: #eff6ff; }
.panel-caption {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted);
  margin-bottom: 10px;
}
.decision-form label { margin-bottom: 10px; }
.reject-form { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.field-note { font-size: 12px; margin: -6px 0 12px; }

.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.kanban-col { background: #eceff3; border-radius: var(--radius); padding: 12px; }
.kanban-head { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.kanban-head .count {
  background: #fff; border-radius: 10px; padding: 1px 8px; font-size: 12px;
  color: var(--muted); font-weight: 600; margin-left: 4px;
}
.kanban-card {
  background: #fff; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.chip {
  background: var(--bg); border-radius: 6px; padding: 2px 8px; font-size: 12px;
  color: var(--muted);
}
.chip-violet { background: #f3e8ff; color: #7e22ce; }
.card-btn { width: 100%; margin-top: 10px; padding: 9px; display: block; }

.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 14px 18px; }
.check-row input { margin-top: 3px; width: 16px; height: 16px; }
.check-title { font-weight: 600; display: block; }
.check-note { display: block; font-size: 13px; }
.page-intro { margin-bottom: 16px; font-size: 14px; }

.table-card { padding: 6px 22px 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; font-size: 11px; letter-spacing: .05em; color: var(--muted);
  font-weight: 700; padding: 10px 10px 8px 0; border-bottom: 1px solid var(--border);
}
td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }

/* ── Логин ── */
.login-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh; padding: 16px;
}
.login-card {
  width: 100%; max-width: 380px; background: var(--card);
  border-radius: 14px; padding: 28px 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
.login-card h1 { margin: 14px 0 4px; }
.login-card .muted { font-size: 13px; margin: 0 0 18px; }
.logo-dark { color: var(--text); padding: 0; }
.footnote { font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.trust-strip { margin-top: 18px; font-size: 12px; color: var(--muted); }
