
:root {
  --page: #060606; --panel: #0e0f10; --chrome: #0a0b0c; --surface: #191a1b; --hover: #232425;
  --selected: #2a2b2c; --line: #212223; --line-strong: #2e2f30; --text: #dedede;
  --text-strong: #f4f4f4; --text-secondary: #b2b2b2; --text-disabled: #7a7a7a;
  --green: #10a37f; --yellow: #d8c85b; --red: #e88c86; --focus: #cecece;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--page); color: var(--text); font: 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.icon { width: 14px; height: 14px; flex: none; }

/* Getting-in pages: one panel on the plain page under a top bar. */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-strong); font-weight: 600; font-size: 14px; }
.brand img { width: 22px; height: 22px; border-radius: 5px; }
.topbar-right { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-secondary); }
.topbar-right a, .link-button { color: var(--text-secondary); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; }
.topbar-right a:hover, .link-button:hover { color: var(--text-strong); }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--selected); color: var(--text-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex: none; }
.getting-in { flex: 1; display: flex; justify-content: center; padding: 72px 16px 40px; }
.panel { width: 440px; max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; align-self: flex-start; }
.panel h1 { font-size: 17px; font-weight: 600; color: var(--text-strong); margin: 0 0 6px; }
.panel p { margin: 0; color: var(--text-secondary); }
.panel .lead { margin-bottom: 16px; }
.panel .small { font-size: 12px; color: var(--text-secondary); margin-top: 14px; }
.panel .small a { color: var(--text); }
.mark { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.mark svg { width: 18px; height: 18px; }
.mark.ok { background: var(--green); color: #fff; }
.mark.no { border: 1px solid var(--line-strong); color: var(--text); }
.mark.clock { border: 1px solid var(--yellow); color: var(--yellow); }
.mark.lock { border: 1px solid var(--line-strong); color: var(--text); }
.footer { display: flex; justify-content: center; gap: 16px; padding: 18px; font-size: 12px; }
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--text-strong); }

/* Buttons: the light main button, bordered dark buttons for the rest. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-strong); text-decoration: none; cursor: pointer; font-size: 12px; white-space: nowrap; }
.button:hover { background: var(--hover); }
.button.main { background: #e5e5e5; border-color: #e5e5e5; color: #111; }
.button.main:hover { background: #f4f4f4; }
.button.wide { width: 100%; }
.button:disabled, .button[aria-disabled='true'] { opacity: 0.45; cursor: default; pointer-events: none; }
.button.main:disabled { background: #7a7a7a; border-color: #7a7a7a; color: #2a2a2a; opacity: 1; }
.button.row { height: 30px; padding: 0 10px; }
.button.danger:hover { border-color: var(--red); color: var(--red); background: transparent; }
.button.danger-outline { border-color: var(--red); color: var(--red); }
.google { border-color: #8e918f; border-radius: 17px; width: 100%; height: 34px; font-weight: 500; color: #e3e3e3; background: #131314; }
.google:hover { background: #1b1b1c; }
.google svg { width: 16px; height: 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
form.inline { display: inline; margin: 0; }

/* A line that keeps its space whether or not it shows (nothing moves). */
.line { min-height: 20px; margin: 8px 0; font-size: 12px; color: var(--text-secondary); }
.line.error { color: var(--red); }

.chip { display: inline-block; border: 1px solid var(--line-strong); border-radius: 12px; padding: 2px 9px; font-size: 12px; color: var(--text-strong); margin: 4px 0 14px; word-break: break-all; }
.inline-chip { margin: 0 2px; }

.computer-box { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.computer-icon { width: 36px; height: 36px; border-radius: 7px; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--text); flex: none; }
.computer-icon svg { width: 18px; height: 18px; }
.computer-box b { display: block; color: var(--text-strong); font-weight: 600; }
.computer-box span { font-size: 12px; color: var(--text-secondary); }
.code-box { background: var(--surface); border-radius: 8px; padding: 12px; margin-bottom: 14px; }
.code-box span { font-size: 11px; color: var(--text-secondary); }
.code-box .code { display: block; font: 600 22px/1.3 var(--mono); letter-spacing: 4px; color: var(--text-strong); margin-top: 4px; }
.facts { margin: 0 0 16px; }
.facts div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--text-strong); font-weight: 600; }
.facts dd { margin: 0; color: var(--text-secondary); }

