/*
 * One stylesheet for the four pages this service has.
 *
 * Deliberately small and deliberately not a design system. The apps behind the
 * launcher each have their own look; this is the hallway between them, and a
 * hallway that competes with the rooms is a hallway people notice.
 */

:root {
  color-scheme: dark light;
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1e222b;
  --line: #2a2f3a;
  --ink: #e8eaef;
  --ink-dim: #98a0b0;
  --accent: #5b9dff;
  --danger: #ff6b6b;
  --radius: 12px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --panel-2: #f0f2f5;
    --line: #dfe3ea;
    --ink: #14171d;
    --ink-dim: #5d6472;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.shell { max-width: 60rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

header.bar {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
  background: var(--panel);
}
header.bar .grow { flex: 1; }
header.bar .mark { font-weight: 650; letter-spacing: -0.01em; }
header.bar a { color: var(--ink-dim); text-decoration: none; margin-left: 1rem; }
header.bar a:hover { color: var(--ink); }

h1 { font-size: 1.5rem; margin: 0 0 .35rem; letter-spacing: -0.02em; }
h2 { font-size: 1rem; margin: 2rem 0 .75rem; color: var(--ink-dim); font-weight: 600; }
p.sub { color: var(--ink-dim); margin: 0 0 1.5rem; }

.tiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }

.tile {
  display: block; padding: 1rem; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.tile:hover { border-color: var(--accent); }
.tile .name { font-weight: 600; }
.tile .desc { color: var(--ink-dim); font-size: .875rem; margin-top: .25rem; }
.tile .role { color: var(--ink-dim); font-size: .75rem; margin-top: .5rem; text-transform: uppercase; letter-spacing: .04em; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem;
}

.empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 2rem; text-align: center; color: var(--ink-dim);
}

label { display: block; margin: .9rem 0 .3rem; font-size: .8125rem; color: var(--ink-dim); }

input[type=text], input[type=email], select {
  width: 100%; padding: .55rem .7rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
  font: inherit;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.row { display: flex; gap: 1rem; align-items: center; }
.row > * { flex: 1; }

.check { display: flex; align-items: center; gap: .5rem; margin: .6rem 0; }
.check input { width: auto; }
.check label { margin: 0; color: var(--ink); font-size: .9375rem; }

button {
  font: inherit; font-weight: 550; padding: .55rem 1rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
  cursor: pointer;
}
button.primary { background: var(--accent); border-color: var(--accent); color: #08111f; }
button.link { background: none; border: none; color: var(--accent); padding: 0; }
button:disabled { opacity: .55; cursor: default; }

.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }

.notice { padding: .7rem .9rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9375rem; }
.notice.warn { background: rgba(255, 176, 32, .12); border: 1px solid rgba(255, 176, 32, .35); }
.notice.ok { background: rgba(91, 157, 255, .12); border: 1px solid rgba(91, 157, 255, .35); }
.notice.bad { background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .35); }

table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); }
th { color: var(--ink-dim); font-weight: 600; }
td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; }

/* --- sign-in ------------------------------------------------------------- */

.signin {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
}
.signin .box {
  width: min(24rem, 100%); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem; text-align: center;
}
.signin .box h1 { font-size: 1.25rem; }
.signin .gsi { display: flex; justify-content: center; margin-top: 1.5rem; min-height: 44px; }
