@font-face { font-family: "DM Serif Display"; src: url("/fonts/dm-serif-display-400.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #fbfaf6; --card: #ffffff; --ink: #171717; --muted: #575757; --line: #e5e3dc;
  --green: #12804a; --yellow: #b07800; --red: #c0262d; --grey: #8a8a8a;
  --focus: #1a5fd0; --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.top { max-width: 640px; margin: 0 auto; padding: 16px 16px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.brand { font-weight: 700; text-decoration: none; font-size: 17px; margin-right: auto; }
.brand span { font-weight: 400; color: var(--muted); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a, .nav button { min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; font: inherit; font-size: 15px; background: none; border: 0; color: var(--ink); cursor: pointer; text-decoration: underline; }
.steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; width: 100%; }
.steps li { flex: 1; font-size: 12px; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--line); text-align: left; }
.steps li.on, .steps li.past { border-top-color: var(--ink); color: var(--ink); }
.steps li.on { font-weight: 700; }

main { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; outline: none; }
.screen { animation: in .18s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
h1 { font: 400 clamp(32px, 7vw, 46px)/1.08 "DM Serif Display", Georgia, serif; margin: 8px 0 16px; letter-spacing: -0.01em; }
h2 { font: 400 26px/1.15 "DM Serif Display", Georgia, serif; margin: 32px 0 8px; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 28px 0 8px; }
p { margin: 0 0 16px; }
.lead { font-size: 19px; color: #333; }
.muted, small { color: var(--muted); }
small { font-size: 14px; display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 12px; background: var(--ink); color: #fff; font: 700 17px/1 Inter, system-ui, sans-serif;
  text-decoration: none; cursor: pointer; }
.btn:hover { background: #333; }
.btn[disabled] { background: #b9b9b4; cursor: default; }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.link { background: none; border: 0; padding: 8px 0; min-height: 44px; font: inherit; text-decoration: underline; cursor: pointer; color: var(--ink); }
.actions { margin: 24px 0 8px; display: grid; gap: 12px; }

/* Plain numbered steps: just text and a number, nothing that looks pressable. */
.plain-steps { margin: 8px 0 24px; padding-left: 28px; }
.plain-steps li { padding: 0 0 12px 6px; }
.plain-steps li::marker { color: var(--muted); font-weight: 700; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 12px; }
.rows { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.rows > li { display: grid; grid-template-columns: 16px 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.rows .name { font-weight: 700; }
.rows .sub { grid-column: 2 / 4; font-size: 14px; color: var(--muted); word-break: break-word; }
.rows .right { justify-self: end; display: flex; gap: 8px; align-items: center; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grey); }
.dot.green { background: var(--green); } .dot.yellow { background: var(--yellow); } .dot.red { background: var(--red); }
.tag { font-size: 14px; font-weight: 700; white-space: nowrap; }
.tag.ok { color: var(--green); } .tag.wait { color: var(--muted); font-weight: 400; }
.legend { display: grid; gap: 6px; margin: 0 0 20px; font-size: 15px; }
.legend span { display: flex; gap: 10px; align-items: center; }

.check { list-style: none; padding: 0; margin: 16px 0; }
.check li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
/* A status list, not a form: nothing shows before a step runs, so it never looks like a box to tick. */
.check li { color: var(--muted); }
.check li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; }
.check li.doing, .check li.ok, .check li.bad { color: var(--ink); }
.check li.doing::before { border: 2px solid var(--ink); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.check li.ok::before { border-radius: 50%; background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check li.bad::before { border-radius: 50%; background: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

.bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 16px 0 8px; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s; }

ol.do { padding-left: 22px; margin: 16px 0; }
ol.do li { margin: 0 0 12px; padding-left: 4px; }
label { display: block; font-weight: 700; margin: 20px 0 8px; }
input[type=password], input[type=text], select { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid #cfcdc5; border-radius: 12px;
  font: 16px/1.3 ui-monospace, Consolas, monospace; background: #fff; color: var(--ink); }
select { font-family: inherit; }
input:focus, select:focus { border-color: var(--ink); outline: none; }
.err { color: var(--red); font-weight: 600; margin: 12px 0; }
.ok-msg { color: var(--green); font-weight: 700; margin: 12px 0; }
.big-time { font: 400 30px/1.2 "DM Serif Display", Georgia, serif; margin: 4px 0 20px; }
.site-map li { grid-template-columns: 1fr; }
.site-map select { margin-top: 6px; }
.foot { margin-top: 40px; font-size: 14px; color: var(--muted); }
.wrap { max-width: 640px; margin: 0 auto; padding: 16px; }

@media (min-width: 720px) {
  .actions { grid-auto-flow: column; justify-content: start; }
  .btn.wide { width: auto; min-width: 280px; }
  .steps li { font-size: 13px; }
}
[hidden] { display: none !important; }
main:focus, main:focus-visible { outline: none; }

/* Sign-in */
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 28px 0 8px; font-size: 15px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
input[type=email] { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid #cfcdc5; border-radius: 12px; font: 16px/1.3 Inter, system-ui, sans-serif; background: #fff; color: var(--ink); }
input.code { font: 700 28px/1 ui-monospace, Consolas, monospace; letter-spacing: 8px; text-align: center; max-width: 260px; }
input[type=email]:focus { border-color: var(--ink); outline: none; }

/* Dashboard */
.summary { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin: 0 0 16px; }
.summary .dot { width: 18px; height: 18px; flex: none; }
.summary b { display: block; }
.keys { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.key { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.key-top { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.key-top .name { font-weight: 700; font-size: 18px; }
.key-top .state { margin-left: auto; font-size: 14px; font-weight: 700; }
.state.green { color: var(--green); } .state.yellow { color: var(--yellow); } .state.red { color: var(--red); }
.key .env { font: 14px/1.4 ui-monospace, Consolas, monospace; color: var(--muted); margin: 0 0 12px; word-break: break-all; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }
.btn.danger { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn.danger:hover { background: #fdf1f1; }
.btn.danger.solid { background: var(--red); color: #fff; }
dialog { border: 0; border-radius: var(--radius); padding: 24px 20px; max-width: min(440px, calc(100vw - 32px)); color: var(--ink); background: var(--card); }
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog h2 { margin-top: 0; }
.note { background: #f3f1ea; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 0 0 16px; }
.flush { margin-top: 0; }