.code-boxes { display: flex; gap: 8px; margin: 16px 0 12px; }
.code-boxes input { width: 40px; height: 44px; text-align: center; font: 600 18px var(--mono); background: var(--page); border: 1px solid var(--line-strong); border-radius: 7px; color: var(--text-strong); }
.code-boxes.eight input { width: 36px; }
.code-boxes .dash { align-self: center; color: var(--text-secondary); }
.code-boxes.wrong input { border-color: var(--red); }
.code-boxes input:disabled { background: var(--chrome); border-color: var(--line); }

/* Signed-in pages: HubDash's sidebar and page bar. */
.app { display: grid; grid-template-columns: 188px 1fr; min-height: 100vh; }
.sidebar { background: var(--chrome); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 8px; }
.sidebar .brand { padding: 4px 8px 14px; }
.nav a { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 6px; text-decoration: none; color: var(--text); font-size: 12px; }
.nav a:hover { background: var(--hover); }
.nav a[aria-current='page'] { background: var(--selected); color: var(--text-strong); }
.account { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 8px 0; display: flex; gap: 10px; align-items: center; font-size: 12px; }
.account div { min-width: 0; }
.account .email { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.pagebar { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: var(--panel); border-bottom: 1px solid var(--line); color: var(--text-strong); font-size: 14px; }
.pagebar a { color: var(--text-secondary); display: flex; }
.content { padding: 20px; max-width: 840px; }
.mobilebar { display: none; }

.section-title { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-strong); margin: 8px 0 10px; }
.count { background: var(--selected); border-radius: 4px; padding: 0 6px; font-size: 11px; color: var(--text); }
.rows { display: flex; flex-direction: column; gap: 8px; }
.computer-row { position: relative; display: grid; grid-template-columns: 1fr 160px auto; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.computer-row:hover { border-color: var(--line-strong); }
.computer-row .open { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.computer-row .open::after { content: ''; position: absolute; inset: 0; }
.computer-row b { display: block; color: var(--text-strong); font-weight: 600; }
.computer-row .meta { font-size: 12px; color: var(--text-secondary); }
.warn { color: var(--yellow); }
.ended { color: var(--red); }
.state { font-size: 12px; position: relative; }
.contact { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.head-contact { margin-left: auto; }
.content > .notice { margin-bottom: 16px; }
.state b { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); }
.state small { display: block; padding-left: 12px; color: var(--text-secondary); font-size: 11px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-disabled); }
.dot.on { background: var(--green); }
.remove { position: relative; z-index: 1; }
.remove summary { list-style: none; }
.remove summary::-webkit-details-marker { display: none; }
.popover { position: absolute; right: 0; top: 38px; width: 270px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px; box-shadow: 0 8px 24px rgb(0 0 0 / 32%); z-index: 2; }
.popover b { display: block; color: var(--text-strong); margin-bottom: 6px; }
.popover p { margin: 0 0 8px; font-size: 12px; color: var(--text-secondary); }
.popover .actions { display: flex; justify-content: flex-end; gap: 8px; }
.empty { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 28px 16px; text-align: center; }
.empty b { display: block; color: var(--text-strong); margin-bottom: 4px; }
.empty p { margin: 0; color: var(--text-secondary); }
.empty .button { margin-top: 14px; }

.computer-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.computer-head .computer-icon { width: 48px; height: 48px; }
.computer-head .meta { font-size: 12px; color: var(--text-secondary); }
.computer-head h2 { margin: 2px 0 0; font-size: 18px; color: var(--text-strong); font-weight: 600; }
.pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 13px; padding: 3px 10px; font-size: 12px; color: var(--text); }
.notice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px; font-size: 12px; color: var(--text-secondary); }
.notice b { color: var(--text-strong); }

