@import url("https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--ink);
  font-family: var(--font-sans); font-size: 15px; line-height: 23px;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 420px at 14% -8%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 70%),
    radial-gradient(720px 360px at 92% 2%, color-mix(in srgb, var(--aura-cyan) 14%, transparent), transparent 68%),
    var(--paper);
  background-attachment: fixed;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
a { color: var(--blade); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; border-radius: 4px; }

.shell { max-width: 940px; margin: 0 auto; padding: 0 var(--space-4); }

.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding-block: var(--space-5); min-height: 64px;
}
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: inherit; }
.brand img { width: 30px; height: 30px; display: block; }
.brand span { font-family: var(--font-display); font-size: 22px; font-weight: 600;
              letter-spacing: -0.02em; }
.top-right { display: flex; align-items: center; gap: var(--space-3); font-size: 13px; color: var(--ink-muted); }


.card {
  background: color-mix(in srgb, var(--paper-raised) 88%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: var(--space-5);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--blade-deep) 5%, transparent);
}
.stack { display: grid; gap: var(--space-4); }
.row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.spread { display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; line-height: 19px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }

.field { display: grid; gap: var(--space-2); }
input[type=email], input[type=password], input[type=text], input[type=url], input[type=number] {
  width: 100%; padding: 10px var(--space-3);
  border: 1px solid var(--rule-strong); border-radius: var(--radius-md);
  background: var(--paper-sunken); color: var(--ink); font: inherit;
}
input::placeholder { color: var(--ink-faint); }
input:focus { border-color: var(--blade); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 10px var(--space-4); border: 1px solid transparent; border-radius: var(--radius-md);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--blade); color: var(--ink-on-blade);
}
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .45; cursor: default; filter: none; }
.btn--quiet { background: var(--paper-raised); color: var(--ink); border-color: var(--rule-strong); }
.btn--quiet:hover { filter: none; border-color: var(--ink-muted); }
.btn--wide { width: 100%; }
.btn--small { padding: 6px var(--space-3); font-size: 13px; }

.divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-3); align-items: center; color: var(--ink-faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--rule); }

.pill { display: inline-flex; align-items: center; gap: var(--space-2); padding: 3px var(--space-3) 3px var(--space-2);
  border: 1px solid var(--rule); border-radius: var(--radius-full); background: var(--paper-raised);
  color: var(--ink-muted); font-size: 13px; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--live { color: var(--blade); border-color: var(--blade); background: var(--blade-tint); }
.pill--ok { color: var(--ok); }
.pill--warn { color: var(--warn); }
.pill--stop { color: var(--stop); }

.notice { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 14px; }
.notice--bad { background: color-mix(in srgb, var(--stop) 10%, var(--paper-raised)); color: var(--stop); }
.notice--info { background: var(--blade-tint); color: var(--blade); }

.code-input {
  font-family: var(--font-mono); font-size: 18px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; text-align: center;
}

.foot { padding-block: var(--space-6); color: var(--ink-faint); font-size: 13px; }

.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blade); }

.rail { display: grid; gap: var(--space-3); }
.rail__wait {
  justify-self: center; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-muted);
}
.block {
  display: grid; grid-template-columns: 30px 1fr auto; gap: var(--space-3);
  align-items: start; padding: var(--space-4);
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius-md);
}
.block__index {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper-sunken); color: var(--ink-muted); font-size: 12px; font-weight: 600;
}
.block__title { font-size: 15px; font-weight: 600; }
.block textarea {
  width: 100%; margin-top: var(--space-2); min-height: 76px; resize: vertical;
  padding: var(--space-3); border: 1px solid var(--rule-strong); border-radius: var(--radius-sm);
  background: var(--paper-sunken); color: var(--ink); font: inherit; font-size: 14px; line-height: 21px;
}
.block textarea:focus { border-color: var(--blade); }
.block__foot { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap;
  margin-top: var(--space-2); font-size: 13px; color: var(--ink-muted); }
.block__foot input[type=number] { width: 68px; padding: 4px var(--space-2); }
.block__remove { background: none; border: 0; padding: 0; font: inherit; font-size: 13px;
  color: var(--stop); cursor: pointer; }
.block--end { color: var(--ink-muted); border-style: dashed; }

table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--rule); }
th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
     color: var(--ink-muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.stats { display: flex; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-5); }
.stats b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 400;
  font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-muted); }
.empty { padding: var(--space-6); text-align: center; color: var(--ink-muted); }

/* --- the aura ---------------------------------------------------------------
   The mark is not placed on the page: the page is the light it gives off. Three
   fields of different shape and offset converge where the stroke stands, so the
   two read as one object rather than a logo on a background. */

.aura {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  margin-block: var(--space-5) var(--space-4);
  isolation: isolate;
}
.aura__blob {
  position: absolute;
  filter: blur(46px);
  pointer-events: none;
  z-index: -1;
}
/* Uneven radii: a perfect circle blurs into a halo, which reads as a glow
   effect rather than a shape. */
