﻿:root {
  --bg: #f4f7fb;
  --paper: rgba(255, 255, 255, 0.9);
  --ink: #1e2838;
  --muted: #6f7f95;
  --line: #dce3ef;
  --brand: #1f9b84;
  --brand-2: #2b75eb;
  --danger: #de4e4e;
  --shadow: 0 18px 48px rgba(29, 47, 75, 0.14);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 8% 12%, #e9f7f6 0%, transparent 32%), radial-gradient(circle at 90% 88%, #e8f1ff 0%, transparent 35%), var(--bg);
  min-height: 100vh;
}
.bg-shape { position: fixed; z-index: -1; border-radius: 999px; filter: blur(30px); }
.bg-one { width: 360px; height: 360px; background: #b0eedf; top: -100px; left: -120px; }
.bg-two { width: 340px; height: 340px; background: #c5dbff; bottom: -90px; right: -100px; }
.app-shell { max-width: 1320px; margin: 24px auto; padding: 0 18px 24px; }
.card { background: var(--paper); border: 1px solid #ecf1f8; border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.auth-card { max-width: 470px; margin: 44px auto; padding: 26px; }
.muted { color: var(--muted); margin-top: 2px; }
.tabs { display: flex; gap: 8px; margin: 16px 0; }
.tab { border: 1px solid var(--line); border-radius: 999px; background: #f3f7fc; padding: 8px 14px; cursor: pointer; }
.tab.active { background: #18283f; color: #fff; border-color: #18283f; }
.form-grid, .row-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.form-grid input, .form-grid select, .toolbar input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff;
}
.hidden { display: none !important; }
.error { color: #b8223c; min-height: 20px; }
.topbar { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; margin-bottom: 14px; align-items: center; }
.toolbar { display: flex; gap: 10px; align-items: center; }
.toolbar input { width: 230px; }
.layout { display: grid; grid-template-columns: 300px 1fr 300px; gap: 14px; }
.pane { padding: 14px; min-height: 68vh; }
.main-pane { min-height: 68vh; }
.pane-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pane-head.split { margin-bottom: 14px; }
.row-line { display: flex; gap: 8px; flex-wrap: wrap; }
.list-group { display: grid; gap: 10px; }
.list-card, .item-card { border: 1px solid var(--line); border-radius: 14px; padding: 11px; background: rgba(255,255,255,0.9); }
.list-card.active { border-color: var(--brand-2); box-shadow: 0 0 0 2px rgba(43,117,235,0.15); }
.item-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.item-card.checked { opacity: 0.55; }
.item-main { display: flex; flex-direction: column; gap: 2px; }
.item-name.checked { text-decoration: line-through; }
.item-actions { display: flex; gap: 8px; }
.items { display: grid; gap: 10px; margin-top: 8px; }
.btn { border: none; border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 700; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: var(--brand-2); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: #f1f5fb; }
.btn-mini { background: #edf3fb; padding: 8px 11px; }
.btn-icon { padding: 7px 11px; font-size: 20px; line-height: 1; }
.empty-state { padding: 24px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
.panel-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf2f8; }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(17, 29, 48, 0.5); display: grid; place-items: center; z-index: 30;
}
.modal { width: min(560px, calc(100% - 28px)); padding: 16px; border-radius: 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .pane, .main-pane { min-height: auto; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .toolbar { width: 100%; flex-wrap: wrap; }
  .toolbar input { width: 100%; }
}
