:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Segoe UI", sans-serif; color: #182a34; background: #f2f6f6; font-size: 16px; line-height: 1.65; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.portal { max-width: 760px; margin: 0 auto; padding: 52px 24px 36px; }
.heading { margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: #31635f; font-size: .875rem; font-weight: 650; letter-spacing: .08em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.3; margin: 0 0 14px; font-weight: 700; }
.intro { color: #52646d; margin: 0; }
.card { background: #fff; border: 1px solid #d6e2e1; border-radius: 14px; padding: 26px; margin-bottom: 20px; box-shadow: 0 2px 8px #173c3405; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
h2 { font-size: 1.2rem; line-height: 1.4; margin: 0 0 18px; }
.card-heading h2 { margin-bottom: 0; }
.status { margin: 15px 0; overflow-wrap: anywhere; }
label { display: block; font-weight: 600; margin-bottom: 8px; }
select, input[type=file], input[type=password], input[type=text], textarea { width: 100%; font: inherit; color: inherit; padding: 11px 12px; background: #fff; border: 1px solid #b8ccca; border-radius: 7px; }
textarea { resize: vertical; -webkit-text-security: disc; font-family: ui-monospace, monospace; }
.source-panel { margin-top: 20px; }
.config-help { padding: 14px 16px; border: 1px solid #d6e2e1; border-radius: 7px; background: #f7faf9; margin-bottom: 24px; font-size: .9rem; }
.config-help summary { cursor: pointer; font-weight: 600; color: #214d48; }
.config-help p { margin: 12px 0; }
.config-help ul { padding-left: 22px; margin: 12px 0; }
.config-help li { margin-bottom: 12px; }
input[type=file]::file-selector-button { border: 0; border-radius: 5px; background: #edf4f3; color: #214d48; font: inherit; padding: 6px 10px; margin-right: 12px; cursor: pointer; }
.hint { color: #5b6c73; font-size: .9rem; margin: 10px 0 20px; }
.pair-help { color: #315a54; background: #f0f7f5; border: 1px solid #d3e5df; border-radius: 7px; padding: 12px 14px; font-size: .9rem; margin: 12px 0 0; }
.recovery-note { padding: 14px 16px; margin: 16px 0; border: 1px solid #d8bd7e; border-radius: 7px; background: #fff9eb; color: #665a39; font-size: .9rem; overflow-wrap: anywhere; }
.recovery-note p { margin: 8px 0 12px; }
#manual-device { margin-top: 20px; }
#enrollment-controls > label { margin-top: 20px; }
#enrollment-policy-description { margin: 8px 0; }
#enrollment-policy-routes { padding-left: 22px; margin: 8px 0; font-family: ui-monospace, monospace; }
.public-key { display: block; overflow-wrap: anywhere; font-size: .85rem; padding: 8px 0; }
.check-label { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; font-weight: 400; }
.check-label input { margin-top: 7px; }
#enrollment-submit { margin-top: 20px; }
.steps { margin: 0 0 22px; padding-left: 24px; color: #52646d; }
.steps li { margin: 5px 0; }
.filename { font-family: ui-monospace, monospace; }
button, .button { cursor: pointer; font: inherit; }
.button { display: inline-block; color: #fff; background: #24635b; border: 1px solid #24635b; border-radius: 7px; padding: 11px 18px; font-weight: 600; text-decoration: none; text-align: center; }
.button:hover:not(:disabled) { background: #1b4b45; }
.quiet { background: transparent; border: 1px solid #c0d2cf; border-radius: 7px; color: #31635f; padding: 5px 12px; white-space: nowrap; }
.danger { color: #8b3434; border-color: #d9aaaa; }
#management-confirm-label { margin: 18px 0; }
#management-confirm-note, #enrollment-reenroll-device { overflow-wrap: anywhere; }
button:disabled { opacity: .5; cursor: not-allowed; }
select:disabled, input:disabled, textarea:disabled { background: #f4f7f6; }
:focus-visible { outline: 3px solid #5f9e95; outline-offset: 3px; }
.notice { padding: 14px 16px; background: #f8f5eb; border-left: 3px solid #bb9b53; border-radius: 4px; color: #665a39; font-size: .9rem; margin: 24px 0 0; }
footer { color: #69797e; font-size: .85rem; text-align: center; margin-top: 28px; }
@media (max-width: 520px) { .portal { padding: 30px 16px; } .card { padding: 20px; } .button { width: 100%; } }