/* Admin (design group 5). */
.nav-group { font-size: 11px; color: var(--text-secondary); padding: 14px 8px 4px; }
.nav-lock { margin-left: auto; display: flex; color: var(--text-secondary); }
.nav-lock svg { width: 11px; height: 11px; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--chrome); margin-bottom: 16px; }
.tabs a { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 18px; border-radius: 6px; text-decoration: none; color: var(--text); font-size: 12px; min-width: 110px; justify-content: center; }
.tabs a[aria-current='page'] { background: var(--selected); color: var(--text-strong); }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
.box h2 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 12px 8px; font-size: 12px; font-weight: 600; color: var(--text); }
.box-warn h2 { color: var(--yellow); }
.box-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 8px 12px; border-top: 1px solid var(--line); }
.box-row .who { color: var(--text-strong); }
.box-row .who small { display: block; font-size: 11px; color: var(--text-secondary); }
.box-row .when { font-size: 12px; color: var(--text-secondary); }
.box-row .acts { display: flex; gap: 8px; position: relative; }
.phone-only { display: none !important; }
.add-row, .search-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; }
.add-row input, .search-row input { width: 310px; max-width: 100%; height: 30px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--page); padding: 0 10px; color: var(--text-strong); }
.search-row { margin-bottom: 12px; }
.search-row p { margin: 0; font-size: 12px; color: var(--text-secondary); }
table.list { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
table.list th { text-align: left; font-weight: 400; font-size: 11px; color: var(--text-secondary); padding: 10px 12px; }
table.list td { padding: 10px 12px; border-top: 1px solid var(--line); color: var(--text); }
table.list td:first-child { color: var(--text-strong); }
table.list td.end { text-align: right; position: relative; }
.popover .smaller { font-size: 11px; }
details.ask { position: relative; }
.lock-panel { margin: 36px auto 0; }
.lock-panel .button { margin-top: 4px; }

@media (max-width: 759px) {
  .tabs { display: flex; width: 100%; }
  .tabs a { min-width: 0; flex: 1; padding: 0 6px; }
  .tabs .count { display: none; }
  .box-row { grid-template-columns: 1fr auto; }
  .box-row .when { grid-column: 1; }
  .box-row .acts { grid-column: 1 / -1; }
  .desk-only { display: none !important; }
  .phone-only { display: block !important; }
  .add-row, .search-row { flex-wrap: wrap; }
  .add-row input, .search-row input { width: 100%; }
  table.list thead { display: none; }
  table.list, table.list tbody, table.list tr, table.list td { display: block; }
  table.list tr { position: relative; padding: 10px 12px; border-top: 1px solid var(--line); }
  table.list tr:first-child { border-top: 0; }
  table.list td { border: 0; padding: 1px 0; font-size: 12px; color: var(--text-secondary); }
  table.list td[data-label]:not([data-label=''])::before { content: attr(data-label) ' '; }
  table.list td.end { position: absolute; top: 10px; right: 12px; padding: 0; }
  .hide-phone { display: none; }
  .app { display: block; }
  .sidebar { display: none; }
  .mobilebar { display: flex; height: 52px; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--chrome); border-bottom: 1px solid var(--line); position: relative; }
  .mobilebar details summary { list-style: none; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 7px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .mobilebar details summary::-webkit-details-marker { display: none; }
  .mobilebar .menu { position: absolute; left: 0; right: 0; top: 52px; background: var(--chrome); border-bottom: 1px solid var(--line); padding: 8px 16px 12px; z-index: 3; }
  .mobilebar .menu .account { margin-top: 8px; }
  .pagebar { padding: 0 16px; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .getting-in { padding: 20px 16px 24px; }
  .panel { width: 100%; padding: 18px; }
  .computer-row { grid-template-columns: 1fr auto; grid-template-areas: 'open state' 'remove remove'; padding: 12px; }
  .computer-row .open { grid-area: open; align-items: flex-start; }
  .computer-row .state { grid-area: state; align-self: start; }
  .computer-row .state small { display: none; }
  .computer-row .remove { grid-area: remove; padding-left: 48px; }
  .popover { left: 0; right: auto; width: calc(100vw - 40px); max-width: 320px; }
  .code-boxes input { width: 38px; }
  .code-boxes.eight { gap: 5px; }
  .code-boxes.eight input { width: 30px; }
  .computer-head { flex-wrap: wrap; }
  .computer-head .pill { margin-left: 62px; }
  .computer-head .head-contact { margin-left: 0; flex-basis: 100%; }
  .computer-row .state .contact { white-space: normal; text-align: right; }
}

/* 7.2 Privacy and Terms, and the home page: a plain reading page under the getting-in top bar. */
.reading { flex: 1; display: flex; justify-content: center; padding: 40px 16px 32px; }
.reading article { width: 560px; max-width: 100%; }
.reading h1 { font-size: 22px; font-weight: 600; color: var(--text-strong); margin: 0; }
.reading .reading-changed { font-size: 12px; color: var(--text-secondary); margin: 6px 0 8px; }
.reading .reading-lead { color: var(--text); margin: 6px 0 16px; }
.reading .reading-mark img { width: 40px; height: 40px; display: block; margin-bottom: 14px; }
.reading .reading-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.reading .reading-actions .button { text-decoration: none; display: inline-flex; align-items: center; }
.reading .reading-heading { display: block; font-size: 14px; font-weight: 600; color: var(--text-strong); padding: 0; margin: 26px 0 8px; }
.reading p, .reading li { color: var(--text-secondary); line-height: 1.6; margin: 0 0 10px; }
.reading ul { margin: 0 0 10px; padding-left: 20px; }
.reading li { margin-bottom: 6px; }
.reading a { color: var(--text); }
@media (max-width: 759px) {
  .reading { padding: 20px 16px 24px; }
  .reading .reading-actions .button { flex: 1; justify-content: center; }
}

/* 7.1 Downloads: the current release and the beta, each in a box. */
.downloads { flex: 1; display: flex; justify-content: center; padding: 36px 16px 32px; }
.downloads-column { width: 620px; max-width: 100%; }
.downloads h1 { font-size: 20px; font-weight: 600; color: var(--text-strong); margin: 0 0 6px; }
.downloads .lead { color: var(--text-secondary); margin: 0 0 20px; }
.downloads-line { color: var(--text-secondary); margin: 0 0 14px; }
.release { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 16px 16px; margin-bottom: 14px; }
.release-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.release-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; color: var(--text-strong); }
.release-meta { margin: 4px 0 0; font-size: 12px; color: var(--text-secondary); }
.tag { display: inline-block; font-size: 10px; font-weight: 600; border-radius: 5px; padding: 2px 6px; }
.tag.current { color: var(--green); background: rgba(16, 163, 127, 0.16); }
.tag.beta { color: var(--yellow); background: rgba(216, 200, 91, 0.16); }
.release-warning { margin: 12px 0 0; font-size: 12px; color: var(--text-secondary); }
.release-notes { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text); }
.release-notes-title { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.release-notes ul { margin: 0; padding-left: 18px; }
.release-notes li { margin: 0 0 6px; line-height: 1.5; }
.release-notes li b { color: var(--text-strong); font-weight: 600; }
.release-notes p { margin: 6px 0 0; color: var(--text-secondary); line-height: 1.5; }
details.release-notes summary { cursor: pointer; color: var(--text-secondary); list-style: none; }
details.release-notes summary::-webkit-details-marker { display: none; }
details.release-notes summary::before { content: ''; display: inline-block; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin: 0 9px 2px 2px; }
details.release-notes[open] summary::before { transform: rotate(45deg); }
details.release-notes[open] summary { margin-bottom: 10px; }
@media (max-width: 759px) {
  .downloads { padding: 20px 16px 24px; }
  .release-head { flex-direction: column; gap: 12px; }
  .release-head > div { width: 100%; }
  .release-head .button { width: 100%; }
}
