:root {
  --bg: #fff8f2;
  --paper: #ffffff;
  --ink: #4a3731;
  --muted: #8c766b;
  --pink: #e87a6d;
  --pink2: #ffdcd8;
  --peach: #ffdfc7;
  --yellow: #f6ca65;
  --mint: #a8d5ba;
  --line: #ebd6c8;
  --red: #d9534f;
  --green: #489b66;
  --blue: #5b9bd5;
  --shadow: 0 6px 20px rgba(138, 93, 70, 0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.4 system-ui, -apple-system, sans-serif;
  user-select: none;
}
button, input, select, textarea { font: inherit; }
button {
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  background: #ffebe0;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 #ebd0c0;
  touch-action: manipulation;
  transition: all 0.1s ease;
}
button:active { transform: translateY(1px); box-shadow: none; }
button:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.primary { background: var(--pink); color: #fff; box-shadow: 0 2px 0 #c25b4e; }
.mint { background: var(--mint); color: #225034; box-shadow: 0 2px 0 #84b897; }
.yellow { background: var(--yellow); color: #5a4100; box-shadow: 0 2px 0 #d4a537; }
.blue { background: var(--blue); color: #fff; box-shadow: 0 2px 0 #3b74a6; }
.danger { background: #f8b4ab; color: #721c24; box-shadow: 0 2px 0 #e09187; }
.tiny { padding: 4px 8px; font-size: 11px; border-radius: 8px; }
.muted { color: var(--muted); }
.hide { display: none !important; }

#app { max-width: 1400px; margin: auto; padding: 10px; min-height: 100vh; }
.top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.logo { font-size: 20px; font-weight: 900; color: #d75a4d; display: flex; align-items: center; gap: 6px; }
.pill {
  background: var(--paper); border: 1px solid var(--line); border-radius: 99px;
  padding: 5px 10px; font-weight: 700; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: inline-flex; align-items: center; gap: 4px;
}
.topActions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

.layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.9fr); gap: 10px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 12px; box-shadow: var(--shadow); min-width: 0;
}