:root {
  color-scheme: light;
  --brand: #0e7c74;
  --brand-deep: #085f59;
  --brand-pale: #eaf4f1;
  --ink: #1f3533;
  --muted: #758783;
  --line: #e2eae6;
  --canvas: #f4f7f6;
  --paper: #ffffff;
  --warm: #a16b2a;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
button, input, textarea, select, a { outline: none; }
:focus-visible { outline: 3px solid #40a69b; outline-offset: 4px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #0e7c7414; }
[hidden] { display: none !important; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon { width: 20px; height: 20px; stroke-width: 1.7; flex: 0 0 auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.4; }
button { border: 0; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 232px; padding: 36px 21px 22px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 7px; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 43px; height: 46px; border-radius: 13px 13px 18px 13px; color: #fff; background: var(--brand); flex-shrink: 0; }
.brand-mark .icon, .brand-mark svg { width: 25px; height: 25px; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .5px; line-height: 1.5; }
.brand-sub { display: block; color: #86938f; font-size: 10px; letter-spacing: 1.4px; margin-top: 3px; }
.sidebar nav { display: grid; gap: 9px; margin-top: 50px; }
.side-link { display: flex; width: 100%; align-items: center; gap: 13px; border: 0; border-radius: 11px; padding: 13px 17px; background: transparent; color: #75837f; text-align: left; font-weight: 550; }
.side-link .icon { width: 20px; height: 20px; }
.side-link:hover { background: #f3f8f5; color: var(--brand); }
.side-link.active { background: #e9f3f0; color: var(--brand); }
.side-link .badge { margin-left: auto; }
.sidebar-note { margin-top: auto; padding: 20px 12px 0; border-top: 1px solid var(--line); color: #8b9994; font-size: 11px; line-height: 1.9; }
.sidebar-note strong { display: block; margin-bottom: 5px; color: #60756c; font-size: 12px; font-weight: 550; }
.workspace { margin-left: 232px; min-height: 100vh; }
.topbar { min-height: 83px; padding: 18px 44px; border-bottom: 1px solid var(--line); display: flex; gap: 15px; align-items: center; background: #ffffffa6; }
.topbar-title { font-size: 13px; color: #73847e; margin-right: auto; }
.topbar-title strong { color: #4b6259; font-weight: 500; }
.mode-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid #d5e5dc; border-radius: 6px; color: #6c8779; font-size: 10px; letter-spacing: .5px; white-space: nowrap; }
.mode-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #7ca68f; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; color: #52665c; font-size: 12px; background: transparent; padding: 0; }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 50%; font-size: 12px; }
main#content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 44px 56px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 25px; }
.eyebrow { margin-bottom: 7px; color: #8d9d94; font-size: 10px; letter-spacing: 2.3px; text-transform: uppercase; }
h1 { font-size: 28px; letter-spacing: .7px; }
.page-desc { margin-top: 7px; color: var(--muted); font-size: 12px; }
.head-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 186px; display: flex; align-items: center; padding: 31px 35px; background: #e7f1eb; border: 1px solid #dbe8df; border-radius: var(--radius); }
.hero-copy { position: relative; z-index: 2; max-width: 65%; }
.hero-kicker { color: #658475; font-size: 11px; letter-spacing: 1.6px; margin-bottom: 12px; }
.hero h2 { font-size: 24px; color: #25594c; font-weight: 600; letter-spacing: 1px; }
.hero p { color: #748d7e; font-size: 12px; margin-top: 11px; line-height: 1.9; }
.hero-art { position: absolute; right: 34px; top: 50%; width: 158px; height: 158px; transform: translateY(-50%); border: 1px solid #b6d2c1; border-radius: 50%; display: grid; place-items: center; color: #6d9c84; background: radial-gradient(circle at center, transparent 0 35%, #d9e9dc 35.5% 36%, transparent 36.5% 57%, #c5decd 57.5% 58%, transparent 58.5%); }
.hero-art::before, .hero-art::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #7aa98b; box-shadow: 0 0 0 6px #cddfcf; }
.hero-art::before { top: 15px; left: 24px; }
.hero-art::after { right: 3px; bottom: 37px; width: 5px; height: 5px; }
.hero-art .icon, .hero-art svg { width: 53px; height: 53px; stroke-width: 1.2; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; margin: 21px 0 30px; }
.stat-card { display: flex; align-items: center; gap: 16px; padding: 20px 23px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.stat-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: #67917d; background: #f0f5f0; flex-shrink: 0; }
.stat-card:nth-child(2) .stat-icon { background: #f8f3e9; color: #b09564; }
.stat-card:nth-child(3) .stat-icon { background: #eff3f5; color: #7e94a0; }
.stat-value { display: block; color: #344e42; font-size: 26px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.stat-label { display: block; margin-top: 4px; color: #87978f; font-size: 11px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel + .panel { margin-top: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 24px 27px 20px; }
.panel-head h2 { font-size: 16px; letter-spacing: .4px; }
.panel-note { color: #99a59e; font-size: 11px; }
.panel > p, .panel > .privacy-copy { margin: 0 27px 25px; }
.toolbar { display: flex; align-items: center; gap: 12px; padding: 0 27px 20px; }
.chip-list { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 15px; border-radius: 7px; font-size: 12px; color: #809087; background: transparent; border: 1px solid transparent; }
.chip:hover { background: #f2f7f3; color: var(--brand); }
.chip.active { background: #e9f3ee; color: var(--brand); font-weight: 550; }
.notice-list { padding: 0 27px; }
.notice-card { position: relative; display: block; width: 100%; padding: 22px 25px 22px 0; background: #fff; border-top: 1px solid #edf1ee; text-align: left; }
.notice-card:hover { background: #fafcfb; }
.notice-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; border-radius: 4px; padding: 2px 7px; color: #688773; background: #f0f6f0; font-size: 10px; line-height: 1.6; }
.tag-warm { color: #a17c48; background: #fbf4e9; }
.tag-muted { color: #8c9991; background: #f2f4f1; }
.notice-title { color: #354a40; font-size: 15px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.notice-excerpt { color: #99a49d; margin-top: 7px; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.notice-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 13px; font-size: 10px; color: #a0aaa3; }
.notice-foot .icon { width: 13px; height: 13px; margin-right: 5px; }
.unread-dot { display: inline-block; width: 6px; height: 6px; background: #d39f60; border-radius: 50%; margin: 0 6px 2px 0; }
.notice-card > .arrow, .notice-card .arrow { position: absolute; right: 0; top: 50%; color: #adbbb1; }
.empty-state, .error-state { padding: 50px 24px; text-align: center; color: #8b9b91; }
.empty-state .icon, .error-state .icon { display: block; width: 35px; height: 35px; margin: 0 auto 14px; color: #b5c6ba; stroke-width: 1.2; }
.empty-state h2, .error-state h2 { color: #60786a; font-size: 15px; margin-bottom: 7px; }
.empty-state p, .error-state p { font-size: 12px; margin-bottom: 16px; }
.error-state { color: #946253; }
.skeleton { position: relative; overflow: hidden; background: #e7eee9; border-radius: 8px; min-height: 85px; margin: 12px 0; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); animation: shimmer 1.5s infinite; background: linear-gradient(90deg,transparent,#fff7,transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.search-box { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; max-width: 440px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.search-box .icon { color: #91a295; width: 18px; height: 18px; }
.search-box input { width: 100%; padding: 11px 0; border: 0; color: var(--ink); background: transparent; box-shadow: none; min-width: 0; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px #0e7c7410; }
.search-box input:focus { box-shadow: none; }
input::placeholder, textarea::placeholder { color: #a2ada5; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 23px; }
.filter-row .search-box { margin-right: auto; }
select, .filter-row select { max-width: 100%; padding: 10px 32px 10px 13px; border: 1px solid var(--line); border-radius: 9px; color: #6c8173; background-color: #fff; }
.people-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.person-card { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); text-align: left; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.person-card:hover { border-color: #adc9b9; box-shadow: 0 6px 18px #284e3810; }
.avatar { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 13px; background: #eaf2eb; color: #5f8c72; font-size: 18px; font-weight: 550; flex-shrink: 0; }
.person-card:nth-child(3n+2) .avatar { background: #f4eee4; color: #a3916a; }
.person-card:nth-child(3n+3) .avatar { background: #eaf0f3; color: #8196a1; }
.person-info { min-width: 0; flex: 1; }
.person-name { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.person-unit { color: #819187; font-size: 12px; overflow-wrap: anywhere; }
.person-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; color: #9aa69d; font-size: 10px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; color: #81978a; background: transparent; padding: 0; font-size: 12px; }
.back-link .icon { width: 16px; height: 16px; }
.back-link:hover { color: var(--brand); }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 22px; align-items: start; }
.detail-main { padding: 31px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.detail-main h1 { font-size: 24px; margin-bottom: 16px; overflow-wrap: anywhere; }
.detail-main .notice-foot { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 24px; }
.detail-body { font-size: 14px; line-height: 2; color: #536c5d; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-body p + p { margin-top: 18px; }
.detail-side { display: grid; gap: 18px; min-width: 0; }
.detail-side > .panel { padding: 23px; }
.detail-side h2 { font-size: 14px; margin-bottom: 15px; }
.attachment { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fcfdfb; padding: 13px; text-align: left; color: #6a8270; margin-top: 10px; }
.attachment:hover { border-color: #a7c8b4; }
.attachment .icon { width: 25px; height: 25px; color: #8daa93; }
.attachment span { min-width: 0; overflow-wrap: anywhere; }
.attachment small { display: block; color: #9aaa9d; margin-top: 3px; font-size: 10px; }
.receipt-box { padding: 24px; background: #edf5ee; border: 1px solid #dae9dd; border-radius: var(--radius); }
.receipt-box h2 { color: #496f53; }
.receipt-box p { color: #819682; font-size: 12px; margin-bottom: 17px; }
.receipt-box .button { width: 100%; }
.info-row { display: flex; gap: 17px; padding: 13px 0; border-bottom: 1px solid #edf1ee; font-size: 13px; }
.info-row:last-child { border-bottom: 0; }
.info-label { flex: 0 0 78px; color: #99a69c; }
.info-value { flex: 1; color: #506d59; overflow-wrap: anywhere; min-width: 0; }
.profile-card { display: flex; gap: 21px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 22px; }
.profile-avatar { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; font-size: 27px; font-weight: 550; color: var(--brand); background: #e5f1ea; flex-shrink: 0; }
.profile-name { font-size: 22px; font-weight: 650; margin-bottom: 6px; }
.profile-meta { font-size: 12px; color: #8e9c91; line-height: 1.9; }
.profile-card > .button { margin-left: auto; flex-shrink: 0; }
.settings-list, .action-list { padding: 0 26px; }
.setting-row { display: flex; align-items: center; gap: 20px; padding: 21px 0; border-top: 1px solid #edf1ee; }
.setting-copy { flex: 1; min-width: 0; }
.setting-copy strong { display: block; font-size: 13px; color: #4c6655; font-weight: 550; }
.setting-copy p, .setting-copy small { display: block; margin-top: 5px; font-size: 11px; color: #9ca79d; line-height: 1.8; }
.switch { display: inline-flex; position: relative; flex: 0 0 auto; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 39px; height: 23px; display: block; border-radius: 14px; background: #d9e3dc; transition: background .2s; }
.switch span::after { content: ''; display: block; position: absolute; width: 17px; height: 17px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #173b291a; transition: transform .2s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 3px solid #40a69b; outline-offset: 4px; }
.switch input:disabled + span { opacity: .45; }
.action-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 19px 0; border-top: 1px solid #edf1ee; color: #67806c; background: transparent; font-size: 13px; text-align: left; }
.action-row .icon { width: 18px; height: 18px; color: #9aad9b; }
.action-row .arrow, .action-row > .icon:last-child { margin-left: auto; width: 15px; height: 15px; color: #b0bdb0; }
.action-row:hover { color: var(--brand); }
.action-row.danger { color: #a56c5c; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; color: #68816d; font-size: 12px; font-weight: 550; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; border: 1px solid #dde7de; border-radius: 8px; padding: 11px 12px; background: #fff; color: #4a6653; }
.field textarea { resize: vertical; min-height: 110px; }
.field small { color: #97a598; font-size: 11px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.privacy-copy { color: #6d8372; font-size: 13px; line-height: 2; overflow-wrap: anywhere; }
.privacy-copy h2 { color: #4a6a51; font-size: 16px; margin: 26px 0 10px; }
.privacy-copy h2:first-child { margin-top: 0; }
.privacy-copy p + p { margin-top: 13px; }
.privacy-copy ul { padding-left: 22px; }
.login-layout { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: calc(100vh - 220px); gap: 55px; max-width: 970px; margin: auto; padding: 25px 0; }
.login-intro .eyebrow { color: #8ca595; font-size: 11px; margin-bottom: 18px; }
.login-intro h1 { color: #315e49; font-size: 37px; letter-spacing: 1px; line-height: 1.65; }
.login-intro p { margin-top: 20px; color: #8a9b8f; font-size: 13px; line-height: 2; max-width: 350px; }
.login-intro .brand-mark { width: 60px; height: 60px; margin-bottom: 33px; border-radius: 18px 18px 25px 18px; }
.login-intro .brand-mark svg { width: 35px; height: 35px; }
.login-card { padding: 32px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 12px 45px #36513c05; }
.login-card h2 { font-size: 21px; margin-bottom: 9px; }
.login-card > p { color: #93a092; font-size: 12px; line-height: 1.9; }
.consent-row { display: flex; gap: 9px; align-items: flex-start; font-size: 11px; color: #91a18f; margin: 21px 0; cursor: pointer; }
.consent-row input { width: 15px; height: 15px; margin: 3px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.demo-box { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 21px; }
.demo-box h3 { color: #849580; font-size: 11px; font-weight: 500; margin-bottom: 10px; }
.demo-box p { color: #a5afa0; font-size: 10px; margin-top: 11px; line-height: 1.9; }
.demo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.demo-person { background: #f6f9f4; border: 1px solid #e3ebdf; border-radius: 8px; padding: 13px 5px; color: #76916e; font-size: 11px; text-align: center; }
.demo-person strong { display: block; font-weight: 550; font-size: 12px; }
.demo-person small { display: block; margin-top: 5px; font-size: 10px; color: #9cae92; }
.demo-person:hover { border-color: #adc4a1; background: #eff5eb; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 9px 17px; border-radius: 8px; border: 1px solid transparent; font-size: 12px; font-weight: 550; line-height: 1.5; transition: background .15s, border-color .15s; }
.button .icon { width: 16px; height: 16px; }
.button.primary { color: #fff; background: var(--brand); }
.button.primary:hover { color: #fff; background: var(--brand-deep); }
.button.secondary { color: #6c8c71; background: #fff; border-color: #d7e3d7; }
.button.secondary:hover { background: #f2f7ef; border-color: #b6cdb3; }
.button.ghost { background: transparent; color: #83977e; }
.button.ghost:hover { color: var(--brand); background: #edf4e9; }
.button.danger { color: #a46e5f; background: #fcf5ef; border-color: #f1dfd1; }
.button.full { width: 100%; }
.button.small { min-height: 31px; padding: 5px 10px; font-size: 11px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; min-height: 19px; border-radius: 6px; background: #deebe0; color: #5c8365; padding: 0 5px; font-size: 10px; font-weight: 600; }
.inline-message, .notice-banner { padding: 13px 16px; border-radius: 9px; font-size: 12px; line-height: 1.8; color: #8a7957; border: 1px solid #ebe1ce; background: #fbf7ed; margin: 16px 0; overflow-wrap: anywhere; }
.inline-message.error { color: #a46856; border-color: #efded3; background: #fff7f1; }
.inline-message.success { color: #5d855f; border-color: #d5e4d2; background: #f1f8ed; }
.notice-banner { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 22px; color: #7f947d; border-color: #dfe8d9; background: #f0f5ec; font-size: 11px; }
.notice-banner .icon { width: 16px; height: 16px; margin-top: 2px; }
.divider { height: 1px; border: 0; background: var(--line); margin: 22px 0; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mobile-nav { display: none; }
.toast { position: fixed; bottom: 30px; left: calc(50% + 116px); z-index: 100; transform: translateX(-50%); max-width: min(520px,calc(100vw - 36px)); background: #254f3d; box-shadow: 0 5px 24px #254f3d26; color: #fff; padding: 12px 21px; border-radius: 9px; font-size: 12px; text-align: center; }
.toast.error { background: #8d5746; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 80; background: #19392955; display: flex; justify-content: center; align-items: center; padding: 24px; backdrop-filter: blur(3px); }
.dialog { width: min(460px,100%); max-height: calc(100dvh - 48px); overflow: auto; border-radius: 18px; padding: 28px; background: #fff; box-shadow: 0 20px 80px #143b2926; }
.dialog h2 { color: #3a6249; font-size: 20px; margin-bottom: 13px; }
.dialog p { color: #84947e; line-height: 1.9; font-size: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
@media (min-width: 1440px) {
  .topbar { padding-left: max(44px,calc((100vw - 232px - 1092px) / 2)); padding-right: max(44px,calc((100vw - 232px - 1092px) / 2)); }
}
@media (max-width: 1160px) {
  .sidebar { width: 208px; padding-inline: 16px; }
  .workspace { margin-left: 208px; }
  .brand-name { font-size: 14px; }
  .brand-mark { width: 38px; height: 42px; }
  .brand { gap: 9px; }
  .topbar { padding-inline: 30px; }
  main#content { padding: 30px; }
  .detail-layout { grid-template-columns: minmax(0,1fr) 230px; gap: 17px; }
  .detail-main { padding: 25px; }
  .stat-card { padding: 18px; gap: 12px; }
  .login-layout { gap: 30px; }
  .login-intro h1 { font-size: 30px; }
  .login-card { padding: 25px; }
  .toast { left: calc(50% + 104px); }
}
@media (max-width: 950px) {
  .sidebar { width: 180px; padding-inline: 12px; }
  .workspace { margin-left: 180px; }
  .brand-mark { width: 32px; height: 36px; border-radius: 11px; }
  .brand-name { font-size: 12px; }
  .brand-sub { font-size: 8px; letter-spacing: .5px; }
  .side-link { padding-inline: 14px; gap: 10px; font-size: 13px; }
  .topbar { padding-inline: 24px; }
  main#content { padding: 28px 24px 45px; }
  .hero { padding: 26px; min-height: 171px; }
  .hero h2 { font-size: 21px; }
  .hero-art { right: 20px; width: 125px; height: 125px; }
  .hero-art .icon, .hero-art svg { width: 43px; height: 43px; }
  .stats-grid { gap: 11px; }
  .stat-card { padding: 16px 13px; gap: 10px; }
  .stat-icon { width: 34px; height: 34px; border-radius: 10px; }
  .stat-value { font-size: 23px; }
  .stat-label { font-size: 10px; }
  .people-grid { gap: 12px; }
  .person-card { padding: 19px; gap: 12px; }
  .avatar { width: 39px; height: 42px; border-radius: 10px; font-size: 16px; }
  .person-name { font-size: 14px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .login-layout { grid-template-columns: 1fr; gap: 28px; max-width: 450px; padding: 20px 0; }
  .login-intro .brand-mark { display: none; }
  .login-intro h1 { font-size: 29px; line-height: 1.5; }
  .login-intro p { margin-top: 10px; max-width: none; }
  .login-intro .eyebrow { margin-bottom: 10px; }
  .toast { left: calc(50% + 90px); }
}
@media (max-width: 700px) {
  .sidebar { display: none; }
  .workspace { margin-left: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 65px; padding: 14px 20px; gap: 9px; background: #fff; }
  .topbar-title { color: #4c6c59; font-size: 13px; font-weight: 550; }
  .topbar-title strong { color: inherit; }
  .mode-tag { font-size: 9px; padding: 2px 6px; gap: 4px; }
  .user-chip { font-size: 11px; gap: 6px; }
  .user-chip .avatar { width: 26px; height: 26px; font-size: 11px; }
  main#content { padding: 26px 20px 28px; }
  .page-head { align-items: center; gap: 12px; margin-bottom: 22px; }
  .eyebrow { font-size: 9px; margin-bottom: 5px; letter-spacing: 1.8px; }
  h1 { font-size: 25px; }
  .page-desc { margin-top: 5px; font-size: 11px; }
  .head-actions .button { font-size: 11px; min-height: 34px; padding: 7px 10px; }
  .hero { padding: 25px 23px; min-height: 167px; border-radius: 13px; }
  .hero-copy { max-width: 73%; }
  .hero-kicker { font-size: 9px; letter-spacing: 1px; margin-bottom: 10px; }
  .hero h2 { font-size: 20px; line-height: 1.6; }
  .hero p { font-size: 10px; margin-top: 8px; max-width: 210px; }
  .hero-art { right: -11px; width: 116px; height: 116px; opacity: .7; }
  .hero-art .icon, .hero-art svg { width: 39px; height: 39px; }
  .stats-grid { gap: 9px; margin: 15px 0 24px; }
  .stat-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 15px; border-radius: 11px; }
  .stat-icon { width: 30px; height: 30px; border-radius: 8px; }
  .stat-icon .icon { width: 17px; height: 17px; }
  .stat-value { font-size: 25px; }
  .stat-label { font-size: 10px; margin-top: 4px; white-space: nowrap; }
  .panel { border-radius: 13px; }
  .panel-head { padding: 21px 20px 15px; }
  .panel-head h2 { font-size: 15px; }
  .panel-note { font-size: 10px; }
  .panel > p, .panel > .privacy-copy { margin-inline: 20px; }
  .toolbar { padding: 0 18px 16px; gap: 8px; }
  .chip-list { gap: 3px; }
  .chip { font-size: 11px; padding: 5px 11px; }
  .notice-list { padding-inline: 20px; }
  .notice-card { padding: 20px 18px 20px 0; }
  .notice-title { font-size: 14px; }
  .notice-excerpt { font-size: 11px; -webkit-line-clamp: 2; }
  .notice-meta { gap: 5px; margin-bottom: 9px; }
  .notice-foot { gap: 12px; font-size: 9px; margin-top: 12px; }
  .tag { font-size: 9px; padding: 2px 6px; }
  .people-grid { grid-template-columns: 1fr; gap: 12px; }
  .person-card { padding: 21px; gap: 16px; }
  .person-name { font-size: 16px; }
  .avatar { width: 44px; height: 46px; border-radius: 12px; font-size: 18px; }
  .person-unit { font-size: 12px; }
  .filter-row { gap: 8px; margin-bottom: 18px; }
  .filter-row .search-box { max-width: none; flex-basis: 100%; }
  .filter-row select { flex: 1 1 25%; font-size: 11px; min-width: 0; padding: 9px 20px 9px 10px; }
  .search-box input { font-size: 12px; padding-block: 11px; }
  .detail-main { padding: 23px 21px; border-radius: 13px; }
  .detail-main h1 { font-size: 21px; }
  .detail-body { font-size: 13px; line-height: 2; }
  .detail-side { grid-template-columns: 1fr; }
  .detail-side > .panel { padding: 21px; }
  .detail-layout { gap: 16px; }
  .receipt-box { padding: 22px; }
  .back-link { margin-bottom: 18px; font-size: 11px; }
  .profile-card { padding: 24px 21px; gap: 17px; flex-wrap: wrap; }
  .profile-avatar { width: 56px; height: 56px; border-radius: 17px; font-size: 24px; }
  .profile-name { font-size: 20px; }
  .profile-meta { font-size: 11px; }
  .profile-card > .button { margin-left: 73px; }
  .settings-list, .action-list { padding-inline: 20px; }
  .setting-row { padding-block: 18px; gap: 15px; }
  .setting-copy strong { font-size: 12px; }
  .setting-copy p, .setting-copy small { font-size: 10px; }
  .action-row { padding-block: 18px; font-size: 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .field input, .field textarea, .field select { font-size: 16px; padding: 10px 12px; }
  .field label { font-size: 12px; }
  .form-actions { gap: 10px; }
  .form-actions > .button { flex: 1; }
  .login-layout { min-height: auto; gap: 25px; padding: 10px 0; }
  .login-intro h1 { font-size: 29px; }
  .login-intro p { font-size: 12px; line-height: 1.9; }
  .login-card { padding: 27px 24px; border-radius: 15px; }
  .login-card h2 { font-size: 20px; }
  .login-card > p { font-size: 11px; }
  .consent-row { font-size: 11px; line-height: 1.9; }
  .demo-person { padding-block: 14px; }
  .demo-person strong { font-size: 11px; }
  .demo-person small { font-size: 9px; }
  .notice-banner { padding: 12px 14px; margin-bottom: 18px; font-size: 10px; }
  .mobile-nav { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-height: 67px; padding: 8px 20px calc(8px + env(safe-area-inset-bottom)); background: #ffffffed; border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; color: #a1afa3; background: transparent; font-size: 10px; padding: 2px; }
  .nav-item .icon { width: 21px; height: 21px; }
  .nav-item.active { color: var(--brand); }
  .nav-item.active::before { position: absolute; content: ''; top: -9px; width: 21px; height: 2px; border-radius: 0 0 2px 2px; background: var(--brand); }
  .nav-item .badge { position: absolute; top: -2px; margin-left: 27px; min-width: 15px; min-height: 15px; font-size: 8px; border: 2px solid #fff; background: #d8a46a; color: #fff; border-radius: 9px; }
  .toast { bottom: calc(85px + env(safe-area-inset-bottom)); left: 50%; padding: 11px 18px; font-size: 11px; }
  .dialog-backdrop { padding: 20px; }
  .dialog { padding: 25px; }
  .dialog h2 { font-size: 19px; }
}
@media (max-width: 370px) {
  .topbar { padding-inline: 16px; }
  .topbar-title { font-size: 12px; }
  .user-chip { font-size: 0; }
  main#content { padding-inline: 15px; }
  .hero { padding-inline: 19px; }
  .hero h2 { font-size: 18px; }
  .hero-art { right: -25px; }
  .stat-card { padding-inline: 12px; }
  .panel-head, .notice-list, .settings-list, .action-list { padding-inline: 17px; }
  .chip { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Integration details for the shared H5 shell. */
.skip-link { position: fixed; z-index: 120; left: 20px; top: -80px; border-radius: 8px; background: var(--brand); color: #fff; padding: 10px 16px; font-size: 12px; }
.skip-link:focus { top: 15px; }
.sidebar-section { color: #adb8af; font-size: 10px; letter-spacing: 1.4px; margin: 43px 17px 13px; }
.sidebar nav { margin-top: 0; }
.sidebar-note-mark { display: block; margin-bottom: 10px; color: #80967f; font-size: 11px; }
.sidebar-note a { display: block; margin-top: 13px; color: #9aac96; font-size: 10px; }
.sidebar-note a:hover { color: var(--brand); }
.nav-marker { width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-left: auto; }
.topbar-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.topbar-title span { margin-left: 9px; color: #a3b0a4; font-size: 11px; }
.page-footer { display: flex; justify-content: center; gap: 17px; padding: 0 25px 24px; color: #b0bdb0; font-size: 10px; letter-spacing: .4px; }
.page-footer span { padding-left: 17px; border-left: 1px solid #d9e3d7; }
.hero .button { margin-top: 16px; background: #ffffff88; color: #6c8b71; border-color: #cddfd0; }
.stat-card:hover { border-color: #b5cdb8; }
.stat-card[aria-pressed="true"] { border-color: #b7d1ba; background: #fcfefa; }
.notice-meta time { margin-left: auto; color: #a3afa3; font-size: 10px; white-space: nowrap; }
.notice-meta > .muted { font-size: 10px; }
.notice-foot { justify-content: space-between; }
.notice-foot > .icon { width: 14px; height: 14px; margin: 0; }
.notice-card .unread-dot { margin-right: 0; }
.person-card > .icon:last-child { width: 14px; height: 14px; margin-top: 17px; color: #acbaad; }
.person-name .tag { margin-left: 5px; vertical-align: middle; font-weight: 400; }
.person-meta { justify-content: space-between; }
.content-panel { padding: 28px; }
.directory-panel { padding: 22px; margin-bottom: 22px; }
.directory-panel .search-box { max-width: none; }
.directory-panel .filter-row { align-items: center; margin-top: 15px; margin-bottom: 0; }
.directory-panel .filter-row > .muted { font-size: 11px; margin-left: auto; }
.panel > .profile-card { padding: 0; border: 0; border-radius: 0; margin-bottom: 0; }
.panel > .profile-card p { color: #8d9d8c; font-size: 12px; margin-bottom: 7px; }
.content-panel > .divider { margin-block: 23px; }
.detail-main > .divider { margin-block: 23px; }
.detail-main > p.muted { font-size: 11px; line-height: 1.8; margin: 10px 0 0; }
.detail-main > h3 { font-size: 14px; margin-bottom: 14px; color: #607c61; }
.detail-main > h3 .muted { font-weight: 400; font-size: 11px; margin-left: 5px; }
.detail-main > .profile-card { padding: 0; border: 0; margin: 0; }
.detail-side.panel { display: block; padding: 23px; }
.detail-side.panel .panel-head { padding: 0; margin-bottom: 15px; }
.detail-side.panel .panel-head h2 { margin: 0; }
.detail-side.panel .settings-list { padding: 0; }
.detail-side.panel .action-row { padding-bottom: 0; }
.detail-side.panel .setting-row:first-child { border-top: 0; padding-top: 0; }
.detail-side.panel .setting-row:last-child { padding-bottom: 19px; }
.detail-side.panel .action-row .icon { width: 17px; height: 17px; }
.detail-side.panel .action-row > .icon:last-child { width: 14px; height: 14px; }
.detail-side > .receipt-box { padding: 24px; background: #edf5ee; border-color: #dae9dd; }
.receipt-box > .icon { width: 29px; height: 29px; margin-bottom: 13px; color: #7c9d77; stroke-width: 1.4; }
.receipt-box h2 { margin-bottom: 9px; }
.receipt-box > p.muted { margin-top: 14px; margin-bottom: 0; font-size: 10px; }
.receipt-box .inline-message { margin-bottom: 0; font-size: 10px; background: #ffffff7a; }
.receipt-box .inline-message .icon { width: 14px; height: 14px; }
.action-row strong { display: block; font-size: 12px; font-weight: 550; color: inherit; }
.action-row small { display: block; color: #a0ac9a; font-size: 10px; margin-top: 4px; line-height: 1.8; font-weight: 400; }
.panel.action-list { margin-top: 23px; }
.action-list > .action-row:first-child { border-top: 0; }
.content-panel form > .field + .field, .content-panel .form-grid + .field { margin-top: 20px; }
.panel.privacy-copy { margin: 0; }
.privacy-copy > .notice-banner:first-child { margin-top: 0; }
.login-intro { position: relative; }
.login-intro .hero-art { display: none; }
.login-features { display: grid; gap: 15px; margin-top: 32px; font-size: 12px; color: #8a9f85; }
.login-features > span { display: flex; align-items: center; gap: 10px; }
.login-features .icon { width: 18px; height: 18px; stroke-width: 1.5; color: #7fa67a; }
.demo-box > .badge { margin-bottom: 13px; font-size: 9px; }
.demo-box h3 { margin-bottom: 5px; font-size: 13px; color: #637f5e; }
.demo-box > p { margin-top: 0; margin-bottom: 14px; }
.demo-grid { grid-template-columns: 1fr; gap: 9px; }
.demo-person { display: flex; align-items: center; gap: 12px; padding: 13px; text-align: left; }
.demo-person .avatar { width: 33px; height: 35px; border-radius: 9px; font-size: 14px; background: #e7efdf; }
.demo-person > span:not(.avatar) { flex: 1; }
.demo-person > .icon { width: 12px; height: 12px; color: #a4b49b; }
.demo-person strong { font-size: 12px; }
.demo-person small { margin-top: 2px; font-size: 9px; }
@media (max-width: 950px) {
  .topbar-actions { gap: 12px; }
  .topbar-title span { display: none; }
  .stat-card { gap: 10px; }
  .stat-card .stat-label { font-size: 10px; }
  .detail-side.panel { padding: 22px; }
  .detail-side.panel .setting-copy small { max-width: none; }
  .login-features { display: flex; gap: 17px; margin-top: 19px; flex-wrap: wrap; font-size: 10px; }
  .login-features > span { gap: 6px; }
  .login-features .icon { width: 15px; height: 15px; }
}
@media (max-width: 700px) {
  .topbar { gap: 7px; }
  .topbar-title { line-height: 1.5; min-width: 0; font-size: 11px; max-width: 180px; }
  .topbar-title span { display: none; }
  .topbar-actions { gap: 9px; }
  .mode-tag { max-width: 113px; font-size: 8px; letter-spacing: 0; }
  .user-chip { font-size: 10px; white-space: nowrap; }
  .page-footer { flex-direction: column; align-items: center; gap: 4px; padding-bottom: 15px; font-size: 8px; }
  .page-footer span { border: 0; padding: 0; }
  .hero .button { margin-top: 13px; padding: 4px 8px; min-height: 27px; font-size: 9px; }
  .notice-meta time { font-size: 9px; }
  .notice-meta > .muted { font-size: 9px; }
  .content-panel { padding: 22px; }
  .directory-panel { padding: 17px; margin-bottom: 17px; }
  .directory-panel .search-box { padding-inline: 10px 5px; gap: 6px; }
  .directory-panel .search-box .button { flex-shrink: 0; min-height: 28px; font-size: 10px; }
  .directory-panel .filter-row { gap: 7px; margin-top: 12px; }
  .directory-panel .filter-row > label { flex: 1 1 26%; min-width: 0; }
  .directory-panel .filter-row select { width: 100%; }
  .directory-panel .filter-row > .muted { font-size: 10px; }
  .content-panel .info-row { font-size: 12px; gap: 12px; }
  .content-panel .info-label { flex-basis: 66px; }
  .content-panel > .form-actions { flex-wrap: wrap; }
  .content-panel > .form-actions .button { flex: 1 1 25%; padding-inline: 8px; font-size: 11px; }
  .detail-side.panel { padding: 23px; }
  .login-features { gap: 9px 14px; font-size: 9px; margin-top: 18px; }
  .login-features .icon { width: 14px; height: 14px; }
  .login-card { padding: 25px 23px; }
  .login-card .divider { margin-block: 20px; }
}
@media (max-width: 380px) {
  .topbar-title { max-width: 136px; font-size: 10px; }
  .mode-tag { font-size: 7px; padding-inline: 5px; }
  .user-chip { font-size: 9px; }
  .topbar-actions { gap: 7px; }
  .login-features { font-size: 9px; gap: 9px 12px; }
}

/* Improve secondary text legibility on phone and desktop. */
.notice-excerpt, .person-unit, .person-meta, .notice-foot { color: #657a70; }
.setting-copy small, .action-row small, .page-desc, .panel-note { color: #667c70; }
.login-card > p, .login-card .muted, .consent-row { color: #637a6b; }
.notice-meta time { margin-left: auto; color: #657a70; font-size: 11px; }
.content-panel > form > .field { margin-top: 20px; }
.people-grid > .empty-state { grid-column: 1 / -1; }

/* Phone verification login. */
#h5-login-form { margin-top: 20px; }
#h5-login-form .consent-row { margin: 0 0 18px; }
#h5-login-form > .field + .field { margin-top: 17px; }
#h5-login-form .field input { min-height: 43px; font-size: 14px; letter-spacing: .3px; }
#h5-login-form .field input:disabled { background: #f5f7f4; color: #91a08e; }
.login-code-row { display: flex; align-items: stretch; gap: 9px; min-width: 0; }
.login-code-row input { flex: 1 1 0; min-width: 0; width: 0; }
.login-code-row > .button { flex: 0 0 112px; padding-inline: 10px; white-space: nowrap; }
#h5-submit-login { margin-top: 21px; min-height: 43px; font-size: 13px; }
#h5-login-message { font-size: 11px; margin: 16px 0 0; }
.login-demo-code { margin: 13px 0 0; padding: 11px 13px; border-radius: 8px; font-size: 11px; line-height: 1.8; color: #637e58; border: 1px dashed #bfceaf; background: #f5f8ef; overflow-wrap: anywhere; }
.login-demo-hint, .login-help { margin-top: 14px; font-size: 10px; line-height: 1.9; color: #7e9276; overflow-wrap: anywhere; }
.login-card > .notice-banner { margin-top: 18px; margin-bottom: 0; }
@media (max-width: 700px) {
  #h5-login-form .field input { font-size: 16px; }
  .login-code-row { gap: 7px; }
  .login-code-row > .button { flex-basis: 104px; font-size: 11px; padding-inline: 8px; }
  #h5-login-form .field small { font-size: 10px; }
}
@media (max-width: 370px) {
  .login-card { padding-inline: 19px; }
  .login-code-row > .button { flex-basis: 94px; font-size: 10px; padding-inline: 5px; }
  #login-code { letter-spacing: 0; }
}
