/* ============================================================
   追劇進度 —— 樣式
   ============================================================ */

/* ---------- 色票 ---------- */

:root {
  --bg:        #f6f5f2;
  --bg-2:      #efeee9;
  --surface:   #fffdfa;
  --surface-2: #f3f1ec;
  --text:      #221f26;
  --muted:     #6f6875;
  --faint:     #a29aa8;
  --line:      #e2ded9;

  --accent:      #7c5cff;
  --accent-soft: #efeaff;
  --accent-ink:  #ffffff;
  --danger:      #d2495b;

  --shadow:    0 1px 2px rgba(34, 31, 38, .05), 0 8px 24px -14px rgba(34, 31, 38, .28);
  --shadow-lg: 0 10px 20px -6px rgba(34, 31, 38, .16), 0 28px 60px -24px rgba(34, 31, 38, .4);

  --radius:    18px;
  --radius-sm: 11px;

  --sans: 'Outfit', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[data-theme='dark'] {
  --bg:        #17161a;
  --bg-2:      #131216;
  --surface:   #201f25;
  --surface-2: #2a282f;
  --text:      #eee9f0;
  --muted:     #a49dab;
  --faint:     #6f6877;
  --line:      #322f38;

  --accent:      #9d86ff;
  --accent-soft: #2b2542;
  --accent-ink:  #17161a;
  --danger:      #f0798a;

  --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 10px 20px -6px rgba(0, 0, 0, .5), 0 28px 60px -24px rgba(0, 0, 0, .9);
}

/* ---------- 基本 ---------- */

* { box-sizing: border-box; }

/* display 被改寫過的元素，hidden 還是要有效 */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

/* 背景那層淡淡的光暈 */
.glow {
  position: fixed;
  inset: -30vh 0 auto 0;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  background:
    radial-gradient(45% 60% at 50% 40%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    radial-gradient(40% 50% at 80% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}

html[data-theme='dark'] .glow { opacity: .35; }

h1, h2, h3, p { margin: 0; }

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

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

/* ---------- LOGO ---------- */

.logo {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 56px 20px 30px;
}

.logo__mark {
  display: block;
  width: 76px;
  height: 66px;
  margin: 0 auto 14px;
  color: var(--accent);
}

.logo__screen {
  fill: var(--accent);
  fill-opacity: .16;
  stroke: var(--accent);
  stroke-width: 3.4;
}

.logo__play { fill: var(--accent); }

.logo__text {
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
}

.logo__sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .04em;
}

/* ---------- 區段導覽 ---------- */

.sectionnav {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 9px 0;
  border-block: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sectionnav__mobile-toggle { display: none; }

.sectionnav__inner {
  display: flex;
  width: max-content;
  max-width: calc(100% - 132px);
  margin: 0 auto;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sectionnav__inner::-webkit-scrollbar { display: none; }

.sectionnav__link {
  flex: 0 0 auto;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.sectionnav__link:hover,
.sectionnav__link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

#newForm,
#watchingSection,
#completedSection,
#vaultSection {
  scroll-margin-top: 76px;
}

/* ---------- 手機導覽：漢堡選單 ---------- */

@media (max-width: 640px) {
  .sectionnav {
    padding: 8px 14px;
  }

  .sectionnav__mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 96px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .sectionnav__mobile-toggle:hover,
  .sectionnav__mobile-toggle:focus-visible,
  .sectionnav[data-open] .sectionnav__mobile-toggle {
    border-color: var(--accent);
    color: var(--accent);
  }

  .sectionnav__mobile-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .sectionnav__mobile-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .sectionnav__mobile-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }

  .sectionnav[data-open] .sectionnav__mobile-icon span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .sectionnav[data-open] .sectionnav__mobile-icon span:nth-child(2) {
    opacity: 0;
  }

  .sectionnav[data-open] .sectionnav__mobile-icon span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .sectionnav__inner {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    width: calc(100% - 28px);
    max-width: none;
    max-height: calc(100dvh - 80px);
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }

  .sectionnav[data-open] .sectionnav__inner { display: flex; }

  .sectionnav__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 15px;
  }
}

/* ---------- 右上角的深淺色鈕 ---------- */

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.iconbtn:hover { color: var(--accent); border-color: var(--accent); }
.iconbtn:active { transform: scale(.94); }

.iconbtn--float {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  z-index: 20;
}

.icon { width: 19px; height: 19px; }

[data-theme='light'] .icon-sun,
[data-theme='dark'] .icon-moon { display: none; }

/* ---------- 版面 ---------- */

.wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, 100% - 36px);
  margin: 18px auto 0;
}

