:root {
  color-scheme: dark;
  font: 14px/1.5 system-ui, sans-serif;
  color: #e8efed;
  background: #0b1014;
  --line: #27343a;
  --muted: #829197;
  --mint: #85f1c0;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 70% -20%, rgba(37, 83, 68, .18), transparent 48%), #0b1014; }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid #1d292f; background: rgba(11, 16, 20, .84); }
.brand { display: flex; align-items: center; gap: 10px; color: #edf3f2; font-size: 12px; font-weight: 720; letter-spacing: .11em; text-decoration: none; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid rgba(133, 241, 192, .32); border-radius: 8px; color: var(--mint); background: rgba(133, 241, 192, .08); font-size: 19px; }
.brand-muted { color: var(--muted); font-weight: 500; }
.status { display: flex; align-items: center; gap: 8px; color: #94a39f; font-size: 11px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(133, 241, 192, .5); }
.content { width: min(940px, 100%); margin: 0 auto; padding: 64px 32px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 43px; }
.eyebrow { margin: 0 0 8px; color: var(--mint); font: 9px ui-monospace, monospace; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(29px, 5vw, 38px); font-weight: 620; letter-spacing: -.045em; line-height: 1.15; }
.intro { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.create-button, .cancel-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--mint); border-radius: 6px; background: var(--mint); color: #0c2118; font-size: 11px; font-weight: 650; }
.create-button:hover { border-color: #a4f6d0; background: #a4f6d0; }
.create-button:focus-visible, .cancel-button:focus-visible, input:focus-visible, .project-link:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-heading h2 { margin: 0; color: #d3dddb; font-size: 12px; font-weight: 650; }
.section-heading span { color: var(--muted); font: 10px ui-monospace, monospace; }
.project-list { display: grid; gap: 9px; }
.project-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 17px; border: 1px solid var(--line); border-radius: 8px; background: #11191e; color: inherit; text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.project-link:hover { transform: translateY(-1px); border-color: #456255; background: #141f22; }
.project-info { min-width: 0; display: flex; align-items: center; gap: 13px; }
.project-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid #2e4139; border-radius: 8px; background: #17241e; color: var(--mint); }
.project-name { overflow: hidden; color: #e3ebe9; font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.project-date { margin-left: 1em; margin-top: 3px; color: var(--muted); font-size: 10px; }
.project-arrow { color: #738188; font-size: 16px; }
.empty-state { padding: 40px 20px; border: 1px dashed #344249; border-radius: 8px; color: var(--muted); text-align: center; font-size: 12px; }
.page-error, .dialog-error { color: #f08c83; font-size: 11px; }
.page-error[hidden], .dialog-error[hidden] { display: none; }
dialog { width: min(420px, calc(100% - 32px)); padding: 24px; border: 1px solid #344249; border-radius: 10px; background: #11191e; color: #e8efed; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }
dialog::backdrop { background: rgba(3, 7, 9, .72); backdrop-filter: blur(3px); }
dialog h2 { margin: 0 0 21px; font-size: 19px; font-weight: 620; letter-spacing: -.02em; }
dialog label { display: block; margin-bottom: 7px; color: #aab8b8; font-size: 10px; }
dialog input { width: 100%; padding: 10px 11px; border: 1px solid #344249; border-radius: 6px; outline: 0; background: #0c1216; color: #edf3f2; font-size: 12px; }
dialog input:focus { border-color: #53836d; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.cancel-button { border-color: #344249; background: #172127; color: #c8d3d2; }
.cancel-button:hover { border-color: #50635f; color: #fff; }

@media (max-width: 600px) {
  .topbar { height: 58px; padding: 0 16px; }
  .content { padding: 40px 16px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 32px; }
}
