/* Apple-like, with a purple tint (systemPurple) */
:root {
  --bg: #f5f5f7; --surface: #ffffff; --fg: #1d1d1f; --muted: #6e6e73; --faint: #86868b; --line: #d2d2d7; --hair: rgba(0, 0, 0, .08);
  --tint: #8e44d6; --tint-strong: #7a2fc4; --tint-soft: rgba(142, 68, 214, .1); --on-tint: #fff;
  --ok: #248a3d; --warn: #b25000; --bad: #d70015; --code: #f0f0f3;
  --bar: rgba(251, 251, 253, .78);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 24px rgba(0, 0, 0, .05);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .05), 0 14px 40px rgba(0, 0, 0, .1);
  --glow: rgba(142, 68, 214, .16);
  /* Apple's curves: the soft one for hover, the long settle for things coming into view */
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif;
  color-scheme: light dark;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #1c1c1e; --fg: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73; --line: #38383a; --hair: rgba(255, 255, 255, .1);
    --tint: #bf5af2; --tint-strong: #d07cf6; --tint-soft: rgba(191, 90, 242, .16); --on-tint: #fff;
    --ok: #30d158; --warn: #ff9f0a; --bad: #ff453a; --code: #2c2c2e;
    --bar: rgba(22, 22, 23, .78);
    --shadow: none;
    --shadow-lift: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 50px rgba(0, 0, 0, .6);
    --glow: rgba(191, 90, 242, .22);
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
h1, h2, .lead, .hero .eyebrow, .brand { font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, system-ui, sans-serif; }
body { overflow-x: clip; margin: 0; background: var(--bg); color: var(--fg); font-size: 17px; line-height: 1.47; letter-spacing: -.022em; }
a { color: var(--tint); text-decoration: none; text-underline-offset: .18em; } a:hover { text-decoration: underline; }
code, pre, .secret { font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; letter-spacing: 0; background: var(--code); border-radius: 6px; }
code { padding: .12em .4em; } pre code { padding: 0; background: none; font-size: inherit; border-radius: 0; }
pre { padding: .9em 1.1em; overflow-x: auto; white-space: pre-wrap; word-break: break-all; border-radius: 12px; }

