/* App shell: sign-in, sidebar, header, command palette, responsive layout. */

/* Sign in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.login-card { width: min(420px, 100%); padding: 40px 36px 32px; display: flex; flex-direction: column; gap: 18px; border-radius: var(--r-xl); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: 0; color: var(--text); }
.brand img { border-radius: 8px; }
.login-card h1 { font-size: 28px; font-weight: 400; }

/* Layout */
.app { display: grid; grid-template-columns: var(--sidebar-w, 272px) 1fr; height: 100vh; overflow: hidden; }
.app.sidebar-collapsed { --sidebar-w: 0px; }
.app.sidebar-collapsed .sidebar { visibility: hidden; }

/* Sidebar: calm by default. Everyday pages first, then small foldable groups; secondary tools stay folded. */
.sidebar { background: var(--sidebar); border-right: 0; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.sidebar-top { display: flex; align-items: center; gap: 8px; padding: 14px 10px 10px 16px; }
.sidebar-top .brand { flex: 1; font-size: 15px; }
.capture-row { display: flex; gap: 6px; padding: 2px 10px 12px 12px; }
.capture-row .new-task { flex: 1; height: 40px; justify-content: flex-start; padding: 0 12px 0 14px; border-radius: var(--r-lg); font-weight: 500; box-shadow: none; }
.capture-row .new-task .kbd { background: rgba(255, 255, 255, .18); border-color: transparent; color: inherit; opacity: .85; font-size: 10px; padding: 3px 5px; }
.capture-row .capture-btn { width: 40px; height: 40px; border-radius: var(--r-full); background: transparent; color: var(--text-2); }
.capture-row .capture-btn:hover, .capture-row .capture-btn[aria-current="page"] { background: var(--surface-3); color: var(--text); }

.nav { flex: 1; overflow-y: auto; padding: 0 10px 16px; scrollbar-width: thin; }
.nav-list { display: flex; flex-direction: column; gap: 1px; }
.nav-group { margin-top: 18px; }
.nav-group-head { display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 2px 0 10px; margin-bottom: 2px; }
.nav-group-head > .panel-title, .nav-group-toggle { flex: 1; }
.nav-group-head .panel-title { font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--text-2); }
.nav-group-head > button.icon-btn { opacity: 0; transition: opacity .12s; }
.nav-group:hover .nav-group-head > button.icon-btn, .nav-group-head > button.icon-btn:focus-visible { opacity: 1; }
.nav-group-toggle { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0; border: 0; background: none; box-shadow: none; justify-content: flex-start; color: var(--muted); }
.nav-group-toggle:hover { background: none; color: var(--text-2); }
.nav-group-toggle:hover .panel-title { color: var(--text-2); }
.nav-group-toggle:disabled { cursor: default; opacity: 1; }
.nav-group-toggle .icon { margin-left: auto; opacity: .7; }
.nav-group-toggle:disabled .icon { opacity: .35; }
.nav-badge { font-size: 10px; font-weight: 600; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 1px 6px; }

.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 36px; padding: 0 12px 0 14px; border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; text-align: left; justify-content: flex-start; position: relative;
  text-decoration: none; transition: background .12s, color .12s;
}
.nav-item .icon { width: 20px; height: 20px; color: var(--text-2); transition: color .12s; }
.nav-item:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); text-decoration: none; }
.nav-item:hover .icon { color: var(--text-2); }
.nav-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; box-shadow: none; }
.nav-item[aria-current="page"]:hover { background: color-mix(in srgb, var(--accent) 18%, var(--accent-soft)); }
.nav-item[aria-current="page"] .icon { color: var(--accent-text); }
.nav-item .label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .count { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-item[aria-current="page"] .count { color: var(--accent-text); opacity: .8; }
.nav-item .count.hot { color: #fff; background: var(--bad); border-radius: 999px; padding: 1px 7px; font-weight: 600; font-size: 11px; }
.nav-item .fav { width: 12px; height: 12px; color: var(--c-amber); fill: currentColor; opacity: .8; margin-left: -4px; }
.nav-item .proj-dot { width: 9px; height: 9px; border-radius: 3px; margin: 0 3.5px; flex: none; }
.nav-item.drop-target { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent); }
.nav-empty { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 14px; border: 1px dashed var(--border-strong); border-radius: var(--r-full); background: none; color: var(--muted); font-size: 13px; justify-content: flex-start; }
.nav-empty:hover { color: var(--text); border-color: var(--accent); background: none; }

.sidebar-foot { border-top: 0; padding: 8px 8px 8px 12px; display: flex; align-items: center; gap: 2px; }
.sidebar-foot a.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-full); color: var(--text-2); text-decoration: none; }
.sidebar-foot a.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.sidebar-foot a.icon-btn.active { background: var(--accent-soft); color: var(--accent); }
.sidebar-foot button.icon-btn { width: 32px; height: 32px; color: var(--text-2); }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 0 4px 0 0; flex: 1; min-width: 0; }
.sync .dot { background: var(--muted); }
.sync[data-state="live"] .dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.sync[data-state="polling"] .dot { background: var(--warn); }
.sync[data-state="offline"] .dot, .sync[data-state="error"] .dot { background: var(--bad); }

