/* Vims's look, in one place: the desktop app and the website both read this file. */
:root {
  color-scheme: light;
  --background: #fafafa;
  --foreground: #202020;
  --card: oklch(1 0 0);
  --card-foreground: #202020;
  --primary: #262626;
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: #737373;
  --accent: #f0f0f0;
  --accent-foreground: #262626;
  --destructive: oklch(0.577 0.245 27.325);
  --success: oklch(0.596 0.145 163.225);
  --border: #e5e5e5;
  --input: oklch(0.922 0 0);
  --ring: #262626;
  --font-family: -apple-system, ui-sans-serif, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body{margin:0;background:var(--background);color:var(--foreground);font-family:var(--font-family);font-size:14px;-webkit-font-smoothing:antialiased}
h1{margin:0 0 8px;font-size:20px;font-weight:600;letter-spacing:-.01em}
p{margin:0 0 20px;color:var(--muted-foreground);line-height:1.5}
a{color:var(--foreground)}
a.button,button{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;height:36px;padding:0 16px;border:0;border-radius:6px;background:var(--primary);color:var(--primary-foreground);font:inherit;font-weight:500;text-decoration:none;cursor:pointer}
a.button:focus-visible,button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
button:disabled{opacity:.5;cursor:wait}
.brand{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;letter-spacing:-.01em}
.brand svg{width:28px;height:28px}
body.card{min-height:100vh;display:grid;place-items:center}
body.card main{box-sizing:border-box;width:min(480px,calc(100vw - 32px));background:var(--card);color:var(--card-foreground);border:1px solid var(--border);border-radius:12px;padding:32px}
body.card .brand{margin-bottom:24px}
h2{margin:24px 0 6px;font-size:15px;font-weight:600}
section{border-top:1px solid var(--border);margin-top:20px}
section h2{margin-top:16px}
strong{color:var(--foreground);font-weight:600}
ul.list{margin:0 0 20px;padding:0;list-style:none;border:1px solid var(--border);border-radius:8px}
ul.list li{padding:8px 12px;color:var(--foreground)}
ul.list li+li{border-top:1px solid var(--border)}
a.button.secondary{background:var(--secondary);color:var(--secondary-foreground);border:1px solid var(--border)}
a.button svg,a.quiet svg{width:14px;height:14px;flex:none}
a.button.secondary:hover{background:var(--accent)}
a.quiet{display:inline-flex;align-items:center;gap:6px;color:var(--muted-foreground);font-weight:500;text-decoration:none}
a.quiet:hover{color:var(--foreground)}
.icon{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.subject{position:relative;display:grid;place-items:center;width:48px;height:48px;margin:0 0 20px;border:1px solid var(--border);border-radius:50%;background:var(--card);color:var(--foreground)}
.subject>svg{width:24px;height:24px}
.subject .state{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;box-shadow:0 0 0 2px var(--card);color:var(--primary-foreground)}
.subject .state svg{width:12px;height:12px;stroke-width:3}
.state.done{background:var(--success)}
.state.waiting{background:var(--muted-foreground)}
.state.failed{background:var(--destructive)}
.state.private{background:var(--foreground)}
.subject.working{border-color:var(--border)}
.subject.working::after{content:"";position:absolute;inset:-5px;border:2px solid var(--border);border-top-color:var(--foreground);border-radius:50%;animation:turn .8s linear infinite}
@keyframes turn{to{transform:rotate(1turn)}}
@media (prefers-reduced-motion:reduce){.subject.working::after{animation-duration:2.4s}}
h1+.rows,h1+.org{margin-top:20px}
ul.rows{margin:0 -10px 20px;padding:0;list-style:none}
.rows .row{display:flex;align-items:center;gap:10px;min-height:36px;box-sizing:border-box;padding:6px 10px;border-radius:6px;color:var(--foreground);text-decoration:none}
a.row:hover{background:var(--accent)}
a.row:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}
.row>svg{width:16px;height:16px;flex:none;color:var(--muted-foreground)}
.row>svg.mark{color:var(--foreground)}
.row .name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .owner{color:var(--muted-foreground)}
.row .end{margin-left:auto;display:inline-flex;align-items:center;gap:6px;color:var(--muted-foreground);font-size:13px;white-space:nowrap}
.row .end svg{width:14px;height:14px}
.row .end.done{color:var(--foreground)}
.row .end.done svg{color:var(--success)}
.org{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 8px}
.org strong{font-size:15px}
.org a.quiet{font-size:13px}
.meta{margin:-12px 0 20px;font-size:13px;color:var(--muted-foreground)}
.actions{display:flex;align-items:center;gap:8px;margin-top:28px}
.actions .push{margin-left:auto}
.actions.tight{margin-top:0}
p.note{margin:0;font-size:13px}
details{margin-top:20px;border-top:1px solid var(--border);padding-top:16px}
details+details{margin-top:0;border-top:0;padding-top:4px}
summary{cursor:pointer;color:var(--muted-foreground);font-weight:500;list-style:none;display:flex;align-items:center;gap:6px}
summary::-webkit-details-marker{display:none}
summary::before{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s ease-out;margin:0 4px 0 2px}
details[open] summary::before{transform:rotate(45deg)}
summary:hover{color:var(--foreground)}
details>:not(summary){margin-top:12px}
::selection{background:var(--accent);color:var(--foreground)}