.aura__blob--near {
  width: 300px; height: 280px;
  border-radius: 58% 42% 46% 54% / 52% 55% 45% 48%;
  background: var(--glow);
  opacity: .50;
  translate: -4% -6%;
}
.aura__blob--far {
  width: 420px; height: 250px;
  border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%;
  background: var(--aura-cyan);
  opacity: .22;
  translate: -24% 18%;
}
.aura__blob--deep {
  width: 250px; height: 330px;
  border-radius: 52% 48% 40% 60% / 58% 44% 56% 42%;
  background: var(--blade);
  opacity: .24;
  translate: 22% -14%;
}
.aura__blade {
  position: absolute;
  width: 164px; height: 164px;
  translate: 0 -18%;
  z-index: -1;
}
.aura__name {
  margin: 0;
  translate: 0 74px;
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .aura__blob { animation: drift 28s ease-in-out infinite alternate; }
  .aura__blob--far { animation-duration: 36s; animation-delay: -9s; }
  .aura__blob--deep { animation-duration: 32s; animation-delay: -18s; }
}
@keyframes drift {
  from { transform: translate3d(-14px, 8px, 0) rotate(-4deg) scale(1); }
  to   { transform: translate3d(16px, -10px, 0) rotate(5deg) scale(1.1); }
}

.tagline { text-align: center; color: var(--ink-muted); margin: 0 auto var(--space-5); max-width: 420px; }

.gate {
  display: grid;
  gap: var(--space-4);
  max-width: 330px;
  margin: 0 auto var(--space-7);
}

@media (max-width: 560px) {
  .aura { min-height: 290px; }
  .aura__blade { width: 132px; height: 132px; }
  .aura__name { font-size: 52px; line-height: 52px; translate: 0 62px; }
}

/* --- signed in --------------------------------------------------------------
   Two things to do, said plainly, before anything else on the screen. */

.mac {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  margin-block: var(--space-5) var(--space-6);
}
.mac__state { display: flex; align-items: center; gap: var(--space-3); flex: 1; min-width: 240px; }
.mac__title { font-weight: 600; font-size: 16px; }
.mac__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rule-strong); flex: none; }
.mac__dot.is-on { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.mac__dot.is-off { background: var(--warn); }
.mac__actions { gap: var(--space-2); }

.switch { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 52px; height: 30px; border-radius: 999px; background: var(--rule-strong);
  position: relative; transition: background .15s; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--ok); }
.switch input:checked + .switch__track .switch__knob { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--blade); outline-offset: 2px; }
.switch__label { font-weight: 600; min-width: 26px; }

.steps li.is-current .steps__mark { border-color: var(--blade); color: var(--blade); }

.tiles {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: var(--space-7);
}
.tile {
  display: grid; gap: var(--space-2); justify-items: start; text-align: left;
  padding: var(--space-5); font: inherit; cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--blade-tint) 70%, transparent), transparent 62%),
    color-mix(in srgb, var(--paper-raised) 86%, transparent);
  backdrop-filter: blur(8px);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tile:hover {
  border-color: var(--blade);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--blade) 14%, transparent);
}
.tile__mark { width: 34px; height: 34px; color: var(--blade); margin-bottom: var(--space-2); }
.tile__title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.tile__meta { font-size: 13px; color: var(--ink-muted); }

.pagehead {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  margin-block: var(--space-5) var(--space-5);
}
.pagehead h1 { margin: 0; flex: 1; }
.back {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px var(--space-3); font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-muted); cursor: pointer;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius-full);
}
.back::before { content: "\2190"; }
.back:hover { color: var(--ink); border-color: var(--rule-strong); }

.gmark { width: 17px; height: 17px; }

input[type=radio], input[type=checkbox] { accent-color: var(--blade); width: 15px; height: 15px; }

.btn--link {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 600;
  color: var(--blade); cursor: pointer; text-align: left;
}
.btn--link:hover { text-decoration: underline; }

select {
  padding: 10px var(--space-3); border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md); background: var(--paper-sunken);
  color: var(--ink); font: inherit; width: 100%;
}

@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .pagehead h1 { font-size: 30px; line-height: 34px; }
}

.reply { display: grid; gap: var(--space-2); }
.reply__head { display: flex; gap: var(--space-3); align-items: baseline; flex-wrap: wrap; }
.reply__who { font-weight: 600; }
.reply__body { white-space: pre-wrap; margin: 0; }
.reply--handled { opacity: .6; }
[data-inbox][aria-selected="true"] { border-color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.steps li { display: grid; grid-template-columns: 26px 1fr auto; gap: var(--space-3); align-items: start; }
.steps__mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--rule-strong);
  display: grid; place-items: center; font-size: 12px; color: var(--ink-muted); }
.steps li.is-done .steps__mark { background: var(--ok); border-color: var(--ok); color: var(--paper-raised); }
.steps li.is-done .steps__title { color: var(--ink-muted); text-decoration: line-through; }
.steps__title { font-weight: 600; }

.google-native { min-height: 44px; display: grid; justify-items: center; }