/* the translucent bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background-color .3s var(--ease); view-transition-name: bar; }
.scrolled .top { border-bottom-color: var(--hair); }
.top .bar { max-width: 1024px; margin: 0 auto; height: 48px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-weight: 600; font-size: 19px; color: var(--fg); letter-spacing: -.02em; } .brand:hover { text-decoration: none; }
.brand .sub { color: var(--tint); font-weight: 600; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 13px; letter-spacing: -.01em; }
.top nav a { color: var(--fg); opacity: .8; transition: opacity .2s var(--ease), color .2s var(--ease); } .top nav a:hover { opacity: 1; text-decoration: none; color: var(--tint); }
.top nav .who { color: var(--muted); }
.top nav .button.small { color: var(--on-tint); opacity: 1; padding: 4px 12px; font-size: 12px; border-radius: 980px; }

main { max-width: 1024px; margin: 0 auto; padding: 40px 22px 80px; }
footer { color: var(--faint); font-size: 12px; padding: 22px; border-top: 1px solid var(--hair); text-align: center; letter-spacing: -.01em; }
footer a { color: var(--muted); }

h1 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.028em; margin: 0 0 .5em; }
h2 { font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: -.02em; margin: 1.8em 0 .6em; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 .35em; }
.lead { font-size: 21px; line-height: 1.38; color: var(--muted); max-width: 680px; letter-spacing: -.016em; }
.muted { color: var(--muted); }
.tint { color: var(--tint); }

/* start page */
.hero { text-align: center; padding: 72px 0 32px; position: relative; isolation: isolate; transform-origin: 50% 0; will-change: transform, opacity; }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(900px, 100vw); height: 520px; transform: translate(-50%, -18%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero .eyebrow { color: var(--tint); font-weight: 600; font-size: 19px; margin: 0 0 8px; letter-spacing: -.02em; }
.hero h1 { font-size: clamp(44px, 8vw, 80px); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 18px; }
.hero h1 .tint { background: linear-gradient(110deg, #c27bff, var(--tint) 30%, #6e48d9 60%, #c27bff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 1.6s var(--ease); }
.hero h1:hover .tint { background-position: 100% 0; }
.hero .lead { margin: 0 auto 28px; }
.actions { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; }
.textlink { font-size: 19px; letter-spacing: -.02em; }
.chev { display: inline-block; transition: transform .3s var(--ease); } a:hover .chev { transform: translateX(3px); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 56px; }
.feature { padding: 32px 30px; border-radius: 28px; }
.feature h3 { font-size: 21px; }
.feature .step { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint-soft); color: var(--tint); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: 18px; padding: 22px 24px; margin: 20px 0; box-shadow: var(--shadow); border: 1px solid var(--hair); }
.grid .card, .steps .card { margin: 0; }
.card h2:first-child { margin-top: 0; font-size: 21px; }
.feature, .card.tile { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.feature:hover, .card.tile:hover { transform: scale(1.015); box-shadow: var(--shadow-lift); }
.card.danger { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.narrow { max-width: 420px; margin: 24px auto; }
.narrow h1 { font-size: 32px; text-align: center; }

/* forms */
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .row > label { flex: 1; min-width: 180px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
label small, .stack small { font-weight: 400; color: var(--muted); font-size: 13px; }
label.check { flex-direction: row; align-items: center; font-weight: 400; gap: 8px; }
input, textarea, select { font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); width: 100%; letter-spacing: -.01em; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
input:hover, textarea:hover, select:hover { border-color: color-mix(in srgb, var(--line) 55%, var(--muted)); }
input[type=checkbox] { width: auto; accent-color: var(--tint); } input[type=file] { padding: 8px; font-size: 14px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--tint); box-shadow: 0 0 0 4px var(--tint-soft); }
textarea { resize: vertical; }
/* pickers drawn like the text fields: same height, radius and type, Apple's chevron instead of the system button */
select { -webkit-appearance: none; appearance: none; font-weight: 400; line-height: 1.3; padding-right: 40px; cursor: pointer;
  background-image: var(--chevron); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 16px; }
select:disabled { opacity: .5; cursor: default; }
:root { --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16' fill='none' stroke='%236e6e73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6L6 2.5 9.5 6M2.5 10L6 13.5 9.5 10'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root { --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16' fill='none' stroke='%23a1a1a6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6L6 2.5 9.5 6M2.5 10L6 13.5 9.5 10'/%3E%3C/svg%3E"); } }
select option, select optgroup { font-weight: 400; }

/* buttons: rounded like the fields next to them (Apple's account and checkout pages), pills only on the start page and in the bar */
button, .button { font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; background: var(--tint); color: var(--on-tint); border: 0; border-radius: 12px; padding: 11px 20px; cursor: pointer; display: inline-block; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); -webkit-tap-highlight-color: transparent; }
button:hover, .button:hover { background: var(--tint-strong); text-decoration: none; }
button:active, .button:active { transform: scale(.97); }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 35%, transparent); }
.button.large { font-size: 17px; padding: 12px 24px; }
.hero .button, .closing .button { border-radius: 980px; padding: 13px 26px; }
.hero .button:hover, .closing .button:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--tint) 35%, transparent); }
.narrow .stack > button { width: 100%; font-size: 17px; padding: 13px 20px; margin-top: 4px; }
button.secondary, .button.secondary { background: var(--tint-soft); color: var(--tint); }
button.secondary:hover, .button.secondary:hover { background: color-mix(in srgb, var(--tint) 22%, transparent); }
button.danger { background: var(--bad); } button.danger:hover { background: color-mix(in srgb, var(--bad) 85%, black); }
button.small, .button.small { padding: 7px 14px; font-size: 13px; border-radius: 9px; }
button.link { background: none; color: var(--fg); padding: 0; font-weight: 400; font-size: 13px; opacity: .8; border-radius: 0; } button.link:hover { color: var(--tint); background: none; opacity: 1; } button.link:active { transform: none; }
form.inline { display: inline; }

