:root {
  color-scheme: light dark;
  --page: #f6f8f7;
  --surface: #ffffff;
  --text: #1f2f2d;
  --muted: #53635f;
  --border: #dbe5e1;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-light: rgba(15, 118, 110, 0.12);
  --on-accent: #f7fffd;
  --focus: #0f766e;
  font:
    16px/1.55 "Noto Sans SC",
    "Plus Jakarta Sans",
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  background: var(--page);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}

main {
  max-width: 44rem;
  min-height: 100vh;
  margin-inline: auto;
  padding: max(24px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}
main {
  padding-bottom: calc(
    max(24px, env(safe-area-inset-bottom)) + var(--download-dock-space, 0px)
  );
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
}
.brand img {
  border-radius: 6px;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  margin-inline-start: auto;
}
.language-switch select {
  min-height: 44px;
  padding: 8px;
  width: auto;
}
.brand span {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}
h1 {
  margin: 40px 0 12px;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
h2 {
  font-size: 1.125rem;
  line-height: 1.4;
}
p {
  margin: 12px 0;
}
#intro {
  color: var(--muted);
  max-width: 32rem;
}
body[data-page="login"] main {
  max-width: 32rem;
}
body[data-page="login"] h1 {
  margin: 28px 0 8px;
}
#login {
  margin-top: 20px;
  padding: clamp(14px, 4vw, 24px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
#login > label:first-child {
  margin-top: 0;
}
label {
  display: block;
  margin: 20px 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}
input,
textarea,
select,
button {
  font: inherit;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
.remember-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 16px 0 0;
  font-weight: 400;
}
#remember-hint,
#remember-support {
  margin: 0 0 8px;
}
button,
#download-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--on-accent);
  background: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 180ms cubic-bezier(0.2, 0, 0, 1),
    border-color 180ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 180ms cubic-bezier(0.2, 0, 0, 1);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
button:active:not(:disabled),
#download-save:active {
  filter: brightness(0.9);
}
@media (hover: hover) {
  button:not(.secondary):hover:not(:disabled):not(#tile),
  #download-save:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
    box-shadow:
      0 0 0 1px var(--accent-light),
      0 0 8px var(--accent-light);
  }
  button.secondary:hover:not(:disabled) {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
  }
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--accent-light);
}
#get-challenge {
  width: 100%;
  margin-top: 20px;
}
.hint {
  color: var(--muted);
  font-size: 0.8125rem;
}
.account-menu {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.account-menu summary::after {
  content: "⌄";
  margin-left: 8px;
}
.account-menu button {
  margin: 8px 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-heading p,
.section-heading h2 {
  margin: 0;
}
.section-heading p {
  color: var(--muted);
  font-size: 0.875rem;
}
.section-heading button {
  flex-shrink: 0;
}
#computers,
#results {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.computer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.computer-row > div {
  flex: 1 1 12rem;
  min-width: 0;
}
.computer-row h2 {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.computer-state {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}
.computer-row button {
  flex-shrink: 0;
  font-size: 0.875rem;
}
#search-form {
  margin: 24px 0 0;
}
#search-form > label {
  margin-top: 0;
}
.search-options {
  display: block;
  margin-top: 10px;
}
.search-options label {
  grid-column: 1 / -1;
  flex-shrink: 0;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}
.search-options select {
  flex: 1;
  min-width: 0;
  padding: 8px;
}
.search-options button {
  min-width: 76px;
}
#status,
#search-status,
#computer-status {
  font-size: 0.875rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
