.access-shell { max-width: 520px; margin: 8vh auto; padding: 32px; background: white; border-radius: 20px; box-shadow: 0 12px 40px #13263214; }
.access-form { display: grid; gap: 18px; margin-top: 24px; }
.access-form label { display: grid; gap: 8px; }
.account-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 0 0 20px; }
.account-card { border: 1px solid #d9e2e9; border-radius: 12px; padding: 20px; margin: 14px 0; }
.account-card .actions { margin-top: 16px; }
.permission-options { display: flex; gap: 20px; flex-wrap: wrap; margin: 12px 0; }
.permission-options label { display: flex; align-items: center; gap: 6px; }
.permission-options input { width: auto; }
#adminMessage, #loginMessage, #sessionMessage { color: #a33a26; white-space: pre-wrap; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.audit-table td, .audit-table th { text-align: left; padding: 10px; border-bottom: 1px solid #e4e9ef; overflow-wrap: anywhere; }
@media(max-width: 600px) { .access-shell { margin: 20px; padding: 24px; } }

.admin-shell .panel { display: block; }
.admin-shell .panel-content { width: 100%; min-width: 0; }
.admin-shell .access-form > .button { justify-self: start; }
.admin-shell #audit { overflow-x: auto; }
.access-form input:not([type=checkbox]), .access-form select { width: 100%; padding: 10px 12px; border: 1px solid #cbd6cf; border-radius: 8px; font: inherit; }

/* 登录页使用独立字号与布局，避免继承操作台的大标题。 */
.login-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100svh; padding: 40px 20px; background: radial-gradient(ellipse at 15% 12%, #e4ece4 0, transparent 55%), #f5f5f0; }
.login-page .access-shell { width: 100%; max-width: 432px; margin: 0; padding: 36px; border: 1px solid #e8ece6; border-radius: 20px; box-shadow: 0 16px 50px #233c2910; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: .16em; }
.login-brand-mark { display: grid; place-items: center; width: 32px; height: 32px; background: var(--green); color: white; border-radius: 9px; font-size: 18px; letter-spacing: 0; }
.login-heading h1 { margin: 0 0 8px; font-family: inherit; font-size: 28px; line-height: 1.35; font-weight: 700; letter-spacing: -.03em; }
.login-heading > p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.login-page .access-form { margin-top: 28px; gap: 20px; }
.login-page .access-form label { gap: 8px; font-size: 13px; color: #37483d; }
.login-page .access-form input { height: 46px; padding: 11px 13px; font-size: 16px; font-weight: 400; border-radius: 9px; background: #fcfdfb; transition: border-color .15s, box-shadow .15s; }
.login-page .access-form input::placeholder { color: #99a39c; font-size: 14px; }
.login-page .access-form input:focus { border-color: #397755; outline: none; box-shadow: 0 0 0 3px #245c4514; }
.login-page #submitLogin { min-height: 46px; border-radius: 9px; font-size: 15px; margin-top: 4px; }
.login-page #submitLogin:disabled { opacity: 1; background: #e7ece8; color: #64766a; }
.login-page .login-message { margin: 12px 0 0; font-size: 13px; line-height: 1.6; }
.login-page .login-message:empty { display: none; }
.login-notice { margin-top: 22px; padding: 14px 16px; background: #faf6eb; border: 1px solid #ece2c8; border-radius: 10px; color: #78603a; font-size: 13px; line-height: 1.6; }
.login-notice strong { font-weight: 650; }
.login-notice p { margin: 4px 0 8px; }
.login-page summary { cursor: pointer; width: fit-content; }
.login-page details[open] summary { margin-bottom: 8px; }
.login-page details p { margin: 8px 0 0; line-height: 1.7; }
.login-footer { margin-top: 26px; padding-top: 20px; border-top: 1px solid #edf0eb; color: #7b857e; font-size: 12px; line-height: 1.7; }
.login-footer > p { margin: 0 0 5px; }
.login-footer summary { color: #5d7163; }
.login-retry { margin-top: 8px; padding: 4px 0; border: 0; background: transparent; color: var(--green); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.login-copyright { margin: 22px 0 0; color: #8a958c; font-size: 12px; letter-spacing: .03em; }
@media(max-width: 480px) {
  .login-page { padding: 24px 16px; }
  .login-page .access-shell { padding: 28px 24px; border-radius: 16px; }
  .login-brand { margin-bottom: 24px; }
  .login-heading h1 { font-size: 26px; }
}
