:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f4f6fa;
  color: #172033;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top right, #e7efff 0, transparent 34%), #f4f6fa; }
button, input { font: inherit; }

.entry-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.entry-card { width: min(420px, 100%); background: rgba(255,255,255,.96); border: 1px solid #e3e8f2; border-radius: 22px; padding: 30px; box-shadow: 0 18px 48px rgba(35,55,92,.12); }
.entry-mark { color: #4c6fff; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.entry-card h1 { margin-bottom: 8px; }
.entry-card p { margin-bottom: 22px; }
.entry-field { margin-bottom: 14px; }
.entry-button { width: 100%; }

.owner-shell { width: min(1040px, calc(100% - 32px)); margin: 36px auto 72px; display: grid; gap: 18px; }
.owner-card { background: rgba(255,255,255,.94); border: 1px solid #e3e8f2; border-radius: 20px; padding: 24px; box-shadow: 0 12px 32px rgba(35, 55, 92, .08); }
.owner-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow { color: #4c6fff; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 30px; }
h2 { margin-bottom: 6px; font-size: 19px; }
p { margin-bottom: 0; color: #667085; line-height: 1.7; }
.state-badge { padding: 10px 16px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.state-badge.enabled { background: #eaf8ef; color: #177341; }
.state-badge.disabled { background: #fff0f0; color: #b42318; }
.state-badge.unknown { background: #eef2f7; color: #667085; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.field { display: grid; gap: 8px; font-weight: 700; }
.password-row { display: flex; gap: 10px; }
input { min-width: 0; width: 100%; height: 46px; padding: 0 14px; border: 1px solid #cad3e2; border-radius: 12px; outline: none; background: #fff; }
input:focus { border-color: #4c6fff; box-shadow: 0 0 0 3px rgba(76,111,255,.12); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.button { border: 0; border-radius: 11px; padding: 11px 16px; font-weight: 750; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.button:disabled, .button.disabled { cursor: not-allowed; opacity: .48; pointer-events: none; }
.button.primary { background: #315efb; color: #fff; }
.button.secondary { background: #eef2ff; color: #274bb9; }
.button.quiet { background: #f3f5f8; color: #475467; }
.message { min-height: 24px; margin-top: 14px; font-size: 14px; font-weight: 700; }
.message.error { color: #b42318; }
.message.success { color: #177341; }
.danger-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 13px; line-height: 1.6; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat-card { display: grid; gap: 8px; }
.stat-card span { color: #667085; font-size: 13px; }
.stat-card strong { font-size: 22px; }
.stat-card small { color: #98a2b3; overflow-wrap: anywhere; }
.owner-protected { transition: opacity .18s ease, filter .18s ease; }
.owner-protected.locked { opacity: .48; filter: grayscale(.2); user-select: none; }
.log-list { display: grid; gap: 10px; }
.log-row { display: grid; grid-template-columns: 170px 150px 90px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #f8fafc; font-size: 13px; }
.log-row time, .log-row span { color: #667085; }
.log-row .success { color: #177341; }
.log-row .failed { color: #b42318; }
.empty { padding: 30px; text-align: center; color: #98a2b3; }
@media (max-width: 760px) {
  .owner-shell { width: min(100% - 20px, 1040px); margin-top: 14px; }
  .owner-hero, .section-head { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .password-row { flex-direction: column; }
  .log-row { grid-template-columns: 1fr; gap: 4px; }
}
