:root {
  color-scheme: light;
  --portal-navy: #142c3b;
  --portal-navy-light: #264758;
  --portal-teal: #216c61;
  --portal-teal-dark: #19574e;
  --portal-ink: #33464f;
  --portal-muted: #76848a;
  --portal-border: #dde5e7;
  --portal-paper: #f5f7f7;
  --portal-font: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--portal-font); color: var(--portal-ink); background: var(--portal-paper); font-size: 14px; letter-spacing: -.025em; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; letter-spacing: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible { outline: 3px solid #85b8aa; outline-offset: 4px; }
.portal-header { min-height: 90px; padding: 9px 4.6%; background: #fff; border-bottom: 1px solid var(--portal-border); display: flex; align-items: center; gap: 25px; }
.portal-brand { display: flex; align-items: center; flex-shrink: 0; }
.portal-brand img { width: 180px; height: 72px; object-fit: contain; }
.portal-header-label { color: #77858a; font-size: 12px; border-left: 1px solid var(--portal-border); padding-left: 25px; }
.staff-label { margin-left: auto; padding: 7px 11px; border: 1px solid var(--portal-border); border-radius: 4px; font-size: 11px; color: #72817e; }
.portal-install-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.portal-install-actions .staff-label { margin-left: 0; white-space: nowrap; }
.pwa-install-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 44px; padding: 10px 14px; border: 1px solid #dbe6df; border-radius: 5px; color: #19574e; background: #f5f9f6; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pwa-install-button:hover:not(:disabled) { background: #edf5ef; }
.pwa-install-dialog { width: min(440px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 30px; border: 1px solid #dce6e1; border-radius: 12px; background: #fff; color: #33464f; box-shadow: 0 25px 90px #09201d35; }
.pwa-install-dialog::backdrop { background: #0b242a70; }
.pwa-help-eyebrow { margin: 0; color: #216c61; font-size: 9px; letter-spacing: 2px; font-weight: 600; }
.pwa-install-dialog h2 { margin: 13px 0 0; font-size: 22px; line-height: 1.5; color: #142c3b; font-weight: 600; letter-spacing: -.05em; }
.pwa-help-intro { margin: 15px 0 0; font-size: 12px; line-height: 1.9; color: #788a81; }
.pwa-help-steps { margin: 21px 0; padding: 17px 17px 17px 36px; background: #f4f8f5; border: 1px solid #e3ebe5; border-radius: 7px; color: #426557; font-size: 12px; line-height: 1.9; }
.pwa-help-steps li + li { margin-top: 9px; }
.pwa-help-note { margin: 0; font-size: 10px; line-height: 1.9; color: #88988e; }
.pwa-help-close { display: block; width: 100%; min-height: 48px; margin-top: 24px; padding: 12px; border: 1px solid #19574e; border-radius: 5px; background: #19574e; color: #fff; font-size: 12px; font-weight: 600; }
.pwa-help-close:hover { background: #144a42; }
.auth-layout { min-height: calc(100dvh - 143px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .85fr); }
.auth-intro { position: relative; overflow: hidden; min-height: 675px; background: var(--portal-navy); color: #fff; padding: 72px max(8%, calc((100vw - 1180px) / 2)); }
.intro-copy { position: relative; z-index: 2; }
.portal-eyebrow { color: #9fb4bd; font-size: 10px; letter-spacing: 2.6px; line-height: 1.6; font-weight: 600; }
.auth-intro h1 { margin-top: 28px; font-size: clamp(32px, 3.1vw, 46px); font-weight: 600; letter-spacing: -.075em; line-height: 1.5; }
.intro-description { margin-top: 21px; color: #adbdc4; font-size: 13px; line-height: 2; }
.intro-rule { height: 1px; width: 44px; background: #52717c; margin-top: 29px; }
.intro-caption { color: #a8bec4; font-size: 10px; letter-spacing: .6px; margin-top: 17px; }
.intro-art { position: absolute; width: 330px; height: 280px; right: 7%; bottom: 69px; }
.art-frame { position: absolute; border: 1px solid #54747f; border-radius: 12px; }
.art-frame-back { width: 196px; height: 225px; top: 9px; left: 53px; transform: rotate(-13deg); background: #1d3948; }
.art-frame-front { width: 203px; height: 236px; top: 23px; left: 94px; transform: rotate(7deg); background: #f4f7f5; border-color: #d6e0dc; padding: 24px 22px; box-shadow: 0 16px 40px #05192230; }
.art-index { color: #2a675d; font-size: 10px; letter-spacing: 1.8px; font-weight: 600; }
.art-line { display: block; width: 97px; height: 4px; background: #d2ddd7; margin-top: 12px; border-radius: 3px; }
.art-line-long { width: 138px; height: 6px; margin-top: 21px; background: #718e82; }
.art-line-short { width: 62px; }
.art-divider { height: 1px; background: #dce4de; margin-top: 22px; }
.art-note { margin-top: 17px; }
.art-note span { display: block; height: 1px; background: #dce5df; margin-top: 16px; width: 100%; }
.art-check { position: absolute; width: 38px; height: 38px; display: grid; place-items: center; bottom: 21px; right: 20px; background: #dcece3; color: #3c7461; border-radius: 50%; font-size: 18px; }
.art-orbit { position: absolute; width: 220px; height: 220px; top: 48px; left: -7px; border-radius: 50%; border: 1px solid #60778055; }
.art-dot { position: absolute; top: 139px; left: -4px; width: 8px; height: 8px; background: #70a495; border: 2px solid #274656; border-radius: 50%; }
.intro-footer { position: absolute; left: 8%; bottom: 27px; font-size: 10px; color: #8fa8b3; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 52px 45px; background: #fff; }
.auth-card { width: 100%; max-width: 355px; }
.card-eyebrow { color: var(--portal-teal); font-size: 9px; letter-spacing: 2px; }
.auth-card h2 { margin-top: 12px; color: var(--portal-navy); font-size: 29px; font-weight: 600; letter-spacing: -.065em; }
.form-description { margin-top: 14px; font-size: 12px; line-height: 1.9; color: var(--portal-muted); }
#authForm { margin-top: 32px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; min-width: 0; }
.form-field label { color: #667881; font-size: 11px; font-weight: 600; }
.form-field input { width: 100%; min-width: 0; height: 49px; border: 1px solid var(--portal-border); border-radius: 5px; padding: 12px 14px; background: #fff; color: var(--portal-navy); font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.form-field input::placeholder { color: #a0acb1; font-size: 12px; }
.form-field input:focus { outline: none; border-color: #75a595; box-shadow: 0 0 0 3px #216c6110; }
.form-field input[aria-invalid="true"] { border-color: #bd7776; }
.password-input { position: relative; }
.password-input input { padding-right: 65px; }
.password-toggle { position: absolute; height: 45px; top: 2px; right: 7px; border: 0; background: none; color: #768b83; font-size: 11px; padding: 0 10px; min-width: 43px; }
.field-help { font-size: 10px; color: #83958b; line-height: 1.7; }
.portal-button { min-height: 45px; border: 1px solid transparent; border-radius: 5px; padding: 12px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; font-size: 12px; font-weight: 500; transition: background .15s; }
.portal-button-primary { background: var(--portal-teal-dark); border-color: var(--portal-teal-dark); color: #fff; }
.portal-button-primary:hover:not(:disabled) { background: #144a42; }
.portal-button-outline { background: #fff; border-color: var(--portal-border); color: #647a74; }
.portal-button-outline:hover:not(:disabled) { background: #f3f8f5; }
.auth-submit { margin-top: 5px; width: 100%; justify-content: space-between; min-height: 49px; }
.button-arrow { font-size: 18px; font-weight: 400; }
.form-status { min-height: 18px; margin-top: 12px; font-size: 10px; color: #80938a; line-height: 1.7; }
.auth-assistance { margin-top: 24px; color: #8a979b; line-height: 1.9; font-size: 11px; }
.auth-signup-link { display: inline-flex; align-items: center; gap: 12px; padding: 9px 0; margin-top: 7px; font-size: 12px; color: var(--portal-teal-dark); font-weight: 600; min-height: 44px; }
.signup-card { max-width: 440px; }
.signup-page .auth-panel { padding-top: 38px; padding-bottom: 38px; }
#signupForm { margin-top: 27px; }
.signup-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 17px; }
.signup-field-wide { grid-column: 1 / -1; }
.signup-page .form-field { margin-bottom: 17px; }
.signup-back { margin-top: 13px; font-size: 11px; }
.signup-result { margin-top: 28px; padding: 27px 22px; border: 1px solid #dbe8e0; border-radius: 8px; background: #f5faf6; }
.signup-result-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e2f0e7; color: var(--portal-teal-dark); font-size: 19px; }
.signup-result h3 { color: var(--portal-navy); font-size: 17px; font-weight: 600; margin-top: 18px; }
.signup-result p { color: #708778; font-size: 12px; line-height: 1.9; margin-top: 10px; }
.signup-result .portal-button { margin-top: 23px; width: 100%; }
.privacy-note { display: flex; gap: 9px; margin-top: 27px; padding-top: 21px; border-top: 1px solid #e7eceb; align-items: flex-start; }
.privacy-note svg { width: 15px; height: 15px; fill: none; stroke: #879b93; stroke-width: 1.5; flex-shrink: 0; }
.privacy-note p { color: #8c9b95; font-size: 10px; line-height: 1.7; }
.notice { border: 1px solid transparent; padding: 12px 14px; border-radius: 5px; font-size: 11px; line-height: 1.8; margin: 15px 0; overflow-wrap: anywhere; }
.notice-error { background: #fcf4f3; border-color: #efdbd8; color: #995d58; }
.notice-success { background: #eff7f1; border-color: #d6e8da; color: #38664b; }
.notice-neutral { background: #f4f7f6; border-color: #e0e7e3; color: #71837a; }
.notice a { display: inline-flex; margin-top: 14px; gap: 15px; color: var(--portal-teal-dark); font-size: 11px; font-weight: 600; }
.portal-footer { display: flex; justify-content: space-between; min-height: 53px; align-items: center; padding: 12px 4.6%; background: #f5f7f6; border-top: 1px solid var(--portal-border); font-size: 9px; color: #8c9996; }
.portal-home-link { margin-left: auto; font-size: 12px; color: #5e7770; display: inline-flex; align-items: center; gap: 11px; padding: 10px 0; }
.account-profile { display: flex; align-items: center; gap: 9px; color: #5b7369; font-size: 11px; padding-left: 24px; border-left: 1px solid var(--portal-border); }
.account-profile > span:last-child { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-mark { background: #edf3ef; color: #53796a; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; flex-shrink: 0; }
.account-main { max-width: 1280px; margin: auto; padding: 44px 4.6% 60px; min-height: calc(100dvh - 143px); }
.account-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 31px; }
.account-heading h1 { margin-top: 10px; color: var(--portal-navy); font-size: 31px; font-weight: 600; letter-spacing: -.06em; }
.account-heading p:last-child { margin-top: 12px; font-size: 12px; line-height: 1.8; color: var(--portal-muted); }
.heading-access { font-size: 10px; color: #718b7b; border: 1px solid #d8e4dc; padding: 7px 10px; background: #f6faf7; border-radius: 4px; white-space: nowrap; }
.account-loading { padding: 40px 24px; text-align: center; font-size: 12px; color: #7b8d83; background: #fff; border: 1px solid var(--portal-border); border-radius: 7px; line-height: 1.9; }
.account-loading .portal-button { margin-top: 17px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); gap: 23px; align-items: start; }
.account-card { min-width: 0; border: 1px solid var(--portal-border); background: #fff; border-radius: 8px; padding: 26px; }
.account-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.section-number { color: #84a294; font-size: 10px; letter-spacing: .8px; }
.account-card-heading h2 { font-size: 16px; color: var(--portal-navy); font-weight: 600; letter-spacing: -.045em; }
.account-card-heading .member-total { margin-left: auto; color: #7f9488; font-size: 10px; }
.account-card-caption { font-size: 11px; color: #839389; line-height: 1.9; margin-top: -9px; margin-bottom: 24px; }
.member-summary { display: flex; align-items: center; gap: 15px; background: #f6f9f7; border: 1px solid #e5ece6; border-radius: 6px; padding: 16px 18px; margin-bottom: 22px; }
.member-summary strong { font-size: 29px; color: var(--portal-navy); font-weight: 600; line-height: 1; letter-spacing: -.06em; }
.member-summary p { font-size: 11px; color: #708778; line-height: 1.8; }
.member-table-wrap { overflow-x: auto; }
.member-table { width: 100%; border-collapse: collapse; text-align: left; }
.member-table th { color: #90a094; font-size: 9px; font-weight: 500; padding: 0 0 12px; border-bottom: 1px solid #e2e9e2; }
.member-table td { font-size: 11px; padding: 17px 10px 17px 0; border-bottom: 1px solid #edf1ed; vertical-align: middle; overflow-wrap: anywhere; }
.member-table tr:last-child td { border-bottom: 0; }
.member-table td:last-child { padding-right: 0; color: #84948a; white-space: nowrap; font-size: 10px; }
.member-person { display: flex; flex-direction: column; gap: 6px; }
.member-person strong { font-size: 12px; color: var(--portal-navy); font-weight: 600; }
.member-person span { font-size: 10px; color: #839589; word-break: break-all; }
.role-pill { display: inline-flex; background: #f4f6f3; color: #7b8d7c; font-size: 9px; border: 1px solid #e4e9e0; border-radius: 4px; padding: 5px 8px; white-space: nowrap; }
.role-pill-admin { background: #edf4f1; color: #4a7d6b; border-color: #dbe8e0; }
.member-empty { padding: 24px 0; color: var(--portal-muted); font-size: 11px; line-height: 1.8; }
.account-create .form-field { margin-bottom: 17px; }
.account-create .form-field input { height: 45px; font-size: 12px; }
.account-create .auth-submit { margin-top: 8px; }
.create-note { margin-top: 21px; padding-top: 18px; border-top: 1px solid #e7ece6; font-size: 10px; line-height: 1.9; color: #839487; }
.account-helper { margin-top: 22px; font-size: 10px; line-height: 1.9; color: #87988a; }
.account-approval-page .account-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.account-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 17px; margin-bottom: 19px; }
.account-toolbar p { font-size: 11px; line-height: 1.8; color: #7b8d83; }
.account-toolbar .portal-button { min-height: 42px; font-size: 11px; white-space: nowrap; padding: 10px 15px; }
.approval-list { list-style: none; padding: 0; margin: 0; }
.approval-item { padding: 21px 0; border-top: 1px solid #e6ece7; }
.approval-item:first-child { padding-top: 6px; border-top: 0; }
.approval-item:last-child { padding-bottom: 0; }
.approval-person-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 11px; }
.approval-person-heading strong { font-size: 15px; color: var(--portal-navy); font-weight: 600; overflow-wrap: anywhere; }
.approval-position { font-size: 11px; color: #83968b; overflow-wrap: anywhere; }
.approval-details { display: flex; flex-direction: column; gap: 7px; margin-top: 13px; font-size: 11px; line-height: 1.5; color: #788d80; overflow-wrap: anywhere; }
.approval-item-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 18px; }
.approval-date { font-size: 10px; color: #90a094; }
.approval-actions { display: flex; gap: 8px; margin-left: auto; }
.approval-actions .portal-button { min-width: 65px; min-height: 44px; padding: 10px 16px; font-size: 11px; }
.approval-reject { color: #8d7774; }
.account-reject-dialog { width: min(440px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 30px; border: 1px solid #dce6e1; border-radius: 12px; background: #fff; color: var(--portal-ink); box-shadow: 0 25px 90px #09201d35; }
.account-reject-dialog::backdrop { background: #0b242a70; }
.account-reject-dialog h2 { margin-top: 13px; font-size: 22px; line-height: 1.5; font-weight: 600; color: var(--portal-navy); letter-spacing: -.05em; }
.reject-description { margin-top: 18px; font-size: 12px; line-height: 1.9; color: #788a81; overflow-wrap: anywhere; }
.reject-description strong { color: var(--portal-navy); font-weight: 600; }
.reject-status { min-height: 19px; margin-top: 15px; font-size: 10px; line-height: 1.9; color: #8d7774; }
.reject-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 17px; }
.reject-dialog-actions .portal-button { min-height: 48px; }
.portal-button-reject { background: #995d58; border-color: #995d58; color: #fff; }
.portal-button-reject:hover:not(:disabled) { background: #844e49; }
.approval-empty { padding: 28px 12px; border: 1px dashed #dce6de; border-radius: 6px; text-align: center; background: #f8faf8; }
.approval-empty span { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 12px; background: #eaf2ec; color: #7b9a85; border-radius: 50%; }
.approval-empty p { font-size: 11px; color: #7e9386; line-height: 1.9; }
.member-person .member-detail { word-break: normal; overflow-wrap: anywhere; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 25px; border-bottom: 1px solid #dce5df; }
.admin-tab { min-height: 48px; padding: 12px 23px; background: none; border: 0; border-bottom: 2px solid transparent; color: #87978e; font-size: 13px; font-weight: 600; }
.admin-tab[aria-selected="true"] { border-bottom-color: var(--portal-teal-dark); color: var(--portal-teal-dark); }
.admin-tab:hover { color: var(--portal-teal-dark); }
.company-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin: 3px 0 22px; }
.company-heading h2 { color: var(--portal-navy); font-size: 19px; font-weight: 600; letter-spacing: -.04em; }
.company-heading p { margin-top: 9px; font-size: 11px; line-height: 1.8; color: #87988a; }
.company-updated { font-size: 10px; line-height: 1.9; color: #8b9c91; padding-top: 5px; text-align: right; }
.company-editor { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.company-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.company-field-wide { grid-column: 1 / -1; }
.field-required { font-size: 9px; color: #789986; font-weight: 400; margin-left: 5px; }
.company-fields .form-field { margin-bottom: 20px; }
.company-fields textarea { width: 100%; min-height: 85px; resize: vertical; border: 1px solid var(--portal-border); border-radius: 5px; padding: 12px 14px; color: var(--portal-navy); background: #fff; font: inherit; font-size: 13px; line-height: 1.8; }
.company-fields textarea::placeholder { color: #a0acb1; font-size: 12px; }
.company-fields textarea:focus { outline: none; border-color: #75a595; box-shadow: 0 0 0 3px #216c6110; }
.company-fields textarea[aria-invalid="true"] { border-color: #bd7776; }
.company-seal-preview { min-height: 185px; display: grid; place-items: center; margin-bottom: 23px; padding: 20px; background-color: #f7faf7; background-image: linear-gradient(45deg, #e9efeb 25%, transparent 25%), linear-gradient(-45deg, #e9efeb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e9efeb 75%), linear-gradient(-45deg, transparent 75%, #e9efeb 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; border: 1px solid #e2e9e4; border-radius: 6px; }
.company-seal-preview img { max-width: 100%; max-height: 165px; width: auto; height: auto; object-fit: contain; }
.company-seal-preview p { padding: 9px 12px; border-radius: 4px; background: #f7faf7ee; color: #8a9b90; font-size: 11px; line-height: 1.8; }
.company-file-field { margin-bottom: 9px; }
.company-file-field input { height: auto; min-height: 48px; padding: 0; color: #88988f; font-size: 10px; border: 0; line-height: 48px; }
.company-file-field input::file-selector-button { min-height: 48px; margin-right: 10px; padding: 10px 14px; border: 1px solid #dce5de; border-radius: 5px; color: #5f7f6d; background: #f5f9f6; font: inherit; cursor: pointer; }
.company-seal-remove { margin-top: 20px; min-height: 44px; font-size: 11px; }
.company-seal-status { min-height: 19px; margin-top: 12px; color: #8b9b90; font-size: 10px; line-height: 1.9; }
.company-save-area { grid-column: 1 / -1; padding-top: 3px; }
.company-save-area .notice { margin-top: 0; }
.company-save-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.company-save-actions .portal-button { min-height: 48px; }
.company-reload-note { margin-top: 15px; max-width: 740px; font-size: 10px; line-height: 1.9; color: #8c9b91; }
.company-load-error .portal-button { min-height: 44px; margin-top: 11px; font-size: 11px; }
@media (min-width: 1600px) {
  .auth-intro { padding-left: calc((100vw - 1200px) / 2); }
  .intro-footer { left: calc((100vw - 1200px) / 2); }
  .intro-art { right: 13%; }
}
@media (max-width: 1100px) {
  .portal-header { padding-inline: 30px; }
  .auth-layout { grid-template-columns: minmax(0, .95fr) minmax(400px, 1fr); }
  .auth-intro { padding: 64px 9%; }
  .auth-intro h1 { font-size: 35px; }
  .intro-art { transform: scale(.9); transform-origin: right bottom; right: 4%; }
  .auth-panel { padding: 45px 34px; }
  .account-main { padding-inline: 30px; }
  .account-grid { gap: 19px; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); }
  .account-card { padding: 22px; }
}
@media (max-width: 900px) {
  .company-editor { grid-template-columns: 1fr; }
  .company-seal-card { max-width: none; }
  .company-seal-preview { min-height: 180px; }
  .auth-intro { padding: 58px 9%; }
  .auth-intro h1 { font-size: 31px; }
  .intro-art { transform: scale(.8); right: 2%; bottom: 70px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-approval-page .account-grid { grid-template-columns: 1fr; }
  .account-create { max-width: none; }
  .staff-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 19px; }
  .account-create .auth-submit { max-width: 330px; }
  .account-profile { padding-left: 17px; }
}
@media (max-width: 1000px) {
  .account-page .portal-header-label { display: none; }
  .signup-page .auth-layout { grid-template-columns: 1fr; }
  .signup-page .auth-intro { min-height: 235px; padding: 29px max(28px, calc((100vw - 560px) / 2)); }
  .signup-page .auth-intro h1 { margin-top: 13px; font-size: 26px; line-height: 1.5; }
  .signup-page .intro-description { margin-top: 12px; font-size: 11px; }
  .signup-page .intro-rule, .signup-page .intro-caption, .signup-page .intro-footer { display: none; }
  .signup-page .intro-art { transform: scale(.55); right: 4%; bottom: 8px; }
  .signup-page .auth-panel { padding: 36px 28px; }
  .signup-card { max-width: 500px; }
}
@media (max-width: 760px) {
  .portal-header { min-height: 76px; padding: 4px 22px; gap: 17px; }
  .portal-brand img { width: 150px; height: 66px; }
  .portal-header-label { display: none; }
  .auth-layout { min-height: calc(100dvh - 129px); grid-template-columns: 1fr; }
  .auth-intro { min-height: 235px; padding: 29px 28px; }
  .portal-eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .auth-intro h1 { margin-top: 13px; font-size: 26px; line-height: 1.5; }
  .intro-description { margin-top: 12px; font-size: 10px; }
  .intro-rule, .intro-caption, .intro-footer { display: none; }
  .intro-art { transform: scale(.53); right: 1%; bottom: 8px; }
  .auth-panel { padding: 37px 26px 39px; }
  .auth-card { max-width: 420px; }
  .auth-card h2 { font-size: 27px; }
  .form-description { font-size: 11px; }
  #authForm { margin-top: 26px; }
  .portal-footer { padding-inline: 22px; font-size: 8px; }
  .account-main { padding: 28px 20px 38px; min-height: calc(100dvh - 129px); }
  .account-heading { margin-bottom: 23px; align-items: start; }
  .account-heading h1 { font-size: 27px; }
  .account-heading p:last-child { font-size: 11px; max-width: 285px; }
  .heading-access { margin-top: 5px; font-size: 9px; }
  .portal-home-link { font-size: 10px; gap: 8px; }
  .account-profile { border: 0; padding-left: 0; }
  .account-profile > span:last-child { display: none; }
  .account-card { padding: 21px; }
  .member-table td:last-child, .member-table th:last-child { display: none; }
  .staff-form-grid { grid-template-columns: 1fr; }
  .account-create .auth-submit { max-width: none; }
  .account-toolbar { align-items: flex-start; }
  .account-toolbar p { max-width: 210px; font-size: 10px; }
}
@media (max-width: 520px) {
  .admin-tab { padding-inline: 18px; }
  .company-fields { grid-template-columns: 1fr; }
  .company-heading { flex-direction: column; gap: 5px; }
  .company-updated { text-align: left; padding-top: 0; }
  .company-save-actions { flex-direction: column; }
  .portal-install-actions .staff-label { display: none; }
  .account-page .portal-header { flex-wrap: wrap; gap: 10px 14px; padding-top: 6px; padding-bottom: 11px; }
  .account-page .portal-brand { margin-right: auto; }
  .account-page .portal-home-link { order: 3; margin-left: 0; }
  .account-page .pwa-install-button { order: 4; margin-left: auto; }
  .pwa-install-dialog { padding: 24px; }
  .account-reject-dialog { padding: 24px; }
  .pwa-install-dialog h2 { font-size: 21px; }
  .signup-fields { grid-template-columns: 1fr; }
  .signup-page .auth-intro { padding-left: 26px; }
  .signup-page .intro-art { transform: scale(.43); right: -8%; bottom: 17px; opacity: .75; }
  .signup-page .auth-intro h1 { font-size: 24px; }
  .signup-page .intro-description { max-width: 210px; }
}
@media (max-width: 410px) {
  .intro-art { transform: scale(.42); right: -9%; bottom: 17px; }
  .auth-intro { padding-left: 23px; }
  .auth-intro h1 { font-size: 24px; }
  .portal-header { padding-inline: 18px; gap: 12px; }
  .portal-brand img { width: 137px; }
  .heading-access { display: none; }
}
@media (pointer: coarse) {
  .pwa-install-button { min-height: 48px; }
  .portal-button, .form-field input, .account-create .form-field input, .password-toggle { min-height: 48px; }
  .password-toggle { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
