:root {
  --bg: #F2F5F8;
  --surface: #FFFFFF;
  --text: #1B2430;
  --muted: #8A93A0;
  --accent: #E85A3C;
  --online: #22A06B;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; }
body { padding: env(safe-area-inset-top) 16px calc(20px + env(safe-area-inset-bottom)); }
.app { max-width: 430px; margin: 0 auto; padding-top: 28px; }
.app.auth { min-height: calc(100dvh - 48px); display: flex; flex-direction: column; justify-content: center; padding-top: 0; }
.brand { margin: 6px auto 20px; text-align: center; }
.brand img { width: 168px; height: auto; display: inline-block; vertical-align: top; }
.brand-row {
  color: var(--accent); font-size: 17px; font-weight: 650;
  letter-spacing: -0.02em;
}
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0 4px; }
.or:before, .or:after { content: ""; flex: 1; height: 1px; background: #E6EAEF; }
h1 { font-size: 22px; letter-spacing: -0.03em; margin: 0 0 6px; font-weight: 650; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 12px;
  box-shadow: 0 1px 0 rgba(27,36,48,.04); }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 6px; }
input, select, textarea {
  width: 100%; border: 0; background: #F2F5F8; border-radius: 12px; padding: 14px 14px;
  font: inherit; color: var(--text); outline: none;
}
input:focus { box-shadow: 0 0 0 2px rgba(232,90,60,.25); }
.btn {
  width: 100%; border: 0; border-radius: 14px; padding: 15px; margin-top: 16px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.btn.ghost { background: #EEF1F5; color: var(--text); }
.btn.small { width: auto; padding: 8px 12px; margin: 0; font-size: 13px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
.row span:first-child { color: var(--muted); font-size: 14px; }
.pill { font-size: 13px; font-weight: 600; }
.ok { color: var(--online); }
.warn { color: var(--accent); }
.err { color: #c23; font-size: 13px; min-height: 18px; margin-top: 8px; }
.tabs { display: flex; background: #EEF1F5; border-radius: 12px; padding: 3px; margin-bottom: 16px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 10px; font: inherit; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--text); font-weight: 600; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 10px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { background: #F2F5F8; border-radius: 12px; padding: 12px; font-size: 14px; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
