details > summary svg,
.move-in-chapter-toggle,
.portal-renewal-expand__button > svg {
    transition: transform 200ms cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-reduced-motion: reduce) {
    details > summary svg,
    .move-in-chapter-toggle,
    .portal-renewal-expand__button > svg { transition: none; }
}
:root {
    --portal-font-weight-max: 650;
    color-scheme: light dark;
    --on-accent: #009F89;
    --on-lime: #C7FF58;
    --on-navy: #0F172A;
    --on-inquiry-selection: var(--on-navy);
    --on-deep: #0F172A;
    --on-ink: #0F172A;
    --on-muted: #6B7280;
    --on-disabled: #9CA3AF;
    --on-line: #E5E7EB;
    --on-soft: #F3F4F6;
    --on-teal-soft: rgba(0, 159, 137, .10);
    --on-lime-soft: rgba(199, 255, 88, .16);
    --on-coral: #FF7B68;
    --on-important: rgba(255, 123, 104, .10);
    --on-bg: #F8F7F4;
    --on-surface: #FFFFFF;
    --on-card-surface: #262626;
    --on-card-shadow: 0 2px 5px light-dark(rgba(27, 46, 57, .025), rgba(0, 0, 0, .08)),
        0 8px 24px light-dark(rgba(27, 46, 57, .065), rgba(0, 0, 0, .14));
    --on-button-text: #F8F7F4;
}

