:root {
  --ink: #16242c;
  --muted: #6c777d;
  --paper: #f3f1ea;
  --card: #fffef9;
  --line: #d9d7ce;
  --navy: #13252f;
  --blue: #2867f0;
  --mint: #adf2c9;
  --green: #2f8055;
  --coral: #fb765d;
  --amber: #e7b448;
  --shadow: 0 20px 55px rgba(19, 37, 47, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(22, 36, 44, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 36, 44, .024) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: Inter, "SF Pro Display", "Noto Sans TC", "PingFang TC", sans-serif;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand-mark {
  width: 13px;
  height: 13px;
  background: var(--mint);
  border-radius: 50% 50% 50% 3px;
  transform: rotate(-45deg);
  box-shadow: 11px 0 0 var(--coral);
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #abb3b6; }
.status-dot.doing { background: var(--amber); box-shadow: 0 0 0 5px rgba(231,180,72,.17); }
.status-dot.done { background: var(--green); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255,255,255,.75);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.primary-button, .secondary-button, .text-button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .17s ease, background .17s ease, opacity .17s ease;
}
.primary-button:active, .secondary-button:active, .text-button:active, .edit-link:active { transform: scale(.97); }

.primary-button { padding: 10px 16px; color: white; background: var(--blue); }
.primary-button:hover { transform: translateY(-1px); background: #1857d6; }
.secondary-button { padding: 10px 14px; border: 1px solid var(--line); background: white; }
.secondary-button:hover { background: #f5f5ef; }
.text-button { padding: 7px 9px; color: var(--muted); background: transparent; }
.text-button:hover { color: var(--ink); background: rgba(255,255,255,.7); }
button:disabled, input:disabled, textarea:disabled, select:disabled { cursor: not-allowed; opacity: .58; }

.toast {
  position: fixed;
  z-index: 100;
  right: 26px;
  bottom: 24px;
  max-width: 360px;
  padding: 12px 15px;
  color: white;
  background: var(--navy);
  border-radius: 11px;
  box-shadow: 0 18px 45px rgba(0,0,0,.2);
  font-size: 12px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
