:root {
  --ink: #151515;
  --muted: #68635c;
  --line: #dedbd2;
  --paper: #fbfaf4;
  --card: #fffefa;
  --aqua: #20c5cb;
  --violet: #7c4dff;
  --red: #e8453f;
  --green: #158b65;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Noto Sans KR", sans-serif;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .92);
  position: sticky;
  top: 0;
  z-index: 5;
}
h1, h2, p { margin: 0; }
h1 { font-size: 34px; line-height: 1; }
h2 { font-size: 22px; margin-bottom: 14px; }
.eyebrow { color: var(--muted); font-weight: 900; margin-bottom: 6px; }
.auth, .toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
button {
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 14px;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--aqua));
  font-weight: 900;
  cursor: pointer;
}
button.ghost, button.tab {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}
button.tab.active {
  color: white;
  background: #151515;
}
main { padding: 28px; max-width: 1280px; margin: 0 auto; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(35,32,25,.06);
}
.warning { border-color: #f0c36a; background: #fff8d8; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.stats strong { display: block; font-size: 32px; }
.stats span { color: var(--muted); font-weight: 800; }
.data-panel { margin-top: 16px; }
.list { display: grid; gap: 12px; }
.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
}
.item-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.title { font-size: 18px; font-weight: 900; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.5; }
.body { margin: 10px 0; color: #2d2a26; white-space: pre-wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: white;
  background: var(--green);
}
.badge.high, .badge.urgent { background: var(--red); }
.badge.medium { background: #d28a11; }
.badge.low, .badge.watch { background: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.danger { background: var(--red); }
.success { background: var(--green); }
.empty { color: var(--muted); padding: 20px; border: 1px dashed var(--line); border-radius: 8px; }
@media (max-width: 760px) {
  header { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
}
