/* account.wiracode.com: the sign-in pages. Colours from www.wiracode.com. */
:root {
  color-scheme: light;
  --ink: #0d1c2a;
  --ink-2: #47545f;
  --muted: #66727c;
  --line: #e4e6e3;
  --field: #c9ced2;
  --bg: #f1f5f6;
  --accent: #0b6f8a;
  --accent-hover: #084f64;
  --bad: #b42318;
  --bad-soft: #fef2f2;
  --ok: #166534;
  --ok-soft: #e7f6ec;
}
* { box-sizing: border-box; }
/* Elements hidden with the hidden attribute stay hidden, whatever display a rule gives them. */
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 16px/1.55 Roboto, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 4vw, 48px); background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; }
.brand img { height: 28px; width: auto; }
.page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 36px); display: flex; flex-direction: column; gap: 14px; }
h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 500; }
h2 { margin: 6px 0 0; font-size: 15px; font-weight: 500; }
p { margin: 0; }
.lede { color: var(--ink-2); font-size: 15px; }
.small { color: var(--muted); font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack > label:not(:first-of-type) { margin-top: 4px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.row.end { justify-content: flex-end; }
label { font-size: 14px; font-weight: 500; }
input { height: 42px; border: 1px solid var(--field); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input:user-invalid { border-color: var(--bad); }
fieldset.otp { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.otp legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 500; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp-box { width: 100%; height: 52px; padding: 0; text-align: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rules { list-style: none; margin: -2px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: 13px; color: var(--muted); }
.rules li { display: flex; align-items: center; gap: 6px; }
.rules li::before { content: ''; flex: none; width: 14px; height: 14px; border: 1.5px solid var(--field); border-radius: 50%; box-sizing: border-box; }
.rules li.met { color: var(--ok); }
.rules li.met::before { border: 0; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cf-turnstile { width: 100%; min-height: 65px; margin-top: 4px; }
fieldset.group { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.email-row button { min-height: 42px; height: 42px; padding: 0 16px; }
.email-row input[readonly] { background: #f7faf9; }
.verified-badge { display: flex; align-items: center; gap: 6px; margin: -2px 0 0; color: var(--ok); font-size: 13px; font-weight: 500; }
.verified-badge::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.verify-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7faf9; }
.verify-box .otp-box { height: 46px; font-size: 20px; }
.verify-box .row { justify-content: flex-start; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
/* A form on its way (public/account.js): its buttons wait. */
form[aria-busy="true"] button, form[aria-busy="true"] a.button { opacity: 0.6; cursor: progress; }
fieldset.group legend { float: left; width: 100%; margin: 0 0 4px; padding: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
fieldset.group > label:not(:first-of-type) { margin-top: 4px; }
button { min-height: 44px; padding: 0 20px; border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
button.primary { border: 0; background: var(--accent); color: #fff; }
button.primary:hover { background: var(--accent-hover); }
button.secondary { border: 1px solid var(--field); background: #fff; color: var(--ink); }
button.link { min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; }
.provider { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border: 1px solid var(--field); border-radius: 12px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.provider:hover { color: var(--ink); background: #f7f9fa; }
.provider.apple { border-color: #000; background: #000; color: #fff; }
.provider.apple:hover { background: #1d1d1f; color: #fff; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.alert { padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 14px; }
.account { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; overflow-wrap: anywhere; }
.account .link { flex: none; white-space: nowrap; }
.checks { margin: 0; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
/* Sign-in, sign-up and reset: the brand panel on the left, the form on the right. */
body.auth { background: #fff; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.brand-panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px;
  padding: clamp(28px, 4vw, 56px); color: #fff;
  background: linear-gradient(150deg, #03465d 0%, #087f95 60%, #12bfc5 100%);
}
.brand-logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 18px; font-weight: 500; }
.brand-logo:hover { color: #fff; }
.brand-logo img { height: 32px; width: auto; }
.brand-copy h2 { margin: 0; max-width: 460px; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; font-weight: 700; }
.brand-copy p { margin-top: 12px; max-width: 440px; color: rgba(255, 255, 255, 0.86); font-size: 16px; }
.app-row { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; }
.app-row img { display: block; width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 16px rgba(3, 30, 40, 0.28); }
.brand-shots { position: relative; flex: 1; min-height: 320px; }
.shot { position: absolute; width: 44%; max-width: 230px; height: auto; border: 6px solid #0d1c2a; border-radius: 30px; box-shadow: 0 24px 48px rgba(3, 30, 40, 0.35); }
.shot.back { left: 10%; top: 48px; transform: rotate(-6deg); }
.shot.front { left: 42%; top: 0; }
.brand-foot { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.form-side { display: flex; flex-direction: column; align-items: center; padding: 40px 24px 24px; }
.form-box { width: 100%; max-width: 400px; margin: auto 0; display: flex; flex-direction: column; gap: 12px; }
.form-box h1 { font-size: 28px; font-weight: 700; }
.providers { display: flex; flex-direction: column; gap: 10px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label-row a { font-size: 14px; }
.hint { margin-top: -4px; color: var(--muted); font-size: 13px; }
.alt { text-align: center; font-size: 14px; }
.btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.btn-row > * { width: 100%; }
a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 15px; font-weight: 500; text-decoration: none; text-align: center; box-sizing: border-box; }
a.button.secondary { border: 1px solid var(--field); background: #fff; color: var(--ink); }
a.button.secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-row > * { white-space: nowrap; }
@media (max-width: 420px) { .btn-row > * { padding: 0 10px; font-size: 14px; } }
@media (max-width: 340px) { .btn-row { grid-template-columns: minmax(0, 1fr); } }
.passkey-sign-in { display: grid; gap: 10px; }
.passkey-sign-in > button { width: 100%; }
.passkey-sign-in[hidden] { display: none; }
.switch { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); font-size: 15px; }
.form-foot { display: flex; gap: 20px; margin-top: 32px; font-size: 13px; }
.form-foot a { color: var(--muted); }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
  .brand-panel { gap: 10px; padding: 18px 20px 20px; }
  .brand-copy h2 { font-size: 19px; }
  .brand-copy p, .app-row, .brand-shots, .brand-foot { display: none; }
  .form-side { padding: 28px 20px 20px; }
  .form-box { margin: 0; }
}

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px clamp(16px, 4vw, 48px); font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- The account portal
   The look of WIRA Console: a dark teal sidebar with groups, a 48 px top bar,
   1 px bordered cards with an 8 px radius, Title Case headings, quiet zinc greys. */
body.portal {
  --p-bg: #fafafa; --p-surface: #ffffff; --p-surface-2: #f4f4f5; --p-border: #e4e4e7;
  --p-text: #09090b; --p-text-2: #3f3f46; --p-muted: #71717a;
  --p-accent: #0d6478; --p-accent-hover: #0a5263; --p-accent-soft: #e7f3f5; --p-accent-text: #0b5d70;
  --p-ok-soft: #f0fdf4; --p-ok-text: #15803d; --p-ok-line: #bbf7d0;
  --p-bad: #dc2626; --p-bad-soft: #fef2f2; --p-bad-text: #b91c1c; --p-bad-line: #fecaca;
  --p-warn-soft: #fffbeb; --p-warn-text: #b45309; --p-warn-line: #fde68a;
  --p-sidebar: #163039; --p-sb-brand: #10272f; --p-sb-sub: #21414b; --p-sb-active: #2e5562; --p-sb-text: #c7d5d9; --p-sb-muted: #8aa0a6;
  display: block; min-height: 100vh; background: var(--p-bg); color: var(--p-text); font-size: 14px; line-height: 1.5;
}
.portal a { color: var(--p-accent-text); }
.portal .card { display: block; max-width: none; padding: 0; border-radius: 8px; border-color: var(--p-border); overflow: hidden; }
.portal h1, .portal h2 { font-weight: 600; }
.portal .card-form-body > label:not(.field) { font-size: 12.5px; font-weight: 500; color: var(--p-text-2); margin-bottom: -6px; }
.portal button { font-family: inherit; }
.portal .hint { margin: -4px 0 0; font-size: 12px; color: var(--p-bad-text); }
.skip-link { position: absolute; left: 8px; top: 8px; padding: 8px 12px; background: var(--p-text); color: #fff; border-radius: 6px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.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; }
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--p-sidebar); color: var(--p-sb-text); overflow-y: auto; }
.sb-brand { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; background: var(--p-sb-brand); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2); color: #f1f6f7; text-decoration: none; }
.portal .sb-brand { color: #f1f6f7; }
.sb-brand img { height: 18px; width: auto; }
.sb-word { font-size: 14.5px; font-weight: 700; letter-spacing: -0.02em; }
.sb-product { font-size: 11px; font-weight: 500; color: var(--p-sb-muted); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 4px; padding: 0 5px; line-height: 17px; }
.sb-nav { display: flex; flex-direction: column; }
.sb-group { display: flex; align-items: center; height: 37px; padding: 0 16px; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07); font-size: 13px; font-weight: 600; color: var(--p-sb-text); }
.sb-items { display: flex; flex-direction: column; background: var(--p-sb-sub); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07); }
.sb-link { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 28px; color: var(--p-sb-text); font-size: 13px; text-decoration: none; }
.portal .sb-link { color: var(--p-sb-text); }
.sb-link svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--p-sb-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portal .sb-link:hover { background: #284b56; color: #f1f6f7; }
.portal .sb-link[aria-current="page"] { background: var(--p-sb-active); color: #f1f6f7; font-weight: 600; box-shadow: inset 2px 0 0 #4fc3d4; }
.sb-link[aria-current="page"] svg { stroke: #4fc3d4; }
.sb-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 12px; color: var(--p-sb-muted); }
.sb-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-signout { min-height: 32px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; background: transparent; color: var(--p-sb-text); font-size: 13px; align-self: flex-start; }
.sb-signout:hover { background: #284b56; color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; background: rgba(250, 250, 250, 0.92); border-bottom: 1px solid var(--p-border); }
.tb-page { font-size: 14px; font-weight: 600; }
.avatar { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--p-accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.content { width: 100%; max-width: 1120px; padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 16px; outline: 0; box-sizing: border-box; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.page-sub { margin: 2px 0 0; color: var(--p-muted); font-size: 12.5px; }
.card { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 8px; min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--p-border); }
.card-head h2 { margin: 0; font-size: 13.5px; font-weight: 600; }
.card-desc { margin: 1px 0 0; color: var(--p-muted); font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.card-form-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.card-form-body.narrow { max-width: 440px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.field > span { color: var(--p-text-2); font-weight: 500; }
.portal input { height: 36px; border-radius: 6px; border-color: var(--p-border); font-size: 13.5px; }
.portal input:focus { outline: 2px solid var(--p-accent); outline-offset: 0; }
.portal input:disabled { background: var(--p-surface-2); color: var(--p-muted); }
.portal .rules { font-size: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid transparent; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-sm { min-height: 28px; height: 28px; padding: 0 10px; font-size: 12.5px; }
.portal .btn-primary { background: var(--p-accent); color: #fff; }
.portal .btn-primary:hover { background: var(--p-accent-hover); color: #fff; }
.portal .btn-secondary { background: var(--p-surface); color: var(--p-text); border-color: var(--p-border); }
.portal .btn-secondary:hover { background: var(--p-surface-2); }
.portal .btn-danger { background: var(--p-bad); color: #fff; }
.portal .btn-danger-outline { background: var(--p-surface); color: var(--p-bad-text); border-color: var(--p-bad-line); }
.portal .btn-danger-outline:hover { background: var(--p-bad-soft); }
.table-wrap { position: relative; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--p-muted); padding: 8px 16px; background: var(--p-surface-2); border-bottom: 1px solid var(--p-border); white-space: nowrap; }
.table td { padding: 10px 16px; border-bottom: 1px solid var(--p-border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td small { display: block; color: var(--p-muted); font-size: 12px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-action { text-align: right; width: 1%; white-space: nowrap; }
.muted { color: var(--p-muted); }
.text-link { font-size: 12.5px; font-weight: 500; }
.app-cell { display: flex; align-items: center; gap: 10px; }
.app-cell > span { display: flex; flex-direction: column; line-height: 1.3; }
.app-icon { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.app-initial { display: inline-grid; place-items: center; background: var(--p-accent-soft); color: var(--p-accent-text); font-weight: 600; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--p-border); }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; background: var(--p-surface); }
.tile .btn { align-self: flex-start; }
.tile-top { display: flex; align-items: center; gap: 10px; }
.tile-top .app-icon { width: 32px; height: 32px; border-radius: 8px; }
.tile-text { display: flex; flex-direction: column; line-height: 1.3; }
.tile-text span { color: var(--p-muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge-ok { background: var(--p-ok-soft); color: var(--p-ok-text); border-color: var(--p-ok-line); }
.badge-info { background: var(--p-accent-soft); color: var(--p-accent-text); border-color: #bfdde3; }
.badge-muted { background: var(--p-surface-2); color: var(--p-muted); border-color: var(--p-border); }
.badge-warn { background: var(--p-warn-soft); color: var(--p-warn-text); border-color: var(--p-warn-line); }
.badge-bad { background: var(--p-bad-soft); color: var(--p-bad-text); border-color: var(--p-bad-line); }
@media (max-width: 640px) {
  .plans-table thead { display: none; }
  .plans-table tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--p-border); }
  .plans-table tbody tr:last-child { border-bottom: 0; }
  .plans-table td { padding: 0; border: 0; }
  .plans-table td:nth-child(1) { grid-column: 1 / -1; }
  .plans-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .plans-table td:nth-child(3) { grid-column: 1; grid-row: 3; }
  .plans-table td:nth-child(4) { grid-column: 2; grid-row: 2; justify-self: end; }
  .plans-table td:nth-child(5) { grid-column: 2; grid-row: 3; }
  .plans-table td[data-label]::before { content: attr(data-label) ": "; color: var(--p-muted); }
}
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; text-align: center; color: var(--p-muted); }
.empty strong { color: var(--p-text); font-weight: 600; }
.empty p { margin: 0; max-width: 440px; font-size: 12.5px; }
.empty .btn { margin-top: 6px; }
.callout { margin: 0; padding: 10px 12px; border: 1px solid; border-radius: 8px; font-size: 13px; }
.callout.ok { background: var(--p-ok-soft); border-color: var(--p-ok-line); color: var(--p-ok-text); }
.callout.bad { background: var(--p-bad-soft); border-color: var(--p-bad-line); color: var(--p-bad-text); }
.kv-cols { margin: 0; padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.kv-cols div { display: flex; flex-direction: column; gap: 2px; }
.kv-cols dt { color: var(--p-muted); }
.kv-cols dd { margin: 0; font-weight: 600; }
.confirm { padding: 14px 16px; background: var(--p-bad-soft); border: 1px solid var(--p-bad-line); border-radius: 8px; }
.confirm h2 { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--p-bad-text); }
.confirm p { margin: 4px 0 0; color: var(--p-text-2); font-size: 12.5px; }
.confirm .card-form-body { padding: 12px 0 0; }
.confirm input { background: #fff; }
@media (max-width: 860px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; }
  .sb-nav { flex-direction: row; overflow-x: auto; background: var(--p-sb-sub); }
  .sb-group { display: none; }
  .sb-items { flex-direction: row; box-shadow: none; background: transparent; }
  .sb-link { padding: 0 14px; height: 40px; white-space: nowrap; }
  .portal .sb-link[aria-current="page"] { box-shadow: inset 0 -2px 0 #4fc3d4; }
  .sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--p-sb-brand); }
  .sb-nav { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .sb-bottom { grid-column: 2; grid-row: 1; margin: 0; padding: 0 12px; border: 0; justify-content: center; }
  .sb-user { display: none; }
  .card-head { flex-wrap: wrap; }
  .table-wrap .table th, .table-wrap .table td { white-space: nowrap; }
  .table-wrap .table-wrap-text td { white-space: normal; }
  .topbar { position: static; padding: 0 16px; }
  .content { padding: 16px 16px 32px; }
}

/* Second steps: the authenticator QR code, its typed key, and recovery codes. */
.totp-qr { width: 200px; height: 200px; image-rendering: pixelated; border: 1px solid var(--p-border); border-radius: 8px; padding: 8px; background: #fff; }
.totp-secret { word-break: break-all; }
.card-form-body.flush { padding: 0; }
.recovery-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.recovery-codes code { display: block; padding: 8px 10px; border: 1px solid var(--p-border); border-radius: 6px; background: var(--p-surface-2); font-size: 14px; text-align: center; }

/* The app a sign-in is for ("Lanjutkan ke WiMeet"), and the account chooser. */
.for-app { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; color: var(--ink-2); font-size: 15px; }
.for-app img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.for-app strong { color: var(--ink); font-weight: 600; }
.chooser { display: contents; }
.account-choice {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.account-choice:hover { background: #f7f9fa; border-color: var(--field); color: var(--ink); }
.account-choice .initial {
  flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; text-transform: uppercase;
}
.account-choice.other .initial { background: #eef3f4; color: var(--accent); font-size: 20px; }
.account-choice .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.account-choice .who strong { font-weight: 500; overflow-wrap: anywhere; }
.account-choice .who small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

/* A sign-in opened by an app in a popup (display=popup). The window is the card: the
   content sits centred in it, everything in one column on one axis, and the links at
   the foot of the window. A window opened wider shows a bordered card instead. */
body.popup { background: #fff; }
.popup-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 28px 32px 18px; }
.popup-card { width: 100%; max-width: 384px; margin: auto 0; display: flex; flex-direction: column; gap: 12px; }
.popup-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 500; }
.popup-brand img { height: 26px; width: auto; }
/* Logo, title, then the app as its subtitle: the form box joins the card's column so
   the app line can sit under the title. */
.popup-card { gap: 14px; }
.popup-card .form-box { display: contents; }
.popup-brand { order: -3; }
.popup-card .form-box > h1 { order: -2; }
.popup .for-app { order: -1; justify-content: center; margin: -6px 0 4px; }
.popup-card .form-box > h1, .popup-card .card > h1 { margin-top: 6px; font-size: 24px; text-align: center; }
.popup-card .form-box > .lede, .popup-card .card > .lede { text-align: center; }
.popup-card .card { padding: 0; border: 0; border-radius: 0; max-width: none; }
.popup .row.end { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.popup .form-foot { justify-content: center; margin-top: 24px; }
@media (min-width: 560px) {
  body.popup { background: var(--bg); }
  .popup-shell { padding: 32px 16px 18px; }
  .popup-card { max-width: 448px; padding: 32px 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
}
@media (max-width: 360px) { .popup-shell { padding: 20px 16px 14px; } }
