:root {
  color-scheme: light dark;
}

html {
  /* Cover the over-scroll / below-content area so it isn't default white. */
  background-color: rgb(var(--mdui-color-background));
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: rgb(var(--mdui-color-background));
  color: rgb(var(--mdui-color-on-background));
  font-family: Roboto, system-ui, sans-serif;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 500;
}

.hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgb(var(--mdui-color-on-surface-variant));
}

.hint code,
.filename code {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.82em;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filename {
  font-size: 0.88rem;
  color: rgb(var(--mdui-color-on-surface-variant));
  word-break: break-all;
}

.info-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  font-size: 0.88rem;
  padding: 12px;
  border-radius: 8px;
  background: rgb(var(--mdui-color-surface-container));
}

.info-grid .k {
  color: rgb(var(--mdui-color-on-surface-variant));
}

.info-grid .v {
  font-family: "Roboto Mono", ui-monospace, monospace;
}

.log {
  margin: 0;
  max-height: 280px;
  overflow: auto;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.log .err {
  color: rgb(var(--mdui-color-error));
}

mdui-linear-progress {
  width: 100%;
}