/* Main column */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.topbar { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 20px 0 16px; border-bottom: 1px solid transparent; flex: none; }
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar h1 { font-size: 22px; font-weight: 400; display: flex; align-items: center; gap: 10px; min-width: 140px; flex: 1 1 auto; }
.topbar h1 .title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sub { font-size: 13px; font-weight: 400; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: 0 1 auto; min-width: 0; }
.topbar .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-btn { width: 280px; height: 44px; justify-content: flex-start; gap: 10px; padding: 0 14px 0 16px; color: var(--text-2); font-weight: 400; background: var(--surface-3); border-color: transparent; border-radius: var(--r-full); }
.search-btn:hover { background: color-mix(in srgb, var(--text) 10%, var(--surface-3)); }
.search-btn .kbd { margin-left: auto; }
@media (max-width: 1280px) { .search-btn { width: 36px; padding: 0; justify-content: center; } .search-btn .label, .search-btn .kbd { display: none; } }
@media (max-width: 1100px) { .topbar .sub, .hide-narrow { display: none; } }
.content { flex: 1; overflow: auto; min-height: 0; scrollbar-gutter: stable; } /* keeps room for the scrollbar, so switching between short and long pages doesn't nudge the layout */
.content:focus, .content:focus-visible { outline: none; box-shadow: none; }
.page { max-width: 980px; margin: 0 auto; padding: 8px 28px 80px; }
.page.wide { max-width: none; }
.page.full { max-width: none; padding: 0; height: 100%; }

/* Task detail drawer */
.with-drawer { display: grid; grid-template-columns: 1fr; height: 100%; min-height: 0; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-3); z-index: 30; display: flex; flex-direction: column; animation: drawer-in .2s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }

/* Command palette */
.palette { width: min(640px, calc(100vw - 24px)); margin-top: 12vh; margin-bottom: auto; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.palette-input input { border: 0; height: 28px; padding: 0; font-size: 16px; }
.palette-input input:focus { box-shadow: none; }
.palette-list { max-height: 56vh; overflow: auto; padding: 6px; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r-full); cursor: pointer; min-height: 40px; }
.palette-item.active { background: var(--accent-soft); color: var(--accent-text); }
.palette-item .icon { color: var(--text-2); }
.palette-item .meta { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.palette-item mark, .hl { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 2px; }
.palette-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

/* Offline / banner */
.banner { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13px; background: var(--warn-soft); color: var(--warn); }

/* Mobile */
.mobile-only { display: none; }
.sidebar-scrim { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s var(--ease); box-shadow: var(--shadow-3); visibility: visible !important; }
  .app.sidebar-open .sidebar { transform: none; }
  .app.sidebar-open .sidebar-scrim { display: block; position: fixed; inset: 0; background: var(--overlay); z-index: 40; }
  .capture-row { display: flex; gap: 6px; align-items: center; }
  .capture-row .new-btn { flex: 1; }
  .mobile-only { display: inline-flex; }
  .search-btn { width: 36px; padding: 0; justify-content: center; }
  .search-btn .label, .search-btn .kbd { display: none; }
  .page { padding: 8px 14px 80px; }
  .topbar { padding: 0 10px; }
}
.capture-row .new-task .grow { text-align: left; }
.nav-item .fav { order: 1; }
.nav-item .count { order: 2; }

/* ---- Sidebar v2: tools first ------------------------------------------------------------------ */
/* M3 FAB-style "New" (extended, tonal container) */
.capture-row .new-btn { flex: 1; height: 48px; justify-content: flex-start; gap: 10px; padding: 0 14px 0 16px; border-radius: var(--r-lg); font-weight: 500; font-size: 14px; }
.capture-row .new-btn .grow { text-align: left; }
.capture-row .new-btn .icon.sm { opacity: .8; }