#status:empty,
#computer-status:empty,
#captcha-status:empty {
  display: none;
}
#retry,
#sign-in-again {
  margin: 8px 8px 0 0;
}
.search-result {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.search-result h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.result-location,
.result-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin: 4px 0;
}
.result-snippet {
  /* Matching text remains inert text nodes inside semantic marks. */
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.search-result mark {
  background: var(--accent-light);
  color: inherit;
  font-weight: 700;
  border-radius: 2px;
}
.search-result button {
  margin-top: 12px;
}
#load-more {
  width: 100%;
  margin-top: 20px;
}
#download-panel {
  position: fixed;
  z-index: 20;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 40rem;
  max-height: 45dvh;
  overflow-y: auto;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 24px #0002;
}
#download-name {
  margin: 0 0 4px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#download-status {
  margin: 0;
  overflow-wrap: anywhere;
}
#download-panel progress {
  width: 100%;
  accent-color: var(--accent);
  margin: 8px 0;
}
#download-panel button,
#download-save {
  margin: 8px 8px 0 0;
}
footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}
footer summary::before {
  content: "+";
  margin-right: 8px;
}
footer p {
  line-height: 1.65;
}
dialog {
  width: min(24rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: inherit;
  background: var(--page);
}
dialog::backdrop {
  background: #172f3880;
}
.homescreen-reminder {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
#text-reader {
  width: min(44rem, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
#text-reader-title {
  overflow-wrap: anywhere;
}
#text-reader .section-heading {
  position: sticky;
  top: 0;
  background: var(--page);
  z-index: 1;
}
#text-reader-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
  margin: 16px 0;
}
.homescreen-reminder p {
  margin: 0 0 12px;
}
.homescreen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.homescreen-actions button {
  margin: 0;
  font-size: 0.875rem;
}
#homescreen-login-entry {
  margin-top: 8px;
}
#homescreen-login {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
}
body[data-page="login"] footer {
  margin-top: 16px;
}
#homescreen-steps {
  padding-inline-start: 24px;
}
#homescreen-steps li {
  margin: 10px 0;
}
dialog h2 {
  margin: 0 0 0.5rem;
}
dialog p {
  margin: 0.5rem 0;
}
.captcha-actions {
  display: flex;
  gap: 0.5rem;
  position: sticky;
  bottom: 0;
  padding-top: 0.75rem;
  background: var(--page);
}
.captcha-actions button {
  margin: 0;
  padding: 0.55rem 0.7rem;
  white-space: nowrap;
}
#captcha #stage {
  width: min(100%, calc(max(5rem, 100dvh - 20rem) * var(--captcha-ratio)));
  margin-inline: auto;
}
#stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}
#background {
  display: block;
  width: 100%;
}
#tile {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  min-height: 0;
  touch-action: none;
}
#piece {
  display: block;
  width: 100%;
  pointer-events: none;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f1417;
    --surface: #171f23;
    --text: #e9f2ef;
    --muted: #a4b5b0;
    --border: #2a393f;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-light: rgba(45, 212, 191, 0.16);
    --on-accent: #082f2b;
    --focus: #2dd4bf;
  }
}
@media (min-width: 640px) {
  main {
    padding-top: 40px;
    padding-bottom: calc(
      max(40px, env(safe-area-inset-bottom)) + var(--download-dock-space, 0px)
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  #download-save {
    transition: none;
  }
}

.captcha-rail {
  position: relative;
  margin-top: 12px;
  --captcha-progress: 0%;
}
.captcha-rail-label {
  position: absolute;
  z-index: 1;
  inset: 0 8px 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}
.captcha-rail-label.moved {
  opacity: 0;
}
#captcha-slider {
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(
    to right,
    var(--accent-light) var(--captcha-progress),
    var(--surface) var(--captcha-progress)
  );
  touch-action: none;
  cursor: grab;
}
#captcha-slider:active {
  cursor: grabbing;
}
#captcha-slider:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 3px;
}
#captcha-slider:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#captcha-slider::-webkit-slider-runnable-track {
  height: 42px;
  background: transparent;
}
#captcha-slider::-webkit-slider-thumb {
  appearance: none;
  box-sizing: border-box;
  width: 44px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23516b70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 7 5 5-5 5m6-10 5 5-5 5'/%3E%3C/svg%3E")
    center no-repeat;
  box-shadow: 0 2px 5px #102c321a;
}
#captcha-slider::-moz-range-track {
  height: 42px;
  background: transparent;
}
#captcha-slider::-moz-range-thumb {
  box-sizing: border-box;
  width: 44px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23516b70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 7 5 5-5 5m6-10 5 5-5 5'/%3E%3C/svg%3E")
    center no-repeat;
  box-shadow: 0 2px 5px #102c321a;
}

.pairing-panel {
  margin-block: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.pairing-panel h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.pairing-fingerprint {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px 20px;
  margin-block: 16px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  user-select: text;
}
.pairing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.pairing-digits {
  display: block;
  width: fit-content;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  font:
    600 clamp(2rem, 10vw, 3rem)/1.2 ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  user-select: text;
}
#pairing-error {
  color: var(--text);
  font-weight: 600;
}
#pairing-forget-dialog {
  max-width: min(90vw, 30rem);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text);
  background: var(--surface);
}
#pairing-forget-dialog::backdrop {
  background: #0006;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.brand {
  position: relative;
}
.brand .language-switch {
  margin-inline-start: auto;
}
.account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.account-actions p {
  overflow-wrap: anywhere;
}
body.pairing-active #computer-section,
body.pairing-active #search-panel {
  display: none;
}
body.pairing-active #title {
  display: none;
}
body[data-page="search"] #account {
  margin-top: 12px;
}
.computer-context {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.computer-context h2 {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
#selected-connection {
  font-size: 0.8125rem;
  color: var(--muted);
}
#selected-connection[data-state="ready"] {
  color: var(--accent);
}
.search-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-input-row input {
  flex: 1;
  min-width: 0;
}
.search-input-row button {
  flex-shrink: 0;
}
#search-form {
  margin: 16px 0 0;
}
.search-options > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.search-options select {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
}
.search-result {
  padding: 18px 0;
}
.result-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result .result-title {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  min-height: 44px;
  width: 100%;
  overflow-wrap: anywhere;
  text-align: start;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
.search-result .result-title:hover {
  color: var(--accent-hover);
  background: transparent;
}
.search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
}
.search-result > * {
  grid-column: 1 / -1;
  min-width: 0;
}
.search-result h3 {
  padding: 0;
  overflow-wrap: anywhere;
}
.search-result.has-download h3 {
  grid-column: 1;
}
.search-result > [data-download-ref] {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: 0;
  padding: 6px 10px;
  min-height: 44px;
}
.pairing-details {
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 12px 0;
}
.pairing-details > summary {
  cursor: pointer;
  padding: 6px 0;
}
.pairing-panel .pairing-digits {
  font-size: clamp(2.75rem, 13vw, 4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  width: 100%;
  letter-spacing: 0.08em;
  background: var(--accent-light);
  border: 0;
  padding: 18px 10px;
}
.pairing-panel .pairing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pairing-panel .pairing-actions > button {
  flex: 1 1 100%;
}
.pairing-panel {
  margin-top: 24px;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.download-more {
  position: relative;
  font-size: 0.875rem;
  color: var(--muted);
}
.download-more summary {
  cursor: pointer;
  padding: 10px;
  min-height: 44px;
}
.download-more[open] > button {
  position: absolute;
  right: 0;
  bottom: 100%;
  background: var(--surface);
  min-width: 160px;
  border: 1px solid var(--border);
}
@media (max-width: 600px) {
  #text-reader {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: max(16px, env(safe-area-inset-top)) 20px
      max(16px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }
  #text-reader[open] {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  #text-reader .section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    gap: 12px;
  }
  #text-reader-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    margin: 4px 0;
    font-size: 1rem;
  }
  #text-reader-title {
    font-size: 1.125rem;
    margin: 0;
  }
  #text-reader-download {
    flex-shrink: 0;
    width: 100%;
    color: var(--on-accent);
    background: var(--accent);
    border-color: var(--accent);
  }
  #text-reader-status {
    font-size: 0.8125rem;
    margin: 0;
  }
}

