:root { color-scheme: light; font: 15px/1.6 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: #25334a; background: #f3f6fb; }
* { box-sizing: border-box; }
body { margin: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
[hidden] { display: none !important; }
.access-shell { width: min(100% - 32px, 540px); margin: 44px auto 28px; }
.access-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.access-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: #1768d9; color: #fff; font-weight: 700; font-size: 24px; }
.access-brand { margin: 0 0 4px; color: #476078; font-size: 14px; }
h1 { margin: 0; font-size: 24px; font-weight: 650; }
h2 { margin: 0 0 10px; font-size: 19px; }
.access-card { padding: 26px; border: 1px solid #d9e2ef; border-radius: 10px; background: #fff; }
.access-intro, .access-help, .access-device, .access-expiry { font-size: 14px; line-height: 1.7; }
.access-intro { color: #4c5e76; margin: 0 0 14px; }
.access-device { padding-bottom: 14px; margin: 0; border-bottom: 1px solid #e7ecf3; color: #50627b; }
.access-help { color: #53657d; margin: 7px 0 15px; }
.access-status { padding: 12px 14px; margin: 16px 0; background: #eef5ff; border-left: 3px solid #2168cc; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.access-status p { margin: 0; }
.access-status[data-state="error"] { background: #fff1f0; border-color: #b53535; color: #962626; }
.access-status[data-state="unknown"] { background: #fff8e9; border-color: #a66a08; color: #775010; }
.access-status[data-state="success"] { background: #edf8f2; border-color: #247648; color: #245d3c; }
form label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 7px; }
input { width: 100%; height: 44px; padding: 8px 11px; border: 1px solid #bac8dc; border-radius: 5px; font: inherit; font-size: 16px; background: #fff; }
input[aria-invalid="true"] { border-color: #b53535; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #8fb7f0; outline-offset: 3px; }
button { font: inherit; cursor: pointer; border-radius: 5px; min-height: 44px; padding: 10px 15px; font-size: 15px; }
button:disabled { cursor: wait; opacity: .6; }
.access-primary { width: 100%; margin-top: 8px; border: 1px solid #1768d9; background: #1768d9; color: #fff; font-weight: 600; }
.access-primary:hover:enabled { background: #1255b2; }
.access-secondary { border: 1px solid #c4d2e4; background: #fff; color: #245caa; }
.access-secondary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; }
.access-secondary-actions a { color: #245caa; font-size: 14px; text-underline-offset: 3px; }
.access-field-error { color: #a12828; font-size: 14px; line-height: 1.6; margin: 7px 0; }
.access-details { font-size: 14px; margin: 20px 0 12px; }
.access-details div { display: grid; grid-template-columns: 86px 1fr; gap: 12px; margin: 10px 0; }
.access-details dt { color: #53657d; }
.access-details dd { margin: 0; overflow-wrap: anywhere; }
.access-pairing-code { text-align: center; padding: 15px 10px; margin: 12px 0; border: 1px solid #c7d9f2; border-radius: 5px; background: #f5f9ff; color: #194f96; font-family: ui-monospace, Consolas, monospace; font-size: 27px; font-weight: 650; letter-spacing: 3px; overflow-wrap: anywhere; }
.access-footnote, .access-noscript { color: #59697d; font-size: 14px; line-height: 1.8; margin: 18px 4px; }
@media (max-width: 480px) { .access-shell { margin-top: 22px; } .access-card { padding: 20px 17px; } .access-details div { grid-template-columns: 74px 1fr; } }
@media (pointer: coarse) { input { min-height: 44px; } .access-secondary-actions a { display: inline-flex; align-items: center; min-height: 44px; } }
