:root {
  color-scheme: light;
  --dhu-blue: #00305b;
  --textile-indigo: #46577e;
  --ink: #172d43;
  --muted: #5c6e7e;
  --paper: #f3f6f9;
  --line: #d9e2ea;
  --success: #1c6d5a;
  --danger: #a23636;
  --font-sans: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
button, input, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #3f80be; outline-offset: 4px; }
button:disabled:focus-visible { outline-offset: 3px; }
h1, h2, p { margin: 0; }
.page-shell { width: min(1248px, calc(100% - 112px)); min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; }
.site-header { min-height: 132px; padding-block: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.university-brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; flex-shrink: 0; }
.university-emblem { width: 62px; height: 62px; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.university-name { color: var(--dhu-blue); font-family: "Noto Serif CJK SC", "Songti SC", "STSong", serif; font-size: 27px; line-height: 1.3; font-weight: 700; letter-spacing: .15em; }
.brand-caption { color: var(--dhu-blue); font-size: 11px; letter-spacing: .04em; }
.header-purpose { color: var(--muted); font-size: 14px; }
.portal-main { padding-block: clamp(64px, 8.5vh, 104px) 80px; flex: 1; }
.portal-intro { margin-bottom: 40px; }
h1 { color: var(--dhu-blue); font-size: clamp(30px, 3.4vw, 44px); font-weight: 650; line-height: 1.35; letter-spacing: -.025em; }
.portal-intro p { color: var(--muted); margin-top: 15px; font-size: 17px; }
.center-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.center-entry { min-height: 314px; padding: 34px 36px 31px; text-decoration: none; color: white; display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: hidden; border-radius: 4px; transition: background-color .16s; }
.information-entry, .portal-page .textile-entry { background: var(--dhu-blue); }
.information-entry:hover, .portal-page .textile-entry:hover { background: #073e6d; }
.portal-page .textile-entry:focus-visible { outline-color: #345d80; }
.center-entry::after { content: ""; width: 196px; height: 196px; position: absolute; top: -45px; right: -48px; opacity: .16; pointer-events: none; }
.information-entry::after { border: 1px solid #c6d9e9; border-radius: 50%; box-shadow: 0 0 0 32px #ffffff12, 0 0 0 64px #ffffff08; }
.textile-entry::after { background-image: repeating-linear-gradient(0deg, transparent 0 12px, #ffffffa6 12px 13px), repeating-linear-gradient(90deg, transparent 0 12px, #ffffffa6 12px 13px); transform: rotate(-10deg); }
.entry-symbol { width: 40px; height: 40px; margin-bottom: 35px; position: relative; }
.information-symbol { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.information-symbol span { border: 1.5px solid #e1edf8; border-radius: 1px; }
.information-symbol span:last-child { background: #e1edf8; }
.portal-page .textile-entry .textile-symbol { border: 1px solid #e1edf8; background: repeating-linear-gradient(0deg, transparent 0 7px, #e1edf8 7px 8px), repeating-linear-gradient(90deg, transparent 0 7px, #e1edf8 7px 8px); }
.entry-content { display: flex; flex-direction: column; position: relative; }
.entry-title { font-size: clamp(25px, 2.6vw, 32px); font-weight: 600; letter-spacing: .015em; line-height: 1.4; }
.entry-description { color: #d4e1ee; font-size: 14px; margin-top: 8px; }
.portal-page .textile-entry .entry-description { color: #f3f6fa; }
.entry-action { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 16px; margin-top: 31px; padding-top: 19px; border-top: 1px solid #ffffff42; font-size: 14px; font-weight: 500; }
.portal-page .textile-entry .entry-action { border-color: #ffffff42; }
.direction-arrow { width: 24px; height: 1px; background: currentColor; position: relative; display: inline-block; flex-shrink: 0; }
.direction-arrow::after { content: ""; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; position: absolute; right: 0; top: -3px; transform: rotate(45deg); }
.portal-help { color: var(--muted); font-size: 13px; margin-top: 24px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 23px 27px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer.legal-footer { flex-direction: column; gap: 6px; text-align: center; }
.home-link { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--muted); font-size: 13px; }
.home-link:hover, .text-button:hover { color: var(--dhu-blue); text-decoration: underline; text-underline-offset: 4px; }
.back-arrow { transform: rotate(180deg); width: 20px; }
.doors-main { flex: 1; padding-block: 45px 64px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 33px; }
.section-context { color: var(--textile-indigo); font-size: 15px; margin-bottom: 8px; font-weight: 500; }
.doors-main h1 { font-size: clamp(29px, 3vw, 38px); }
.heading-description { color: var(--muted); font-size: 14px; margin-top: 11px; }
.account-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 4px; font-size: 13px; }
.account-name { overflow-wrap: anywhere; max-width: 220px; }
.text-button { background: none; border: 0; border-radius: 2px; padding: 8px 0; color: var(--textile-indigo); font-size: 13px; min-height: 40px; flex-shrink: 0; }
.text-button:disabled { opacity: .55; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; background: white; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; max-width: 1000px; margin: 0 auto; }
.login-context { background: #e9eef5; padding: 26px 40px; position: relative; }
.fabric-swatch { width: 80px; height: 80px; margin-bottom: 24px; background-color: var(--textile-indigo); background-image: repeating-linear-gradient(0deg, transparent 0 8px, #c2cee04d 8px 10px), repeating-linear-gradient(90deg, transparent 0 8px, #c2cee04d 8px 10px); border: 8px solid #e9eef5; outline: 1px solid #c7d1df; transform: rotate(-4deg); }
.login-context h2 { font-size: 25px; font-weight: 500; color: var(--dhu-blue); margin-bottom: 16px; }
.login-context>p { font-size: 14px; color: #4c6075; line-height: 1.9; }
.login-context .login-context-note { margin-top: 28px; font-size: 12px; }
.login-panel { padding: 26px 40px; }
.login-panel h2 { color: var(--dhu-blue); font-size: 24px; font-weight: 600; }
.login-description { margin-top: 6px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.login-panel .form-field { margin-bottom: 16px; }
.form-field { margin-bottom: 21px; }
.form-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.form-field input { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #bac8d6; border-radius: 3px; background: white; color: var(--ink); font-size: 15px; }
input::placeholder { color: #788795; opacity: 1; }
input:focus-visible { outline-offset: 2px; }
.primary-button { background: var(--dhu-blue); color: white; border: 1px solid var(--dhu-blue); border-radius: 3px; min-height: 46px; padding: 10px 24px; font-weight: 500; }
.primary-button:hover:enabled { background: #104b7a; }
.primary-button:disabled { background: #e8edf2; border-color: #e0e6ed; color: #687c8e; }
.login-button { width: 100%; margin-top: 5px; }
.login-note { color: var(--muted); font-size: 12px; margin-top: 16px; line-height: 1.8; }
.form-error { padding-block: 0 16px; font-size: 13px; color: var(--danger); overflow-wrap: anywhere; }
.page-notice { background: #e5edf5; color: var(--dhu-blue); padding: 13px 17px; font-size: 13px; border-left: 3px solid #52789e; margin-bottom: 24px; overflow-wrap: anywhere; }
.notice-error { background: #faeeee; color: #8d3030; border-color: #ad5a5a; }
.initial-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 100px; color: var(--muted); font-size: 14px; }
.loading-indicator { width: 17px; height: 17px; border: 2px solid #c6d2df; border-top-color: var(--dhu-blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.doors-toolbar { display: flex; align-items: stretch; gap: 18px; padding-top: 8px; }
.search-field { flex: 1; position: relative; max-width: 520px; }
.search-field input { width: 100%; min-height: 48px; background: white; border: 1px solid #c1ceda; border-radius: 3px; padding: 11px 15px 11px 45px; color: var(--ink); font-size: 14px; }
.search-symbol { width: 14px; height: 14px; border: 1.6px solid #6e8193; border-radius: 50%; position: absolute; top: 15px; left: 18px; pointer-events: none; }
.search-symbol::after { content: ""; width: 6px; height: 1.6px; background: #6e8193; position: absolute; transform: rotate(45deg); right: -5px; bottom: -2px; }
.secondary-button { background: #fff; color: var(--dhu-blue); min-height: 48px; border: 1px solid #b8c7d6; border-radius: 3px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; font-size: 13px; }
.secondary-button:hover:enabled { background: #e8eff6; }
.secondary-button:disabled { color: var(--muted); background: #e9eef3; border-color: #d0dbe5; }
.connection-symbol { width: 14px; height: 14px; border: 1.4px solid currentColor; border-radius: 50%; display: inline-block; position: relative; }
.connection-symbol::before, .connection-symbol::after { content: ""; width: 4px; height: 4px; border: 1px solid currentColor; background: white; border-radius: 50%; position: absolute; top: 3px; }
.connection-symbol::before { left: -3px; }
.connection-symbol::after { right: -3px; }
.list-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-bottom: 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.list-meta #door-count { color: var(--ink); font-weight: 500; font-size: 13px; }
.operation-guide { margin-top: 17px; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.door-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.door-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid #7586a6; border-radius: 3px; min-width: 0; padding: 24px 23px 19px; display: flex; flex-direction: column; align-items: stretch; }
.door-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; margin-bottom: 10px; }
.door-room { font-size: 28px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; color: var(--dhu-blue); overflow-wrap: anywhere; }
.door-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; line-height: 1.7; flex-shrink: 0; color: #64788a; margin-top: 6px; }
.door-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #93a2b0; }
.status-online { color: var(--success); }
.status-online::before { background: var(--success); }
.status-offline { color: #a04a36; }
.status-offline::before { background: #b46347; }
.door-name { font-size: 15px; line-height: 1.65; min-height: 50px; margin-bottom: 20px; overflow-wrap: anywhere; font-weight: 500; }
.door-open-button { width: 100%; min-height: 43px; padding: 9px 14px; margin-top: auto; font-size: 14px; }
.door-actions { display: flex; align-items: stretch; gap: 9px; margin-top: auto; }
.door-actions .door-open-button { flex: 1; min-width: 0; margin-top: 0; }
.door-members-button { width: 44px; min-height: 43px; flex-shrink: 0; border: 1px solid #b8c7d6; border-radius: 3px; background: #f3f6f9; color: var(--textile-indigo); font-family: var(--font-sans); font-size: 23px; line-height: 1; }
.door-members-button:hover { background: #e5ecf4; border-color: #8296af; }
.password-panel { max-width: 510px; padding: 34px 38px; margin-inline: auto; background: white; border: 1px solid var(--line); border-radius: 4px; }
.password-panel h2 { color: var(--dhu-blue); font-size: 22px; font-weight: 600; line-height: 1.5; }
.panel-description { margin-block: 10px 25px; color: var(--muted); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.field-help { font-size: 12px; color: var(--muted); line-height: 1.85; margin-bottom: 20px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form-actions .primary-button, .form-actions .secondary-button, .form-actions .danger-button { min-height: 46px; font-size: 13px; }
.management-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.management-heading>p { color: var(--muted); font-size: 13px; max-width: 620px; }
.user-search { width: 100%; max-width: 520px; }
.management-count { margin-block: 20px 12px; color: var(--muted); font-size: 12px; }
.people-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.person-row { display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 18px 21px; background: white; border-bottom: 1px solid var(--line); }
.person-identity { min-width: 0; }
.person-name { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.person-detail { margin-top: 4px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.person-row>.text-button { flex-shrink: 0; }
.protected-label { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.danger-text { color: var(--danger); }
.danger-text:hover { color: #832828; }
.danger-button { border: 1px solid #a23636; border-radius: 3px; background: #a23636; color: white; padding: 10px 18px; }
.danger-button:hover:enabled { background: #882d2d; }
.danger-button:disabled { opacity: .6; }
.management-dialog { width: min(600px, calc(100vw - 40px)); max-height: calc(100svh - 64px); padding: 27px 30px 30px; border: 1px solid #c3d0dd; border-radius: 5px; color: var(--ink); background: white; overflow-y: auto; overscroll-behavior: contain; }
.management-dialog::backdrop { background: #102a44a8; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.management-dialog h2 { font-size: 21px; line-height: 1.5; color: var(--dhu-blue); font-weight: 600; overflow-wrap: anywhere; }
.dialog-close { width: 36px; height: 36px; flex-shrink: 0; margin-top: -3px; border: 1px solid #d9e2ea; border-radius: 3px; background: #f3f6f9; color: var(--muted); font-size: 24px; line-height: 1; }
.dialog-close:hover { background: #e5ecf4; }
.management-dialog .panel-description { margin-bottom: 18px; }
.dialog-feedback { margin-block: 13px; padding: 10px 13px; background: #eaf2f7; color: var(--dhu-blue); font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.feedback-error { color: var(--danger); background: #faeeee; }
.member-list { max-height: 240px; overflow-y: auto; }
.member-list .person-row { padding: 13px 3px; gap: 12px; }
.member-list .person-name { font-size: 13px; }
.member-list .person-detail { font-size: 11px; }
.member-list .text-button { font-size: 12px; }
.member-add-section { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 22px; }
.member-add-section h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.member-add-section .field-help { margin-bottom: 15px; }
.member-lookup-form { display: flex; align-items: stretch; gap: 10px; }
.member-lookup-form .form-field { flex: 1; min-width: 0; margin: 0; }
.member-lookup-form .secondary-button { min-height: 46px; }
.member-candidate { display: block; width: 100%; margin-block: 14px 0; padding: 13px; text-align: left; font-size: 13px; line-height: 1.8; color: var(--ink); border: 1px solid #bccbda; border-radius: 3px; background: #f6f8fb; overflow-wrap: anywhere; }
.member-candidate.is-selected { border-color: var(--dhu-blue); background: #e7eff7; box-shadow: inset 3px 0 var(--dhu-blue); }
.add-member-button { width: 100%; margin-top: 18px; font-size: 13px; }
.delete-dialog { max-width: 500px; }
.delete-dialog .panel-description { margin-top: 18px; }
.door-result { font-size: 12px; min-height: 20px; margin-top: 10px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.result-success { color: var(--success); }
.result-error { color: var(--danger); }
.result-unknown { color: #946020; }
.door-card.is-disabled { border-top-color: #b6c1cb; background: #f8fafc; }
.door-card.is-disabled .door-room { color: #617487; }
.status-note { font-size: 12px; color: var(--muted); margin-top: 25px; }
.empty-state { text-align: center; padding: 70px 22px; border: 1px dashed #c5d0dc; background: #ffffff80; color: var(--muted); font-size: 14px; }
.list-error { padding: 17px 20px; margin-bottom: 22px; background: #faeeee; border-left: 3px solid #ad5a5a; color: #8d3030; font-size: 13px; overflow-wrap: anywhere; }
.list-error .text-button { color: #8d3030; margin-top: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 10px 16px; background: white; color: var(--dhu-blue); border: 2px solid var(--dhu-blue); z-index: 10; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
@media (min-width: 1500px) { .portal-main { padding-top: 108px; } }
@media (max-width: 1000px) {
  .page-shell { width: calc(100% - 64px); }
  .center-entry { padding: 30px 28px 27px; }
  .door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-context, .login-panel { padding: 26px 30px; }
  .account-name { max-width: 160px; }
}
@media (max-width: 680px) {
  .page-shell { width: calc(100% - 40px); }
  .site-header { min-height: 101px; padding-block: 22px; gap: 15px; }
  .university-emblem { width: 49px; height: 49px; }
  .university-brand { gap: 11px; }
  .university-name { font-size: 23px; }
  .brand-caption { font-size: 9px; }
  .header-purpose { font-size: 12px; }
  .portal-main { padding-block: 44px 48px; }
  .portal-intro { margin-bottom: 28px; }
  h1 { font-size: 29px; }
  .portal-intro p { margin-top: 11px; font-size: 14px; }
  .center-entries { grid-template-columns: 1fr; gap: 18px; }
  .center-entry { min-height: 243px; padding: 25px 27px 22px; }
  .entry-symbol { width: 31px; height: 31px; margin-bottom: 24px; }
  .entry-title { font-size: 27px; }
  .entry-description { margin-top: 5px; font-size: 12px; }
  .entry-action { padding-top: 15px; margin-top: 24px; font-size: 13px; }
  .portal-help { font-size: 12px; margin-top: 21px; line-height: 1.9; }
  .site-footer { font-size: 11px; padding-block: 19px 23px; gap: 12px; }
  .home-link { font-size: 11px; gap: 10px; }
  .home-link .direction-arrow { display: none; }
  .doors-main { padding-block: 31px 45px; }
  .section-heading { align-items: flex-start; gap: 18px; margin-bottom: 25px; flex-direction: column; }
  .section-context { font-size: 13px; margin-bottom: 6px; }
  .doors-main h1 { font-size: 30px; }
  .heading-description { font-size: 12px; margin-top: 9px; }
  .account-controls { justify-content: space-between; width: 100%; padding: 12px 0 0; border-top: 1px solid var(--line); gap: 10px; }
  .account-name { max-width: calc(100% - 90px); }
  .text-button { min-height: 40px; }
  .login-layout { display: block; margin: 0; }
  .login-context { display: none; }
  .login-panel { padding: 22px 25px; }
  .login-panel h2 { font-size: 22px; }
  .login-description { margin-bottom: 20px; }
  .login-note { margin-top: 16px; }
  .form-field input { font-size: 16px; }
  .doors-toolbar { gap: 10px; padding-top: 0; }
  .search-field input { font-size: 13px; padding-left: 38px; }
  .search-symbol { left: 13px; }
  .secondary-button { padding: 10px 13px; font-size: 12px; gap: 7px; }
  .connection-symbol { display: none; }
  .list-meta { align-items: flex-start; flex-direction: column; gap: 4px; margin-top: 19px; padding-bottom: 13px; }
  .list-meta #door-count { font-size: 12px; }
  .list-meta #last-checked { font-size: 11px; }
  .operation-guide { font-size: 11px; line-height: 1.8; margin-block: 13px 17px; }
  .door-grid { grid-template-columns: 1fr; gap: 15px; }
  .door-card { padding: 22px 22px 17px; }
  .door-name { min-height: 0; margin-bottom: 21px; }
  .door-room { font-size: 27px; }
  .door-status { font-size: 12px; }
  .door-open-button { min-height: 46px; }
  .status-note { font-size: 11px; line-height: 1.8; margin-top: 20px; }
  .account-controls { justify-content: flex-start; column-gap: 18px; }
  .account-controls .account-name { flex: 1 1 100%; max-width: none; }
  .account-controls .text-button { padding-top: 0; padding-bottom: 3px; }
  .password-panel { padding: 26px 23px; }
  .password-panel h2 { font-size: 21px; }
  .password-panel .form-actions>* { flex: 1 1 100%; }
  .management-heading { align-items: flex-start; flex-direction: column-reverse; gap: 17px; margin-bottom: 20px; }
  .person-row { padding: 15px 13px; gap: 12px; }
  .person-detail { font-size: 11px; }
  .person-name { font-size: 13px; }
  .user-delete-button { font-size: 12px; }
  .management-dialog { width: calc(100vw - 28px); padding: 22px 19px 24px; max-height: calc(100svh - 32px); }
  .management-dialog h2 { font-size: 19px; }
  .management-dialog .form-actions>* { flex: 1 1 100%; }
  .management-dialog .field-help, .management-dialog .panel-description { font-size: 12px; }
  .member-lookup-form { gap: 8px; }
  .member-lookup-form .secondary-button { padding-inline: 12px; font-size: 12px; }
  .member-lookup-form input { font-size: 16px; }
  .page-notice { font-size: 12px; padding: 11px 14px; }
}
@media (max-width: 350px) {
  .page-shell { width: calc(100% - 32px); }
  .university-name { font-size: 21px; }
  .university-emblem { width: 44px; height: 44px; }
  .brand-caption { font-size: 8px; }
  .university-brand { gap: 9px; }
  .header-purpose { font-size: 11px; }
  .home-link { font-size: 10px; }
  h1 { font-size: 27px; }
  .center-entry { padding-inline: 23px; }
  .entry-title { font-size: 25px; }
  .login-panel { padding-inline: 21px; }
  .search-field input { font-size: 12px; padding-left: 34px; padding-right: 9px; }
  .secondary-button { padding-inline: 10px; }
}
/* Keep the sign-in screen compact without changing the signed-in workspace. */
.doors-page:has(#login-view:not([hidden])) .site-header { min-height: 96px; padding-block: 16px; }
.doors-page:has(#login-view:not([hidden])) .doors-main { display: flex; flex-direction: column; justify-content: center; padding-block: 20px 24px; }
.doors-page:has(#login-view:not([hidden])) .section-heading { width: 100%; max-width: 1000px; margin-inline: auto; margin-bottom: 20px; }
.doors-page:has(#login-view:not([hidden])) .login-layout { width: 100%; flex-shrink: 0; }
.doors-page:has(#login-view:not([hidden])) h1 { font-size: 32px; }
.doors-page:has(#login-view:not([hidden])) .site-footer { padding-block: 14px 16px; }
@media (max-height: 720px) {
  .doors-page:has(#login-view:not([hidden])) .site-header { min-height: 80px; padding-block: 8px; }
  .doors-page:has(#login-view:not([hidden])) .doors-main { padding-block: 12px 16px; }
  .doors-page:has(#login-view:not([hidden])) .section-heading { margin-bottom: 12px; }
  .doors-page:has(#login-view:not([hidden])) .section-context { margin-bottom: 4px; font-size: 13px; }
  .doors-page:has(#login-view:not([hidden])) h1 { font-size: 30px; }
  .doors-page:has(#login-view:not([hidden])) .heading-description { margin-top: 6px; font-size: 12px; }
  .login-context, .login-panel { padding-block: 16px; }
  .login-panel h2 { font-size: 22px; line-height: 1.4; }
  .login-description { margin-block: 4px 16px; }
  .login-panel .form-field { margin-bottom: 12px; }
  .login-panel .form-field label { margin-bottom: 4px; }
  .login-note { margin-top: 12px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
