/* shxre · obsidian */

:root {
  --bg: #08090c;
  --surface: rgba(17, 19, 25, 0.9);
  --surface-solid: #111319;
  --raised: rgba(255, 255, 255, 0.035);
  --raised-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #e8eaf0;
  --muted: #8b91a3;
  --faint: #5c6274;
  --cyan: #6ef0f5;
  --emerald: #3ee0a0;
  --accent: linear-gradient(135deg, var(--cyan), var(--emerald));
  --danger: #ff7a7a;
  --warn: #f5c56e;
  --radius: 22px;
  --radius-sm: 14px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(110, 240, 245, 0.25);
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- backdrop */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 15% -10%, rgba(110, 240, 245, 0.075), transparent 60%),
    radial-gradient(50vmax 40vmax at 100% 110%, rgba(62, 224, 160, 0.06), transparent 60%),
    var(--bg);
}

.aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

/* ------------------------------------------------------------------ header */

.top {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.wordmark {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.wordmark .x {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shield {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.shield:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.shield .shield-check {
  opacity: 0;
  transition: opacity 0.2s;
}

.shield[data-state='waiting'] {
  color: var(--text);
}

.shield[data-state='connected'] {
  color: var(--cyan);
  border-color: rgba(110, 240, 245, 0.3);
}

.shield[data-state='verified'] {
  color: var(--emerald);
  border-color: rgba(62, 224, 160, 0.35);
  box-shadow: 0 0 24px -6px rgba(62, 224, 160, 0.45);
}

.shield[data-state='verified'] .shield-check {
  opacity: 1;
}

.shield[data-state='error'] {
  color: var(--danger);
  border-color: rgba(255, 122, 122, 0.3);
}

/* -------------------------------------------------------------------- card */

.card {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(110, 240, 245, 0.22), transparent 30%, transparent 70%, rgba(62, 224, 160, 0.14));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: enter 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.heading h1 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.02em;
  outline: none;
}

.heading .sub {
  margin: 0;
  color: var(--muted);
}

.fine {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

.center {
  text-align: center;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.row {
  display: flex;
  gap: 10px;
}

.row > * {
  flex: 1;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s, filter 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn:active:not(:disabled) {
  transform: scale(0.985);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.btn-primary {
  background: var(--accent);
  color: #03130f;
  box-shadow: 0 10px 30px -12px rgba(62, 224, 160, 0.55);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.07);
}

.btn-secondary {
  background: var(--raised-2);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  min-height: 42px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-danger {
  background: rgba(255, 122, 122, 0.08);
  border-color: rgba(255, 122, 122, 0.25);
  color: var(--danger);
}

.btn-danger.armed {
  background: var(--danger);
  color: #1a0505;
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 10px;
}

.btn.busy {
  opacity: 0.85;
}

.btn.busy .icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--raised-2);
  color: var(--text);
}

.icon-btn.sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- dropzone */

.dropzone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 20px 32px;
  border-radius: 18px;
  border: 1.5px dashed var(--line-strong);
  background: var(--raised);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.25s;
}

.dropzone:hover,
.dropzone.over {
  border-color: rgba(110, 240, 245, 0.55);
  background: rgba(110, 240, 245, 0.04);
}

.dropzone.over {
  box-shadow: 0 0 0 6px rgba(110, 240, 245, 0.06);
}

.dz-orb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
  border-radius: 50%;
  color: var(--cyan);
  background: radial-gradient(circle at 30% 30%, rgba(110, 240, 245, 0.18), rgba(62, 224, 160, 0.06));
  border: 1px solid rgba(110, 240, 245, 0.22);
  transition: transform 0.25s;
}

.dropzone:hover .dz-orb,
.dropzone.over .dz-orb {
  transform: translateY(-3px);
}

.dz-title {
  font-weight: 600;
  font-size: 16px;
}

.dz-sub {
  color: var(--muted);
  font-size: 13px;
}

.only-coarse {
  display: none;
}

@media (pointer: coarse) {
  .only-fine {
    display: none;
  }
  .only-coarse {
    display: inline;
  }
}

/* --------------------------------------------------------------- file list */

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 8px 6px 14px;
}

.file-row + .file-row {
  border-top: 1px solid var(--line);
}

.file-ico {
  display: grid;
  place-items: center;
  color: var(--faint);
  flex: none;
}

.file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  padding-right: 6px;
}

.file-row.active .file-ico {
  color: var(--cyan);
}

.file-row.verifying .file-ico {
  color: var(--cyan);
  animation: blink 1s ease-in-out infinite;
}

.file-row.verified .file-ico {
  color: var(--emerald);
}

.file-row.failed {
  color: var(--danger);
}

.files-total {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 0;
  color: var(--faint);
  font-size: 12.5px;
}

.files-total span {
  font-family: var(--mono);
}

/* ---------------------------------------------------------------- options */

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch-track {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: var(--raised-2);
  border: 1px solid var(--line-strong);
  transition: background 0.2s, border-color 0.2s;
}

.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.3, 1.3), background 0.2s;
}

.switch-input:checked + .switch-track {
  background: rgba(62, 224, 160, 0.18);
  border-color: rgba(62, 224, 160, 0.5);
}

.switch-input:checked + .switch-track .switch-thumb {
  transform: translateX(16px);
  background: var(--emerald);
}

