/* Layout for the TOTP tool; all primitives come from assets/arx-vpn.css. */
.tool-width { --max: 960px; }
.tool-lang { margin-inline-start: auto; }
.tool-lang[hidden] { display: none; }
@media (max-width: 767px) {
  .tool-lang button { min-height: 44px; min-width: 48px; }
}
.tool-main { padding-block: clamp(36px, 8vh, 88px) 48px; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(22px, 3vw, 32px);
  margin-top: clamp(28px, 5vw, 56px);
}
.tool-panel { min-width: 0; padding: clamp(18px, 3vw, 28px); }
.tool-panel form { margin-top: 20px; }
.tool-panel label { display: block; margin-bottom: 6px; font-size: var(--t-sm); }
.tool-panel .field { font-size: 16px; }
.tool-panel .field[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--err); }
.tool-hint { font-size: var(--t-sm); margin-top: 8px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.result { display: flex; flex-direction: column; }
.result-actions { margin-top: auto; padding-top: 18px; }
.tool-code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-block: 14px 8px;
  color: var(--ink-3);
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.3;
  letter-spacing: 0.085em;
}
.tool-code[data-ready] { color: var(--ink); }
.tool-time { display: flex; justify-content: space-between; font-size: var(--t-sm); }
.result progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 4px;
  margin-top: 8px;
  border: 0;
  border-radius: var(--r-xs);
  background: var(--s3);
  color: var(--ok);
}
.result progress::-webkit-progress-bar { background: var(--s3); border-radius: var(--r-xs); }
.result progress::-webkit-progress-value { background: var(--ok); border-radius: var(--r-xs); }
.result progress::-moz-progress-bar { background: var(--ok); border-radius: var(--r-xs); }
.tool-message { margin-top: 8px; font-size: var(--t-sm); color: var(--err); }
.tool-copy-status { margin-bottom: 8px; font-size: var(--t-sm); }
.tool-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin-top: 24px;
}
.tool-notes h2 { font-size: var(--t-sm); }
.tool-notes .tx { margin-top: 4px; font-size: var(--t-sm); }
/* Unlike the storefronts, the 2FA tool has no floating CTA dock. */
@media (max-width: 559px) {
  .tool-footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}
@media (max-width: 680px) {
  .tool-grid, .tool-notes { grid-template-columns: minmax(0, 1fr); }
}