/* ---------- 新增表單 ---------- */

.newform {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--grow   { flex: 3 1 200px; }
.field--season { flex: 1.4 1 120px; }
.field--num    { flex: 1 1 92px; max-width: 130px; }

.field__label {
  padding-left: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}

.field__input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

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

.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* 數字欄位不要那個上下箭頭 */
.field__input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
.field__input[type='number']::-webkit-outer-spin-button,
.field__input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, filter .18s ease, border-color .18s ease;
}

.btn:hover { filter: brightness(1.04); }
.btn:active { transform: scale(.97); }

.btn--primary {
  flex: 0 0 auto;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--ghost { background: transparent; color: var(--muted); }

.formerror {
  margin: 10px 2px 0;
  color: var(--danger);
  font-size: 14px;
}

/* ---------- 清單標題 ---------- */

.boardhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 4px 14px;
}

.boardhead__title { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.boardhead__hint  { font-size: 13px; color: var(--faint); }

.completed { margin-top: 46px; }
.boardhead--completed { margin-top: 0; }
.boardhead--completed .boardhead__title { color: var(--muted); }

/* ---------- 格子 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, border-color .2s ease, opacity .25s ease, filter .35s ease;
}

.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  margin-bottom: 6px;
}

/* 拖曳把手 */
.grip {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  margin-left: -6px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--faint);
  cursor: grab;
  touch-action: none;
  transition: color .18s ease, background-color .18s ease;
}

.grip:hover { color: var(--accent); background: var(--accent-soft); }
.grip:active { cursor: grabbing; }
.grip svg { width: 16px; height: 16px; }

.card__acts { display: flex; gap: 2px; opacity: 0; transition: opacity .18s ease; }

.card:hover .card__acts,
.card:focus-within .card__acts { opacity: 1; }

@media (hover: none) { .card__acts { opacity: 1; } }

.minibtn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--faint);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.minibtn:hover { color: var(--accent); background: var(--accent-soft); }
.minibtn--danger:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.minibtn svg { width: 15px; height: 15px; }

.card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.card__season {
  min-height: 20px;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  word-break: break-word;
}

.card__nums {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;   /* 同一排卡片不一樣高時，數字和拉條都貼齊底部 */
  padding-top: 14px;
}

.card__ep {
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
}

.card__ep b {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.card__left {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

/* ---------- 拉條 ---------- */

.slider {
  --p: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 12px 0 0;
  background: none;
  cursor: pointer;
  touch-action: pan-y;
}

.slider:focus { outline: none; }

.slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--p), var(--surface-2) var(--p));
}

.slider::-moz-range-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--p), var(--surface-2) var(--p));
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}

.slider:active::-webkit-slider-thumb { transform: scale(1.15); }
.slider:active::-moz-range-thumb { transform: scale(1.15); }

.slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- 看完了 ---------- */

.card[data-done] {
  filter: grayscale(1);
  opacity: .62;
  border-style: dashed;
}

.card[data-done]:hover { border-color: var(--line); }

.card__done {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
}

.card__done b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 卡片內編輯 ---------- */

.card__edit { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.card__edit .field__input { padding: 8px 11px; font-size: 15px; }
.card__editrow { display: flex; gap: 8px; }
.card__editrow .field { flex: 1; }
.card__editbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.card__editbtns .btn { padding: 7px 15px; font-size: 14px; }

/* ---------- 拖曳中 ---------- */

/* 被抓起來的那張，原位留一個虛線空格 */
.card--slot {
  border-style: dashed;
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
  filter: none;
  opacity: 1;
}

.card--slot > * { visibility: hidden; }

/* 跟著手指跑的那張 */
.card--ghost {
  position: fixed;
  z-index: 60;
  margin: 0;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg) scale(1.02);
  transition: none;
}

body.is-dragging { cursor: grabbing; user-select: none; }

/* ---------- 私人帳密保管庫 ---------- */

.vault { margin-top: 52px; }

.vault__head {
  align-items: center;
  margin-top: 0;
}