.switch-input:focus-visible + .switch-track {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.switch-label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

.switch-label small {
  color: var(--faint);
  font-weight: 400;
  font-size: 12.5px;
}

.pass-field {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s;
}

.pass-inner {
  overflow: hidden;
  min-height: 0;
  /* room for the focus ring inside the clipped area */
  padding: 4px;
  margin: -4px;
}

.pass-field:not(.open) .pass-inner {
  visibility: hidden;
  transition: visibility 0s 0.25s;
}

.pass-field.open {
  grid-template-rows: 1fr;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.3);
  font-size: 16px; /* ≥16px stops iOS zooming on focus */
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: var(--faint);
}

.input:focus {
  outline: none;
  border-color: rgba(110, 240, 245, 0.6);
  box-shadow: 0 0 0 4px rgba(110, 240, 245, 0.08);
}

/* -------------------------------------------------------------- link + QR */

.link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(110, 240, 245, 0.25);
  background: rgba(110, 240, 245, 0.04);
  color: var(--cyan);
}

.link-box .icon {
  flex: none;
}

.link-text {
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.45;
  user-select: all;
  -webkit-user-select: all;
}

.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 0 2px;
}

.qr {
  width: 188px;
  height: 188px;
  padding: 6px;
  border-radius: 18px;
  background: #eef0f4;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(110, 240, 245, 0.35);
}

.qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr path {
  fill: #07080b;
}

/* ----------------------------------------------------------------- status */

.status-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--raised);
  color: var(--text);
  font-weight: 500;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.notice .icon {
  flex: none;
  margin-top: 2px;
  color: var(--emerald);
}

.notice.warn {
  background: rgba(245, 197, 110, 0.06);
  border-color: rgba(245, 197, 110, 0.22);
  color: #e9d5ad;
}

.notice.warn .icon {
  color: var(--warn);
}

.steps {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  color: var(--faint);
  transition: color 0.3s;
}

.step-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex: none;
}

.step.active {
  color: var(--text);
}

.step.active .step-dot {
  border-color: var(--cyan);
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
}

.step.done {
  color: var(--muted);
}

.step.done .step-dot {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #03130f;
}

.result-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 4px auto 0;
  border-radius: 50%;
}

.result-badge.ok {
  color: var(--emerald);
  background: radial-gradient(circle, rgba(62, 224, 160, 0.16), rgba(62, 224, 160, 0.04));
  border: 1px solid rgba(62, 224, 160, 0.35);
  box-shadow: 0 0 50px -10px rgba(62, 224, 160, 0.45);
}

.result-badge.error {
  color: var(--danger);
  background: rgba(255, 122, 122, 0.08);
  border: 1px solid rgba(255, 122, 122, 0.3);
}

.result-badge + .heading {
  text-align: center;
}

/* -------------------------------------------------------------------- SAS */

.sas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(110, 240, 245, 0.2);
  background: linear-gradient(180deg, rgba(110, 240, 245, 0.05), rgba(62, 224, 160, 0.02));
}

.sas-glyphs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.glyph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}

.glyph-emoji {
  font-family: var(--emoji);
  font-size: 30px;
  line-height: 1.1;
}

.glyph-word {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sas-code {
  text-align: center;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------- dashboard */

.dash {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ring {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 2px auto 0;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: var(--raised-2);
  stroke-width: 8;
}

.ring-ticks {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 3;
  stroke-dasharray: 1 7.1;
}

.ring-arc {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s linear;
}

.stop-a {
  stop-color: var(--cyan);
}

.stop-b {
  stop-color: var(--emerald);
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.ring-pct {
  font-size: 46px;
  font-weight: 650;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ring-pct small {
  font-size: 20px;
  color: var(--muted);
  margin-left: 2px;
}

.ring-speed {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
}

.route {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-family: var(--mono);
}

.route-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}

.route.ready .route-dot {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.route.relay .route-dot {
  background: var(--warn);
  box-shadow: 0 0 8px var(--warn);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stats .stat:first-child {
  grid-column: span 2;
}

.stat {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--raised);
  border: 1px solid var(--line);
  min-width: 0;
}

.stat-label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-file {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-file:empty {
  display: none;
}

/* ------------------------------------------------------------------ modal */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 5, 7, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.18s ease-out;
}

.backdrop.leaving {
  opacity: 0;
  transition: opacity 0.16s;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.sheet {
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
  animation: rise 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--text);
}

.sheet-title .icon {
  color: var(--emerald);
}

.dossier-list {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 13px;
}

.dossier-list dt,
.dossier-list dd {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}

.dossier-list dt:first-of-type,
.dossier-list dt:first-of-type + dd {
  border-top: 0;
}

.dossier-list dt {
  color: var(--faint);
  white-space: nowrap;
}

.dossier-list dd {
  text-align: right;
  color: var(--text);
  word-break: break-word;
}

.dossier-list dd.mono {
  font-family: var(--mono);
  font-size: 12px;
}

.dossier-list dd.good {
  color: var(--emerald);
}

.dossier-list dd.bad {
  color: var(--danger);
}

.sheet-note {
  margin: 0;
  color: var(--faint);
  font-size: 12.5px;
}

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: #1a1d25;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  font-size: 13.5px;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ----------------------------------------------------------------- footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--faint);
  font-size: 12px;
}

.foot i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

/* ----------------------------------------------------------------- mobile */

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }
  .card {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .heading h1 {
    font-size: 20px;
  }
  .sas-code {
    font-size: 30px;
  }
  .glyph-emoji {
    font-size: 26px;
  }
  .ring {
    width: 190px;
    height: 190px;
  }
  .backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .sheet {
    max-width: none;
    border-radius: 22px 22px 0 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    animation-name: sheet-up;
  }
}

@keyframes sheet-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

@media (min-width: 900px) {
  body {
    justify-content: center;
  }
  .foot {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