.notice, .error, .note { padding: 13px 18px; border-radius: 14px; font-size: 15px; }
.notice { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.error { background: color-mix(in srgb, var(--bad) 10%, var(--surface)); }
.note { background: var(--tint-soft); }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 980px; background: var(--code); color: var(--muted); vertical-align: middle; letter-spacing: 0; }
.badge.ok, .badge.approved, .badge.live, .badge.fixed { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.badge.warn, .badge.pending, .badge.new, .badge.confirmed { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.badge.rejected, .badge.revoked { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }

table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--hair); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hair); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr, table tr:not(:first-child) { transition: background-color .2s var(--ease); }
table tr:not(:first-child):hover { background: color-mix(in srgb, var(--tint-soft) 45%, transparent); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.list { padding-left: 1.1rem; } .list li { margin: .35rem 0; }
.pre { white-space: pre-wrap; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; } .facts dt { color: var(--muted); } .facts dd { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.filters a { padding: 5px 14px; border-radius: 980px; background: var(--surface); color: var(--fg); font-size: 14px; border: 1px solid var(--hair); transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.filters a:hover { text-decoration: none; border-color: var(--tint); }
.filters a.on { background: var(--tint); color: var(--on-tint); border-color: var(--tint); }
.comment { border-left: 3px solid var(--tint-soft); padding: 2px 0 2px 16px; margin: 16px 0; } .comment p { margin: 4px 0; }
.qr { text-align: center; } .qr img { background: #fff; border-radius: 16px; padding: 8px; box-shadow: var(--shadow); }
.secret { padding: .3em .55em; word-break: break-all; }
.howto { color: var(--muted); } .howto li { margin: 8px 0; } .howto code { color: var(--fg); }
.proof { border: 1px dashed var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--tint-soft) 50%, transparent); }
.proof p { margin: 0; font-size: 15px; }
details summary { cursor: pointer; color: var(--tint); margin: 8px 0; font-size: 15px; }
details[open] > :not(summary) { animation: unfold .45s var(--ease-out); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }
.notice, .error { animation: drop .5s var(--ease-out) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
.legal h2 { font-size: 19px; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding: 28px 16px 60px; }
  .top .bar { padding: 0 16px; } .top nav { gap: 12px; font-size: 12px; overflow-x: auto; scrollbar-width: none; }
  .brand { font-size: 16px; white-space: nowrap; } .top nav a, .top nav button { white-space: nowrap; } .top nav .who { display: none; }
  h1 { font-size: 32px; }
  .lead { font-size: 19px; }
  th:nth-child(n+4), td:nth-child(n+4) { display: none; }
}
.top nav .button.small:hover { color: var(--on-tint); }
.card .stack > button, .stack.card > button { align-self: flex-start; padding-left: 24px; padding-right: 24px; }

/* the front page's chapters, like an Apple product page */
.chapter, .closing { text-align: center; margin: 140px auto 0; max-width: 820px; }
.chapter + section { margin-top: 48px; }
.kicker { color: var(--tint); font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin: 0 0 10px; }
.headline { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.06; font-weight: 700; letter-spacing: -.035em; margin: 0 0 20px; }
.headline .tint { background: linear-gradient(110deg, #c27bff, var(--tint) 45%, #6e48d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapter .lead, .closing .lead { margin: 0 auto; }
.closing { margin-bottom: 40px; } .closing .lead { margin-bottom: 30px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { margin: 0; padding: 34px 32px 36px; border-radius: 28px; display: flex; flex-direction: column; }
.tile.wide { grid-column: span 2; }
.tile h3 { font-size: 26px; line-height: 1.15; letter-spacing: -.028em; margin: 0 0 12px; font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, system-ui, sans-serif; }
.tile p { color: var(--muted); font-size: 16px; margin: 0; }
.tile .kicker { font-size: 14px; margin-bottom: 8px; }
.tile .stat { font-size: 48px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 6px 0 18px; color: var(--fg); background: linear-gradient(110deg, #c27bff, var(--tint) 55%, #6e48d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slots { display: flex; gap: 12px; margin-top: auto; padding-top: 26px; }
.slot { flex: 1; border-radius: 16px; padding: 14px 16px; font-weight: 600; font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.slot small { font-weight: 400; font-size: 13px; color: var(--muted); }
.slot.boot { background: var(--code); }
.slot.rom { flex: 2; background: var(--tint-soft); color: var(--tint); }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: linear-gradient(90deg, transparent, var(--tint-soft) 10%, var(--tint) 50%, var(--tint-soft) 90%, transparent); }
.node { text-align: center; position: relative; }
.node .dot { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow); color: var(--tint); font-weight: 700; font-size: 19px; margin-bottom: 14px; transition: transform .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease); }
.node:hover .dot { transform: scale(1.1); background: var(--tint); color: var(--on-tint); }
.node.end .dot { background: var(--tint); color: var(--on-tint); border-color: transparent; }
.node h3 { font-size: 17px; margin-bottom: 2px; }
.node p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.35; }

.terminal { background: #1d1d1f; color: #f5f5f7; border-radius: 22px; padding: 18px 28px 26px; box-shadow: var(--shadow-lift); text-align: left; }
.terminal .lights { display: flex; gap: 8px; margin-bottom: 14px; } .terminal .lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; } .terminal .lights i + i { background: #febc2e; } .terminal .lights i + i + i { background: #28c840; }
.terminal dl { margin: 0; }
.terminal dt { font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: 0; margin-top: 18px; color: #f5f5f7; overflow-wrap: anywhere; }
.terminal dt:first-child { margin-top: 4px; }
.terminal .prompt { color: #d07cf6; margin-right: 6px; user-select: none; }
.terminal dd { margin: 4px 0 0 18px; color: #a1a1a6; font-size: 15px; }
.terminal code { background: rgba(255, 255, 255, .1); color: #f5f5f7; }
@media (prefers-color-scheme: dark) { .terminal { background: #161617; border: 1px solid var(--hair); } }
.manifest table { margin: 0; } .manifest td:first-child { white-space: nowrap; }

@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; }
  .flow { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  .flow::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: linear-gradient(180deg, var(--tint-soft), var(--tint) 50%, var(--tint-soft)); }
  .node { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; align-items: center; }
  .node .dot { grid-row: span 2; margin: 0; }
  .chapter, .closing { margin-top: 100px; }
  .manifest td:first-child { white-space: normal; word-break: break-all; }
}

/* bug reports */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.pagehead h1 { margin-bottom: 6px; } .pagehead p { margin: 0; }
.toolbar { display: flex; gap: 10px; margin: 24px 0 4px; flex-wrap: wrap; }
.toolbar input[type=search] { flex: 1 1 260px; width: auto; }
.toolbar select { flex: 0 1 240px; width: auto; }
.filters .count { opacity: .55; font-size: 12px; margin-left: 2px; }
.filters a.on .count { opacity: .8; }
.buglist { list-style: none; margin: 8px 0 0; padding: 0; background: var(--surface); border-radius: 18px; border: 1px solid var(--hair); box-shadow: var(--shadow); overflow: hidden; }
.buglist li + li { border-top: 1px solid var(--hair); }
.buglist a { display: flex; align-items: center; gap: 14px; padding: 15px 20px 15px 14px; color: var(--fg); transition: background-color .2s var(--ease); }
.buglist a:hover { text-decoration: none; background: color-mix(in srgb, var(--tint-soft) 45%, transparent); }
.buglist .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: transparent; }
.buglist .unread .dot { background: var(--tint); box-shadow: 0 0 0 4px var(--tint-soft); }
.buglist .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.buglist .title { font-weight: 500; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buglist .unread .title { font-weight: 650; }
.buglist .meta { font-size: 13px; color: var(--muted); }
.buglist .badge { flex: none; }
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border-radius: 18px; border: 1px solid var(--hair); }
.empty h3 { font-size: 21px; } .empty p { margin: 0; }
.narrowish { max-width: 680px; margin: 0 auto; }
.narrowish > p.muted { margin-top: -8px; }
.back { flex: none; margin: -8px 0 10px; font-size: 15px; } .chev.back { margin-right: 2px; }
.back a:hover .chev.back { transform: translateX(-3px); }
.bughead { flex: none; }
.bughead h1 { margin-bottom: 8px; font-size: 34px; } .bughead p { margin: 0 0 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* the bug page fills the window: the chat takes what's left under the title and scrolls inside */
body.fill { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
body.fill .top, body.fill footer { flex: none; }
body.fill main { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; padding-bottom: 20px; }
body.fill main > .notice, body.fill main > .error { flex: none; margin-top: 0; }
.bugpage { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: minmax(0, 1fr); gap: 20px; }
.side .card { margin: 0; }
.side { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.side select { font-size: 15px; padding: 9px 36px 9px 12px; background-position: right 12px center; }
.side .facts { margin: 0; grid-template-columns: 1fr; gap: 2px; font-size: 15px; } .side .facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin-top: 10px; } .side .facts dt:first-child { margin-top: 0; }
.move summary { margin: 0; }
.manage { gap: 14px; } .manage .move form { margin-top: 12px; } .deletebug { border-top: 1px solid var(--hair); padding-top: 12px; } .move form { margin-top: 14px; }
.from { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }
.from .who { font-weight: 600; color: var(--fg); }
.role { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 980px; background: var(--code); color: var(--muted); letter-spacing: 0; }
.role.developer { background: var(--tint-soft); color: var(--tint); }
.role.emexlabs { background: color-mix(in srgb, var(--tint) 85%, black); color: #fff; }
.report { flex: none; background: var(--bg); border: 1px solid var(--hair); border-radius: 18px; padding: 16px 18px; margin-bottom: 6px; }
.report .pre { font-size: 16px; }
.files { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.files li { font-size: 13px; background: var(--code); border-radius: 10px; padding: 6px 10px; }
.files li span { color: var(--muted); }
.chat { margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.messages { flex: 1; min-height: 0; padding: 18px 20px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; overscroll-behavior: contain; scrollbar-gutter: stable; }
.composer { flex: none; }
.chat-empty { margin: auto; text-align: center; max-width: 380px; font-size: 15px; padding: 20px 0; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; margin-top: 12px; }
.msg.grouped { margin-top: 0; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg .from { margin: 0 12px 4px; }
.bubble { padding: 9px 14px; border-radius: 20px; background: var(--code); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; max-width: 100%; }
.msg.mine .bubble { background: var(--tint); color: var(--on-tint); }
.msg.mine .bubble a { color: inherit; text-decoration: underline; }
.msg.theirs .bubble { border-bottom-left-radius: 6px; } .msg.mine .bubble { border-bottom-right-radius: 6px; }
.msg.grouped.theirs .bubble { border-top-left-radius: 8px; } .msg.grouped.mine .bubble { border-top-right-radius: 8px; }
.msg .files { justify-content: inherit; margin-top: 4px; }
.msg.arriving, .post.arriving { animation: arrive .45s var(--ease-out); }
@keyframes arrive { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.event { align-self: center; text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 4px; }
.event b { color: var(--fg); font-weight: 600; }
.composer { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: end; padding: 12px 14px 14px; border-top: 1px solid var(--hair); background: color-mix(in srgb, var(--surface) 80%, var(--bg)); }
.composer textarea { resize: none; border-radius: 20px; padding: 9px 16px; min-height: 40px; max-height: 220px; line-height: 1.4; }
.composer .attach { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 2px; border-radius: 50%; background: var(--code); color: var(--muted); font-size: 22px; font-weight: 400; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); position: relative; }
.composer .attach:hover { background: var(--tint-soft); color: var(--tint); }
.composer .attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; padding: 0; }
.composer .send { width: 36px; height: 36px; margin-bottom: 2px; padding: 0; border-radius: 50%; font-size: 18px; font-weight: 700; line-height: 1; display: grid; place-items: center; }
.composer .send:disabled { opacity: .35; cursor: default; transform: none; }
.picked, .composer-error { grid-column: 1 / -1; margin: 0 4px; font-size: 13px; }
.composer-error { color: var(--bad); }
@media (max-width: 860px) {
  /* phones: the chat takes the room, the details get a small scrolling strip under it */
  body.fill main { padding-top: 16px; padding-bottom: 12px; }
  .bugpage { display: flex; flex-direction: column; gap: 12px; }
  .chat { flex: 1; min-height: 0; }
  .side { flex: none; max-height: 22%; gap: 12px; }
  body.fill footer { padding: 12px 16px; }
  .back { margin: 0 0 6px; }
  .bughead h1 { font-size: 22px; margin-bottom: 4px; } .bughead p { margin-bottom: 12px; font-size: 14px; }
  .msg { max-width: 90%; }
}

/* admin: accounts */
.adminnav { margin: -4px 0 24px; }
.avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #c27bff, var(--tint) 60%, #6e48d9); color: #fff; font-weight: 600; font-size: 15px; }
.avatar.large { width: 64px; height: 64px; font-size: 26px; }
img.avatar { display: block; object-fit: cover; background: var(--code); }
.avatar.medium { width: 56px; height: 56px; font-size: 22px; }
.avatar.small { width: 22px; height: 22px; font-size: 11px; align-self: center; }
.avatarform { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.pick { position: relative; font-weight: 500; cursor: pointer; display: inline-block; }
.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; padding: 0; }
.pick:hover .button { background: color-mix(in srgb, var(--tint) 22%, transparent); }
.fine { font-size: 13px; margin: 0; }
.msg .from .avatar.small { margin-right: -2px; }
.report .from .avatar.small { margin-right: -2px; }
.accounthead { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.accounthead h1 { margin: 0 0 4px; font-size: 34px; } .accounthead p { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.buglist .tags { flex: none; display: flex; gap: 6px; }
.buglist .title .muted { font-weight: 400; font-size: 14px; margin-left: 4px; }
.buglist li.row-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.buglist .meta code { font-size: 12px; }
button.link.danger-link { color: var(--bad); font-size: 14px; } button.link.danger-link:hover { color: var(--bad); text-decoration: underline; }
.actions-list { display: flex; flex-wrap: wrap; gap: 8px; } .actions-list p { margin: 0; }
.cleanup { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.cleanup h3 { margin-bottom: 4px; } .cleanup p { margin: 0; font-size: 15px; max-width: 560px; }
.deletebox { margin-top: 40px; } .deletebox h2 { margin: 0; color: var(--bad); } .deletebox p { margin: 0; }
.deletebox label { max-width: 420px; }
.note { margin-top: 12px; }

/* forum */
.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 24px 0 8px; }
.category { margin: 0; display: flex; gap: 14px; align-items: flex-start; color: var(--fg); padding: 18px 20px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.category:hover { text-decoration: none; transform: scale(1.012); box-shadow: var(--shadow-lift); }
.category .main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.category .title { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.category .desc { color: var(--muted); font-size: 14px; line-height: 1.4; }
.category .meta { color: var(--faint); font-size: 12px; margin-top: 4px; }
.newcount { font-size: 11px; font-weight: 600; color: var(--on-tint); background: var(--tint); border-radius: 980px; padding: 1px 7px; vertical-align: 2px; }
.glyph { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #b36bff, #7a3fe0); }
.glyph.large { width: 56px; height: 56px; border-radius: 14px; }
.glyph .icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glyph.large .icon { width: 30px; height: 30px; }
.glyph-megaphone { background: linear-gradient(135deg, #ff7a59, #ff375f); }
.glyph-chat { background: linear-gradient(135deg, #5ac8fa, #007aff); }
.glyph-layers { background: linear-gradient(135deg, #c27bff, #8e44d6); }
.glyph-chip { background: linear-gradient(135deg, #8e8e93, #48484a); }
.glyph-grid { background: linear-gradient(135deg, #64d2ff, #5e5ce6); }
.glyph-key { background: linear-gradient(135deg, #ffd60a, #ff9f0a); }
.glyph-star { background: linear-gradient(135deg, #ff9f0a, #ff6b00); }
.glyph-help { background: linear-gradient(135deg, #30d158, #00a86b); }
.categoryhead { display: flex; gap: 16px; align-items: center; } .categoryhead h1 { margin: 0 0 4px; }
.threads a { padding-left: 16px; }
.threads .dot { order: 3; }
.pin { color: var(--tint); font-size: 10px; vertical-align: 2px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 16px 2px; font-size: 15px; }
.threadhead h1 { margin-bottom: 10px; font-size: 34px; }
.threadtools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.threadtools p { margin: 0; display: flex; gap: 6px; align-items: center; }
.posts { display: flex; flex-direction: column; gap: 14px; }
.post { margin: 0; padding: 20px 24px; scroll-margin-top: 70px; }
.post:target { box-shadow: 0 0 0 3px var(--tint-soft), var(--shadow); transition: box-shadow 1.2s var(--ease); }
.post .from { margin-bottom: 12px; align-items: center; gap: 10px; flex-wrap: nowrap; }
.post .from .who { font-size: 15px; }
.post .from .when { display: block; font-size: 12px; color: var(--faint); }
.post .from .when a { color: inherit; }
.post .body { overflow-wrap: anywhere; }
.post .body p { margin: 0 0 .8em; } .post .body > :last-child { margin-bottom: 0; }
.post .body pre { margin: 0 0 .8em; font-size: 13.5px; white-space: pre; overflow-x: auto; word-break: normal; }
.post .body blockquote { margin: 0 0 .8em; padding: 2px 0 2px 14px; border-left: 3px solid var(--tint-soft); color: var(--muted); }
.post .body ul { margin: 0 0 .8em; padding-left: 1.3em; } .post .body li { margin: .2em 0; }
.post.first .body { font-size: 17.5px; }
.posttools { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; }
.posttools a, .posttools button.link { color: var(--muted); font-size: 13px; } .posttools a:hover, .posttools button.link:hover { color: var(--tint); }
.removed { font-style: italic; margin: 0; }
.newline { display: flex; align-items: center; gap: 12px; color: var(--tint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; scroll-margin-top: 80px; }
.newline::before, .newline::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--tint) 40%, transparent); }
.reply { margin-top: 24px; } .reply h2 { margin: 0; font-size: 19px; } .reply button { align-self: flex-start; }
.formatting summary { font-size: 13px; margin: 0; } .formatting p { font-size: 13px; margin: 6px 0 0; }
.moderate { margin-top: 28px; } .moderate summary { margin: 0; } .moderate form { margin-top: 14px; } .moderate select { width: auto; font-size: 14px; padding: 7px 34px 7px 12px; background-position: right 11px center; }
.center { text-align: center; }

/* pictures: in posts and chats, picked ones before sending, and big over the page */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; max-width: 640px; }
.shots.count-1 { grid-template-columns: minmax(0, 520px); }
.shots.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots a { display: block; border-radius: 14px; overflow: hidden; background: var(--code); border: 1px solid var(--hair); }
.shots img { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: cover; transition: transform .35s var(--ease), opacity .2s var(--ease); }
.shots:not(.count-1) img { aspect-ratio: 1; object-position: center top; }
.shots.count-1 { justify-content: start; } .shots.count-1 a { justify-self: start; max-width: 100%; }
.shots.count-1 img { width: auto; max-width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.shots a:hover img { transform: scale(1.02); }
/* in the chat, pictures sit like in Messages: their own shape, on the sender's side */
.msg .shots, .report .shots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; max-width: 100%; }
.msg.mine .shots { justify-content: flex-end; }
.msg .shots a, .report .shots a { border-radius: 18px; }
.msg .shots a, .report .shots a { display: inline-block; width: fit-content; line-height: 0; }
/* fixed limits, no percentages: the frame then takes exactly the picture's size, whatever its shape */
.msg .shots img, .report .shots img { width: auto; height: auto; max-width: 240px; max-height: 300px; aspect-ratio: auto; object-fit: contain; }
@media (max-width: 420px) { .msg .shots img, .report .shots img { max-width: 200px; max-height: 260px; } }
.report .shots { margin-top: 12px; }
.picked { display: flex; flex-wrap: wrap; gap: 8px; }
.pickeditem { position: relative; display: inline-flex; align-items: center; }
.pickeditem img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--hair); display: block; }
.pickeditem.chip { font-size: 13px; background: var(--code); border-radius: 10px; padding: 6px 28px 6px 10px; }
.unpick { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; border-radius: 50%; font-size: 15px; line-height: 1; display: grid; place-items: center; background: var(--fg); color: var(--bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.pickeditem.chip .unpick { top: 50%; right: 4px; transform: translateY(-50%); width: 18px; height: 18px; font-size: 13px; }
.unpick:hover { background: var(--bad); color: #fff; }
.composerbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.composer .picked { grid-column: 1 / -1; margin: 0 4px 2px; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 32px; background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); opacity: 0; transition: opacity .22s var(--ease); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transform: scale(.96); transition: transform .3s var(--ease-out); }
.lightbox.shown { opacity: 1; } .lightbox.shown img { transform: none; }
.lightbox-open { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(255, 255, 255, .14); padding: 6px 14px; border-radius: 980px; }
.lightbox-open:hover { text-decoration: none; background: rgba(255, 255, 255, .24); }

/* motion: site.js marks what fades up into place as it scrolls into view, and moves the start page's hero as it scrolls away */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero.moving { transform: translateY(calc(var(--p, 0) * 60px)) scale(calc(1 - var(--p, 0) * .06)); opacity: calc(1 - var(--p, 0) * .9); }

/* pages fade into each other (Safari 18.2, Chrome 126 and newer) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero.moving { transform: none; opacity: 1; }
  .feature:hover, .card.tile:hover { transform: none; }
  @view-transition { navigation: none; }
}

/* the store review: a link to the chat on the store page, the releases to test, the side of the chat */
.reviewlink { display: flex; align-items: center; gap: 14px; color: var(--fg); margin: 16px 0 8px; transition: background-color .2s var(--ease); }
.reviewlink:hover { text-decoration: none; background: color-mix(in srgb, var(--tint-soft) 45%, var(--surface)); }
.reviewlink .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.reviewlink .title { font-weight: 600; letter-spacing: -.015em; }
.reviewlink .meta { font-size: 14px; color: var(--muted); }
.reviewlink > .chev { color: var(--muted); font-size: 22px; }
.testlist { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.testlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--fg) 4%, transparent); }
.reviewhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.reviewhead > div { min-width: 0; line-height: 1.3; }
.sidelinks { margin: 14px 0 0; font-size: 15px; line-height: 1.7; }
.side h3 { margin: 0; font-size: 17px; }
.sidedrop { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--hair); }
.sidedrop:first-of-type { border-top: 0; padding-top: 0; }
.sidedrop p { margin: 0; line-height: 1.45; }
.sidedrop form, .side .stack form { width: 100%; }
.side input[name=note] { font-size: 15px; padding: 9px 12px; }
.side .row { gap: 8px; flex-wrap: wrap; }
.testlist .notes { flex-basis: 100%; color: var(--muted); }
