/* SuiteWright Identity — hosted pages. One stylesheet, no inline styles or scripts (strict CSP). */
:root {
    --ink: #13213c;
    --muted: #5b6475;
    --line: #d9dee7;
    --surface: #ffffff;
    --page: #f3f5f9;
    --brand: #1f4bd8;
    --brand-ink: #ffffff;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --info-bg: #eef4ff;
    --warn: #b54708;
    --radius: 10px;
    --focus: 0 0 0 3px rgba(31, 75, 216, 0.35);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Khmer", sans-serif;
    color: var(--ink);
    line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--page); display: flex; align-items: flex-start;
    justify-content: center; padding: 48px 16px; }
.card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 32px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06); }
.card--wide { max-width: 720px; }
h1 { font-size: 1.5rem; margin: 8px 0 16px; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: none; box-shadow: var(--focus); }
.brand { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.brand__product { font-weight: 700; letter-spacing: 0.02em; color: var(--brand); }
.brand__app { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.brand__logo { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.form { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
label { font-weight: 600; font-size: 0.92rem; margin-top: 8px; }
input[type="email"], input[type="password"], input[type="text"], input[type="tel"], select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: inherit; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 2px 0 6px; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: 10px 16px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600;
    cursor: pointer; text-decoration: none; margin-top: 12px; }
.button--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); width: 100%; }
.button--danger { color: var(--danger); border-color: var(--danger); }
.button--link { border: 0; background: none; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; }
.link-button { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0;
    text-decoration: underline; }
.inline { display: inline; }
.links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 16px; font-size: 0.92rem; }
.alert { border-radius: 8px; padding: 10px 12px; margin: 12px 0; font-size: 0.93rem; }
.alert ul { margin: 0; padding-left: 18px; }
.alert--error { background: var(--danger-bg); color: var(--danger); }
.alert--info { background: var(--info-bg); color: var(--ink); }
.choices, .list { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0; }
.choice { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; cursor: pointer; }
.choice:hover { border-color: var(--brand); }
.choice__name { font-weight: 600; }
.choice__meta, .muted { color: var(--muted); font-size: 0.88rem; }
.scopes { border: 0; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 10px; }
.scope { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.actions { display: flex; gap: 8px; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.details dt { font-weight: 600; color: var(--muted); }
.details dd { margin: 0; }
.badge { display: inline-block; font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--info-bg);
    color: var(--brand); margin-left: 6px; }
.badge--warn { background: #fffaeb; color: var(--warn); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px;
    margin-bottom: 12px; align-items: center; }
.tabs__item { text-decoration: none; color: var(--muted); padding: 4px 0; }
.tabs__item--active { color: var(--brand); font-weight: 600; border-bottom: 2px solid var(--brand); }
.tabs__signout { margin-left: auto; }
.table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.93rem; }
.table th, .table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.codes { columns: 2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding-left: 18px; }
.qr { display: block; margin: 12px auto; width: 200px; height: 200px; image-rendering: pixelated; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; background: var(--page);
    padding: 8px; border-radius: 6px; }
.footer { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted);
    font-size: 0.8rem; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.footer p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) { body { padding: 0; } .card { border-radius: 0; border: 0; min-height: 100vh; padding: 24px 18px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.checkbox { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; font-weight: normal; }
.checkbox input { margin-top: 4px; }
.qr { display: flex; justify-content: center; margin: 16px 0; }
.qr svg { width: 200px; height: 200px; }
.secret, .codes code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.05em; }
.codes { columns: 2; padding-left: 18px; margin: 16px 0; }
.steps { padding-left: 18px; margin: 0 0 12px; }
.details-toggle { margin: 16px 0; }
.details-toggle summary { cursor: pointer; color: var(--brand); }
.hidden { display: none; }
