:root {
  color-scheme: dark;
  --page: #101019;
  --panel: #1b1b28;
  --line: #323247;
  --text: #f5f3ff;
  --muted: #b6b3c9;
  --accent: #ccbcff;
  font-family: 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--text); }
a { color: var(--accent); }
button, a { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 12px clamp(18px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.brand, nav a { text-decoration: none; }
.brand { color: var(--text); font-size: 1.08rem; font-weight: 650; letter-spacing: .03em; }
.brand-icon { color: var(--accent); margin-right: .45em; font-size: 1.4em; vertical-align: -.04em; }
nav { display: flex; align-items: center; gap: 14px; }
.workspace { max-width: 1070px; margin: 0 auto; padding: 52px clamp(18px, 6vw, 64px); }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; letter-spacing: -.045em; }
h2 { font-size: 1.15rem; margin: 0 0 .45em; overflow-wrap: anywhere; }
p { color: var(--muted); line-height: 1.7; }
.welcome { max-width: 660px; padding: clamp(24px, 7vw, 76px); border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(140deg, #28213e, var(--panel) 65%); }
.welcome p { margin: 18px 0 28px; }
.primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--accent);
  color: #191029;
  border-radius: 8px;
  padding: 10px 17px;
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}
.primary:hover { background: #e1d6ff; }
.heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.heading p { margin: 9px 0 0; }
.projects { display: grid; gap: 12px; }
.project {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.project-icon { display: grid; place-items: center; height: 39px; background: #322951; border-radius: 7px; color: var(--accent); font-size: 21px; }
.project time { color: var(--muted); font-size: .86rem; }
.project .open { padding: 8px 4px; }
.ghost { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.ghost:hover { border-color: var(--accent); color: var(--text); }
.empty { border: 1px dashed var(--line); border-radius: 12px; padding: 35px 24px; }
#state[data-error] { color: #ffb9c6; }
@media (max-width: 520px) {
  .heading { align-items: start; flex-direction: column; }
  .project { grid-template-columns: 30px 1fr auto; gap: 9px; }
  .project .delete { grid-column: 3; }
}