.nav-tools { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.nav-tool {
  display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 8px; border-radius: var(--r-full); color: var(--text); text-decoration: none;
  transition: background .12s;
}
.nav-tool:hover { background: color-mix(in srgb, var(--text) 8%, transparent); text-decoration: none; }
.nav-tool[aria-current="page"] { background: var(--accent-soft); box-shadow: none; }
.nav-tool[aria-current="page"] .nav-tool-label { color: var(--accent-text); }
.nav-tile {
  width: 34px; height: 34px; border-radius: var(--r-full); display: grid; place-items: center; flex: none;
  background: transparent; color: var(--text-2);
}
.nav-tool[aria-current="page"] .nav-tile { background: transparent; color: var(--accent-text); }
.nav-tile .icon { width: 20px; height: 20px; }
.nav-tool-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.nav-tool-label { font-size: 14px; font-weight: 500; }
.nav-tool-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-tool .count { font-size: 11.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-tool .count.hot { color: #fff; background: var(--bad); border-radius: 999px; padding: 1px 7px; font-weight: 600; font-size: 11px; }
.nav-ai .nav-item .icon { color: var(--text-2); }
.nav-ai .nav-item[aria-current="page"] .icon { color: var(--accent-text); }

/* Tool tabs under the page header */
.subnav { display: flex; align-items: center; gap: 2px; padding: 0 16px 0 18px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; flex: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav[hidden] { display: none; }
.subnav-tab {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; position: relative;
}
.subnav-tab .icon { color: var(--muted); }
.subnav-tab:hover { color: var(--text); background: none; text-decoration: none; }
.subnav-tab[aria-current="page"] { color: var(--accent-text); font-weight: 500; }
.subnav-tab[aria-current="page"] .icon { color: var(--accent); }
.subnav-tab[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }

/* Tools with nested sub-pages (Tasks → Today, Inbox…; Notes → All, Archived) */
.nav-tool-row { position: relative; display: flex; align-items: center; }
.nav-tool-row .nav-tool { flex: 1; min-width: 0; padding-right: 30px; }
.nav-tool-row.is-current .nav-tile { color: var(--accent-text); }
.nav-tool-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--r-full);
  background: none; box-shadow: none; color: var(--muted); opacity: .75;
}
.nav-tool-toggle:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); opacity: 1; }
.nav-tool-row:has(.count) .nav-tool { padding-right: 34px; }
.nav-tool-row:has(.nav-tool-toggle) .count { margin-right: 18px; }
.nav-tool-group { display: flex; flex-direction: column; }
.nav-sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 25px; padding-left: 12px; border-left: 1px solid var(--border); }
.nav-subitem {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 12px; border-radius: var(--r-full); color: var(--text-2);
  font-size: 13.5px; text-decoration: none; transition: background .12s, color .12s;
}
.nav-subitem .label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-subitem:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); text-decoration: none; }
.nav-subitem[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.nav-subitem.tag { color: var(--muted); font-size: 12.5px; }
.nav-subitem.tag[aria-current="page"] { color: var(--text); }
.nav-subitem.first-tag { margin-top: 6px; }
.nav-subitem .count { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-subitem .count.hot { color: #fff; background: var(--bad); border-radius: 999px; padding: 1px 7px; font-weight: 600; font-size: 11px; }

/* The sidebar now lists each tool's views, so the tab strip is only needed where the sidebar is hidden. */
@media (min-width: 861px) {
  .app:not(.sidebar-collapsed) .subnav[data-family="tasks"], .app:not(.sidebar-collapsed) .subnav[data-family="notes"] { display: none; }
}
.tz-banner { background: var(--accent-soft); color: var(--accent-text); }
.tz-banner a { color: inherit; font-weight: 600; }

/* Sign in: the code step (authenticator app) */
.login-step { display: flex; flex-direction: column; gap: 16px; }
.login-step[hidden] { display: none; }
.login-step input[name="code"] { font-size: 22px; letter-spacing: .3em; text-align: center; height: 52px; font-variant-numeric: tabular-nums; }
.login-step input[name="code"]::placeholder { letter-spacing: .3em; }
.login-back { align-self: center; margin-top: -6px; }

/* ---- Shell v3 (25 Oct 2026): fixed app bar on top, sidebar + rounded page card below (Google style) ---- */
.app { grid-template-columns: var(--sidebar-w, 272px) minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr); background: var(--bg); }
.appbar { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 720px) minmax(200px, 1fr); align-items: center; gap: 12px; height: 64px; padding: 0 12px 0 8px; background: var(--bg); z-index: 20; }
.appbar-start { display: flex; align-items: center; gap: 6px; min-width: 0; }
.appbar-start .brand { gap: 10px; font-size: 22px; font-weight: 400; color: var(--text); text-decoration: none; padding: 0 6px; }
.appbar-start .brand:hover { text-decoration: none; }
.appbar-start .brand img { border-radius: 8px; }
.appbar-centre { display: flex; justify-content: center; min-width: 0; }
.appbar-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.appbar .search-btn { width: 100%; max-width: 720px; height: 48px; padding: 0 16px 0 18px; gap: 14px; font-size: 15px; }
.appbar .search-btn .label { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.appbar .search-btn .kbd { margin-left: 0; display: inline-block; }
.appbar .search-btn { justify-content: flex-start; }
.appbar .search-btn .label { display: inline; }

/* Sidebar: no brand row now (it lives in the app bar) */
.sidebar { background: var(--bg); }
.app .capture-row { padding-top: 8px; }

/* The page card: everything below the app bar scrolls inside it */
.main { padding: 0 16px 16px 0; min-height: 0; }
.app.sidebar-collapsed .main { padding-left: 16px; }
.page-card { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  --bg: var(--surface); }
:root[data-theme="dark"] .page-card { --bg: var(--surface); }
.page-card .topbar { height: 60px; padding: 0 24px; border-bottom: 1px solid transparent; }
.page-card .topbar h1 { font-size: 22px; min-width: 0; }
.page-card .subnav { padding: 0 16px; }

/* Avatar (initials) and the profile menu */
.me-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-size: 14px; font-weight: 500; letter-spacing: .02em; flex: none; user-select: none; }
.me-avatar.lg { width: 48px; height: 48px; font-size: 20px; }
.me-avatar.xl { width: 88px; height: 88px; font-size: 36px; font-weight: 400; }
button.avatar-btn { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
button.avatar-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.profile-pop { padding: 0; width: 320px; border-radius: var(--r-xl); }
.profile-menu { display: flex; flex-direction: column; padding: 8px 0; }
.pm-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px 12px; min-width: 0; }
.pm-who { display: flex; flex-direction: column; min-width: 0; }
.pm-who strong { font-size: 16px; font-weight: 500; }
.pm-manage { margin: 4px 20px 10px; }
.profile-menu .menu-item { padding: 0 20px; }
.pm-theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 20px; }
.pm-theme .btn-group button { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 4px; }