.vault__subtitle {
  margin-top: 2px;
  color: var(--faint);
  font-size: 12.5px;
}

.vault__badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.vault__badge[data-unlocked] {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
}

.vault__panel,
.vaultform,
.vault__toolbar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.vault__loading,
.vault__setup {
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
}

.vault__setup .btn {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
}

.vault__locked {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(280px, .8fr);
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.vault__lockmark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--accent-soft);
  font-size: 23px;
}

.vault__lockcopy h3 { font-size: 16px; }
.vault__lockcopy p { margin-top: 2px; color: var(--muted); font-size: 13px; }

.vault__login {
  display: flex;
  gap: 8px;
}

.vault__login .field__input { min-width: 0; }
.vault__login .btn { padding-inline: 18px; }
.vault__login + .formerror { grid-column: 2 / -1; margin-top: -8px; }

.vault__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px 10px 16px;
  color: var(--muted);
  font-size: 12.5px;
}

.vault__toolbar .btn { padding: 7px 13px; font-size: 13px; }

.vaultform {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.5fr 1fr 150px;
  align-items: end;
  gap: 10px;
  padding: 16px;
}

.vaultform__twofactor { grid-column: 1 / 5; }
.vaultform__other { grid-column: 1 / -1; }
.vaultform > .field { min-width: 0; }
.vaultform__expiry .field__input[type='date'] {
  display: block;
  width: 100%;
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
  max-inline-size: 100%;
}
.vaultform__actions { display: flex; grid-column: 5; justify-content: flex-end; gap: 8px; }
.vaultform__actions .btn { padding-inline: 16px; }

.vaultgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.vaultcard {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.vaultcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vaultcard__title {
  min-width: 0;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.vaultcard__actions { display: flex; gap: 3px; }

.vaultcard__details {
  display: grid;
  gap: 9px;
  margin: 0;
}

.vaultcard__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.vaultcard__row dt {
  color: var(--faint);
  font-size: 12px;
}

.vaultcard__row dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.vaultcard__secret {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .02em;
}

.vaultcard__smallbtn {
  padding: 3px 8px;
  border: 0;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 11.5px;
}

.vaultcard__smallbtn:hover { color: var(--accent); }

.vaultcard__iconbtn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
}

.vaultcard__iconbtn svg { width: 17px; height: 17px; }
.vaultcard__iconbtn:hover,
.vaultcard__iconbtn[data-copied] { color: var(--accent); }
.vaultcard__iconbtn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.vaultcard__link { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.vaultcard__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.vaultcard__expiry[data-expired] { color: var(--danger); font-weight: 600; }

.vaultcard__expired {
  margin-top: 13px;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.vault__empty { margin: 30px 0 0; }

/* ---------- 空狀態 / 提示 ---------- */

.empty, .state {
  margin: 46px 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--faint);
  text-align: center;
}

.state--error { color: var(--danger); }

.foot {
  position: relative;
  z-index: 1;
  margin: 56px 0 34px;
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--faint);
  text-align: center;
}

.foot strong { font-weight: 600; color: var(--muted); }

/* ---------- 手機 ---------- */

@media (max-width: 560px) {
  .logo { padding-top: 66px; }
  .wrap { width: min(1080px, 100% - 28px); }
  .newform { padding: 14px; }
  .field--grow { flex: 1 1 100%; }
  .btn--primary { flex: 1 1 100%; }
  .grid { grid-template-columns: 1fr; }
  .vault__locked { grid-template-columns: auto 1fr; }
  .vault__login { grid-column: 1 / -1; }
  .vault__login + .formerror { grid-column: 1 / -1; }
  .vault__toolbar { align-items: flex-start; }
  .vaultform { grid-template-columns: minmax(0, 1fr); }
  .vaultform__twofactor { grid-column: 1 / -1; }
  .vaultform__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .vaultform__actions .btn:only-child { grid-column: 1 / -1; }
  .vaultgrid { grid-template-columns: 1fr; }
}

@media (min-width: 561px) and (max-width: 980px) {
  .vault__locked { grid-template-columns: auto 1fr; }
  .vault__login { grid-column: 1 / -1; }
  .vault__login + .formerror { grid-column: 1 / -1; }
  .vaultform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vaultform__twofactor { grid-column: 1 / -1; }
  .vaultform__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