.password-field {
  position: relative;
}
.password-field input::-ms-reveal {
  display: none;
}
.password-field input {
  width: 100%;
  padding-right: 52px;
  box-sizing: border-box;
}
.password-field button {
  margin: 0;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--text);
}
.password-slash[hidden] {
  display: none;
}

body.connection-in-progress {
  overflow: hidden;
}
.connection-progress {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: max(24px, env(safe-area-inset-top)) 24px
    max(24px, env(safe-area-inset-bottom));
  background: var(--page);
  color: var(--text);
}
.connection-progress-content {
  width: min(100%, 360px);
  text-align: center;
}
.connection-progress h2 {
  font-size: 1.75rem;
  margin: 28px 0 12px;
}
#connection-progress-computer {
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}
#connection-progress-hint {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 24px 0;
}
.connection-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: auto;
  color: var(--accent);
  font-size: 2.5rem;
}
.connection-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: connection-spin 1.4s linear infinite;
}
.connection-progress-track {
  height: 4px;
  margin-top: 28px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
}
.connection-progress-track span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  animation: connection-travel 1.5s ease-in-out infinite alternate;
}
@keyframes connection-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes connection-travel {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .connection-orbit::before,
  .connection-progress-track span {
    animation: none;
  }
  .connection-progress-track span {
    transform: translateX(75%);
  }
}

.search-segments {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: var(--border);
}
.search-segments button.secondary {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 6px;
  margin: 0;
  border: 0;
  font-size: 0.8125rem;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--muted);
  background: transparent;
}
.search-segments button:first-child {
  flex: 1.6;
}
.search-segments button.secondary[aria-pressed="true"] {
  font-weight: 700;
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 3px #0001;
}
.pairing-maintenance {
  margin-top: 24px;
  color: var(--muted);
}
.pairing-maintenance > summary {
  min-height: 44px;
  padding-block: 10px;
}
.pairing-maintenance .pairing-actions {
  margin-top: 8px;
}
.computer-context {
  gap: 8px;
}
#disconnect {
  font-size: 0.8125rem;
  padding-inline: 10px;
}

.download-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.download-heading #download-name {
  flex: 1;
  min-width: 0;
  margin: 0;
}
#download-panel #download-toggle {
  flex-shrink: 0;
  margin: 0 0 0 auto;
  font-size: 0.8125rem;
}

.computer-help {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 6px 0 0;
}
#text-reader-heading {
  min-width: 0;
  width: 100%;
}
#text-reader-heading summary {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
#text-reader-heading summary::after {
  content: "⌄";
  flex-shrink: 0;
  color: var(--muted);
}
#text-reader-heading[open] summary::after {
  content: "⌃";
}
#text-reader-heading h2 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
#text-reader-heading:not([open]) h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#text-reader-heading[open] {
  max-height: 25dvh;
  overflow-y: auto;
}

.computer-context {
  flex-wrap: wrap;
}
#connection-path {
  color: var(--muted);
  font-size: 0.8125rem;
}

#confirmation-dialog {
  width: min(90vw, 25rem);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
}
#confirmation-dialog::backdrop {
  background: #0007;
}
#confirmation-dialog h2 {
  margin: 0 0 12px;
}
#confirmation-message {
  overflow-wrap: anywhere;
  margin: 0 0 24px;
}
.confirmation-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.confirmation-actions button {
  margin: 0;
}