/* Profile page */
.profile-hero { display: flex; align-items: center; gap: 20px; padding: 24px 0 8px; }
.profile-hero h2 { font-size: 28px; font-weight: 400; }

@media (max-width: 1100px) {
  .appbar { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr); }
  .appbar { height: 56px; padding: 0 6px; gap: 6px; }
  .appbar-start .brand span { display: none; }
  .appbar .search-btn { height: 40px; width: 100%; padding: 0 12px; font-size: 14px; }
  .appbar .search-btn .kbd { display: none; }
  .appbar .search-btn .label { display: inline; }
  .main { padding: 0; }
  .page-card { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .page-card .topbar { padding: 0 14px; height: 52px; }
  .sidebar { top: 0; }
}

/* Search box in the app bar (Material 3 search bar): results drop down underneath it. */
.searchbar { position: relative; width: 100%; max-width: 720px; }
.searchbar-field { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px 0 18px; background: var(--surface-3); border-radius: var(--r-full); color: var(--text-2); }
.searchbar-field:hover { background: color-mix(in srgb, var(--text) 8%, var(--surface-3)); }
.searchbar-input, .searchbar-input:focus { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; box-shadow: none; font-size: 15px; color: var(--text); }
.searchbar-input::-webkit-search-cancel-button { display: none; }
.searchbar.open .searchbar-field { background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-2); }
.searchbar.open .searchbar-kbd { visibility: hidden; }
.searchbar-drop { position: absolute; left: 0; right: 0; top: 48px; background: var(--surface); border-radius: 0 0 24px 24px; box-shadow: var(--shadow-2); border-top: 1px solid var(--border); z-index: 40; overflow: hidden; }
.searchbar-drop .palette-list { max-height: min(60vh, 520px); }
.searchbar-status:empty { display: none; }
.searchbar-status { padding: 2px 18px 6px; }
@media (max-width: 860px) {
  .searchbar-field { height: 40px; padding: 0 12px; gap: 8px; }
  .searchbar-kbd { display: none; }
  .searchbar-input, .searchbar-input:focus { font-size: 14px; }
  .searchbar-drop { top: 40px; position: fixed; left: 6px; right: 6px; top: 52px; border-radius: 0 0 20px 20px; }
  .searchbar.open .searchbar-field { border-radius: 20px 20px 0 0; }
  .searchbar-drop .palette-foot { display: none; }
}

/* Sign-in: setting up sign-in codes, then the recovery codes (required, like the Knowledge Hub) */
.login-setup-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); }
.login-qr { align-self: center; margin: 4px auto; }
.login-key summary { cursor: pointer; color: var(--text-2); }
.login-key code { display: block; margin-top: 4px; font-size: 15px; letter-spacing: .08em; word-break: break-all; user-select: all; }
.login-step[data-step="setup"], .login-step[data-step="recovery"] { display: flex; flex-direction: column; gap: 10px; }
.login-step[hidden] { display: none !important; }
.login-step input[name="setup_code"] { font-size: 22px; letter-spacing: .3em; text-align: center; height: 52px; font-variant-numeric: tabular-nums; }
.login-recovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 12px; border-radius: var(--r); background: var(--surface-2); }
.login-recovery code { font-size: 14px; text-align: center; padding: 4px; user-select: all; }
