*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #e8e8e8;
  background: #050505;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: #050505 url("/assets/bg.jpg") center / cover no-repeat;
  opacity: 0.4; pointer-events: none;
}
.shell { position: relative; z-index: 1; min-height: 100vh; }
.header {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 24px; border-bottom: 1px solid #222;
  background: rgba(5,5,5,0.92);
}
.header a { text-decoration: none; }
.brand { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.nav { display: flex; gap: 16px; align-items: center; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #888; }
.nav a:hover { color: #e8e8e8; }
.card-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.card {
  width: 100%; max-width: 380px; border: 1px solid #2a2a2a;
  background: rgba(5,5,5,0.92); padding: 28px; position: relative; z-index: 1;
}
.eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #888; margin-bottom: 8px; }
.card h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; }
.muted { color: #888; font-size: 0.9rem; margin-bottom: 20px; }
.field {
  width: 100%; height: 44px; border: 1px solid #2a2a2a; background: #0a0a0a;
  color: #e8e8e8; padding: 0 12px; outline: none; margin-bottom: 12px;
}
.field:focus { border-color: #666; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border: 1px solid #e8e8e8; background: #e8e8e8;
  color: #050505; font-size: 0.9rem; cursor: pointer; width: 100%;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: #e8e8e8; border-color: #333; width: auto; }
.btn.sm { height: 36px; font-size: 0.8rem; width: auto; }
.error { color: #f66; font-size: 0.875rem; margin-bottom: 12px; }
.back { display: block; text-align: center; margin-top: 20px; color: #888; font-size: 0.875rem; text-decoration: none; }
.back:hover { color: #e8e8e8; }
.main { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.main h1 { font-size: 1.5rem; margin-bottom: 8px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.row .field { flex: 1; min-width: 200px; margin-bottom: 0; }
.list { border: 1px solid #2a2a2a; }
.list a {
  display: block; padding: 16px; border-bottom: 1px solid #2a2a2a;
  text-decoration: none; color: #e8e8e8;
}
.list a:last-child { border-bottom: 0; }
.list a:hover { background: #111; }
.list .name { font-weight: 500; }
.list .brief { color: #888; font-size: 0.875rem; margin-top: 4px; }
.empty { border: 1px dashed #333; padding: 40px 20px; text-align: center; color: #888; font-size: 0.9rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 56px); }
.col { padding: 32px 24px; }
.col.left { border-right: 1px solid #222; }
.label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #666; margin-bottom: 8px; }
textarea.field {
  height: auto; min-height: 200px; padding: 12px; resize: vertical; line-height: 1.45; font-family: inherit;
}
.title-input {
  width: 100%; border: 0; border-bottom: 1px solid #2a2a2a; background: transparent;
  color: #e8e8e8; font-size: 1.25rem; font-weight: 600; padding: 0 0 8px; outline: none; margin-bottom: 20px;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.status { color: #888; font-size: 0.9rem; margin-bottom: 16px; }
.note {
  white-space: pre-wrap; font-size: 0.9rem; line-height: 1.55; max-height: 70vh; overflow: auto;
}
.plan {
  border: 1px solid #2a2a2a; padding: 16px; margin: 16px 0; font-size: 0.8rem; color: #ccc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.plan .title { font-weight: 600; margin-bottom: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
img.concept { display: block; width: 100%; border: 1px solid #2a2a2a; margin: 12px 0; background: #0a0a0a; }
@media (max-width: 860px) {
  .grid2 { grid-template-columns: 1fr; }
  .col.left { border-right: 0; border-bottom: 1px solid #222; }
}
