/* Cheyyi — hand-written, no build step. Big type, big buttons, plain words. */
:root {
  --bg: #f6f7f9; --card: #ffffff; --line: #e1e5ea; --text: #1a1f24; --muted: #59636e;
  --brand: #0f766e; --brand-ink: #ffffff; --brand-soft: #e6f4f2;
  --ok: #15803d; --ok-soft: #e7f6ec; --warn: #a15c07; --warn-soft: #fdf3dc;
  --bad: #b42318; --bad-soft: #fde9e7; --wait: #475569; --wait-soft: #eceff3;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151a; --card: #181d23; --line: #2b323a; --text: #eef1f4; --muted: #a2adb8;
    --brand: #2dd4bf; --brand-ink: #07201d; --brand-soft: #12302d;
    --ok: #4ade80; --ok-soft: #12301d; --warn: #fbbf24; --warn-soft: #342708;
    --bad: #f87171; --bad-soft: #3a1512; --wait: #cbd5e1; --wait-soft: #232a32;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Telugu", sans-serif;
  line-height: 1.55;
}
a { color: var(--brand); }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 .4rem; }
h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
p { margin: 0 0 .9rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.topbar {
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: .7rem 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.topbar .logo { font-weight: 700; text-decoration: none; color: var(--text); }
.topbar .spacer { flex: 1; }
.topbar select { max-width: 60vw; }
.container { max-width: 880px; margin: 0 auto; padding: 20px 16px 64px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 8px; margin: 0 0 16px;
}
.card.pad-b { padding-bottom: 18px; }
.card h2 + p.muted { margin-top: -.2rem; }

.notice { border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; border: 1px solid var(--line); }
.notice.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.notice.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.notice.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.notice.info { background: var(--brand-soft); border-color: transparent; }
.notice strong { display: block; }
.notice ul { margin: .4rem 0 0 1.1rem; padding: 0; }

.btn {
  display: inline-block; border: 0; border-radius: 12px; padding: 13px 20px; font-size: 1rem; font-weight: 600;
  background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none; min-height: 48px;
}
.btn:hover { filter: brightness(1.05); }
.btn.quiet { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.small { padding: 8px 14px; min-height: 40px; font-size: .92rem; }
.btn.danger { background: var(--bad); color: #fff; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; align-items: center; }

.chip {
  display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.wait { background: var(--wait-soft); color: var(--wait); }

label { display: block; font-weight: 600; margin: 0 0 4px; }
.field { margin: 0 0 16px; }
.hint { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 48px;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
textarea { min-height: 110px; }
.error { color: var(--bad); font-size: .9rem; margin: 4px 0 0; font-weight: 600; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }

details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; background: var(--card); }
details > summary { cursor: pointer; font-weight: 600; }
details[open] > summary { margin-bottom: 8px; }
.help { background: var(--brand-soft); border-color: transparent; }
ol.steps { margin: .4rem 0 .6rem 1.2rem; padding: 0; }
ol.steps li { margin: 0 0 .55rem; }
kbd, .menu { background: var(--wait-soft); border-radius: 6px; padding: 1px 7px; font-size: .92em; font-weight: 600; }

.copybox {
  display: flex; gap: 8px; align-items: stretch; margin: 6px 0 12px;
}
.copybox code {
  flex: 1; background: var(--wait-soft); border-radius: 10px; padding: 10px 12px; word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem;
}

.progress { height: 12px; border-radius: 999px; background: var(--wait-soft); overflow: hidden; margin: 8px 0 4px; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

.todo { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.todo:first-of-type { border-top: 0; }
.todo .num {
  flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--wait-soft); color: var(--wait);
}
.todo.done .num { background: var(--ok-soft); color: var(--ok); }
.todo.next .num { background: var(--brand); color: var(--brand-ink); }
.todo .body { flex: 1; min-width: 0; }
.todo .body p { margin-bottom: .4rem; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; border-top: 0; }
.table-wrap { overflow-x: auto; }

.checks { list-style: none; margin: 0 0 10px; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.checks li:first-child { border-top: 0; }
.checks .what { flex: 1; min-width: 0; }

.choice { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0 0 16px; }
@media (min-width: 640px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice .opt { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: var(--card); }
.choice .opt.best { border-color: var(--brand); }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--card); padding: 8px; z-index: 10; }

/* Business menu: ONE <nav>. A bottom tab bar on phones; a strip under the header from 760px. */
.brandbar { background: var(--card); border-bottom: 1px solid var(--line); padding: 6px 16px; }
.brandnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.brandnav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.brandnav li { flex: 1; min-width: 0; margin: 0; }
.bn-sheet { border: 0; border-radius: 0; padding: 0; margin: 0; background: transparent; }
.bn-sheet[open] > summary { margin: 0; }
.bn-sheet > summary { list-style: none; }
.bn-sheet > summary::-webkit-details-marker { display: none; }
.bn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 4px 2px;
  font-size: .75rem; font-weight: 600; line-height: 1.2; text-align: center; color: var(--muted); text-decoration: none; cursor: pointer;
}
.bn-ico { font-size: 1.3rem; line-height: 1; }
.bn-item.is-active { color: var(--brand); font-weight: 800; box-shadow: inset 0 3px 0 var(--brand); }
.bn-item:focus-visible, .bn-sheet-body a:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.bn-long { display: none; }
/* "All builds" is its own tab on a computer and an entry of the More sheet on a phone (the bottom bar keeps five tabs). */
.bn-wide-only { display: none; }
.bn-sheet-body {
  position: fixed; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); max-height: 70vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.bn-group { margin: 8px 10px 2px; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bn-sheet-body a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
.bn-sheet-body a[aria-current] { background: var(--brand-soft); color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.sendpill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 700; text-decoration: none; line-height: 1.25;
}
.sendpill.on { background: var(--ok-soft); color: var(--ok); }
.sendpill.off { background: var(--warn-soft); color: var(--warn); }
body.has-bn { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) {
  .brandbar { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
  .brandnav { position: static; flex: 1; border: 0; background: transparent; padding: 0; }
  .brandnav ul { gap: 4px; }
  .brandnav li { flex: 0 0 auto; }
  .bn-more { position: relative; }
  .bn-item { flex-direction: row; gap: 8px; min-height: 48px; padding: 6px 14px; font-size: .95rem; box-shadow: none; border-bottom: 3px solid transparent; }
  .bn-item.is-active { box-shadow: none; border-bottom-color: var(--brand); }
  .bn-ico { font-size: 1.1rem; }
  .bn-short { display: none; }
  .bn-long { display: inline; }
  .bn-wide-only { display: block; }
  .bn-narrow-only { display: none !important; }
  /* More is only marked on a phone when you are on a build; a computer has the All builds tab for that. */
  .bn-item.is-active.bn-narrow-active { color: var(--muted); font-weight: 600; border-bottom-color: transparent; }
  .bn-sheet-body { position: absolute; left: auto; right: 0; top: 100%; bottom: auto; width: 290px; max-height: none; z-index: 20; }
  body.has-bn { padding-bottom: 0; }
}

/* Check my setup */
.sc-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sc-fix { margin: .35rem 0 .5rem; }
@media (max-width: 520px) { .sc-list li { flex-direction: column; gap: 4px; } }
