* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f4f5f7; color: #222; }
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: #2b3a55; color: #fff; }
header .brand { font-weight: 600; font-size: 18px; }
header .logout { display: flex; gap: 12px; align-items: center; margin: 0; }
main { max-width: 960px; margin: 24px auto; padding: 0 16px; }
footer { max-width: 960px; margin: 0 auto 24px; padding: 0 16px; color: #999; font-size: 12px; text-align: right; }
.card { background: #fff; border-radius: 8px; padding: 20px 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card.narrow { max-width: 360px; margin: 80px auto; }
.card h1, .card h2 { margin-top: 0; }
label { display: block; margin-bottom: 12px; }
input[type=text], input:not([type]), input[type=password] { display: block; width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #ccc; border-radius: 4px; }
textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font: inherit; margin-bottom: 12px; }
button { background: #3a6ff7; color: #fff; border: 0; border-radius: 4px; padding: 9px 18px; cursor: pointer; font: inherit; }
button:disabled { background: #9db3ef; cursor: default; }
button.link { background: none; color: #fff; text-decoration: underline; padding: 0; }
button.secondary { background: #e3e6ec; color: #333; }
a.button { display: inline-block; background: #3a6ff7; color: #fff; border-radius: 4px; padding: 9px 18px; text-decoration: none; }
.row form { margin: 0; }
.card.processing { display: flex; gap: 20px; align-items: center; }
.card.processing h2 { margin: 0 0 6px; }
.card.processing .spinner { flex: none; }
.row { display: flex; gap: 10px; }
.error { color: #c0392b; font-weight: 500; }
.hint { color: #666; font-size: 14px; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.steps li { flex: 1; padding: 8px 12px; background: #e3e6ec; border-radius: 4px; color: #666; }
.steps li.active { background: #3a6ff7; color: #fff; }
.steps li.done { background: #cfe8d5; color: #24613a; }
.highlighted { white-space: pre-wrap; line-height: 1.7; padding: 12px; border: 1px solid #eee; border-radius: 4px; background: #fafafa; }
mark.pii { padding: 1px 3px; border-radius: 3px; background: #ffe58a; }
mark.pii-per { background: #ffb3b3; }
mark.pii-org { background: #c9d7ff; }
mark.pii-loc { background: #b9efc9; }
mark.pii-phone, mark.pii-email, mark.pii-nick, mark.pii-url { background: #ffd59e; }
mark.pii-passport, mark.pii-snils, mark.pii-inn, mark.pii-card { background: #e6c3ff; }
#busy { position: fixed; inset: 0; background: rgba(255,255,255,.85); display: flex; flex-direction: column; align-items: center; justify-content: center; }
#busy[hidden] { display: none; }
.spinner { width: 48px; height: 48px; border: 5px solid #ccd; border-top-color: #3a6ff7; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