.portal-profile-link { display: grid; grid-template-columns: 38px 1fr 16px; align-items: center; gap: 11px; min-height: 68px; margin-top: 10px; padding: 11px 15px; border: 0; box-shadow: var(--on-card-shadow); border-radius: 14px; color: var(--on-ink); text-decoration: none; background: light-dark(var(--on-surface), var(--on-card-surface)); }
.portal-profile-link strong { font-size: 13px; }
.portal-profile-link > span:last-child { color: var(--on-muted); font-size: 24px; }
.portal-profile-link:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 3px; }
.portal-theme-settings { min-width: 0; margin: 0; padding: 18px 15px 15px; border: 0; box-shadow: var(--on-card-shadow); border-radius: 16px; background: light-dark(var(--on-surface), var(--on-card-surface)); }
.portal-theme-settings legend { padding: 0 6px; font-size: 13px; font-weight: 650; }
.portal-theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.portal-theme-option { position: relative; min-width: 0; cursor: pointer; }
.portal-theme-option > input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.portal-theme-option__card { position: relative; display: flex; height: 142px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; padding: 18px 5px 12px; border: 1px solid var(--on-line); border-radius: 12px; background: var(--on-soft); transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.portal-theme-option__label { display: flex; min-height: 32px; align-items: center; justify-content: center; color: var(--on-muted); font-size: 13px; font-weight: 600; line-height: 1.35; text-align: center; word-break: keep-all; }
.portal-theme-option__check { position: absolute; top: 7px; right: 7px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: var(--on-accent); color: #FFFFFF; opacity: 0; transition: opacity .18s ease; }
.portal-theme-option__check svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portal-theme-option > input:checked + .portal-theme-option__card { border-color: var(--on-accent); background: var(--on-teal-soft); box-shadow: inset 0 0 0 1px var(--on-accent); }
.portal-theme-option > input:checked + .portal-theme-option__card .portal-theme-option__label { color: var(--on-ink); font-weight: 650; }
.portal-theme-option > input:checked + .portal-theme-option__card .portal-theme-option__check { opacity: 1; }
.portal-theme-option > input:focus-visible + .portal-theme-option__card { outline: 3px solid var(--on-accent); outline-offset: 3px; }
.portal-theme-preview { --theme-preview-ink: #CBD0D8; position: relative; display: block; flex: 0 0 65px; width: 48px; height: 65px; overflow: hidden; border: 1px solid #D9DDE3; border-radius: 8px; background: #FFFFFF; box-shadow: 0 3px 6px rgba(15,23,42,.08); }
.portal-theme-preview--dark { --theme-preview-ink: #606066; border-color: #48484D; background: #252528; }
.portal-theme-preview--system { border-color: #8B9199; background: linear-gradient(90deg, #FFFFFF 50%, #252528 50%); }
.portal-theme-preview__bar { position: absolute; top: 9px; left: 6px; width: 17px; height: 3px; border-radius: 2px; background: var(--theme-preview-ink); }
.portal-theme-preview__hero { position: absolute; top: 18px; right: 6px; left: 6px; height: 16px; border-radius: 3px; background: #009F89; }
.portal-theme-preview__lines { position: absolute; top: 40px; right: 6px; left: 6px; height: 3px; border-radius: 2px; background: var(--theme-preview-ink); }
.portal-theme-preview__lines::after { content: ""; position: absolute; top: 6px; width: 60%; height: 3px; border-radius: 2px; background: var(--theme-preview-ink); }
.portal-theme-preview__nav { position: absolute; right: 6px; bottom: 5px; left: 6px; display: flex; justify-content: space-between; }
.portal-theme-preview__nav i { width: 4px; height: 4px; border-radius: 50%; background: var(--theme-preview-ink); }
.portal-theme-preview__nav i:first-child { background: #009F89; }
.portal-theme-settings p { margin: 12px 0 0; color: var(--on-muted); font-size: 13px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .portal-theme-option__card, .portal-theme-option__check { transition: none; } }
.portal-contract-section { margin-bottom: 24px; }
.portal-contract-section h2 { margin: 0 0 10px; font-size: 17px; }
.portal-contract-section dl { margin: 0; padding: 0 15px; border: 0; box-shadow: var(--on-card-shadow); border-radius: 14px; background: light-dark(var(--on-surface), var(--on-card-surface)); }
.portal-contract-section dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; padding: 15px 0; font-size: 13px; line-height: 1.5; }
.portal-contract-section dl > div + div { border-top: 1px solid var(--on-line); }
.portal-contract-section dt { color: var(--on-muted); }
.portal-contract-section dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.portal-contract-note { margin: 0; padding: 15px; border-radius: 14px; background: var(--on-soft); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
* { box-sizing: border-box; }
html { background: var(--on-bg); font-size: 16px; }
html, body, html[data-portal-theme-scope] body * { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, html[data-portal-theme-scope] body *::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; color: var(--on-ink); font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif; font-size: 16px; background: var(--on-bg); }
@media (max-width: 599px) {
    html, body { background: var(--on-surface); }
}
small { font-size: 13px; }
/* Keep browser-default headings and emphasis within the portal weight limit. */
h1, h2, h3, h4, h5, h6, b, strong, th { font-weight: 650; }
button, input, select, textarea { font: inherit; }
.portal-select-dialog { width: min(480px, calc(100vw - 32px)); max-height: min(640px, 80dvh); padding: 0; overflow: hidden; border: 1px solid var(--on-line); border-radius: 20px; background: var(--on-surface); color: var(--on-ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.portal-select-dialog::backdrop { background: rgba(15,23,42,.48); }
.portal-select-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--on-line); }
.portal-select-dialog__head h2 { margin: 0; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.portal-select-dialog__head button { flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--on-soft); color: var(--on-muted); font-size: 28px; cursor: pointer; }
.portal-select-options { max-height: min(520px, calc(80dvh - 100px)); padding: 10px; overflow-y: auto; overscroll-behavior: contain; }
.portal-select-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 14px 16px; border: 0; border-radius: 12px; background: transparent; color: var(--on-ink); font-size: 16px; line-height: 1.6; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.portal-select-option + .portal-select-option { margin-top: 4px; }
.portal-select-option:hover { background: var(--on-soft); }
.portal-select-option[aria-selected="true"] { background: var(--on-teal-soft); color: var(--on-accent); font-weight: 650; }
.portal-select-option[aria-selected="true"]::after { content: '✓'; flex-shrink: 0; margin-left: auto; font-size: 20px; }
.portal-select-option:disabled { opacity: .45; cursor: default; }
.portal-select-option:focus-visible, .portal-select-dialog__head button:focus-visible { outline: 2px solid var(--on-accent); outline-offset: -2px; }
.portal-shell { width: min(100%, 480px); min-height: 100vh; margin: 0 auto; background: var(--on-surface); position: relative; padding: 0 20px calc(112px + env(safe-area-inset-bottom, 0px)); }
.portal-shell.is-plain { padding-bottom: 32px; }
.portal-header { height: 72px; display: flex; align-items: center; justify-content: space-between; view-transition-name: portal-header; }
.portal-header--home { height: 78px; }
.portal-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; color: var(--on-ink); text-decoration: none; }
.portal-brand__logo { display: block; line-height: 0; }
.portal-brand__logo img { display: block; width: 108px; height: auto; }
.portal-brand__context { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.portal-brand__context > i { display: block; flex: 0 0 14px; width: 14px; height: 2px; border-radius: 999px; background: var(--on-accent); }
.portal-brand__context > span { display: flex; align-items: baseline; }
.portal-brand__context strong { display: block; color: var(--on-ink); font-size: 13px; font-weight: 650; line-height: 1.2; }
.portal-brand__context small { display: inline; margin-left: 5px; color: var(--on-muted); font-size: 13px; font-weight: 500; line-height: 1.2; }
.portal-brand__context small::before { content: "·"; margin-right: 5px; }
.portal-brand__tagline { display: block; margin-left: 6px; color: var(--on-muted); font-size: 13px; font-weight: 500; line-height: 1.3; }
.portal-brand--compact .portal-brand__logo img { width: 92px; }
.portal-brand--compact .portal-brand__context > i { flex-basis: 12px; width: 12px; }
.portal-brand--home { min-width: 0; flex-direction: row; align-items: center; gap: 12px; }
.portal-brand--home .portal-brand__logo img { width: 92px; }
.portal-brand--home .portal-brand__context { min-width: 0; margin: 0; padding-left: 12px; border-left: 1px solid var(--on-line); }
.portal-brand--home .portal-brand__context > span { flex-direction: column; align-items: flex-start; gap: 3px; }
.portal-brand--home .portal-brand__context strong { overflow: hidden; max-width: 170px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.portal-brand--home .portal-brand__context small { margin: 0; font-size: 10px; }
.portal-brand--home .portal-brand__context small::before { display: none; content: none; }
.portal-brand--large { margin-bottom: 34px; gap: 7px; }
.portal-brand--large .portal-brand__logo img { width: 210px; }
.portal-icon-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--on-line); border-radius: 50%; background: var(--on-surface); color: var(--on-ink); padding: 0; }
.portal-header--home .portal-icon-button { position: relative; text-decoration: none; }
.portal-header__count { position: absolute; top: -6px; right: -9px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 999px; background: #eb584d; color: #fff; font-size: 13px; font-weight: 650; line-height: 17px; text-align: center; box-sizing: content-box; }
.portal-header__count[hidden] { display: none; }
.portal-icon-button svg { width: 21px; height: 21px; }
.portal-icon-button.is-staff { color: var(--on-muted); font-size: 13px; font-weight: 650; text-decoration: none; }
.portal-page-header { display: flex; min-height: 100px; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 24px 0 8px; view-transition-name: portal-header; }
.portal-page-header h1 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 650; letter-spacing: -.045em; }
.portal-page-header > a { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 10px; background: var(--on-navy); color: #FFFFFF; font-size: 13px; font-weight: 600; text-decoration: none; }
.portal-page-header > .portal-page-header__back { display: grid; flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px; place-items: center; padding: 0; border: 1px solid var(--on-line); border-radius: 50%; background: var(--on-surface); color: var(--on-ink); }
.portal-page-header__back svg { width: 21px; height: 21px; }
.portal-child-header { position: relative; z-index: 10; display: grid; height: 64px; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center; view-transition-name: portal-header; }
.portal-child-header > strong { overflow: hidden; padding: 0 8px; font-size: 16px; font-weight: 650; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.portal-child-header__back { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; color: var(--on-ink); }
.portal-child-header__back svg { width: 24px; height: 24px; }
.portal-child-header__spacer { display: block; width: 40px; height: 40px; }
.portal-main { padding-top: 0; view-transition-name: portal-content; animation: portal-page-enter .22s cubic-bezier(.22,1,.36,1) both; }
.portal-home-footer { margin-top: 44px; padding-top: 28px; padding-bottom: 8px; border-top: 1px solid var(--on-line); color: var(--on-muted); text-align: left; }
.portal-home-footer__logo { display: block; width: 76px; line-height: 0; }
.portal-home-footer__logo img { display: block; width: 100%; height: auto; }
.portal-home-footer__tagline { margin: 16px 0 0; font-size: clamp(10px, 3.1vw, 13px); line-height: 1.6; white-space: nowrap; }
.portal-home-footer__tagline strong { color: var(--on-ink); font-size: inherit; font-weight: 600; letter-spacing: -.02em; }
.portal-home-footer__credits { display: grid; gap: 5px; margin-top: 22px; text-align: left; }
.portal-home-footer__credits small { font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.portal-home-footer__signature { display: inline-block; width: 38px; height: auto; margin-left: 3px; color: var(--on-ink); vertical-align: -2px; }
.portal-home-footer__signature-dot { fill: var(--on-accent); }
.portal-home-footer__policy { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; color: var(--on-muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.portal-home-footer__policy:hover { color: var(--on-ink); }
.portal-home-footer__policy + .portal-home-footer__credits { margin-top: 8px; }
.portal-home-footer__links { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 10px; }
.portal-home-footer__links .portal-home-footer__policy { margin-top: 0; }
.portal-home-footer__links + .portal-home-footer__credits { margin-top: 8px; }
.portal-home-footer__policy:focus-visible, .portal-privacy a:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 4px; border-radius: 3px; }
.portal-privacy { padding-top: 24px; padding-bottom: 12px; color: var(--on-ink); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; word-break: normal; }
.portal-privacy__home { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 16px; color: var(--on-muted); font-size: 12px; text-decoration: none; }
.portal-privacy__home picture { flex: 0 0 76px; line-height: 0; }
.portal-privacy__home img { display: block; width: 76px; height: auto; }
.portal-privacy__header h1 { margin: 24px 0 8px; font-size: clamp(23px, 6vw, 28px); font-weight: 650; line-height: 1.35; letter-spacing: -.04em; }
.portal-privacy__header .portal-privacy__date { margin: 0 0 24px; color: var(--on-muted); font-size: 11px; }
.portal-privacy__date time { margin-left: 7px; }
.portal-privacy p { margin: 12px 0 0; }
.portal-privacy__section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--on-line); }
.portal-privacy__section h2 { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.55; letter-spacing: -.02em; }
.portal-privacy__details { margin: 16px 0 0; padding: 0 16px; border: 0; box-shadow: var(--on-card-shadow); border-radius: 12px; background: light-dark(var(--on-surface), var(--on-card-surface)); }
.portal-privacy__details > div { padding: 16px 0; }
.portal-privacy__details > div + div { border-top: 1px solid var(--on-line); }
.portal-privacy__details dt { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.portal-privacy__details dd { margin: 4px 0 0; color: var(--on-muted); font-size: 12px; }
.portal-privacy__details dd > span { display: block; margin-top: 8px; color: var(--on-ink); font-size: 11px; font-weight: 600; }
.portal-privacy a:not(.portal-privacy__home) { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.portal-privacy .portal-privacy__end { margin-top: 32px; color: var(--on-muted); font-size: 10px; }
.portal-page-description { margin: 0 0 24px; color: var(--on-muted); font-size: 13px; line-height: 1.6; }
.portal-flash, .portal-error { padding: 12px; margin: 0 0 16px; border-radius: 6px; font-size: 14px; }
.portal-flash { position: fixed; z-index: 30; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; width: min(calc(100% - 40px), 440px); margin: 0; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: #3A3A3C; color: #FFFFFF; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; pointer-events: none; animation: portal-toast 4.2s cubic-bezier(.22,1,.36,1) forwards; }
.portal-shell:not(.is-plain) .portal-flash { bottom: calc(94px + env(safe-area-inset-bottom)); }
.portal-error { background: var(--on-important); color: #C24134; }
.portal-login { padding-top: 12vh; }
.portal-login h1, .portal-setup h1 { font-size: 30px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.04em; }
.portal-login > p, .portal-setup > p { color: var(--on-muted); margin: 0 0 30px; line-height: 1.6; }
.portal-field { display: block; margin: 0 0 20px; }
.portal-field span { display: block; margin: 0 0 9px 2px; color: var(--on-ink); font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.portal-field input, .portal-field select, .portal-field textarea { width: 100%; min-height: 56px; border: 1px solid transparent; border-radius: 7px; outline: 0; padding: 0 16px; background: var(--on-soft); color: var(--on-ink); font-size: 16px; font-weight: 600; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.portal-field textarea { min-height: 132px; padding-top: 16px; resize: vertical; }
.portal-field input::placeholder, .portal-field textarea::placeholder { color: var(--on-muted); font-weight: 500; opacity: .75; }
.portal-field input:hover, .portal-field select:hover, .portal-field textarea:hover { border-color: var(--on-line); }
.portal-field input:focus, .portal-field select:focus, .portal-field textarea:focus { border-color: var(--on-accent); background: var(--on-surface); box-shadow: 0 0 0 4px rgba(0, 159, 137, .18); }
.portal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--on-navy); color: var(--on-button-text); font-weight: 600; text-decoration: none; box-shadow: 0 7px 18px rgba(15, 23, 42, .18); transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
.portal-button:hover { background: #172033; box-shadow: 0 9px 22px rgba(15, 23, 42, .24); }
.portal-button:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(15, 23, 42, .18); }
.portal-button:focus-visible { outline: 3px solid rgba(0, 159, 137, .42); outline-offset: 3px; }
.portal-button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; transform: none; }
.portal-button.is-block { width: 100%; }
.portal-button.is-coral { background: var(--on-coral); color: #FFFFFF; }
.portal-button.is-light { background: var(--on-soft); color: var(--on-ink); box-shadow: none; }
.portal-translation-actions { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin: 10px 0 16px; }
.portal-translation-actions .portal-button { min-height: 38px; padding: 0 13px; font-size: 13px; }
.portal-translation-actions .portal-button[hidden] { display: none; }
.portal-translation-actions [role="status"] { color: var(--on-muted); font-size: 13px; }
.portal-translation-attribution { flex-basis: 100%; color: var(--on-muted); font-size: 12px; }
.portal-language-form { display: flex; align-items: end; gap: 10px; margin: 0 0 20px; }
.portal-language-form .portal-field { flex: 1; min-width: 0; margin: 0; }
.portal-language-form .portal-field small { color: var(--on-muted); font-size: inherit; }
.portal-language-form .portal-button { flex-shrink: 0; }
.portal-feed-start { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 18px; border: 1px solid transparent; border-radius: 16px; background: var(--on-teal-soft); color: light-dark(#087D70, #86DFCE); font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.portal-feed-start > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.portal-feed-start > svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portal-feed-start:hover { background: color-mix(in srgb, var(--on-accent) 16%, var(--on-surface)); }
.portal-feed-start:active { background: color-mix(in srgb, var(--on-accent) 22%, var(--on-surface)); }
.portal-feed-start:focus-visible { outline: 3px solid var(--on-accent); outline-offset: 3px; }
.portal-check { display: flex; align-items: flex-start; gap: 11px; margin: 2px 2px 26px; cursor: pointer; }
.portal-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--on-accent); }
.portal-check > span { min-width: 0; }
.portal-check strong { display: block; font-size: 14px; font-weight: 650; }
.portal-check small { display: block; margin-top: 4px; color: var(--on-muted); font-size: 13px; line-height: 1.45; }
.portal-staff-home { padding-top: 30px; }
.portal-staff-home .portal-brand { margin-bottom: 64px; }
.portal-staff-home h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.3; letter-spacing: -.045em; }
.portal-staff-home > p { margin: 0 0 36px; color: var(--on-muted); line-height: 1.6; }
.portal-staff-status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding: 18px 0; border-top: 1px solid var(--on-line); border-bottom: 1px solid var(--on-line); }
.portal-staff-status span { color: var(--on-muted); font-size: 13px; }
.portal-staff-status strong { font-size: 14px; font-weight: 650; }
.portal-staff-greeting { padding-top: 16px; }
.portal-building-filter { display: flex; gap: 7px; margin: 4px -2px 18px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.portal-building-filter::-webkit-scrollbar { display: none; }
.portal-building-filter a { flex: 0 0 auto; min-width: 62px; padding: 9px 13px; border-radius: 7px; background: var(--on-soft); color: var(--on-muted); font-size: 13px; text-align: center; text-decoration: none; }
.portal-building-filter a.is-active { background: var(--on-navy); color: #FFFFFF; font-weight: 650; }
.portal-building-filter--users { margin-top: 24px; }
.portal-building-filter--pill { gap: 8px; }
.portal-building-filter--pill a { min-width: 0; padding: 9px 12px; border-radius: 999px; color: var(--on-ink); }
.portal-admin-metrics { display: grid; grid-template-columns: repeat(2, 1fr); margin-bottom: 10px; border-top: 1px solid var(--on-line); border-left: 1px solid var(--on-line); }
.portal-admin-metrics > div, .portal-admin-metrics > a { min-height: 84px; padding: 15px; border-right: 1px solid var(--on-line); border-bottom: 1px solid var(--on-line); }
.portal-admin-metrics > a { color: var(--on-ink); text-decoration: none; }
.portal-admin-metrics > a small { display: block; margin-top: 8px; color: var(--on-muted); font-size: 12px; }
.portal-admin-metrics > a:focus-visible { outline: 2px solid var(--on-coral); outline-offset: -2px; }
.portal-admin-metrics span { display: block; color: var(--on-muted); font-size: 13px; }
.portal-admin-metrics strong { display: block; margin-top: 7px; font-size: 23px; font-weight: 650; letter-spacing: -.03em; }
.portal-admin-metrics .is-alert strong { color: var(--on-coral); }
.portal-building-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 24px; }
.portal-building-previews a { display: block; padding: 15px 6px; border-radius: 10px; background: var(--on-soft); color: var(--on-ink); text-align: center; text-decoration: none; }
.portal-building-previews strong { display: block; font-size: 14px; }
.portal-building-previews span { display: block; margin-top: 7px; color: var(--on-muted); font-size: 12px; }
.portal-building-previews a:focus-visible { outline: 2px solid var(--on-coral); outline-offset: 2px; }
.portal-user-chat { flex: 0 0 auto; padding: 9px 14px; border: 0; border-radius: 8px; background: var(--on-navy); color: #FFFFFF; font-size: 13px; cursor: pointer; }
.portal-user-chat:disabled { background: var(--on-soft); color: var(--on-muted); cursor: default; opacity: .65; }
.portal-user-chat--icon { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border-radius: 50%; background: var(--on-teal-soft); color: var(--on-accent); }
.portal-user-chat--icon svg { display: block; width: 23px; height: 23px; }
.portal-user-row__identity { display: flex; flex: 1; min-width: 0; gap: 12px; align-items: center; color: var(--on-ink); text-decoration: none; }
.portal-user-row__identity:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 4px; border-radius: 8px; }
.portal-user-avatar { position: relative; display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--on-soft); color: var(--on-muted); }
.portal-user-avatar > svg { width: 27px; height: 27px; opacity: .65; }
.portal-user-avatar > img, .portal-chat-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portal-user-avatar > img[hidden], .portal-chat-avatar > img[hidden] { display: none; }
.portal-user-avatar--large { flex-basis: 72px; width: 72px; height: 72px; }
.portal-user-avatar--large > svg { width: 38px; height: 38px; }
.portal-user-profile { display: flex; gap: 14px; align-items: center; margin: 20px 0 24px; }
.portal-user-profile__identity { flex: 1; min-width: 0; }
.portal-user-profile h1 { margin: 0; font-size: 23px; overflow-wrap: anywhere; }
.portal-user-profile p { margin: 7px 0 0; color: var(--on-muted); font-size: 13px; }
.portal-user-facts { margin: 0; border-top: 1px solid var(--on-line); }
.portal-user-facts > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--on-line); font-size: 14px; }
.portal-user-facts dt { color: var(--on-muted); }
.portal-user-facts dd { margin: 0; color: var(--on-ink); overflow-wrap: anywhere; }
.portal-user-help { margin: 12px 2px 20px; font-size: 12px; line-height: 1.65; color: var(--on-muted); }
.portal-user-activity p { margin: 7px 0 0; color: var(--on-ink); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.portal-push-test-form { display: flex; gap: 10px; align-items: center; margin: 18px 0; }
.portal-push-test-form select { flex: 1; min-width: 0; padding: 10px; border: 1px solid var(--on-line); border-radius: 8px; background: var(--on-soft); color: var(--on-ink); font: inherit; }
.portal-push-test-actions { display: flex; gap: 12px; align-items: center; margin: 16px 0; }
.portal-building-status { border-top: 1px solid var(--on-line); }
.portal-building-status > a { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 2px; border-bottom: 1px solid var(--on-line); color: var(--on-ink); text-decoration: none; }
.portal-building-status strong { display: block; font-size: 14px; font-weight: 650; }
.portal-building-status small { display: block; margin-top: 4px; color: var(--on-muted); font-size: 13px; }
.portal-building-status > a > span:last-child { color: var(--on-muted); font-size: 13px; }
.portal-building-status > a > span.is-alert { color: var(--on-coral); font-weight: 650; }
.portal-preview-banner { position: relative; margin: 8px 0 24px; padding: 15px 94px 15px 15px; border-radius: 7px; background: var(--on-soft); }
.portal-preview-banner span { display: block; color: var(--on-accent); font-size: 13px; font-weight: 650; }
.portal-preview-banner strong { display: block; margin-top: 5px; font-size: 13px; font-weight: 650; }
.portal-preview-banner a { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); color: var(--on-accent); font-size: 13px; text-decoration: none; }
.portal-staff-setting { margin-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--on-line); }
.portal-building-quick { border-top: 1px solid var(--on-line); }
.portal-building-quick a { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; border-bottom: 1px solid var(--on-line); color: var(--on-ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.portal-building-quick span { color: var(--on-muted); font-size: 20px; font-weight: 400; }
.portal-greeting { padding: 10px 0 20px; }
.portal-greeting h1 { font-size: 27px; line-height: 1.3; margin: 0; letter-spacing: -.045em; }
.portal-greeting p { font-size: 14px; color: var(--on-muted); margin: 7px 0 0; }
.portal-greeting--home { padding: 12px 0 24px; }
.portal-greeting--home p { margin: 0 0 2px; color: var(--on-muted); font-size: 14px; }
.portal-greeting--home h1 { font-size: 29px; }
.portal-greeting--home > span { display: block; margin-top: 7px; color: var(--on-muted); font-size: 13px; }
.portal-hero-carousel { position: relative; overflow: hidden; border-radius: 16px; box-shadow: 0 14px 32px rgba(15,23,42,.18); }
.portal-hero-carousel[hidden], .portal-hero-carousel__dots[hidden] { display: none; }
.portal-hero-carousel__track { display: flex; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.portal-hero-carousel__track::-webkit-scrollbar { display: none; }
.portal-hero { position: relative; display: flex; flex: 0 0 100%; min-height: 184px; overflow: hidden; scroll-snap-align: start; background: linear-gradient(145deg, #0F172A 0%, #17243A 100%); color: #F8F7F4; text-decoration: none; isolation: isolate; }
.portal-hero--important { background: linear-gradient(145deg, #522523, #8D3C35); }
.portal-hero--general { background: linear-gradient(145deg, #0F172A, #26344E); }
.portal-hero--facility { background: linear-gradient(145deg, #063E3A, #087F6F); }
.portal-hero--inspection { background: linear-gradient(145deg, #344518, #667A28); }
.portal-hero--construction { background: linear-gradient(145deg, #51311F, #9A5A2E); }
.portal-hero__image { position: absolute; z-index: -2; inset: 0; background-position: center; background-size: cover; }
.portal-hero.has-image::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,.94) 0%, rgba(15,23,42,.76) 58%, rgba(15,23,42,.2) 100%); }
.portal-hero__content { position: relative; z-index: 2; display: flex; width: 82%; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 22px 22px 27px; }
.portal-hero__badge { display: inline-flex; align-items: center; min-height: 25px; margin-bottom: 12px; padding: 0 9px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.portal-hero strong { display: -webkit-box; overflow: hidden; font-size: 21px; line-height: 1.32; letter-spacing: -.035em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.portal-hero small { margin-top: 13px; color: rgba(248,247,244,.68); font-size: 13px; }
.portal-hero__arrow { position: absolute; z-index: 3; right: 17px; bottom: 17px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: rgba(248,247,244,.94); color: var(--on-navy); font-size: 18px; }
.portal-hero-carousel__dots { position: absolute; z-index: 4; right: 20px; bottom: 13px; left: 20px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.portal-hero-carousel__dots button { width: 6px; height: 6px; border: 0; border-radius: 999px; padding: 0; background: rgba(255,255,255,.42); cursor: pointer; pointer-events: auto; transition: width .2s ease, background-color .2s ease; }
.portal-hero-carousel__dots button.is-active { width: 18px; background: #FFFFFF; }
.portal-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.portal-tile { min-height: 74px; padding: 13px; border-radius: 5px; background: var(--on-teal-soft); text-decoration: none; color: var(--on-ink); display: flex; align-items: center; gap: 10px; }
.portal-tile__icon { font-size: 22px; color: var(--on-accent); }
.portal-tile strong { display: block; font-size: 15px; font-weight: 650; }
.portal-tile small { display: block; color: var(--on-muted); margin-top: 3px; }
.portal-section-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 8px; }
.portal-section-head--spacious { margin-top: 30px; margin-bottom: 12px; }
.portal-section-head h2 { font-size: 17px; margin: 0; }
.portal-section-head a { font-size: 13px; color: var(--on-muted); text-decoration: none; }
.portal-section-head a span { font-size: 17px; vertical-align: -1px; }
.portal-quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.portal-quick { display: flex; min-height: 92px; align-items: center; gap: 12px; padding: 14px; border: 1px solid transparent; border-radius: 12px; color: var(--on-ink); text-decoration: none; }
.portal-quick__icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: rgba(255,255,255,.72); font-size: 21px; box-shadow: inset 0 0 0 1px rgba(15,23,42,.04); }
.portal-quick__icon--chat { position: relative; }
.portal-quick__dot { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--on-coral); }
.portal-quick strong { display: block; font-size: 15px; font-weight: 650; }
.portal-quick small { display: block; margin-top: 4px; color: var(--on-muted); font-size: 10px; line-height: 1.35; }
.portal-quick--teal { background: rgba(0,159,137,.12); }
.portal-quick--navy { background: rgba(15,23,42,.07); }
.portal-quick--coral { background: rgba(255,123,104,.11); }
.portal-quick--lime { background: rgba(199,255,88,.18); }
.portal-quick.is-disabled { opacity: .7; }
.portal-quick-grid--home button.portal-quick { font: inherit; cursor: pointer; }
.portal-quick-grid--home button.portal-quick:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 3px; }
.portal-quick--guide.is-disabled .portal-quick__icon { filter: grayscale(1); }
.portal-quick-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.portal-quick-grid--home .portal-quick--notice { --quick-circle-bg: #B9635E; }
.portal-quick-grid--home .portal-quick--facility { --quick-circle-bg: #637FA3; }
.portal-quick-grid--home .portal-quick--inquiry { --quick-circle-bg: #438F85; }
.portal-quick-grid--home .portal-quick--guide { --quick-circle-bg: #84974F; }
.portal-quick-grid--home .portal-quick { min-width: 0; min-height: 0; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 4px 0; border: 0; border-radius: 12px; background: transparent; text-align: center; -webkit-tap-highlight-color: transparent; }
.portal-quick-grid--home .portal-quick__icon { position: relative; flex: 0 0 auto; width: 56px; max-width: 100%; height: auto; aspect-ratio: 1; border: 0; border-radius: 50%; color: #F8F7F4; background: var(--quick-circle-bg); box-shadow: none; transition: filter .15s ease; }
.portal-quick-grid--home .portal-quick__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-quick-grid--home .portal-quick strong { max-width: 100%; font-size: 12px; font-weight: 600; line-height: 1.4; word-break: keep-all; }
@media (hover: hover) { .portal-quick-grid--home a.portal-quick:hover .portal-quick__icon { filter: brightness(.98); } }
.portal-quick-grid--home a.portal-quick:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 3px; }
.portal-quick-grid--home a.portal-quick:active .portal-quick__icon { filter: brightness(.96); }
.portal-quick-grid--home .portal-quick__dot { top: -3px; left: -3px; right: auto; background: #B9635E; box-shadow: 0 0 0 4px rgba(185,99,94,.14); }
@media (prefers-reduced-motion: reduce) { .portal-quick-grid--home .portal-quick__icon { transition: none; } }
.portal-facility-group { margin-bottom: 18px; overflow: hidden; border: 0; box-shadow: var(--on-card-shadow); border-radius: 16px; background: light-dark(var(--on-surface), var(--on-card-surface)); }
.portal-facility-group > header { display: flex; align-items: center; gap: 13px; padding: 18px 17px 15px; }
.portal-facility-group__icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: var(--on-soft); font-size: 23px; }
.portal-facility-group--hvac .portal-facility-group__icon { background: rgba(0,159,137,.12); }
.portal-facility-group--cooktop .portal-facility-group__icon { background: rgba(255,123,104,.12); }
.portal-facility-group h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.portal-facility-group header p { margin: 5px 0 0; color: var(--on-muted); font-size: 13px; line-height: 1.45; }
.portal-facility-list { }
.portal-facility-list > a { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 17px; color: var(--on-ink); text-decoration: none; }
.portal-facility-list > a + a { border-top: 1px solid var(--on-line); }
.portal-facility-list strong, .portal-facility-list small { display: block; }
.portal-facility-list strong { font-size: 14px; font-weight: 650; }
.portal-facility-list small { margin-top: 4px; color: var(--on-muted); font-size: 13px; }
.portal-facility-list em { flex: 0 0 auto; color: var(--on-accent); font-size: 13px; font-style: normal; font-weight: 600; }
.portal-facility-list em b { margin-left: 3px; font-size: 18px; font-weight: 400; vertical-align: -1px; }
.portal-facility-list > a:active { background: var(--on-soft); }
.portal-facility-empty { margin: 0; padding: 22px 17px; color: var(--on-muted); font-size: 13px; }
.portal-facility-note { margin: 2px 3px 20px; color: var(--on-muted); font-size: 13px; line-height: 1.55; }
.portal-important { display: block; background: var(--on-important); border-left: 4px solid var(--on-coral); padding: 14px; border-radius: 5px; text-decoration: none; color: var(--on-ink); }
.portal-important .label { display: inline-block; color: var(--on-navy); background: var(--on-coral); font-size: 13px; font-weight: 650; padding: 3px 7px; border-radius: 999px; margin-bottom: 8px; }
.portal-important strong { display: block; }
.portal-important small { display: block; color: var(--on-muted); margin-top: 5px; }
.portal-list { border-top: 1px solid var(--on-line); }
.portal-list-item { display: flex; width: 100%; gap: 12px; align-items: center; padding: 16px 2px; border: 0; border-bottom: 1px solid var(--on-line); background: transparent; text-align: left; text-decoration: none; color: var(--on-ink); }
.portal-list-item__body { min-width: 0; flex: 1; }
.portal-onboarding-dot { flex: 0 0 8px; width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: #B9635E; box-shadow: 0 0 0 4px rgba(185,99,94,.14); }
.portal-list-item strong { display: block; overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.portal-list-item small { display: block; color: var(--on-muted); margin-top: 6px; font-size: 13px; }
.portal-list--notices .portal-list-item { min-height: 78px; gap: 14px; padding: 17px 4px; }
.portal-list--notices .portal-list-item strong { font-size: 15px; line-height: 1.35; }
.portal-list--notices .portal-list-item .portal-notice-list-title { display: flex; align-items: center; gap: 6px; }
.portal-notice-list-title__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-notice-unread-dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #B9635E; }
.portal-list--notices .portal-list-item small { margin-top: 7px; font-size: 13px; }
.portal-list-item__marker { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--on-teal-soft); color: #008E7A; font-size: 13px; font-weight: 650; }
.portal-list--notifications .portal-list-item__marker { background: var(--notification-marker-bg, #EEF1F5); color: var(--notification-marker-ink, #526174); }
.portal-list--notifications .portal-list-item__marker svg { display: block; width: 20px; height: 20px; }
.portal-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.portal-notification-marker--notice { --notification-marker-bg: #EAF1FF; --notification-marker-ink: #3563B8; }
.portal-notification-marker--inquiry { --notification-marker-bg: #FFF0DF; --notification-marker-ink: #A65C16; }
.portal-notification-marker--chat { --notification-marker-bg: #E0F5EF; --notification-marker-ink: #087D68; }
.portal-notification-marker--transfer { --notification-marker-bg: #F1EAFE; --notification-marker-ink: #7950B5; }
@media (prefers-color-scheme: dark) {
    :where(:root:not([data-portal-theme])) .portal-list--notifications .portal-list-item__marker { --notification-marker-bg: #2B3442; --notification-marker-ink: #BBC6D6; }
    :where(:root:not([data-portal-theme])) .portal-list--notifications .portal-notification-marker--notice { --notification-marker-bg: #243A5A; --notification-marker-ink: #A8C8FF; }
    :where(:root:not([data-portal-theme])) .portal-list--notifications .portal-notification-marker--inquiry { --notification-marker-bg: #493421; --notification-marker-ink: #F5C18B; }
    :where(:root:not([data-portal-theme])) .portal-list--notifications .portal-notification-marker--chat { --notification-marker-bg: #1C4038; --notification-marker-ink: #8EDBC4; }
    :where(:root:not([data-portal-theme])) .portal-list--notifications .portal-notification-marker--transfer { --notification-marker-bg: #3B2E50; --notification-marker-ink: #D0B4F5; }

}
@media all {
    :where(:root[data-portal-theme="dark"]) .portal-list--notifications .portal-list-item__marker { --notification-marker-bg: #2B3442; --notification-marker-ink: #BBC6D6; }
    :where(:root[data-portal-theme="dark"]) .portal-list--notifications .portal-notification-marker--notice { --notification-marker-bg: #243A5A; --notification-marker-ink: #A8C8FF; }
    :where(:root[data-portal-theme="dark"]) .portal-list--notifications .portal-notification-marker--inquiry { --notification-marker-bg: #493421; --notification-marker-ink: #F5C18B; }
    :where(:root[data-portal-theme="dark"]) .portal-list--notifications .portal-notification-marker--chat { --notification-marker-bg: #1C4038; --notification-marker-ink: #8EDBC4; }
    :where(:root[data-portal-theme="dark"]) .portal-list--notifications .portal-notification-marker--transfer { --notification-marker-bg: #3B2E50; --notification-marker-ink: #D0B4F5; }

}
.portal-list-item__chevron { color: var(--on-disabled); font-size: 20px; font-weight: 400; }
.portal-list-item.is-read { opacity: .62; }
.portal-notification-clear { margin: -4px 0 4px; text-align: right; }
.portal-notification-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 16px; margin: -4px 0 4px; }
.portal-notification-clear button, .portal-notification-actions button { border: 0; padding: 8px 2px; background: transparent; color: var(--on-muted); font-size: 13px; font-weight: 650; text-decoration: underline; cursor: pointer; }
.portal-notification-actions button { min-height: 44px; }
.portal-notification-actions button:disabled { color: var(--on-disabled); text-decoration: none; cursor: default; }
.portal-list-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-accent); }
.portal-list-item.is-read .dot { background: var(--on-line); }
.portal-badge { font-size: 13px; font-weight: 650; color: var(--on-accent); white-space: nowrap; }
.portal-badge.is-important { color: var(--on-coral); }
.portal-category { display: inline-flex; flex: 0 0 auto; min-height: 24px; align-items: center; padding: 0 8px; border-radius: 10px; font-size: 13px; font-weight: 650; line-height: 1; white-space: nowrap; }
.portal-category--list { min-width: 48px; min-height: 30px; justify-content: center; padding: 0 9px; border-radius: 999px; font-size: 12px; }
.portal-category--important { background: rgba(255,123,104,.18); color: #D85D4C; }
.portal-category--general { background: rgba(15,23,42,.09); color: #475569; }
.portal-category--facility { background: rgba(0,159,137,.15); color: #007D6C; }
.portal-category--inspection { background: rgba(199,255,88,.28); color: #587000; }
.portal-category--construction { background: rgba(224,133,67,.18); color: #A85A22; }
.portal-bottom { position: fixed; z-index: 12; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 24px), 456px); height: 70px; overflow: hidden; border: 1px solid rgba(255,255,255,.92); outline: 1px solid rgba(15,23,42,.08); border-radius: 26px; background: linear-gradient(145deg, rgba(255,255,255,.86) 0%, rgba(246,251,250,.66) 52%, rgba(229,242,239,.58) 100%); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px; box-shadow: inset 0 2px 1px rgba(255,255,255,.98), inset 0 -2px 3px rgba(15,23,42,.10), 0 3px 7px rgba(15,23,42,.10), 0 18px 38px rgba(15,23,42,.18); -webkit-backdrop-filter: blur(24px) saturate(165%); backdrop-filter: blur(24px) saturate(165%); view-transition-name: portal-bottom; }
.portal-bottom--resident, .portal-bottom--staff { grid-template-columns: repeat(5, 1fr); }
:root[data-portal-platform="android"][data-portal-theme="light"] .portal-bottom { box-shadow: inset 0 2px 1px rgba(255,255,255,.98), inset 0 -1px 2px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.06); }
.portal-bottom::before { content: ""; position: absolute; top: 1px; right: 14px; left: 14px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(255,255,255,1) 24%, rgba(255,255,255,.98) 66%, transparent); filter: blur(.2px); pointer-events: none; }
.portal-bottom::after { content: ""; position: absolute; top: -30px; left: 5%; width: 62%; height: 58px; border-radius: 50%; background: rgba(255,255,255,.48); filter: blur(15px); pointer-events: none; }
.portal-bottom a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; border-radius: 19px; color: #737780; font-size: 11px; font-weight: 500; text-decoration: none; isolation: isolate; transition: color .18s ease, transform .18s ease; }
.portal-bottom a::before { content: ""; position: absolute; z-index: -1; inset: 2px 5px; border: 1px solid transparent; border-radius: 17px; background: transparent; box-shadow: none; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.portal-bottom a.is-active { color: var(--on-navy); font-size: 12px; font-weight: 650; }
.portal-bottom a.is-active::before { border-color: rgba(255,255,255,.96); outline: 1px solid rgba(15,23,42,.055); background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(239,247,245,.70)); box-shadow: inset 0 2px 1px rgba(255,255,255,1), inset 0 -2px 3px rgba(15,23,42,.09), 0 3px 6px rgba(15,23,42,.10), 0 8px 18px rgba(15,23,42,.11); }
.portal-bottom a.is-active .portal-bottom__icon { color: #009F89; }
.portal-bottom a:active { transform: scale(.96); }
.portal-bottom__icon { position: relative; display: grid; width: 24px; height: 24px; place-items: center; }
.portal-bottom__icon svg { width: 23px; height: 23px; }
.portal-bottom__dot { position: absolute; top: -1px; right: -5px; width: 9px; height: 9px; border-radius: 50%; background: #eb584d; box-sizing: content-box; }
.portal-bottom__count { position: absolute; top: -8px; right: -15px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 999px; background: #eb584d; color: #fff; font-size: 13px; font-weight: 650; line-height: 17px; text-align: center; box-sizing: content-box; }
.portal-bottom__dot[hidden], .portal-bottom__count[hidden] { display: none; }
.portal-article h1 { flex: 1; min-width: 0; font-size: 26px; line-height: 1.35; margin: 12px 0 8px; }
.portal-article__meta { display: flex; align-items: center; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--on-line); color: var(--on-muted); font-size: 13px; }
.portal-article__meta span::after { margin-left: 8px; color: var(--on-line); content: "·"; }
.portal-article__meta time { display: inline; color: inherit; font-size: inherit; }
.portal-article-menu { position: relative; flex: 0 0 auto; margin-top: 5px; }
.portal-article-menu--header { justify-self: end; margin-top: 0; }
.portal-article-menu summary { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; color: var(--on-muted); font-size: 16px; font-weight: 650; letter-spacing: 2px; list-style: none; cursor: pointer; }
.portal-article-menu summary::-webkit-details-marker { display: none; }
.portal-article-menu[open] summary { background: var(--on-soft); color: var(--on-ink); }
.portal-page-header--users, .portal-page-header--actions { position: relative; z-index: 10; }
.portal-user-menu { flex: 0 0 40px; }
.portal-user-menu > summary { width: 40px; height: 40px; border: 1px solid var(--on-line); border-radius: 50%; background: var(--on-surface); color: var(--on-ink); letter-spacing: 0; }
.portal-user-menu > summary svg { display: block; width: 21px; height: 21px; }
.portal-user-menu > summary:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 3px; }
.portal-article-menu.portal-user-menu > div { top: 48px; width: 248px; }
.portal-article-menu > div { position: absolute; z-index: 11; top: 46px; right: 0; width: 112px; overflow: hidden; border: 1px solid var(--on-line); border-radius: 11px; background: var(--on-surface); box-shadow: 0 12px 28px rgba(15,23,42,.16); }
.portal-article-menu a, .portal-article-menu button { display: flex; width: 100%; min-height: 44px; align-items: center; border: 0; padding: 0 14px; background: transparent; color: var(--on-ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.portal-article-menu form { border-top: 1px solid var(--on-line); }
.portal-article-menu form button { color: var(--on-coral); }
.portal-article__body { font-size: 16px; line-height: 1.8; padding: 8px 0 20px; }
.portal-article__body img { display: block; max-width: 100%; height: auto; margin: 16px auto; border-radius: 10px; }
.portal-notice-summary { margin: 16px 0 8px; padding: 5px 16px; border-radius: 13px; background: var(--on-soft); }
.portal-notice-summary__item { display: grid; grid-template-columns: 28px minmax(72px,auto) minmax(0,1fr); align-items: start; column-gap: 10px; padding: 13px 0; }
.portal-notice-summary__item + .portal-notice-summary__item { border-top: 1px solid var(--on-line); }
.portal-notice-summary__icon { display: grid; width: 24px; height: 24px; place-items: center; color: var(--on-ink); }
.portal-notice-summary__icon svg { width: 21px; height: 21px; }
.portal-notice-summary__item strong { padding-top: 2px; font-size: 13px; font-weight: 650; line-height: 1.55; }
.portal-notice-summary__item p { min-width: 0; margin: 0; padding-top: 2px; color: var(--on-muted); font-size: 13px; font-weight: 500; line-height: 1.55; white-space: pre-line; }
.portal-notice-admin-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 16px 0 10px; overflow: hidden; border-radius: 12px; background: var(--on-line); }
.portal-notice-admin-summary > span { min-width: 0; padding: 13px 10px; background: var(--on-soft); text-align: center; }
.portal-notice-admin-summary small, .portal-notice-admin-summary strong { display: block; }
.portal-notice-admin-summary small { color: var(--on-muted); font-size: 13px; }
.portal-notice-admin-summary strong { margin-top: 5px; overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.portal-notice-read-summary { margin-top: 24px; padding: 18px; border: 0; box-shadow: var(--on-card-shadow); border-radius: 14px; background: light-dark(var(--on-soft), var(--on-card-surface)); }
.portal-notice-read-summary__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal-notice-read-summary__header h2 { margin: 0; font-size: 16px; }
.portal-notice-read-summary__header a, .portal-notice-list-readers { color: var(--on-accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.portal-notice-read-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.portal-notice-read-counts > * { padding: 10px 4px; text-align: center; color: var(--on-ink); text-decoration: none; }
.portal-notice-read-counts small, .portal-notice-read-counts strong { display: block; }
.portal-notice-read-counts small { color: var(--on-muted); font-size: 13px; }
.portal-notice-read-counts strong { margin-top: 6px; font-size: 18px; }
.portal-notice-read-summary p, .portal-notice-read-hint { margin: 14px 0 0; color: var(--on-muted); font-size: 13px; line-height: 1.65; }
.portal-notice-list-entry.is-staff { border-bottom: 1px solid var(--on-line); }
.portal-notice-list-entry.is-staff .portal-list-item { border-bottom: 0; padding-bottom: 8px; }
.portal-notice-list-readers { display: block; width: fit-content; margin: 0 4px 13px auto; padding: 5px 0 5px 12px; }
.portal-notice-readers h1 { margin: 0 0 12px; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.portal-notice-read-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 20px 0 14px; }
.portal-notice-read-tabs a { padding: 13px 4px; border: 1px solid var(--on-line); border-radius: 10px; color: var(--on-muted); text-align: center; text-decoration: none; font-size: 14px; }
.portal-notice-read-tabs a.is-active { border-color: var(--on-accent); background: var(--on-teal-soft); color: var(--on-accent); }
.portal-notice-read-tabs strong { margin-left: 3px; }
.portal-notice-read-search { display: flex; gap: 8px; }
.portal-notice-read-search input { flex: 1; min-width: 0; padding: 0 12px; border: 1px solid var(--on-line); border-radius: 10px; background: var(--on-surface); color: var(--on-ink); font: inherit; }
.portal-notice-remind-actions { display: grid; gap: 8px; margin-top: 18px; }
.portal-notice-remind-actions .portal-button { width: 100%; min-height: 48px; font-size: 14px; }
.portal-notice-reader-list { margin-top: 20px; border-top: 1px solid var(--on-line); }
.portal-notice-reader-select-all { display: flex; align-items: center; gap: 10px; padding: 14px 0; color: var(--on-muted); font-size: 13px; border-bottom: 1px solid var(--on-line); }
.portal-notice-reader-row { display: flex; gap: 12px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--on-line); }
.portal-notice-reader-row input, .portal-notice-reader-select-all input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--on-accent); }
.portal-notice-reader-row__person { flex: 1; min-width: 0; }
.portal-notice-reader-row__person strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.portal-notice-reader-row__person span, .portal-notice-reader-row__person small { display: block; margin-top: 5px; color: var(--on-muted); font-size: 12px; line-height: 1.5; }
.portal-notice-reader-row__status { flex: 0 0 auto; text-align: right; }
.portal-notice-reader-row__status strong { font-size: 13px; color: var(--on-muted); }
.portal-notice-reader-row__status.is-read strong { color: var(--on-accent); }
.portal-notice-reader-row__status time { display: block; max-width: 110px; margin-top: 5px; color: var(--on-muted); font-size: 11px; line-height: 1.5; }
.portal-notice-read-tabs a:focus-visible, .portal-notice-list-readers:focus-visible, .portal-notice-read-summary a:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 3px; }
.portal-attachments { border-top: 1px solid var(--on-line); padding-top: 18px; }
.portal-attachment { display: flex; justify-content: space-between; padding: 12px; background: var(--on-soft); color: var(--on-ink); text-decoration: none; margin-top: 8px; border-radius: 5px; }
.portal-setup { padding: 22px 0 154px; }
.portal-setup[data-staff="true"] { padding-bottom: 340px; }
.portal-setup-action--staff { display: grid; gap: 8px; }
.portal-setup-action--staff > [hidden] { display: none; }
.portal-setup-action--staff > .portal-status,
.portal-setup-action--staff > form,
.portal-setup-action--staff > .portal-install-note { margin: 0; }
.portal-setup .portal-brand { margin-bottom: 24px; }
.portal-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.portal-progress > span { flex: 0 0 auto; color: var(--on-muted); font-size: 13px; font-weight: 650; }
.portal-progress > div { height: 4px; flex: 1; overflow: hidden; border-radius: 999px; background: var(--on-soft); }
.portal-progress i { display: block; width: 50%; height: 100%; border-radius: inherit; background: var(--on-accent); transition: width .28s ease; }
.portal-device-label { display: block; margin-bottom: 12px; color: var(--on-accent); font-size: 13px; font-weight: 650; }
.portal-setup h1 { margin-bottom: 14px; font-size: 32px; line-height: 1.28; font-weight: 650; letter-spacing: -.045em; }
.portal-setup > p { margin-bottom: 0; max-width: 360px; color: var(--on-muted); font-size: 16px; line-height: 1.6; }
.portal-install-guide { margin-top: 38px; }
.portal-install-guide h2 { margin: 0 0 14px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.portal-ios-motion { --ios-guide-duration: 18s; position: relative; height: 430px; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--on-line); border-radius: 20px; background: var(--on-soft); pointer-events: none; }
.portal-ios-motion__captions { position: absolute; z-index: 6; top: 14px; right: 8px; left: 8px; height: 22px; text-align: center; }
.portal-ios-motion__captions span { position: absolute; inset: 0; opacity: 0; color: var(--on-muted); font-size: 12px; font-weight: 650; animation: portal-ios-caption var(--ios-guide-duration) linear infinite; }
.portal-ios-motion__captions span:nth-child(2) { animation-name: portal-ios-caption-share; }
.portal-ios-motion__captions span:nth-child(3) { animation-name: portal-ios-caption-more; }
.portal-ios-motion__captions span:nth-child(4) { animation-name: portal-ios-caption-home; }
.portal-ios-motion__captions span:nth-child(5) { animation-name: portal-ios-caption-add; }
.portal-ios-motion__captions span:nth-child(6) { animation-name: portal-ios-caption-done; }
.portal-ios-motion svg { flex-shrink: 0; width: 20px; height: 20px; }
.portal-ios-motion strong { font-size: 13px; font-weight: 600; }
.portal-ios-motion__screen { position: absolute; right: 12px; bottom: 16px; left: 12px; height: 44px; color: var(--on-ink); }
.portal-ios-motion__screen::before { content: ""; position: absolute; inset: 0 48px; border-radius: 24px; background: var(--on-surface); box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.portal-ios-motion__back, .portal-ios-motion__menu { position: absolute; top: 2px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--on-surface); }
.portal-ios-motion__back { left: 0; color: var(--on-disabled); font-size: 30px; line-height: 1; }
.portal-ios-motion__menu { right: 0; animation: portal-menu-cue var(--ios-guide-duration) ease infinite; }
.portal-ios-motion__page-menu { position: absolute; top: 11px; left: 58px; }
.portal-ios-motion__address { position: absolute; top: 50%; right: 80px; left: 86px; overflow: hidden; transform: translateY(-50%); font-size: 12px; font-weight: 600; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.portal-ios-motion__reload { position: absolute; top: 7px; right: 55px; font-size: 23px; line-height: 30px; }
.portal-ios-motion__popover { position: absolute; z-index: 2; right: 12px; bottom: 18px; width: min(260px, 86%); padding: 12px 16px; border: 1px solid var(--on-line); border-radius: 28px; background: var(--on-surface); color: var(--on-ink); box-shadow: 0 8px 28px rgba(0,0,0,.14); opacity: 0; transform: translateY(10px); animation: portal-menu-guide var(--ios-guide-duration) ease infinite; }
.portal-ios-motion__popover > div { display: flex; align-items: center; gap: 12px; min-height: 35px; padding: 4px 8px; border-radius: 10px; font-size: 12px; }
.portal-ios-motion__popover > div > span:first-child:not(:last-child) { width: 20px; font-size: 22px; text-align: center; }
.portal-ios-motion__popover hr { margin: 8px; border: 0; border-top: 1px solid var(--on-line); }
.portal-ios-motion__share { animation: portal-share-cue var(--ios-guide-duration) ease infinite; }
.portal-ios-motion__popover footer { display: flex; justify-content: space-around; margin: 10px 8px 0; padding-top: 10px; border-top: 1px solid var(--on-line); text-align: center; font-size: 20px; }
.portal-ios-motion__popover footer rect[stroke] { stroke: var(--on-surface); }
.portal-ios-motion__popover footer > span { display: grid; justify-items: center; gap: 6px; min-width: 66px; }
.portal-ios-motion__popover footer svg { width: 26px; height: 26px; }
.portal-ios-motion__popover footer small { margin: 0; font-size: 11px; font-weight: 500; }
.portal-ios-motion__popover small { display: block; margin-top: 2px; font-size: 10px; }
.portal-ios-motion__sheet { position: absolute; z-index: 3; top: 48px; right: 10px; bottom: 10px; left: 10px; padding: 16px 14px; border-radius: 30px; background: #696969; color: #fff; opacity: 0; transform: translateY(120%); overflow: hidden; animation: portal-sheet-guide var(--ios-guide-duration) ease infinite; }
.portal-ios-motion__sheet-app { display: flex; align-items: flex-start; gap: 10px; min-height: 52px; }
.portal-ios-motion__sheet-app img { width: 44px; height: 44px; border-radius: 12px; }
.portal-ios-motion__sheet-app > span { flex: 1; min-width: 0; }
.portal-ios-motion__sheet-app small { display: block; margin-top: 3px; color: #ccc; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-ios-motion__sheet-app em { display: inline-block; margin-top: 4px; padding: 3px 9px; border: 1px solid #999; border-radius: 20px; font-size: 10px; font-style: normal; }
.portal-ios-motion__sheet-app > b { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #999; border-radius: 50%; font-size: 22px; font-weight: 400; opacity: 0; animation: portal-home-reveal var(--ios-guide-duration) ease infinite; }
.portal-ios-motion__targets, .portal-ios-motion__quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; margin-top: 10px; text-align: center; }
.portal-ios-motion__targets { padding-top: 10px; border-top: 1px solid #777; }
.portal-ios-motion__targets i { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto; border-radius: 10px; color: #fff; font-size: 27px; font-style: normal; }
.portal-ios-motion__targets .is-airdrop { background: #289bff; }
.portal-ios-motion__targets .is-message { background: #36ce54; }
.portal-ios-motion__targets .is-mail { background: #299ded; }
.portal-ios-motion__targets .is-note { overflow: hidden; background: #fff; }
.portal-ios-motion__targets .is-note svg { width: 38px; height: 38px; }
.portal-ios-motion__targets small, .portal-ios-motion__quick-actions small { display: block; margin-top: 5px; font-size: 8px; line-height: 1.25; white-space: nowrap; }
.portal-ios-motion__quick-actions { margin-top: 12px; }
.portal-ios-motion__quick-actions i { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto; border-radius: 50%; background: #818181; font-style: normal; }
.portal-ios-motion__quick-actions svg { width: 24px; height: 24px; }
.portal-ios-motion__more i { animation: portal-more-cue var(--ios-guide-duration) ease infinite; }
.portal-ios-motion__more svg { animation: portal-more-arrow var(--ios-guide-duration) ease infinite; }
.portal-ios-motion__more small { position: relative; min-height: 10px; }
.portal-ios-motion__more small > span { position: absolute; inset: 0; }
.portal-ios-motion__more small > span:first-child { animation: portal-more-label var(--ios-guide-duration) step-end infinite; }
.portal-ios-motion__more small > span:last-child { opacity: 0; animation: portal-less-label var(--ios-guide-duration) step-end infinite; }
.portal-ios-motion__action-list { margin-top: 12px; overflow: hidden; border-radius: 18px; background: #4c4c4e; opacity: 0; animation: portal-home-reveal var(--ios-guide-duration) ease infinite; }
.portal-ios-motion__action-list > div { display: flex; align-items: center; gap: 10px; min-height: 27px; padding: 3px 10px; font-size: 11px; }
.portal-ios-motion__action-list > div + div { border-top: 1px solid #58585a; }
.portal-ios-motion__action-list > div > span:first-child { flex: 0 0 20px; font-size: 18px; text-align: center; }
.portal-ios-motion__home-row { animation: portal-add-row var(--ios-guide-duration) ease infinite; }
.portal-ios-motion__action-list .portal-ios-motion__home-row { min-height: 58px; gap: 12px; padding: 12px 14px; }
.portal-ios-motion__home-row svg { width: 26px; height: 26px; }
.portal-ios-motion__home-row strong { font-size: 18px; font-weight: 600; }
.portal-ios-motion__confirm { position: absolute; z-index: 4; top: 70px; right: 12px; bottom: 30px; left: 12px; display: flex; flex-direction: column; gap: 16px; padding: 20px 14px; border: 1px solid var(--on-line); border-radius: 24px; background: var(--on-surface); opacity: 0; transform: translateY(20px); animation: portal-confirm-guide var(--ios-guide-duration) ease infinite; }
.portal-ios-motion__confirm header { display: flex; align-items: center; gap: 14px; min-height: 20px; }
.portal-ios-motion__confirm header span { color: var(--on-accent); font-size: 12px; }
.portal-ios-motion__app { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.portal-ios-motion__app img { display: block; width: 42px; height: 42px; border-radius: 10px; }
.portal-ios-motion__webapp { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 12px; background: var(--on-soft); }
.portal-ios-motion__webapp i { position: relative; flex: 0 0 38px; height: 24px; border-radius: 20px; background: #34c759; }
.portal-ios-motion__webapp i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.portal-ios-motion__add { display: grid; min-height: 36px; margin-top: auto; place-items: center; border-radius: 18px; color: #fff; background: var(--on-accent); font-size: 13px; font-weight: 650; animation: portal-confirm-cue var(--ios-guide-duration) ease infinite; }
.portal-ios-motion__done { position: absolute; z-index: 5; top: 48px; right: 0; bottom: 0; left: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--on-soft); opacity: 0; transform: scale(.96); animation: portal-install-done var(--ios-guide-duration) ease infinite; }
.portal-ios-motion__done picture { display: block; line-height: 0; }
.portal-ios-motion__done img { display: block; width: 62px; height: 62px; border-radius: 15px; box-shadow: 0 9px 22px rgba(0,0,0,.2); }
.portal-ios-motion__done > span { color: var(--on-muted); font-size: 12px; }
.portal-safari-address { display: block; margin-top: 18px; color: var(--on-muted); font-size: 12px; }
.portal-safari-address input { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 12px; border: 1px solid var(--on-line); border-radius: 12px; background: var(--on-surface); color: var(--on-ink); font-size: 13px; }
.portal-install-steps { margin: 0; padding: 4px 0; overflow: hidden; border-radius: 12px; background: var(--on-soft); list-style: none; }
.portal-install-steps li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 0; background: transparent; }
.portal-install-steps li + li::before { content: ""; position: absolute; top: 0; right: 16px; left: 68px; height: 1px; background: var(--on-line); }
.portal-install-steps li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 52px; bottom: -16px; left: 34px; width: 2px; background: var(--on-line); }
.portal-install-steps__icon { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; background: var(--on-surface); color: var(--on-accent); font-size: 20px; font-weight: 650; line-height: 1; }
.portal-install-steps__icon svg { width: 21px; height: 21px; }
.portal-install-steps strong, .portal-install-summary strong { display: block; font-size: 15px; font-weight: 650; }
.portal-install-steps span, .portal-install-summary span { display: block; margin-top: 5px; color: var(--on-muted); font-size: 13px; line-height: 1.5; }
.portal-install-summary { display: flex; align-items: center; gap: 16px; padding: 20px 18px; border-radius: 12px; background: var(--on-soft); }
.portal-install-summary__icon { display: block; flex: 0 0 58px; line-height: 0; }
.portal-install-summary__icon img { display: block; width: 58px; height: 58px; border-radius: 14px; }
.portal-install-summary__check { display: grid !important; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; margin: 0 !important; border-radius: 50%; background: var(--on-lime); color: var(--on-navy) !important; font-size: 23px !important; font-weight: 650; }
.portal-install-note { margin: 12px 2px 0; color: var(--on-muted); font-size: 13px; line-height: 1.55; }
.portal-samsung-guide { margin-top: 28px; }
.portal-samsung-motion { margin-top: 18px; padding: 14px; border-radius: 18px; background: #171719; }
.portal-samsung-motion__caption { position: relative; height: 36px; color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.portal-samsung-motion__caption span { position: absolute; inset: 0; }
.portal-samsung-motion__caption span:first-child { animation: portal-samsung-first 8s infinite; }
.portal-samsung-motion__caption span:last-child { animation: portal-samsung-second 8s infinite; }
.portal-samsung-motion__dialog { padding: 22px 18px; border-radius: 24px; background: #4d4d52; color: #fff; }
.portal-samsung-motion__shield { display: block; width: 26px; height: 26px; margin: 0 auto 8px; color: #4383ff; }
.portal-samsung-motion__brand { display: block; text-align: center; font-size: 12px; }
.portal-samsung-motion__title { display: block; margin: 20px 0; text-align: center; font-size: 19px; line-height: 1.4; }
.portal-samsung-motion__app { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.portal-samsung-motion__app img { width: 38px; height: 38px; border-radius: 10px; }
.portal-samsung-motion__app strong { font-size: 14px; overflow-wrap: anywhere; }
.portal-samsung-motion__dialog p { margin: 0 0 12px; font-size: 12px; line-height: 1.6; }
.portal-samsung-motion__details, .portal-samsung-motion__install { position: relative; display: inline-block; padding: 8px; margin-left: -8px; border-radius: 8px; font-size: 13px; }
.portal-samsung-motion__details::after, .portal-samsung-motion__install::after { content: ''; position: absolute; right: 4px; bottom: -4px; width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; background: rgba(255,255,255,.35); opacity: 0; }
.portal-samsung-motion__details::after { animation: portal-samsung-tap-first 8s infinite; }
.portal-samsung-motion__install::after { animation: portal-samsung-tap-second 8s infinite; }
.portal-samsung-motion__details { animation: portal-samsung-details 8s infinite; }
.portal-samsung-motion__details b { margin-left: 12px; }
.portal-samsung-motion__expanded { margin: 0 -8px; padding: 0 8px; opacity: 0; max-height: 0; overflow: hidden; animation: portal-samsung-expand 8s infinite; }
.portal-samsung-motion__install { margin-left: 0; margin-bottom: 8px; animation: portal-samsung-install 8s infinite; }
.portal-samsung-motion__ok { display: block; margin-top: 20px; padding: 12px; border-radius: 30px; background: #3779fa; text-align: center; font-size: 13px; font-weight: 600; }
@keyframes portal-samsung-first { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes portal-samsung-second { 0%, 44% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes portal-samsung-details { 0%, 12%, 42%, 100% { background: transparent; box-shadow: none; } 20%, 34% { background: rgba(255,255,255,.16); box-shadow: 0 0 0 3px #ffd35a; } }
@keyframes portal-samsung-expand { 0%, 42%, 100% { opacity: 0; max-height: 0; } 50%, 92% { opacity: 1; max-height: 180px; } }
@keyframes portal-samsung-install { 0%, 56%, 90%, 100% { background: transparent; box-shadow: none; } 64%, 80% { background: rgba(255,255,255,.16); box-shadow: 0 0 0 3px #ffd35a; } }
@keyframes portal-samsung-tap-first { 0%, 22%, 40%, 100% { opacity: 0; transform: scale(1); } 28%, 34% { opacity: 1; transform: scale(.8); } }
@keyframes portal-samsung-tap-second { 0%, 66%, 86%, 100% { opacity: 0; transform: scale(1); } 72%, 80% { opacity: 1; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) {
    .portal-samsung-motion__caption span, .portal-samsung-motion__details, .portal-samsung-motion__expanded, .portal-samsung-motion__install { animation: none; }
    .portal-samsung-motion__caption span:first-child { display: none; }
    .portal-samsung-motion__expanded { opacity: 1; max-height: none; }
    .portal-samsung-motion__details::after, .portal-samsung-motion__install::after { animation: none; }
}
.portal-setup-action { position: fixed; z-index: 8; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 480px); padding: 10px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(255,255,255,0), var(--on-surface) 18px); }
.portal-status { min-height: 18px; margin: 0 6px 9px; color: var(--on-muted); font-size: 13px; line-height: 1.45; text-align: center; }
.portal-setup-action .portal-status.is-install-feedback { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--on-accent); border-radius: 12px; background: var(--on-surface); color: var(--on-ink); font-size: 14px; line-height: 1.6; text-align: left; }
.portal-setup-action .portal-button.is-install-opening { display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 1; }
.portal-setup-action .portal-button.is-install-opening::before { content: ''; flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: portal-setup-spin .8s linear infinite; }
@keyframes portal-setup-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .portal-setup-action .portal-button.is-install-opening::before { animation: none; } }
.portal-local-tools { margin-top: 38px; padding: 18px; border: 1px dashed var(--on-line); border-radius: 10px; background: var(--on-soft); }
.portal-local-tools > div strong { display: block; font-size: 14px; font-weight: 650; }
.portal-local-tools > div span { display: block; margin-top: 5px; color: var(--on-muted); font-size: 13px; line-height: 1.5; }
.portal-local-tools nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 16px 0; }
.portal-local-tools nav a { display: grid; min-height: 34px; place-items: center; border-radius: 6px; color: var(--on-muted); background: var(--on-surface); font-size: 13px; text-decoration: none; }
.portal-local-tools nav a.is-active { color: var(--on-navy); background: var(--on-accent); font-weight: 650; }
.portal-inquiry-empty { display: grid; min-height: 62vh; align-content: center; justify-items: start; padding: 28px 0 60px; }
.portal-inquiry-empty__icon { display: grid; width: 64px; height: 64px; margin-bottom: 24px; place-items: center; border-radius: 50%; background: var(--on-accent); color: #FFFFFF; font-size: 32px; font-weight: 400; box-shadow: 0 12px 28px rgba(0,159,137,.22); }
.portal-inquiry-empty__icon svg { width: 30px; height: 30px; }
.portal-inquiry-empty h1 { max-width: 390px; margin: 0; font-size: 27px; line-height: 1.35; letter-spacing: -.04em; }
.portal-inquiry-empty p { max-width: 360px; margin: 13px 0 0; color: var(--on-muted); font-size: 14px; line-height: 1.65; }
.portal-inquiry-intro { display: flex; align-items: center; gap: 17px; padding: 20px; border-radius: 16px; background: var(--on-navy); color: #F8F7F4; }
.portal-inquiry-intro .portal-inquiry-empty__icon { flex: 0 0 56px; width: 56px; height: 56px; margin: 0; box-shadow: none; }
.portal-inquiry-intro strong { display: block; font-size: 15px; font-weight: 650; }
.portal-inquiry-intro small { display: block; margin-top: 7px; color: rgba(248,247,244,.64); font-size: 13px; line-height: 1.5; }
.portal-inquiry-features { margin-top: 26px; border-top: 1px solid var(--on-line); }
.portal-inquiry-features > div { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; padding: 17px 2px; border-bottom: 1px solid var(--on-line); }
.portal-inquiry-features span { grid-row: 1 / 3; color: #008E7A; font-size: 13px; font-weight: 650; }
.portal-inquiry-features strong { font-size: 14px; font-weight: 650; }
.portal-inquiry-features small { margin-top: 4px; color: var(--on-muted); font-size: 13px; }
.portal-inquiry-actions { display: grid; gap: 8px; }
.portal-inquiry-actions > a { display: grid; grid-template-columns: 46px minmax(0,1fr) 20px; min-height: 78px; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 14px; background: var(--on-soft); color: var(--on-ink); text-decoration: none; }
.portal-inquiry-actions > a:first-child { background: var(--on-teal-soft); }
.portal-inquiry-actions__icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: var(--on-surface); font-size: 21px; box-shadow: 0 5px 14px rgba(15,23,42,.06); }
.portal-inquiry-actions strong, .portal-inquiry-actions small { display: block; }
.portal-inquiry-actions strong { font-size: 16px; font-weight: 650; }
.portal-inquiry-actions small { margin-top: 5px; color: var(--on-muted); font-size: 13px; line-height: 1.4; }
.portal-inquiry-actions > a > b { justify-self: end; color: var(--on-muted); font-size: 22px; font-weight: 400; }
.portal-manager-list { border-top: 1px solid var(--on-line); }
.portal-inquiry-list, .portal-chat-list { overflow: hidden; border: 0; box-shadow: var(--on-card-shadow); border-radius: 16px; background: light-dark(var(--on-soft), var(--on-card-surface)); }
.portal-inquiry-list > a, .portal-chat-list > a { display: grid; min-height: 88px; align-items: center; gap: 11px; padding: 16px; border-bottom: 1px solid var(--on-line); color: var(--on-ink); text-decoration: none; }
.portal-inquiry-list > a:last-child, .portal-chat-list > a:last-child { border-bottom: 0; }
.portal-inquiry-list > a:focus-visible, .portal-chat-list > a:focus-visible { outline: 2px solid var(--on-accent); outline-offset: -3px; }
.portal-inquiry-list > a { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
.portal-inquiry-list__content { grid-row: 1 / 3; min-width: 0; }
.portal-inquiry-list > a > .portal-inquiry-status { justify-self: end; align-self: start; }
.portal-inquiry-list > a > .portal-inquiry-status--completed, .portal-inquiry-list > a > .portal-inquiry-status--closed { background: var(--on-surface); }
.portal-inquiry-list strong, .portal-inquiry-list small, .portal-chat-list strong, .portal-chat-list small { display: block; }
.portal-inquiry-list strong, .portal-chat-list strong { overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.portal-inquiry-list strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; line-height: 1.5; overflow-wrap: anywhere; }
.portal-inquiry-list small, .portal-chat-list small { overflow: hidden; margin-top: 5px; color: var(--on-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.portal-inquiry-list > a > b { justify-self: end; align-self: end; color: var(--on-muted); font-size: 20px; font-weight: 400; line-height: 1; }
.portal-inquiry-status { display: inline-flex; min-height: 25px; align-items: center; justify-content: center; border-radius: 999px; padding: 0 9px; background: var(--on-soft); color: var(--on-muted); font-size: 11px; font-weight: 650; white-space: nowrap; }
.portal-inquiry-status--received { background: rgba(59,130,246,.12); color: #1D4ED8; }
.portal-inquiry-status--checking { background: var(--on-teal-soft); color: #008E7A; }
.portal-inquiry-status--completed, .portal-inquiry-status--closed { background: var(--on-soft); color: var(--on-muted); }
.portal-inquiry-status--cancelled { background: #f4e9e7; color: #a44039; }
.portal-empty--compact { padding: 25px 0; font-size: 13px; }
.portal-chat-list > a { grid-template-columns: 42px minmax(0,1fr); align-items: start; }
.portal-chat-list__content { min-width: 0; }
.portal-chat-list__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.portal-chat-list__heading strong { min-width: 0; line-height: 1.5; }
.portal-chat-list time { flex-shrink: 0; color: var(--on-muted); font-size: 11px; }
.portal-chat-list__preview { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.portal-chat-list__preview small { display: -webkit-box; flex: 1; min-width: 0; margin: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; line-height: 1.55; overflow-wrap: anywhere; }
.portal-chat-list > a.is-unread .portal-chat-list__preview small { color: var(--on-ink); font-weight: 650; }
.portal-chat-list__unread-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--on-coral); }
.portal-chat-list__inquiry { display: block; overflow: hidden; margin-top: 7px; color: var(--on-muted); font-size: 11px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.portal-chat-inquiry-title { opacity: .7; }
.portal-chat-avatar { position: relative; display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--on-teal-soft); color: var(--on-accent); font-size: 15px; font-weight: 650; }
.portal-inquiry-form { padding-bottom: 0; }
.portal-inquiry-form__section { padding: 20px 0 4px; border-bottom: 1px solid var(--on-line); }
.portal-inquiry-form__section:first-child { padding-top: 4px; }
.portal-inquiry-writing-guide { margin: 0 0 18px; padding: 13px 15px; border: 1px solid var(--on-accent); border-radius: 10px; background: var(--on-teal-soft); color: var(--on-ink); font-size: 13px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.portal-inquiry-detail-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.portal-inquiry-detail-options legend { margin: 0 0 9px 2px; color: var(--on-ink); font-size: 13px; font-weight: 650; }
.portal-inquiry-visit-heading { margin: 0 0 12px; color: var(--on-ink); font-size: 14px; font-weight: 650; }
[data-inquiry-details][hidden], [data-repair-photo-guide][hidden] { display: none; }
.portal-inquiry-form__section h2 { margin: 0 0 16px; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.portal-inquiry-category { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-bottom: 18px; }
.portal-inquiry-category label, .portal-inquiry-choice label, .portal-visit-options label { min-width: 0; cursor: pointer; }
.portal-inquiry-category input, .portal-inquiry-choice input, .portal-visit-options input { position: absolute; opacity: 0; pointer-events: none; }
.portal-inquiry-category span { display: grid; min-height: 40px; place-items: center; border-radius: 9px; background: var(--on-soft); color: var(--on-muted); font-size: 13px; font-weight: 600; }
.portal-inquiry-category input:checked + span { background: var(--on-inquiry-selection); color: #FFFFFF; }
.portal-photo-field { margin-bottom: 18px; }
.portal-photo-field > div:first-child { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.portal-photo-field > div strong { font-size: 13px; font-weight: 650; }
.portal-photo-field > div small { color: var(--on-muted); font-size: 13px; }
.portal-photo-field > label { display: inline-flex; min-height: 42px; align-items: center; border: 1px solid var(--on-line); border-radius: 10px; padding: 0 13px; background: var(--on-surface); color: var(--on-accent); font-size: 13px; font-weight: 600; }
.portal-photo-field > label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.portal-photo-error { margin: 8px 0 0; color: #a44039; font-size: 13px; line-height: 1.5; }
.portal-photo-error[hidden] { display: none; }
.portal-photo-preview { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin-top: 10px; }
.portal-photo-preview:empty { display: none; }
.portal-photo-preview__item { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 9px; background: var(--on-soft); }
.portal-photo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portal-photo-preview__remove { position: absolute; top: 4px; right: 4px; display: grid; width: 25px; height: 25px; place-items: center; border: 0; border-radius: 50%; background: rgba(20,30,40,.8); color: #fff; font-size: 19px; line-height: 1; cursor: pointer; }
.portal-inquiry-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 18px; }
.portal-inquiry-choice span { display: grid; min-height: 44px; place-items: center; border: 1px solid var(--on-line); border-radius: 10px; color: var(--on-muted); font-size: 13px; font-weight: 600; }
.portal-inquiry-choice input:checked + span { border-color: var(--on-accent); background: var(--on-teal-soft); color: var(--on-ink); }
.portal-inquiry-form__section[hidden], .portal-visit-options label[hidden], .portal-schedule-fields[hidden], .portal-entry-password[hidden] { display: none; }
.portal-form-help { margin: -5px 2px 18px; color: var(--on-muted); font-size: 13px; line-height: 1.5; }
.portal-visit-options { display: grid; gap: 7px; margin-bottom: 18px; }
.portal-visit-options span { display: flex; min-height: 46px; align-items: center; border: 1px solid var(--on-line); border-radius: 10px; padding: 0 13px; color: var(--on-muted); font-size: 13px; font-weight: 600; }
.portal-visit-options input:checked + span { border-color: var(--on-accent); background: var(--on-teal-soft); color: var(--on-ink); }
.portal-entry-password { margin: 4px 0 18px; padding: 15px; border-radius: 12px; background: var(--on-soft); }
.portal-entry-password .portal-check { margin-bottom: 0; }
.portal-inquiry-submit { padding: 14px 0 10px; }
.portal-inquiry-submit button:disabled { opacity: .65; cursor: wait; }
.portal-inquiry-loading { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(17,29,42,.55); }
.portal-inquiry-loading[hidden] { display: none; }
.portal-inquiry-loading__card { display: grid; justify-items: center; gap: 9px; width: min(100%,320px); padding: 28px 20px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.portal-inquiry-loading__card strong { font-size: 14px; line-height: 1.5; }
.portal-inquiry-loading__card small { color: var(--on-muted); font-size: 13px; }
.portal-inquiry-loading__spinner { width: 32px; height: 32px; margin-bottom: 3px; border: 3px solid var(--on-teal-soft); border-top-color: var(--on-accent); border-radius: 50%; animation: portal-inquiry-spin .7s linear infinite; }
@keyframes portal-inquiry-spin { to { transform: rotate(360deg); } }
.portal-inquiry-detail__head { padding-top: 4px; }
.portal-inquiry-detail__head > small { margin-left: 7px; color: var(--on-muted); font-size: 13px; }
.portal-inquiry-detail__head h1 { margin: 12px 0 7px; font-size: 25px; line-height: 1.35; letter-spacing: -.035em; }
.portal-inquiry-detail__head time { color: var(--on-muted); font-size: 13px; }
.portal-inquiry-progress { position: relative; display: grid; grid-template-columns: repeat(3,1fr); margin: 25px 0 20px; }
.portal-inquiry-progress::before { content: ""; position: absolute; top: 13px; right: 16.66%; left: 16.66%; height: 2px; background: var(--on-line); }
.portal-inquiry-progress span { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; color: var(--on-muted); }
.portal-inquiry-progress i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--on-line); color: #FFFFFF; font-size: 13px; font-style: normal; font-weight: 650; }
.portal-inquiry-progress b { font-size: 13px; font-weight: 600; }
.portal-inquiry-progress span.is-reached { color: var(--on-ink); }
.portal-inquiry-progress span.is-reached i { background: var(--on-accent); }
.portal-inquiry-detail__body { padding: 18px 0; border-top: 1px solid var(--on-line); }
.portal-inquiry-cancelled { margin: 20px 0; padding: 15px 16px; border-radius: 12px; background: #f4e9e7; color: #893b34; font-size: 13px; font-weight: 600; line-height: 1.5; }
.portal-inquiry-cancel { margin: 2px 0 18px; text-align: center; }
.portal-inquiry-cancel button { min-height: 42px; border: 0; padding: 0 14px; background: transparent; color: #a44039; font-size: 13px; font-weight: 650; text-decoration: underline; cursor: pointer; }
.portal-inquiry-detail__body h2 { margin: 0 0 10px; font-size: 14px; font-weight: 650; }
.portal-inquiry-detail__body p { margin: 0; font-size: 14px; line-height: 1.75; white-space: pre-line; }
.portal-inquiry-processing-note { margin: 0 0 18px; padding: 16px; border-radius: 12px; background: var(--on-soft); }
.portal-inquiry-processing-note h2 { margin: 0 0 10px; font-size: 14px; font-weight: 650; }
.portal-inquiry-processing-note p { margin: 0; font-size: 14px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.portal-inquiry-photos { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 18px; }
.portal-inquiry-photos a { overflow: hidden; aspect-ratio: 1; border-radius: 10px; background: var(--on-soft); }
.portal-inquiry-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portal-inquiry-info { margin-bottom: 14px; padding: 5px 15px; border-radius: 12px; background: var(--on-soft); }
.portal-inquiry-info > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 12px 0; }
.portal-inquiry-info > div + div { border-top: 1px solid var(--on-line); }
.portal-inquiry-info span { color: var(--on-muted); font-size: 13px; }
.portal-inquiry-info strong { font-size: 13px; font-weight: 650; text-align: right; }
.portal-visit-editor { margin: 10px 0 16px; border: 1px solid var(--on-line); border-radius: 12px; }
.portal-visit-editor summary { padding: 14px; font-size: 13px; font-weight: 650; cursor: pointer; }
.portal-visit-editor form { padding: 0 14px 14px; }
.portal-entry-password .portal-field input[type="password"] { border-color: var(--on-disabled); background: var(--on-surface); }
.portal-entry-password .portal-field input[type="password"]:focus { border-color: var(--on-accent); }
.portal-inquiry-chat-action { padding: 8px 0 16px; }
.portal-linked-inquiry { display: grid; grid-template-columns: 1fr 18px; align-items: center; gap: 10px; margin: 2px 0 16px; padding: 13px 14px; border-radius: 12px; background: var(--on-soft); color: var(--on-ink); text-decoration: none; }
.portal-linked-inquiry small, .portal-linked-inquiry strong { display: block; }
.portal-linked-inquiry small { margin-bottom: 5px; color: var(--on-accent); font-size: 13px; font-weight: 650; }
.portal-linked-inquiry strong { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.portal-linked-inquiry > b { color: var(--on-muted); font-size: 20px; font-weight: 400; }
.portal-manager-list form { border-bottom: 1px solid var(--on-line); }
.portal-manager-list button { display: grid; width: 100%; min-height: 76px; grid-template-columns: 44px minmax(0,1fr) 18px; align-items: center; gap: 11px; border: 0; padding: 10px 2px; background: transparent; color: var(--on-ink); text-align: left; }
.portal-manager-list button > span:nth-child(2) { min-width: 0; }
.portal-manager-list strong, .portal-manager-list small, .portal-manager-list em { display: block; }
.portal-manager-list strong { font-size: 14px; font-weight: 650; }
.portal-manager-list small, .portal-manager-list em { margin-top: 4px; color: var(--on-muted); font-size: 13px; font-style: normal; line-height: 1.4; }
.portal-manager-list em { color: var(--on-accent); }
.portal-manager-list button > b { color: var(--on-muted); font-size: 20px; font-weight: 400; }
.portal-shell.is-chat { display: flex; height: 100dvh; min-height: 0; flex-direction: column; padding-bottom: 0; }
html.portal-chat-viewport, html.portal-chat-viewport body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.portal-chat-viewport .portal-shell.is-chat { position: absolute; top: var(--chat-viewport-top, 0px); right: 0; left: 0; height: var(--chat-viewport-height, 100dvh); min-height: 0; }
.portal-shell.is-chat .portal-child-header { position: relative; z-index: 20; flex: 0 0 64px; overflow: visible; }
.portal-shell.is-chat .portal-main { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow: hidden; }
.portal-chat-room { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow: hidden; }
.portal-chat-room > .portal-chat-manager, .portal-chat-room > .portal-chat-hours-note, .portal-chat-room > .portal-linked-inquiry { flex: 0 0 auto; }
.portal-chat-manager { display: flex; align-items: center; gap: 11px; margin: 2px 0 14px; }
.portal-chat-manager strong, .portal-chat-manager small { display: block; }
.portal-chat-manager strong { font-size: 14px; font-weight: 650; }
.portal-chat-manager small { margin-top: 4px; color: var(--on-muted); font-size: 13px; }
.portal-chat-hours-note { margin-bottom: 16px; padding: 10px 12px; border-radius: 9px; background: var(--on-teal-soft); color: var(--on-muted); font-size: 12px; line-height: 1.5; }
.portal-chat-messages { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 9px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 18px; }
.portal-chat-messages, .portal-chat-compose textarea { scrollbar-width: none; -ms-overflow-style: none; }
.portal-chat-messages::-webkit-scrollbar, .portal-chat-compose textarea::-webkit-scrollbar { display: none; width: 0; height: 0; }
.portal-chat-date { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; width: 100%; margin: 16px 0 4px; color: var(--on-muted); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.portal-chat-date::before, .portal-chat-date::after { content: ''; flex: 1; border-top: 1px solid var(--on-line); }
.portal-chat-message { display: flex; width: fit-content; max-width: 92%; min-width: 0; align-items: flex-end; gap: 6px; align-self: flex-start; margin-top: 15px; }
.portal-chat-message__bubble { min-width: 0; }
.portal-chat-message__bubble--new { animation: portal-chat-message-enter 180ms ease-out; }
@keyframes portal-chat-message-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .portal-chat-message__bubble--new { animation: none; } }
.portal-chat-message p { margin: 0; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--on-soft); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.portal-chat-message time { display: block; color: var(--on-muted); font-size: 11px; white-space: nowrap; }
.portal-chat-message__meta { display: flex; flex: 0 0 auto; align-items: baseline; gap: 6px; padding-bottom: 2px; }
.portal-chat-message__read { color: var(--on-accent); font-size: 13px; font-weight: 650; white-space: nowrap; }
.portal-chat-message__read[hidden] { display: none; }
.portal-chat-message.is-mine { align-self: flex-end; }
.portal-chat-message.is-mine p { border-radius: 14px 14px 4px 14px; background: var(--on-teal-soft); }
.portal-chat-message.is-mine .portal-chat-message__meta { order: -1; }
.portal-chat-message.is-previous-staff { align-self: flex-end; }
.portal-chat-message.is-previous-staff p { border-radius: 14px 14px 4px 14px; background: var(--on-soft); }
.portal-chat-message.is-previous-staff .portal-chat-message__meta { order: -1; }
.portal-chat-message__author { display: block; margin: 0 0 4px 2px; color: var(--on-muted); font-size: 13px; }
.portal-chat-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; width: min(240px,72vw); }
.portal-chat-message__bubble .portal-chat-photos { max-width: 100%; }
.portal-chat-photos:has(> :only-child) { grid-template-columns: 1fr; width: min(220px,70vw); }
.portal-chat-photos a, .portal-chat-photos > span { display: grid; overflow: hidden; min-height: 96px; aspect-ratio: 1; place-items: center; border-radius: 11px; background: var(--on-soft); color: var(--on-muted); font-size: 13px; text-align: center; }
.portal-chat-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portal-chat-photos a { cursor: zoom-in; }
.portal-chat-photos > span[data-photo-status="pending"] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255,255,255,.15); background: linear-gradient(145deg,rgba(20,46,55,.92),rgba(8,24,32,.88)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 24px rgba(4,22,31,.3), inset 0 1px 0 rgba(255,255,255,.12); color: #FFFFFF; text-shadow: 0 1px 5px rgba(0,0,0,.32); }
.portal-chat-photos > span[data-photo-status="pending"]::before { content: ''; box-sizing: border-box; width: 24px; height: 24px; flex: 0 0 24px; border: 3px solid rgba(255,255,255,.28); border-top-color: #FFFFFF; border-radius: 50%; animation: portal-chat-photo-spin .8s linear infinite; }
.portal-chat-photos > span[data-photo-status="failed"] { color: #a44039; }
@keyframes portal-chat-photo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .portal-chat-photos > span[data-photo-status="pending"]::before { animation: none; } }
.portal-chat-photo-viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); background: #10191D; color: #FFFFFF; }
.portal-chat-photo-viewer:not([open]), .portal-chat-photo-viewer [hidden] { display: none; }
.portal-chat-photo-viewer[open] { display: flex; flex-direction: column; }
.portal-chat-photo-viewer::backdrop { background: rgba(0,0,0,.88); }
.portal-chat-photo-viewer__toolbar { display: flex; min-height: 44px; align-items: center; justify-content: space-between; padding: 0 5px; font-size: 14px; }
.portal-chat-photo-viewer button { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #FFFFFF; font-size: 27px; cursor: pointer; }
.portal-chat-photo-viewer__toolbar button { font-size: 19px; }
.portal-chat-photo-viewer__stage { display: flex; min-height: 0; flex: 1; align-items: center; justify-content: space-between; gap: 6px; }
.portal-chat-photo-viewer__stage img { min-width: 0; max-width: calc(100% - 100px); max-height: 100%; margin: auto; object-fit: contain; }
.portal-chat-photo-viewer > p { position: absolute; top: 50%; right: 16px; left: 16px; text-align: center; }
@media (max-width: 420px) { .portal-chat-photo-viewer__stage { position: relative; } .portal-chat-photo-viewer__stage img { max-width: 100%; } .portal-chat-photo-viewer__stage button { position: absolute; z-index: 1; background: rgba(0,0,0,.48); } .portal-chat-photo-viewer__stage [data-viewer-prev] { left: 2px; } .portal-chat-photo-viewer__stage [data-viewer-next] { right: 2px; } }
.portal-chat-system { display: flex; width: 100%; align-items: center; gap: 10px; align-self: center; margin: 12px 0; color: var(--on-muted); font-size: 13px; line-height: 1.5; text-align: center; }
.portal-chat-system::before, .portal-chat-system::after { content: ''; min-width: 20px; flex: 1; border-top: 1px solid var(--on-line); }
.portal-chat-empty { display: grid; flex: 1; align-content: center; justify-items: center; min-height: 0; color: var(--on-muted); text-align: center; }
.portal-chat-empty strong { color: var(--on-ink); font-size: 15px; font-weight: 650; }
.portal-chat-empty span { margin-top: 6px; font-size: 13px; }
.portal-chat-compose { display: grid; flex: 0 0 auto; grid-template-columns: minmax(0,1fr) 42px; align-items: end; gap: 7px; margin: 0 -20px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--on-line); background: var(--on-surface); }
.portal-chat-compose.has-photos { grid-template-columns: 42px minmax(0,1fr) 42px; }
.portal-shell.is-chat.is-keyboard-open .portal-chat-compose, .portal-shell.is-chat .portal-chat-compose:has(textarea:focus) { padding-bottom: 10px; }
.portal-chat-compose[hidden], .portal-chat-closed[hidden] { display: none; }
.portal-chat-closed { margin: 0 -20px; padding: 15px 20px calc(15px + env(safe-area-inset-bottom)); border-top: 1px solid var(--on-line); background: var(--on-soft); color: var(--on-muted); font-size: 13px; line-height: 1.5; text-align: center; }
.portal-chat-compose textarea { width: 100%; min-height: 44px; max-height: 112px; border: 1px solid var(--on-line); border-radius: 22px; outline: 0; padding: 11px 15px; background: var(--on-soft); color: var(--on-ink); font-size: 16px; line-height: 1.35; resize: none; }
.portal-chat-compose textarea:focus { border-color: var(--on-accent); background: var(--on-surface); }
.portal-chat-compose button { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: var(--on-accent); color: #FFFFFF; }
.portal-chat-compose button svg { width: 20px; height: 20px; }
.portal-chat-compose button:disabled { opacity: .55; }
.portal-chat-photo-pick { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--on-line); border-radius: 50%; color: var(--on-accent); cursor: pointer; }
.portal-chat-photo-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.portal-chat-photo-pick svg { display: block; width: 22px; height: 22px; }
.portal-chat-photo-tray { grid-column: 1 / -1; padding: 0 0 7px; }
.portal-chat-photo-tray[hidden] { display: none; }
.portal-chat-photo-tray__preview { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
.portal-chat-photo-tray__preview > div { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 8px; background: var(--on-soft); }
.portal-chat-photo-tray__preview img { width: 100%; height: 100%; object-fit: cover; }
.portal-chat-photo-tray__preview button { position: absolute; top: 3px; right: 3px; width: 23px; height: 23px; background: rgba(20,30,40,.8); font-size: 17px; }
.portal-chat-photo-tray__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.portal-chat-photo-tray__actions small { color: var(--on-muted); font-size: 13px; }
.portal-chat-compose .portal-chat-photo-tray__actions button { width: auto; height: 36px; border-radius: 9px; padding: 0 12px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.portal-chat-feedback { margin: 0; padding: 0 0 8px; color: #C24134; font-size: 13px; }
.portal-chat-feedback[hidden] { display: none; }
.portal-chat-menu > div { width: 155px; }
.portal-chat-menu > div > button { color: var(--on-ink); }
.portal-chat-transfer-dialog { width: min(calc(100% - 40px), 400px); max-width: none; border: 1px solid var(--on-line); border-radius: 16px; padding: 22px; background: var(--on-surface); color: var(--on-ink); box-shadow: 0 24px 60px rgba(0,0,0,.24); }
.portal-chat-transfer-dialog::backdrop { background: rgba(0,0,0,.52); }
.portal-chat-transfer-dialog h2 { margin: 0 0 8px; font-size: 19px; }
.portal-chat-transfer-dialog p { margin: 0 0 22px; color: var(--on-muted); font-size: 13px; line-height: 1.5; }
.portal-chat-transfer-dialog label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.portal-chat-transfer-dialog select { width: 100%; min-height: 48px; border: 1px solid var(--on-line); border-radius: 9px; padding: 0 12px; background: var(--on-surface); color: var(--on-ink); font-size: 14px; }
.portal-chat-transfer-dialog__actions { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 22px; }
.portal-chat-transfer-dialog__actions button { min-height: 44px; border: 0; border-radius: 9px; background: var(--on-soft); color: var(--on-ink); font-size: 13px; font-weight: 650; }
.portal-chat-transfer-dialog__actions button[type="submit"] { background: var(--on-accent); color: #FFFFFF; }
.portal-chat-transfer-dialog__actions button:disabled { opacity: .45; }
.portal-confirm-dialog { white-space: normal; }
.portal-confirm-dialog [data-portal-confirm-field][hidden] { display: none; }
.portal-confirm-dialog .portal-field textarea { min-height: 120px; border-color: var(--on-disabled); background: var(--on-surface); }
.portal-confirm-dialog .portal-field textarea:focus { border-color: var(--on-accent); }
.portal-confirm-dialog [data-portal-confirm-accept] { background: var(--on-accent); color: #FFFFFF; }
.portal-page-head { padding: 20px 0 26px; }
.portal-page-head > span, .portal-page-head > div > span { display: block; margin-bottom: 8px; color: #008E7A; font-size: 13px; font-weight: 650; }
.portal-page-head h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.045em; }
.portal-page-head p { margin: 9px 0 0; color: var(--on-muted); font-size: 13px; line-height: 1.5; }
.portal-page-head--action { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.portal-page-head--action > div { min-width: 0; }
.portal-page-head--action > a { display: inline-flex; flex: 0 0 auto; min-height: 38px; align-items: center; justify-content: center; margin-top: 4px; padding: 0 15px; border-radius: 10px; background: var(--on-navy); color: #FFFFFF; font-size: 13px; font-weight: 600; text-decoration: none; }
.portal-editor { margin: 0 -4px; padding-bottom: 96px; }
.portal-editor-section { margin-bottom: 14px; padding: 22px 18px 4px; border: 0; box-shadow: var(--on-card-shadow); border-radius: 16px; background: light-dark(var(--on-surface), var(--on-card-surface)); }
.portal-editor-section__head { display: grid; grid-template-columns: 34px 1fr; gap: 11px; margin-bottom: 24px; }
.portal-editor-section__head > b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--on-navy); color: #FFFFFF; font-size: 13px; font-weight: 650; }
.portal-editor-section__head h2 { margin: 1px 0 0; font-size: 18px; letter-spacing: -.025em; }
.portal-editor-section__head p { margin: 5px 0 0; color: var(--on-muted); font-size: 13px; line-height: 1.45; }
.portal-editor .portal-field span small { display: inline; margin-left: 5px; color: var(--on-muted); font-size: 13px; font-weight: 500; }
.portal-editor .portal-field input[type="file"] { padding: 15px; font-size: 13px; }
.portal-editor-checks { margin-top: 4px; }
.portal-editor-checks .portal-check { margin-bottom: 18px; }
.portal-segmented { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; padding: 4px; border-radius: 12px; background: var(--on-soft); }
.portal-segmented label { cursor: pointer; }
.portal-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.portal-segmented span { display: grid; min-height: 42px; place-items: center; border-radius: 9px; color: var(--on-muted); font-size: 13px; font-weight: 600; }
.portal-segmented input:checked + span { background: var(--on-surface); color: var(--on-ink); box-shadow: 0 3px 10px rgba(15,23,42,.1); }
.portal-segmented--hero { grid-template-columns: repeat(2,1fr); margin-top: 14px; background: var(--on-surface); }
.portal-segmented--hero input:checked + span { background: var(--on-navy); color: #FFFFFF; box-shadow: none; }
.portal-target-panel { margin-top: 18px; }
.portal-editor-label { margin: 0 0 10px 2px; font-size: 13px; font-weight: 650; }
.portal-editor-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.portal-editor-label-row .portal-editor-label { margin-bottom: 0; }
.portal-editor-label-row button { border: 0; padding: 4px 2px; background: transparent; color: var(--on-accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.portal-category-picker { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; margin-bottom: 22px; }
.portal-category-picker label { min-width: 0; cursor: pointer; }
.portal-category-picker input { position: absolute; opacity: 0; pointer-events: none; }
.portal-category-picker .portal-category { width: 100%; min-height: 42px; justify-content: center; border: 1px solid transparent; padding: 0 4px; border-radius: 9px; }
.portal-category-picker input:checked + .portal-category { border-color: currentColor; box-shadow: 0 0 0 2px var(--on-surface), 0 0 0 4px currentColor; }
.portal-summary-builder { margin: 0 0 22px; padding: 16px; border-radius: 13px; background: var(--on-soft); }
.portal-summary-builder .portal-editor-label-row { align-items: flex-start; }
.portal-summary-builder .portal-editor-label-row > div > span { display: block; margin-top: 5px; color: var(--on-muted); font-size: 13px; }
.portal-summary-builder .portal-editor-label small { margin-left: 4px; color: var(--on-muted); font-size: 13px; font-weight: 500; }
.portal-summary-builder .portal-editor-label-row button:disabled { color: var(--on-disabled); cursor: default; }
.portal-summary-builder__list { display: grid; gap: 9px; }
.portal-summary-builder__empty { margin: 14px 0 2px; color: var(--on-muted); font-size: 13px; line-height: 1.5; }
.portal-summary-builder__empty[hidden] { display: none; }
.portal-summary-editor-row { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--on-line); border-radius: 11px; background: var(--on-surface); }
.portal-summary-editor-row__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.portal-summary-editor-row label { display: block; min-width: 0; flex: 1; }
.portal-summary-editor-row label > span { display: block; margin: 0 0 6px 1px; color: var(--on-muted); font-size: 13px; font-weight: 600; }
.portal-summary-editor-row input, .portal-summary-editor-row select, .portal-summary-editor-row textarea { width: 100%; min-width: 0; border: 1px solid var(--on-line); border-radius: 8px; outline: 0; padding: 10px 11px; background: var(--on-soft); color: var(--on-ink); font-size: 13px; font-weight: 500; }
.portal-summary-editor-row select { height: 40px; padding-top: 0; padding-bottom: 0; }
.portal-summary-editor-row textarea { min-height: 64px; line-height: 1.5; resize: vertical; }
.portal-summary-editor-row input:focus, .portal-summary-editor-row select:focus, .portal-summary-editor-row textarea:focus { border-color: var(--on-accent); background: var(--on-surface); box-shadow: 0 0 0 3px rgba(0,159,137,.14); }
.portal-summary-editor-row__top > button { border: 0; padding: 9px 2px; background: transparent; color: var(--on-coral); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.portal-target-help { margin: 11px 2px 0; color: var(--on-muted); font-size: 13px; line-height: 1.55; }
.portal-target-help strong { color: var(--on-ink); font-weight: 650; }
.portal-choice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.portal-choice-grid input { position: absolute; opacity: 0; }
.portal-choice-grid span { display: grid; min-height: 46px; place-items: center; border: 1px solid var(--on-line); border-radius: 10px; color: var(--on-muted); font-size: 13px; font-weight: 600; }
.portal-choice-grid input:checked + span { border-color: var(--on-accent); background: var(--on-teal-soft); color: var(--on-ink); }
.portal-rule-box { margin: 20px 0 18px; padding: 16px; border-radius: 13px; background: var(--on-soft); }
.portal-rule-head strong { display: block; font-size: 14px; font-weight: 650; }
.portal-rule-head span { display: block; margin-top: 5px; color: var(--on-muted); font-size: 13px; line-height: 1.5; }
.portal-rule-row { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--on-line); cursor: pointer; }
.portal-rule-row > input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--on-accent); }
.portal-rule-row__body { display: block; min-width: 0; }
.portal-rule-row__body > strong { display: block; font-size: 13px; font-weight: 650; }
.portal-rule-row__controls { display: grid; grid-template-columns: minmax(0,1fr) 72px auto; align-items: center; gap: 7px; margin-top: 10px; }
.portal-rule-row select, .portal-rule-row input[type="number"] { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--on-line); border-radius: 8px; padding: 0 8px; background: var(--on-surface); color: var(--on-ink); font-size: 13px; }
.portal-rule-row__controls > i, .portal-rule-row__controls > em { color: var(--on-muted); font-size: 13px; font-style: normal; white-space: nowrap; }
.portal-rule-box [data-hero-rules] > small { display: block; margin-top: 16px; color: var(--on-muted); font-size: 13px; line-height: 1.5; }
.portal-rule-box [data-hero-rules][hidden] { display: none; }
.portal-rule-description { margin: 15px 0 3px; color: var(--on-muted); font-size: 13px; line-height: 1.5; }
.portal-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.portal-switch-row strong, .portal-switch-row small { display: block; }
.portal-switch-row strong { font-size: 14px; font-weight: 650; }
.portal-switch-row small { margin-top: 5px; color: var(--on-muted); font-size: 13px; line-height: 1.4; }
.portal-switch-row > input { width: 44px; height: 25px; accent-color: var(--on-accent); }
.portal-hero-settings[hidden], .portal-target-panel[hidden] { display: none; }
.portal-hero-upload { margin-bottom: 24px; }
.portal-hero-upload .portal-field { margin-bottom: 10px; }
.portal-hero-upload input[type="file"] { padding: 14px; font-size: 13px; }
.portal-hero-upload__preview { margin-top: 12px; }
.portal-hero-upload__preview[hidden] { display: none; }
.portal-hero-upload__preview img { display: block; width: 100%; aspect-ratio: 12 / 5; object-fit: cover; border-radius: 12px; }
.portal-hero-upload__preview button { margin-top: 10px; border: 1px solid var(--on-line); border-radius: 8px; padding: 8px 12px; background: var(--on-surface); color: var(--on-coral); cursor: pointer; }
.portal-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.portal-field-row > .portal-field { min-width: 0; }
.portal-field-row > .portal-field input { min-width: 0; max-width: 100%; }
.portal-field-row--stack { grid-template-columns: minmax(0,1fr); gap: 0; }
.portal-editor-submit { position: sticky; z-index: 9; bottom: calc(82px + env(safe-area-inset-bottom)); margin: 8px 0 0; padding: 14px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--on-surface) 14px); }
.portal-editor-submit .portal-button { min-height: 52px; }
.portal-editor .tox-tinymce { max-width: 100%; border: 1px solid var(--on-line) !important; border-radius: 12px !important; box-shadow: none !important; }
.portal-editor .tox .tox-toolbar__primary { background-image: none !important; }

@media (max-width: 520px) {
    .portal-editor .tox .tox-toolbar__group { padding: 0 2px; }
    .portal-editor .tox .tox-tbtn { width: 40px; height: 40px; }
    .portal-editor .tox .tox-tbtn--select { width: auto; min-width: 42px; }
}
.portal-profile-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 0; box-shadow: var(--on-card-shadow); border-radius: 14px; background: light-dark(var(--on-surface), var(--on-card-surface)); }
.portal-profile-card__avatar { display: grid; flex: 0 0 54px; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--on-accent), #1598B5); color: var(--on-navy); font-size: 19px; font-weight: 650; }
.portal-profile-card strong { display: block; font-size: 17px; font-weight: 650; }
.portal-profile-card small { display: block; margin-top: 5px; color: var(--on-muted); font-size: 13px; }
.portal-status-banner { display: grid; grid-template-columns: 42px 1fr 16px; align-items: center; gap: 12px; margin-top: 12px; padding: 15px; border-radius: 14px; background: var(--on-navy); color: #F8F7F4; text-decoration: none; }
.portal-status-banner.is-alert { background: #3C2421; }
.portal-status-banner__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: rgba(0,159,137,.18); color: var(--on-accent); font-size: 19px; font-weight: 650; }
.portal-status-banner strong { display: block; font-size: 13px; font-weight: 650; }
.portal-status-banner small { display: block; margin-top: 5px; color: rgba(248,247,244,.66); font-size: 13px; line-height: 1.4; }
.portal-status-banner i { color: var(--on-accent); font-size: 20px; font-style: normal; }
.portal-settings-list { overflow: hidden; border: 0; box-shadow: var(--on-card-shadow); border-radius: 14px; background: light-dark(var(--on-surface), var(--on-card-surface)); }
.portal-settings-list > div { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 11px; min-height: 68px; padding: 11px 15px; }
.portal-settings-list > div + div { border-top: 1px solid var(--on-line); }
.portal-settings-list__icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--on-soft); font-size: 17px; }
.portal-settings-list small { display: block; color: var(--on-muted); font-size: 13px; }
.portal-settings-list strong { display: block; margin-top: 3px; font-size: 13px; font-weight: 650; }
.portal-logout { margin-top: 28px; }
.portal-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 24px; font-size: 13px; }
.portal-pagination a, .portal-pagination span { color: var(--on-muted); text-decoration: none; }
.portal-pagination a:last-child, .portal-pagination span:last-child { text-align: right; }
.portal-pagination span[aria-disabled="true"] { opacity: .4; }
.portal-pagination strong { color: var(--on-ink); font-size: 13px; font-weight: 650; }
.portal-local-tools .portal-button { min-height: 46px; }
.portal-local-tools > small { display: block; margin-top: 10px; color: var(--on-muted); font-size: 13px; line-height: 1.45; text-align: center; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; animation-timing-function: ease-out; mix-blend-mode: normal; }
::view-transition-group(portal-header), ::view-transition-group(portal-bottom) { animation-duration: .18s; }
::view-transition-old(portal-content) { animation: portal-page-out .12s ease-in both; }
::view-transition-new(portal-content) { animation: portal-page-in .22s cubic-bezier(.22,1,.36,1) both; }

@keyframes portal-page-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
@keyframes portal-page-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-3px); }
}
@keyframes portal-page-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes portal-menu-cue {
    0%, 4%, 14%, 100% { transform: scale(1); box-shadow: none; }
    7%, 10% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(0,159,137,.2); }
}
@keyframes portal-menu-guide {
    0%, 12%, 32%, 100% { opacity: 0; transform: translateY(10px); }
    16%, 28% { opacity: 1; transform: translateY(0); }
}
@keyframes portal-share-cue {
    0%, 19%, 29%, 100% { background: transparent; }
    22%, 26% { background: rgba(0,159,137,.18); }
}
@keyframes portal-sheet-guide {
    0%, 28% { opacity: 0; transform: translateY(120%); }
    32%, 44% { opacity: 1; transform: translateY(40%); }
    48%, 66% { opacity: 1; transform: translateY(0); }
    70%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes portal-more-cue {
    0%, 36%, 46%, 100% { box-shadow: none; }
    39%, 43% { box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
}
@keyframes portal-more-arrow {
    0%, 44%, 100% { transform: rotate(0); }
    48%, 68% { transform: rotate(180deg); }
    72% { transform: rotate(0); }
}
@keyframes portal-more-label {
    0%, 72%, 100% { opacity: 1; }
    46% { opacity: 0; }
}
@keyframes portal-less-label {
    0%, 72%, 100% { opacity: 0; }
    46% { opacity: 1; }
}
@keyframes portal-home-reveal {
    0%, 44%, 72%, 100% { opacity: 0; }
    48%, 68% { opacity: 1; }
}
@keyframes portal-add-row {
    0%, 54%, 68%, 100% { background: transparent; }
    58%, 64% { background: rgba(255,255,255,.22); }
}
@keyframes portal-confirm-guide {
    0%, 66%, 88%, 100% { opacity: 0; transform: translateY(20px); }
    70%, 84% { opacity: 1; transform: translateY(0); }
}
@keyframes portal-confirm-cue {
    0%, 76%, 85%, 100% { transform: scale(1); }
    79%, 82% { transform: scale(.95); }
}
@keyframes portal-install-done {
    0%, 84%, 100% { opacity: 0; transform: scale(.96); }
    88%, 96% { opacity: 1; transform: scale(1); }
}
@keyframes portal-ios-caption {
    0%, 12% { opacity: 1; }
    14%, 98% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes portal-ios-caption-share {
    0%, 12%, 30%, 100% { opacity: 0; }
    14%, 28% { opacity: 1; }
}
@keyframes portal-ios-caption-more {
    0%, 28%, 46%, 100% { opacity: 0; }
    30%, 44% { opacity: 1; }
}
@keyframes portal-ios-caption-home {
    0%, 44%, 68%, 100% { opacity: 0; }
    46%, 66% { opacity: 1; }
}
@keyframes portal-ios-caption-add {
    0%, 66%, 86%, 100% { opacity: 0; }
    68%, 84% { opacity: 1; }
}
@keyframes portal-ios-caption-done {
    0%, 84%, 100% { opacity: 0; }
    86%, 98% { opacity: 1; }
}
@keyframes portal-toast {
    0% { opacity: 0; transform: translate(-50%, 14px); }
    10%, 86% { opacity: 1; transform: translate(-50%, 0); }
    100% { visibility: hidden; opacity: 0; transform: translate(-50%, 8px); }
}
@keyframes portal-toast-reduced {
    0%, 90% { opacity: 1; }
    100% { visibility: hidden; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .portal-main { animation: none; }
    .portal-ios-motion *, .portal-ios-motion *::after { animation: none; }
    .portal-flash { animation: portal-toast-reduced 4.2s linear forwards; }
    .portal-ios-motion__confirm { transform: none; opacity: 1; }
    .portal-ios-motion__captions span { opacity: 0; }
    .portal-ios-motion__captions span:nth-child(5) { opacity: 1; }
    .portal-ios-motion__screen, .portal-ios-motion__popover, .portal-ios-motion__sheet, .portal-ios-motion__done { display: none; }
    ::view-transition-old(root), ::view-transition-new(root), ::view-transition-old(portal-content), ::view-transition-new(portal-content) { animation-duration: .01ms; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .portal-bottom { background: rgba(248,247,244,.96); }
}
.portal-profile-row { padding: 16px 0; border-bottom: 1px solid var(--on-line); }
.portal-profile-row span { display: block; color: var(--on-muted); font-size: 13px; }
.portal-profile-row strong { display: block; margin-top: 4px; }
.portal-empty { padding: 38px 0; text-align: center; color: var(--on-muted); }

.portal-inquiry-tabs { display: grid; grid-template-columns: repeat(2,1fr); border-bottom: 1px solid var(--on-line); }
.portal-inquiry-tabs a { position: relative; display: flex; min-height: 45px; align-items: center; justify-content: center; gap: 6px; color: var(--on-muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.portal-inquiry-tabs a.is-active { color: var(--on-inquiry-selection); font-weight: 650; }
.portal-inquiry-tabs a.is-active::after { content: ""; position: absolute; right: 18px; bottom: -1px; left: 18px; height: 2px; border-radius: 99px; background: var(--on-inquiry-selection); }
.portal-inquiry-tabs__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--on-coral); }
.portal-inquiry-tabs__dot[hidden] { display: none; }
.portal-inquiry-search { display: grid; height: 46px; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 8px; margin: 14px 0 10px; border-radius: 11px; padding: 0 13px; background: var(--on-soft); color: var(--on-muted); }
.portal-inquiry-search svg { width: 20px; height: 20px; }
.portal-inquiry-search input { min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; color: var(--on-ink); font-size: 13px; }
.portal-inquiry-search a { color: var(--on-muted); font-size: 20px; text-decoration: none; }
.portal-inquiry-search .portal-user-search__submit { display: grid; width: 20px; height: 30px; place-items: center; padding: 0; border: 0; background: transparent; color: var(--on-muted); cursor: pointer; }
.portal-inquiry-search .portal-user-search__submit:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 3px; border-radius: 4px; }
.portal-status-filter { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 6px; padding: 2px 0 8px; scrollbar-width: none; }
.portal-status-filter::-webkit-scrollbar { display: none; }
.portal-status-filter a { flex: 0 0 auto; min-height: 31px; border-radius: 16px; padding: 7px 12px 0; background: var(--on-soft); color: var(--on-muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.portal-status-filter a.is-active { background: var(--on-inquiry-selection); color: #FFFFFF; }
.portal-staff-inquiry-list > a { display: grid; min-height: 102px; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--on-line); color: var(--on-ink); text-decoration: none; }
.portal-staff-inquiry-list > a.is-unread .portal-staff-inquiry-list__body strong::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 6px 2px 0; border-radius: 50%; background: var(--on-coral); }
.portal-building-chip { display: inline-flex; min-height: 25px; align-items: center; justify-content: center; border-radius: 7px; padding: 0 8px; background: var(--on-teal-soft); color: var(--on-accent); font-size: 13px; font-weight: 650; white-space: nowrap; }
.portal-staff-inquiry-list__body { min-width: 0; }
.portal-staff-inquiry-list__body strong { display: -webkit-box; overflow: hidden; font-size: 16px; font-weight: 650; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.portal-staff-inquiry-list__meta { display: flex; flex-wrap: wrap; gap: 3px 7px; margin-top: 8px; color: var(--on-muted); font-size: 13px; line-height: 1.5; }
.portal-staff-inquiry-list__meta > * { max-width: 100%; overflow-wrap: anywhere; }
.portal-staff-inquiry-list__meta > * + *::before { content: '·'; margin-right: 7px; color: var(--on-disabled); }
.portal-staff-inquiry-list__body em { display: block; overflow: hidden; margin-top: 6px; color: var(--on-muted); font-size: 13px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.portal-staff-inquiry-list > a.is-completed .portal-staff-inquiry-list__body,
.portal-staff-inquiry-list > a.is-completed .portal-inquiry-status > span { opacity: .7; }
.portal-staff-inquiry-list > a.is-completed .portal-staff-inquiry-list__body { color: var(--on-muted); }
.portal-staff-inquiry-list > a.is-completed .portal-inquiry-status { background: var(--on-soft); color: var(--on-muted); }
.portal-staff-chat-list > a { display: grid; min-height: 84px; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--on-line); color: var(--on-ink); text-decoration: none; }
.portal-staff-chat-list > a > span:nth-child(2) { min-width: 0; }
.portal-staff-chat-list small, .portal-staff-chat-list strong, .portal-staff-chat-list em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-staff-chat-list small { color: var(--on-muted); font-size: 13px; }
.portal-staff-chat-list strong { margin-top: 4px; font-size: 13px; font-weight: 650; }
.portal-staff-chat-list strong i { display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 5px; border-radius: 50%; background: var(--on-coral); }
.portal-staff-chat-list em { margin-top: 4px; color: var(--on-muted); font-size: 13px; font-style: normal; }
.portal-staff-chat-list time { align-self: start; margin-top: 18px; color: var(--on-muted); font-size: 13px; }
.portal-staff-inquiry-head { padding: 2px 0 4px; }
.portal-staff-inquiry-head > div { display: flex; align-items: center; gap: 7px; }
.portal-staff-inquiry-head h1 { margin: 15px 0 8px; font-size: 25px; line-height: 1.35; letter-spacing: -.035em; }
.portal-staff-inquiry-head p { margin: 0; color: var(--on-muted); font-size: 13px; }
.portal-staff-inquiry-summary { margin: 0 0 15px; padding: 5px 15px; border-radius: 13px; background: var(--on-soft); }
.portal-staff-inquiry-summary > div { display: grid; min-height: 54px; grid-template-columns: 88px minmax(0,1fr); align-items: center; gap: 8px; padding: 8px 0; }
.portal-staff-inquiry-summary > div + div { border-top: 1px solid var(--on-line); }
.portal-staff-inquiry-summary > div > span { color: var(--on-muted); font-size: 13px; }
.portal-staff-inquiry-summary strong { min-width: 0; font-size: 13px; font-weight: 650; line-height: 1.45; text-align: right; overflow-wrap: anywhere; }
.portal-staff-inquiry-summary__schedule span { display: block; }
.portal-staff-inquiry-summary .portal-entry-secret { grid-template-columns: 88px minmax(0,1fr) auto; }
.portal-entry-secret button { min-height: 30px; border: 0; border-radius: 8px; padding: 0 9px; background: var(--on-navy); color: #FFFFFF; font-size: 13px; }
.portal-staff-control { margin: 14px 0; }
.portal-staff-control h2 { margin: 0 0 9px; font-size: 14px; }
.portal-staff-control form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.portal-staff-control select { min-width: 0; height: 44px; border: 1px solid var(--on-line); border-radius: 10px; padding: 0 12px; background: var(--on-surface); color: var(--on-ink); font-size: 13px; }
.portal-staff-control button { border: 0; border-radius: 10px; padding: 0 15px; background: var(--on-navy); color: #FFFFFF; font-size: 13px; }
.portal-staff-chat-link { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; margin: 14px 0; border-radius: 13px; padding: 15px; background: var(--on-teal-soft); color: var(--on-ink); text-decoration: none; }
.portal-staff-chat-link small, .portal-staff-chat-link strong { display: block; }
.portal-staff-chat-link small { margin-bottom: 5px; color: var(--on-accent); font-size: 13px; }
.portal-staff-chat-link strong { font-size: 13px; font-weight: 650; }
.portal-staff-chat-link b { color: var(--on-muted); font-size: 20px; font-weight: 400; }
.portal-inquiry-history { margin: 14px 0 0; border-top: 1px solid var(--on-line); border-bottom: 1px solid var(--on-line); }
.portal-inquiry-history summary { padding: 14px 2px; color: var(--on-muted); font-size: 13px; cursor: pointer; }
.portal-inquiry-history div { padding-bottom: 9px; }
.portal-inquiry-history p { display: grid; grid-template-columns: 55px minmax(0,1fr) auto; gap: 8px; margin: 0; padding: 7px 2px; font-size: 13px; }
.portal-inquiry-history time, .portal-inquiry-history small { color: var(--on-muted); }
.portal-inquiry-delete { margin-top: 24px; }
.portal-inquiry-delete .portal-button { color: #a44039; }
.portal-staff-status-actions { margin: 0 0 12px; }
.portal-staff-status-actions--finish { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.portal-staff-status-actions--finish .portal-button { min-width: 0; }
.portal-staff-status-actions > span { display: grid; min-height: 48px; place-items: center; border-radius: 10px; background: var(--on-soft); color: var(--on-muted); font-size: 13px; }
.portal-chat-room--staff .portal-chat-message.is-mine p { background: var(--on-teal-soft); }
.portal-staff-profile-card { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; border-radius: 15px; padding: 17px; background: var(--on-navy); color: #FFFFFF; }
.portal-staff-profile-card > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--on-accent); font-size: 17px; font-weight: 650; }
.portal-staff-profile-card strong, .portal-staff-profile-card small { display: block; }
.portal-staff-profile-card strong { font-size: 15px; font-weight: 650; }
.portal-staff-profile-card small { margin-top: 5px; color: rgba(255,255,255,.65); font-size: 13px; }
.portal-staff-settings { display: grid; gap: 12px; margin: 0; }
.portal-settings-section { min-width: 0; padding: 18px 16px; border: 0; box-shadow: var(--on-card-shadow); border-radius: 16px; background: light-dark(var(--on-surface), var(--on-card-surface)); }
.portal-settings-section > header { margin-bottom: 18px; }
.portal-settings-section h3 { margin: 0; font-size: 15px; font-weight: 650; }
.portal-settings-section header p { margin: 6px 0 0; color: var(--on-muted); font-size: 13px; line-height: 1.55; word-break: keep-all; }
.portal-settings-section > .portal-field:last-child { margin-bottom: 0; }
.portal-settings-help { margin: -6px 0 18px; color: var(--on-muted); font-size: 12px; line-height: 1.55; }
.portal-setting-toggle { position: relative; display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; cursor: pointer; }
.portal-setting-toggle strong, .portal-setting-toggle small { display: block; }
.portal-setting-toggle strong { font-size: 13px; font-weight: 650; }
.portal-setting-toggle small { margin-top: 5px; color: var(--on-muted); font-size: 12px; line-height: 1.55; word-break: keep-all; }
.portal-setting-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.portal-setting-toggle i { position: relative; flex: 0 0 45px; width: 45px; height: 27px; border-radius: 14px; background: var(--on-line); transition: background .18s ease; }
.portal-setting-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .18s ease; }
.portal-setting-toggle input:checked + i, .portal-setting-toggle[aria-checked="true"] i { background: var(--on-accent); }
.portal-setting-toggle input:checked + i::after, .portal-setting-toggle[aria-checked="true"] i::after { transform: translateX(18px); }
.portal-setting-toggle input:focus-visible + i { outline: 2px solid var(--on-accent); outline-offset: 3px; }
.portal-user-menu form .portal-setting-toggle { min-height: 52px; margin: 0; color: var(--on-ink); text-align: start; }
.portal-user-menu form .portal-setting-toggle:focus-visible { outline: 2px solid var(--on-accent); outline-offset: -3px; }
.portal-chat-schedule { display: grid; grid-template-columns: minmax(0,1fr) 14px minmax(0,1fr); align-items: center; gap: 10px; margin-bottom: 18px; padding-top: 16px; border-top: 1px solid var(--on-line); }
.portal-chat-schedule > span { grid-column: 1 / -1; font-size: 13px; font-weight: 600; }
.portal-chat-schedule input[type="time"] { min-width: 0; width: 100%; height: 44px; border: 1px solid var(--on-line); border-radius: 10px; padding: 0 10px; background: var(--on-soft); color: var(--on-ink); font: inherit; font-size: 14px; }
.portal-chat-schedule b { color: var(--on-muted); font-size: 13px; font-weight: 400; text-align: center; }
.portal-setting-state { display: flex; min-height: 52px; align-items: center; justify-content: space-between; margin-bottom: 13px; border-bottom: 1px solid var(--on-line); font-size: 13px; }
.portal-setting-state strong { font-size: 13px; font-weight: 650; }
.portal-setting-state strong.is-ready { color: var(--on-accent); }
.portal-setting-state strong.is-alert { color: var(--on-coral); }
.portal-settings-submit { padding: 2px 0 0; }
@media (prefers-reduced-motion: reduce) {
    .portal-setting-toggle i, .portal-setting-toggle i::after { transition: none; }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-portal-theme]) {
        --on-accent: #009F89;
        --on-inquiry-selection: var(--on-accent);
        --on-lime: #C7FF58;
        --on-deep: #F8F7F4;
        --on-ink: #F8F7F4;
        --on-muted: #A1A1AA;
        --on-disabled: #71717A;
        --on-line: #363636;
        --on-soft: #2A2A2A;
        --on-teal-soft: rgba(0,159,137,.12);
        --on-lime-soft: rgba(199,255,88,.14);
        --on-important: rgba(255,123,104,.14);
        --on-bg: #1D1D1D;
        --on-surface: #1D1D1D;
        --on-button-text: #0F172A;
    }
    :where(:root:not([data-portal-theme])) .portal-error { color: #FFAAA4; }
    :where(:root:not([data-portal-theme])) .portal-field input, :where(:root:not([data-portal-theme])) .portal-field select, :where(:root:not([data-portal-theme])) .portal-field textarea { background: #292929; }
    :where(:root:not([data-portal-theme])) .portal-field input:focus, :where(:root:not([data-portal-theme])) .portal-field select:focus, :where(:root:not([data-portal-theme])) .portal-field textarea:focus { background: #242424; }
    :where(:root:not([data-portal-theme])) .portal-button { background: var(--on-accent); color: #FFFFFF; box-shadow: 0 7px 18px rgba(0,159,137,.20); }
    :where(:root:not([data-portal-theme])) .portal-button:hover { background: #11AF98; }
    :where(:root:not([data-portal-theme])) .portal-button.is-coral { background: var(--on-coral); color: var(--on-navy); }
    :where(:root:not([data-portal-theme])) .portal-button.is-light { background: var(--on-soft); color: var(--on-ink); }
    :where(:root:not([data-portal-theme])) .portal-page-header > a { background: var(--on-accent); color: #FFFFFF; }
    :where(:root:not([data-portal-theme])) .portal-building-filter a.is-active { color: #FFFFFF; background: var(--on-accent); }
    :where(:root:not([data-portal-theme])) .portal-category--general { background: rgba(255,255,255,.1); color: #D4D4D8; }
    :where(:root:not([data-portal-theme])) .portal-category--facility { color: #4BD2BC; }
    :where(:root:not([data-portal-theme])) .portal-category--inspection { color: #C7FF58; }
    :where(:root:not([data-portal-theme])) .portal-category--construction { color: #F0A56D; }
    :where(:root:not([data-portal-theme])) .portal-inquiry-status--checking { color: #4BD2BC; }
    :where(:root:not([data-portal-theme])) .portal-inquiry-status--received { background: rgba(59,130,246,.18); color: #93C5FD; }
    :where(:root:not([data-portal-theme])) .portal-setup-action { background: linear-gradient(to bottom, rgba(29,29,29,0), var(--on-surface) 18px); }
    :where(:root:not([data-portal-theme])) .portal-icon-button { background: #242424; }
    :where(:root:not([data-portal-theme])) .portal-quick__icon { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
    :where(:root:not([data-portal-theme])) .portal-quick--navy { background: #292929; }
    :where(:root:not([data-portal-theme])) .portal-facility-group { background: var(--on-card-surface); }
    :where(:root:not([data-portal-theme])) .portal-profile-card { background: var(--on-card-surface); }
    :where(:root:not([data-portal-theme])) .portal-page-head > span, :where(:root:not([data-portal-theme])) .portal-page-head > div > span, :where(:root:not([data-portal-theme])) .portal-list-item__marker, :where(:root:not([data-portal-theme])) .portal-inquiry-features span { color: var(--on-accent); }
    :where(:root:not([data-portal-theme])) .portal-editor-section { background: var(--on-card-surface); }
    :where(:root:not([data-portal-theme])) .portal-segmented input:checked + span { background: #333333; }
    :where(:root:not([data-portal-theme])) .portal-page-head--action > a, :where(:root:not([data-portal-theme])) .portal-editor-section__head > b { background: var(--on-accent); }
    :where(:root:not([data-portal-theme])) .portal-bottom { border-color: rgba(255,255,255,.13); outline: 0; background: linear-gradient(135deg, rgba(52,52,52,.78), rgba(35,35,35,.62)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.2), 0 14px 36px rgba(0,0,0,.38); }
    :where(:root:not([data-portal-theme])) .portal-bottom::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
    :where(:root:not([data-portal-theme])) .portal-bottom::after { background: rgba(255,255,255,.08); }
    :where(:root:not([data-portal-theme])) .portal-bottom a { color: #9A9A9F; }
    :where(:root:not([data-portal-theme])) .portal-bottom a.is-active { color: #F8F7F4; }
    :where(:root:not([data-portal-theme])) .portal-bottom a.is-active::before { border-color: rgba(255,255,255,.17); outline: 0; background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.07)); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.16), 0 5px 16px rgba(0,0,0,.26); }
    :where(:root:not([data-portal-theme])) .portal-bottom a.is-active .portal-bottom__icon { color: var(--on-accent); }

}
@media all {
    :root[data-portal-theme="dark"] {
        --on-accent: #009F89;
        --on-inquiry-selection: var(--on-accent);
        --on-lime: #C7FF58;
        --on-deep: #F8F7F4;
        --on-ink: #F8F7F4;
        --on-muted: #A1A1AA;
        --on-disabled: #71717A;
        --on-line: #363636;
        --on-soft: #2A2A2A;
        --on-teal-soft: rgba(0,159,137,.12);
        --on-lime-soft: rgba(199,255,88,.14);
        --on-important: rgba(255,123,104,.14);
        --on-bg: #1D1D1D;
        --on-surface: #1D1D1D;
        --on-button-text: #0F172A;
    }
    :where(:root[data-portal-theme="dark"]) .portal-error { color: #FFAAA4; }
    :where(:root[data-portal-theme="dark"]) .portal-field input, :where(:root[data-portal-theme="dark"]) .portal-field select, :where(:root[data-portal-theme="dark"]) .portal-field textarea { background: #292929; }
    :where(:root[data-portal-theme="dark"]) .portal-field input:focus, :where(:root[data-portal-theme="dark"]) .portal-field select:focus, :where(:root[data-portal-theme="dark"]) .portal-field textarea:focus { background: #242424; }
    :where(:root[data-portal-theme="dark"]) .portal-button { background: var(--on-accent); color: #FFFFFF; box-shadow: 0 7px 18px rgba(0,159,137,.20); }
    :where(:root[data-portal-theme="dark"]) .portal-button:hover { background: #11AF98; }
    :where(:root[data-portal-theme="dark"]) .portal-button.is-coral { background: var(--on-coral); color: var(--on-navy); }
    :where(:root[data-portal-theme="dark"]) .portal-button.is-light { background: var(--on-soft); color: var(--on-ink); }
    :where(:root[data-portal-theme="dark"]) .portal-page-header > a { background: var(--on-accent); color: #FFFFFF; }
    :where(:root[data-portal-theme="dark"]) .portal-building-filter a.is-active { color: #FFFFFF; background: var(--on-accent); }
    :where(:root[data-portal-theme="dark"]) .portal-category--general { background: rgba(255,255,255,.1); color: #D4D4D8; }
    :where(:root[data-portal-theme="dark"]) .portal-category--facility { color: #4BD2BC; }
    :where(:root[data-portal-theme="dark"]) .portal-category--inspection { color: #C7FF58; }
    :where(:root[data-portal-theme="dark"]) .portal-category--construction { color: #F0A56D; }
    :where(:root[data-portal-theme="dark"]) .portal-inquiry-status--checking { color: #4BD2BC; }
    :where(:root[data-portal-theme="dark"]) .portal-inquiry-status--received { background: rgba(59,130,246,.18); color: #93C5FD; }
    :where(:root[data-portal-theme="dark"]) .portal-setup-action { background: linear-gradient(to bottom, rgba(29,29,29,0), var(--on-surface) 18px); }
    :where(:root[data-portal-theme="dark"]) .portal-icon-button { background: #242424; }
    :where(:root[data-portal-theme="dark"]) .portal-quick__icon { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
    :where(:root[data-portal-theme="dark"]) .portal-quick--navy { background: #292929; }
    :where(:root[data-portal-theme="dark"]) .portal-facility-group { background: var(--on-card-surface); }
    :where(:root[data-portal-theme="dark"]) .portal-profile-card { background: var(--on-card-surface); }
    :where(:root[data-portal-theme="dark"]) .portal-page-head > span, :where(:root[data-portal-theme="dark"]) .portal-page-head > div > span, :where(:root[data-portal-theme="dark"]) .portal-list-item__marker, :where(:root[data-portal-theme="dark"]) .portal-inquiry-features span { color: var(--on-accent); }
    :where(:root[data-portal-theme="dark"]) .portal-editor-section { background: var(--on-card-surface); }
    :where(:root[data-portal-theme="dark"]) .portal-segmented input:checked + span { background: #333333; }
    :where(:root[data-portal-theme="dark"]) .portal-page-head--action > a, :where(:root[data-portal-theme="dark"]) .portal-editor-section__head > b { background: var(--on-accent); }
    :where(:root[data-portal-theme="dark"]) .portal-bottom { border-color: rgba(255,255,255,.13); outline: 0; background: linear-gradient(135deg, rgba(52,52,52,.78), rgba(35,35,35,.62)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.2), 0 14px 36px rgba(0,0,0,.38); }
    :where(:root[data-portal-theme="dark"]) .portal-bottom::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
    :where(:root[data-portal-theme="dark"]) .portal-bottom::after { background: rgba(255,255,255,.08); }
    :where(:root[data-portal-theme="dark"]) .portal-bottom a { color: #9A9A9F; }
    :where(:root[data-portal-theme="dark"]) .portal-bottom a.is-active { color: #F8F7F4; }
    :where(:root[data-portal-theme="dark"]) .portal-bottom a.is-active::before { border-color: rgba(255,255,255,.17); outline: 0; background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.07)); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.16), 0 5px 16px rgba(0,0,0,.26); }
    :where(:root[data-portal-theme="dark"]) .portal-bottom a.is-active .portal-bottom__icon { color: var(--on-accent); }

}

@media (min-width: 600px) {
    body { padding: 24px 0; }
    .portal-shell { min-height: calc(100vh - 48px); box-shadow: 0 12px 42px rgba(0, 0, 0, .16); border-radius: 14px; }
    .portal-shell.is-chat { height: calc(100dvh - 48px); }
    .portal-bottom { bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
    .portal-setup-action { bottom: 24px; border-radius: 0 0 14px 14px; }
}

/* Chat replies and reactions */
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message__bubble { position: relative; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message__bubble[tabindex]:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 4px; border-radius: 14px; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message__meta { display: grid; grid-template-columns: auto auto; align-items: end; gap: 3px 6px; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message__icons { display: flex; grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 3px; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message.is-mine .portal-chat-message__icons, .portal-chat-messages[data-chat-actions="1"] .portal-chat-message.is-previous-staff .portal-chat-message__icons { align-items: flex-end; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message__icons:empty { display: none; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message-actions { display: grid; grid-template-columns: repeat(2, 22px); width: max-content; gap: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message-actions[hidden], .portal-chat-messages[data-chat-actions="1"] .portal-chat-reactions[hidden] { display: none; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message-actions button { display: grid; width: 22px; height: 22px; place-items: center; border: 0; padding: 0; background: transparent; color: var(--on-ink); font-size: 14px; cursor: pointer; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message-actions button[aria-pressed="true"] { background: transparent; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message-actions button:disabled { opacity: .5; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message__bubble.has-reply { padding: 7px; border-radius: 14px 14px 14px 4px; background: var(--on-soft); }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message.is-mine .portal-chat-message__bubble.has-reply { border-radius: 14px 14px 4px 14px; background: var(--on-teal-soft); }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message__bubble.has-reply > p { padding: 7px 5px 2px; border-radius: 0; background: transparent; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-reply { display: block; width: 100%; min-width: 0; margin: 0; padding: 7px 9px; border: 0; border-left: 3px solid var(--on-accent); border-radius: 6px; background: var(--on-surface); color: var(--on-muted); font: inherit; font-size: 13px; line-height: 1.4; text-align: left; cursor: pointer; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-reply span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; white-space: pre-wrap; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-reply:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 2px; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-message.is-reply-target .portal-chat-message__bubble { outline: 2px solid var(--on-accent); outline-offset: 3px; border-radius: 14px; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-reactions { display: flex; gap: 2px; margin: 0; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-reactions button, .portal-chat-messages[data-chat-actions="1"] .portal-chat-reactions > span { display: inline-flex; align-items: center; min-height: 18px; padding: 0 1px; border: 0; background: transparent; color: var(--on-ink); font-size: 12px; line-height: 18px; }
.portal-chat-messages[data-chat-actions="1"] .portal-chat-reactions button.is-selected { background: transparent; }
.portal-chat-reply-preview { display: flex; grid-column: 1 / -1; min-width: 0; align-items: center; gap: 10px; padding: 7px 9px; border: 0; border-left: 3px solid var(--on-accent); border-radius: 6px; background: var(--on-soft); }
.portal-chat-reply-preview[hidden] { display: none; }
.portal-chat-reply-preview > span { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.portal-chat-reply-preview strong { color: var(--on-accent); font-size: 12px; }
.portal-chat-reply-preview > span > span { overflow: hidden; color: var(--on-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.portal-chat-compose .portal-chat-reply-preview button { flex: 0 0 28px; width: 28px; height: 28px; background: transparent; color: var(--on-muted); font-size: 22px; }
