@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;600;700&display=swap');

:root {
  --bg: #0f1115;
  --text: #e8ecf1;
  --card: #1b1f2a;
  --muted: #9eabc2;
  --accent: #5cc8ff;
}

body[data-theme='light'] {
  --bg: #f7f9fc;
  --text: #0f1115;
  --card: #ffffff;
  --muted: #5d6778;
  --accent: #2463eb;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans TC', Inter, Arial, 'Microsoft JhengHei', 'PingFang TC', sans-serif;
}

.header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-controls { display: flex; gap: 8px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.card {
  background: var(--card);
  border-radius: 10px;
  padding: 12px;
  min-height: 220px;
}

.card-head { display: flex; justify-content: space-between; gap: 8px; }
input, select, button {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 6px 8px;
}

ul { list-style: none; margin: 0; padding: 0; }
li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.meta { color: var(--muted); font-size: 12px; }
a { color: var(--accent); text-decoration: none; }
