/* The SeeWork palette, from the web app (css/app.css), trimmed to what this uses. */
:root {
  --blue: #0098d6; --indigo: #557ec3; --green: #47a554; --orange: #dc7a17;
  --purple: #9a69b3; --red: #f05a52; --pink: #ce6079; --teal: #2ca3a3;
  --accent: var(--blue);
  --bg-page: #f1f1f5;
  --bg-card: #ffffff;
  --bg-inset: rgba(120, 120, 128, 0.08);
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.05);
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #111113;
    --bg-card: #1c1c1e;
    --bg-inset: rgba(120, 120, 128, 0.18);
    --text: #f5f5f7;
    --text-muted: #98989d;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
code { font: 0.92em ui-monospace, "SF Mono", Menlo, monospace; }
.muted { color: var(--text-muted); }
.meta { color: var(--text-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- buttons ---- */
button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; font-size: 14px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
button:hover, .button:hover { filter: brightness(1.07); }
button:focus-visible, .button:focus-visible, input:focus-visible, .quiet-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px;
}
.quiet-button {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--bg-inset); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.quiet-button.danger { color: var(--red); }

/* ---- the door ---- */
body.door { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.door-card {
  width: 100%; max-width: 360px; padding: 36px 28px 28px;
  background: var(--bg-card); border-radius: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--border); text-align: center;
}
.door-mark { display: block; margin: 0 auto 14px; }
.door-card h1 { font-size: 24px; margin-bottom: 6px; }
.door-card form { display: grid; gap: 10px; margin-top: 22px; }
.door-card input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-inset); color: var(--text);
  font: inherit; font-size: 17px; text-align: center; letter-spacing: 0.08em;
}
.door-card button { height: 44px; font-size: 16px; border-radius: 10px; }
.error { margin-top: 14px; color: var(--red); font-weight: 500; }

/* ---- the portal ---- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 960px; margin: 0 auto; padding: 28px 16px 8px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { font-size: 20px; }
.brand p { font-size: 13px; }
main { max-width: 960px; margin: 0 auto; padding: 8px 16px 64px; }
section { margin-top: 28px; }
section h2 {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin: 0 4px 10px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 14px;
  padding: 16px; background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.tile {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; font-size: 24px; font-weight: 700;
  background: var(--blue);
}
.tile-indigo { background: var(--indigo); } .tile-green { background: var(--green); }
.tile-orange { background: var(--orange); } .tile-purple { background: var(--purple); }
.tile-red { background: var(--red); } .tile-pink { background: var(--pink); }
.tile-teal { background: var(--teal); }
.card-body { display: grid; gap: 4px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-head h3 { font-size: 16px; }
.badge {
  font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--bg-inset); color: var(--text-muted);
}
.card .meta { overflow-wrap: anywhere; }
.card-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.pending { font-size: 13px; color: var(--text-muted); padding: 6px 0; }

.list { list-style: none; margin: 0; padding: 0; background: var(--bg-card);
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.list:empty { display: none; }
.list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--border); overflow-wrap: anywhere;
}
.list li:first-child { border-top: 0; }
.list .card-actions { grid-column: auto; }
progress { width: 100%; height: 6px; accent-color: var(--accent); }

.drop {
  display: grid; gap: 6px; padding: 28px 20px; text-align: center; cursor: pointer;
  border: 2px dashed var(--border); border-radius: var(--radius); background: var(--bg-card);
  margin-bottom: 12px;
}
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-card)); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop span { font-size: 13px; }

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}
