@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');
:root {
  --ink: #14212b;
  --ink-soft: #53616b;
  --muted: #8c979d;
  --line: #e4e8e7;
  --paper: #f7f8f5;
  --white: #fff;
  --blue: #425dd6;
  --blue-dark: #3148af;
  --mint: #dff3e9;
  --amber: #faebc5;
  --coral: #ef8b78;
  --night: #111d25;
  --shadow-sm: 0 6px 20px rgba(29, 45, 52, .06);
  --shadow-lg: 0 24px 60px rgba(27, 42, 51, .12);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', 'Noto Sans SC', sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(66, 93, 214, .24); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .65; }
[hidden] { display: none !important; }
.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; }
.app-shell { min-height: 100vh; overflow: hidden; }
.topbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 25px 32px 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: var(--white); background: var(--night); font-size: 13px; font-weight: 700; letter-spacing: -.08em; box-shadow: 0 6px 14px rgba(17, 29, 37, .16); }
.brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-copy strong { font-size: 15px; letter-spacing: -.04em; }
.brand-copy small { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .13em; }
.topbar-center { display: inline-flex; align-items: center; gap: 13px; color: #8d979a; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.topbar-divider { width: 28px; height: 1px; background: #d4dcda; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.quick-search { display: flex; align-items: center; width: 192px; height: 39px; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.7); color: #a0aaad; transition: .2s; }
.quick-search:focus-within { border-color: #a9b6ee; background: var(--white); box-shadow: 0 0 0 4px rgba(66, 93, 214, .08); }
.quick-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.quick-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.quick-search input::placeholder { color: #a4adaf; }
.quick-search kbd { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #dfe4e2; border-radius: 5px; color: #9ba5a7; font-family: 'DM Mono', monospace; font-size: 10px; }
.add-button, .primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; transition: .2s ease; }
.add-button { height: 39px; padding: 0 14px; border: 0; color: var(--white); background: var(--blue); box-shadow: 0 8px 17px rgba(66, 93, 214, .2); font-size: 12px; }
.add-button span { margin-top: -2px; font-size: 19px; font-weight: 300; line-height: 1; }
.add-button:hover, .primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 11px 21px rgba(66, 93, 214, .28); }
.main-content { max-width: 1240px; margin: 0 auto; padding: 0 32px 32px; }
.hero-block { position: relative; display: flex; justify-content: space-between; min-height: 340px; margin-top: 22px; padding: 54px 60px 47px; overflow: hidden; border-radius: 27px; color: var(--white); background: var(--night); box-shadow: var(--shadow-lg); }
.hero-block::before { position: absolute; inset: 0; background: radial-gradient(circle at 89% 25%, rgba(95, 122, 255, .32), transparent 36%), radial-gradient(circle at 16% 120%, rgba(232, 139, 120, .16), transparent 35%), linear-gradient(120deg, transparent 0 58%, rgba(255,255,255,.035) 58% 58.2%, transparent 58.2%); content: ''; }
.hero-copy { position: relative; z-index: 2; max-width: 570px; }
.eyebrow, .section-eyebrow, .side-label { color: #94a1a4; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .19em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #b5c0c1; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #85d2a5; box-shadow: 0 0 0 4px rgba(133,210,165,.12); }
.hero-copy h1 { margin: 27px 0 18px; font-size: clamp(39px, 5vw, 64px); line-height: .98; letter-spacing: -.075em; }
.hero-copy h1 em { color: #f5aa98; font-style: normal; }
.hero-description { margin: 0; color: #a9b7ba; font-size: 14px; line-height: 1.85; }
.hero-footer { display: flex; align-items: center; gap: 21px; margin-top: 49px; color: #89979a; font-size: 11px; }
.sync-status { display: inline-flex; align-items: center; gap: 7px; color: #b9c5c3; }
.sync-status i { width: 6px; height: 6px; border-radius: 50%; background: #88d2a4; box-shadow: 0 0 0 4px rgba(136,210,164,.1); }
.hero-note { position: relative; padding-left: 21px; }
.hero-note::before { position: absolute; top: 50%; left: 0; width: 11px; height: 1px; background: #66767b; content: ''; }
.hero-art { position: absolute; z-index: 1; right: 57px; top: 25px; width: 395px; height: 290px; }
.art-grid { position: absolute; right: -74px; bottom: -120px; width: 400px; height: 260px; opacity: .38; transform: rotate(-17deg); background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #000); }
.art-orbit { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 330px; height: 170px; right: -2px; top: 53px; }
.orbit-two { width: 370px; height: 205px; right: -22px; top: 35px; transform: rotate(27deg); border-color: rgba(245,170,152,.2); }
.art-card { position: absolute; right: 80px; top: 44px; display: flex; flex-direction: column; width: 175px; height: 216px; padding: 22px 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 19px; transform: rotate(8deg); color: var(--white); background: linear-gradient(155deg, rgba(95,113,211,.9), rgba(56,68,132,.84)); box-shadow: 21px 25px 45px rgba(0,0,0,.2); }
.art-card::after { position: absolute; left: 20px; right: 20px; bottom: 57px; height: 1px; background: rgba(255,255,255,.2); content: ''; }
.art-kicker { color: #bdc9ff; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .16em; }
.art-card strong { margin: auto 0 12px; font-size: 70px; letter-spacing: -.15em; line-height: .8; }
.art-year { color: #c6ceef; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .11em; }
.art-chip { position: absolute; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); font-size: 13px; box-shadow: 0 10px 22px rgba(0,0,0,.14); }
.chip-one { left: 34px; top: 52px; color: #f4b0a1; }.chip-two { right: 28px; top: 116px; color: #a9e2bd; }.chip-three { left: 68px; bottom: 28px; color: #c6ceff; }
.metrics-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1.42fr; gap: 12px; margin-top: 15px; }
.metric-card, .metric-callout { min-height: 86px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.73); box-shadow: var(--shadow-sm); }
.metric-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 17px; }
.metric-card-primary { border-color: #d9def5; background: #f1f3ff; }.metric-card-primary .metric-icon { color: var(--blue); background: #dde3ff; }
.metric-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; color: #6fbe96; background: var(--mint); font-size: 16px; }
.metric-icon.soft-green { color: #51a87d; }.metric-icon.soft-amber { color: #c9923e; background: var(--amber); }
.metric-card div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }.metric-card span { color: #869196; font-size: 10px; }.metric-card strong { color: var(--ink); font-size: 21px; letter-spacing: -.05em; }.metric-card small { position: absolute; right: 15px; bottom: 14px; color: #a8b0b1; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .05em; }
.metric-callout { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-color: #efdeda; background: #fff7f2; }.callout-mark { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; color: #e37f6d; background: #ffe2d8; font-size: 15px; font-weight: 700; letter-spacing: -.1em; }.metric-callout p { margin: 0; color: #ad8e87; font-size: 10px; line-height: 1.7; }.metric-callout strong { color: #8f5e54; font-size: 12px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 15px; margin-top: 39px; align-items: start; }
.directory-panel { min-height: 440px; padding: 0 25px 25px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); }
.directory-heading { display: flex; justify-content: space-between; align-items: flex-end; padding: 25px 0 17px; border-bottom: 1px solid var(--line); }.directory-heading h2 { margin: 8px 0 0; font-size: 26px; letter-spacing: -.06em; }.directory-meta { display: inline-flex; align-items: center; gap: 7px; color: #9aa4a6; font-size: 10px; }.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #72c58f; box-shadow: 0 0 0 4px rgba(114,197,143,.11); }
.directory-toolbar { display: flex; align-items: center; gap: 10px; padding: 17px 0 12px; color: #a1abad; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .06em; }.toolbar-line { width: 26px; height: 1px; background: #ccd4d2; }
.directory-list-head, .contact-row { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(130px, 1fr) 112px 38px; align-items: center; gap: 10px; }.directory-list-head { padding: 0 13px 9px; color: #a6b0b2; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.contacts-list { display: flex; flex-direction: column; gap: 7px; }.contact-row { min-height: 74px; padding: 11px 13px; border: 1px solid transparent; border-radius: 13px; background: rgba(255,255,255,.66); transition: .2s ease; animation: row-in .35s both; }.contact-row:hover { border-color: #d8def1; background: #fff; box-shadow: 0 9px 22px rgba(31,48,60,.07); transform: translateY(-1px); }
.contact-person { display: flex; align-items: center; gap: 11px; min-width: 0; }.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; overflow: hidden; border-radius: 13px; color: var(--white); font-size: 13px; font-weight: 700; box-shadow: 0 5px 12px rgba(41,62,71,.12); }.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }.avatar-image { position: relative; background: #dfe5ff; }.avatar-image .avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; }.avatar-a { background: linear-gradient(135deg, #657ce3, #8f78dc); }.avatar-b { background: linear-gradient(135deg, #e18c91, #e9b16d); }.avatar-c { background: linear-gradient(135deg, #48b39f, #5597dc); }.avatar-d { background: linear-gradient(135deg, #dfa149, #df766e); }
.person-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }.contact-name { overflow: hidden; margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }.contact-sub { color: #a2abad; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }.wechat-cell { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: #69777c; font-size: 11px; }.wechat-dot { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; color: #56ae80; background: #e7f6ed; font-size: 10px; font-weight: 700; }.wechat-cell span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.date-cell { color: #98a3a5; font-family: 'DM Mono', monospace; font-size: 9px; }.row-actions { display: flex; justify-content: flex-end; gap: 5px; opacity: 0; transition: .2s; }.contact-row:hover .row-actions, .row-actions:focus-within { opacity: 1; }.icon-button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: 8px; color: #9da7a8; background: transparent; font-size: 13px; }.icon-button:hover { border-color: #d8def1; color: var(--blue); background: #f6f7ff; }.icon-button.delete:hover { border-color: #f1cccc; color: #d8686b; background: #fff7f7; }
.empty-state, .loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 73px 20px; text-align: center; }.empty-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 13px; border-radius: 15px; color: var(--blue); background: #eef1ff; font-size: 21px; }.empty-state h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.03em; }.empty-state p { margin: 0 0 17px; color: #98a3a5; font-size: 11px; }.loading-state { flex-direction: row; gap: 9px; color: #929e9f; font-size: 11px; }.loader { width: 13px; height: 13px; border: 2px solid #d9dfdc; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.side-column { display: flex; flex-direction: column; gap: 15px; }.side-card { border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); }.welcome-card { min-height: 271px; padding: 22px; color: var(--white); background: var(--blue); border-color: transparent; box-shadow: 0 17px 30px rgba(66, 93, 214, .2); }.side-card-top { display: flex; justify-content: space-between; align-items: center; }.welcome-card .side-label { color: #bfc9ff; }.side-star { color: #f8b09c; font-size: 16px; }.welcome-card h3 { margin: 35px 0 12px; font-size: 25px; line-height: 1.08; letter-spacing: -.065em; }.welcome-card h3 em { color: #fbb3a0; font-style: normal; }.welcome-card p { margin: 0; color: #c8d0ff; font-size: 11px; line-height: 1.7; }.text-button { display: inline-flex; align-items: center; gap: 17px; margin-top: 27px; padding: 0; border: 0; color: #fff; background: transparent; font-size: 11px; font-weight: 700; }.text-button span { font-size: 16px; font-weight: 400; transition: transform .2s; }.text-button:hover span { transform: translate(3px, -3px); }.guide-card { padding: 21px 22px 17px; }.guide-card .side-label { color: #9da7a8; }.guide-card ol { display: flex; flex-direction: column; gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; }.guide-card li { display: flex; align-items: center; gap: 12px; color: #78868a; font-size: 10px; }.guide-card li b { color: #b7c0c0; font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 500; }
.footer { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px 32px 27px; color: #97a1a3; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .05em; }.footer i { width: 4px; height: 4px; border-radius: 50%; background: #c5cfcc; }.footer small { margin-left: 10px; color: #b2bbbb; font-size: 8px; letter-spacing: .07em; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(16,28,36,.58); backdrop-filter: blur(7px); }.modal-card { position: relative; width: min(500px, 100%); padding: 31px; border: 1px solid rgba(255,255,255,.34); border-radius: 21px; background: #fff; box-shadow: 0 28px 85px rgba(13,28,39,.3); animation: modal-in .2s ease-out; }.close-button { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 9px; color: #8c989b; background: #f2f5f3; font-size: 20px; }.close-button:hover { color: var(--ink); background: #eaf0ed; }.modal-card h2 { margin: 9px 0 24px; font-size: 27px; letter-spacing: -.06em; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 13px; }.form-grid label { color: #68767a; font-size: 11px; font-weight: 600; }.form-grid label > span { color: #dc706a; }.form-grid input { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #dde5e2; border-radius: 10px; outline: 0; color: var(--ink); background: #fbfcfb; font-size: 12px; }.form-grid input:focus { border-color: #9daff0; background: #fff; box-shadow: 0 0 0 4px rgba(66,93,214,.09); }.full-width { grid-column: 1 / -1; }.upload-box { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 11px; border: 1px dashed #cfdad5; border-radius: 11px; background: #fbfcfb; cursor: pointer; }.upload-box:hover { border-color: #9daff0; background: #fafbff; }.upload-preview { display: grid; place-items: center; width: 43px; height: 43px; overflow: hidden; border-radius: 13px; color: var(--blue); background: #edf1ff; font-size: 22px; }.upload-preview img { width: 100%; height: 100%; object-fit: cover; }.upload-box strong { display: block; color: #627075; font-size: 11px; }.upload-box small { display: block; margin-top: 3px; color: #a0abad; font-size: 9px; }.upload-box input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }.form-error { min-height: 17px; margin: 13px 0 0; color: #d9696a; font-size: 11px; }.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 5px; }.primary-button { min-height: 42px; padding: 0 16px; border: 0; color: var(--white); background: var(--blue); box-shadow: 0 8px 17px rgba(66, 93, 214, .18); font-size: 12px; font-weight: 700; }.secondary-button { min-height: 42px; padding: 0 16px; border: 1px solid #dfe6e2; color: #69777b; background: #fff; font-size: 12px; font-weight: 600; }.secondary-button:hover { border-color: #b6c2ef; color: var(--blue); background: #fafbff; }
.toast { position: fixed; z-index: 30; right: 23px; bottom: 23px; max-width: calc(100vw - 46px); padding: 12px 16px; border-radius: 10px; color: #fff; background: #243640; box-shadow: 0 12px 30px rgba(22, 37, 45, .22); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s; }.toast.show { opacity: 1; transform: none; }
@keyframes row-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }@keyframes spin { to { transform: rotate(360deg); } }@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 1020px) { .topbar-center { display: none; }.hero-art { right: 10px; opacity: .72; }.hero-copy { max-width: 540px; }.metrics-row { grid-template-columns: repeat(3, 1fr); }.metric-callout { grid-column: 1 / -1; min-height: 70px; }.content-layout { grid-template-columns: 1fr; }.side-column { display: grid; grid-template-columns: 1fr 1fr; }.welcome-card { min-height: 235px; } }
@media (max-width: 720px) { .topbar { padding: 20px 18px 13px; }.topbar-actions { gap: 7px; }.quick-search { width: 40px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }.quick-search input, .quick-search kbd { display: none; }.main-content { padding: 0 15px 27px; }.hero-block { min-height: 390px; margin-top: 15px; padding: 36px 26px 31px; border-radius: 21px; }.hero-copy h1 { margin-top: 24px; font-size: 43px; }.hero-footer { margin-top: 35px; }.hero-art { right: -48px; top: 135px; transform: scale(.82); transform-origin: top right; opacity: .8; }.metrics-row { grid-template-columns: 1fr 1fr; }.metric-card { min-height: 80px; }.metric-callout { grid-column: 1 / -1; }.directory-panel { padding: 0 14px 17px; border-radius: 16px; }.directory-heading { padding-top: 21px; }.directory-list-head { display: none; }.contact-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; min-height: 72px; padding: 10px; }.contact-person { grid-row: span 2; }.wechat-cell { grid-column: 2; justify-content: flex-end; }.date-cell { grid-column: 2; justify-self: end; }.row-actions { position: absolute; top: 7px; right: 7px; opacity: 1; }.contact-row { position: relative; padding-right: 50px; }.contact-row:hover { transform: none; }.side-column { grid-template-columns: 1fr; }.welcome-card { min-height: auto; }.guide-card { display: none; }.footer { flex-wrap: wrap; padding-right: 20px; padding-left: 20px; }.footer small { width: 100%; margin: 0; text-align: center; } }
@media (max-width: 430px) { .brand-copy small { display: none; }.add-button { padding: 0 11px; }.add-button b { display: none; }.add-button span { font-size: 21px; }.hero-block { min-height: 405px; }.hero-copy h1 { font-size: 38px; }.hero-description { font-size: 12px; }.hero-art { right: -92px; transform: scale(.72); }.metrics-row { gap: 9px; }.metric-card { padding: 13px 12px; }.metric-card small { display: none; }.metric-icon { width: 30px; height: 30px; font-size: 14px; }.metric-card strong { font-size: 18px; }.metric-callout { padding: 13px 14px; }.modal-card { padding: 26px 19px; }.form-grid { grid-template-columns: 1fr; }.full-width { grid-column: auto; } }
.auth-button { height: 39px; padding: 0 12px; border: 1px solid #d9e0dd; border-radius: 10px; color: #66757a; background: rgba(255,255,255,.6); font-size: 11px; font-weight: 600; transition: .2s; }
.auth-button:hover { border-color: #aebaf0; color: var(--blue); background: #fff; }
.auth-button.is-authenticated { border-color: #b9dfc8; color: #3d8b5e; background: #effaf2; }
.admin-login-backdrop { position: fixed; z-index: 22; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(16,28,36,.58); backdrop-filter: blur(7px); }
.login-card { position: relative; width: min(390px, 100%); padding: 31px; border: 1px solid rgba(255,255,255,.34); border-radius: 21px; background: #fff; box-shadow: 0 28px 85px rgba(13,28,39,.3); animation: modal-in .2s ease-out; }
.login-mark { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 20px; border-radius: 14px; color: #fff; background: var(--night); font-size: 15px; font-weight: 700; letter-spacing: -.1em; }
.login-card h2 { margin: 9px 0 9px; font-size: 28px; letter-spacing: -.06em; }.login-copy { margin: 0 0 24px; color: #8a979a; font-size: 11px; line-height: 1.7; }
.login-card label { display: block; color: #68767a; font-size: 11px; font-weight: 600; }.login-card input { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #dde5e2; border-radius: 10px; outline: 0; color: var(--ink); background: #fbfcfb; font-size: 13px; }.login-card input:focus { border-color: #9daff0; background: #fff; box-shadow: 0 0 0 4px rgba(66,93,214,.09); }.login-submit { width: 100%; margin-top: 5px; }
@media (max-width: 430px) { .auth-button { padding: 0 10px; font-size: 10px; } .login-card { padding: 26px 19px; } }

/* Contrast pass: keep the visual direction while making secondary copy readable on light surfaces. */
:root {
  --muted: #68777d;
  --ink-soft: #43545b;
}
.topbar-label, .topbar-term { color: #5e6c71; }
.quick-search { color: #5e6d72; }
.quick-search input::placeholder { color: #66757b; }
.hero-description { color: #c2cbcd; }
.hero-note { color: #aab8bb; }
.metric-card span { color: #5f6d72; }
.metric-card small { color: #65747a; }
.metric-callout p { color: #765e56; }
.metric-callout strong { color: #70473e; }
.directory-meta { color: #5d6c71; }
.directory-toolbar { color: #627176; }
.directory-list-head { color: #647277; }
.contact-sub, .date-cell { color: #627176; }
.wechat-cell { color: #53646a; }
.empty-state p { color: #65747a; }
.loading-state { color: #5e6d72; }
.guide-card .side-label { color: #65747a; }
.guide-card li { color: #5a6a70; }
.guide-card li b { color: #718086; }
.footer { color: #5f6d72; }
.footer small { color: #68777d; }
.login-copy { color: #5f6d72; }
.form-grid label, .login-card label { color: #526268; }
.upload-box small { color: #68777c; }

/* Photo avatars must hide initials unless the image fails to load. */
.avatar-image .avatar-fallback { display: none; }
.avatar-image.avatar-failed .avatar-fallback { display: grid; }
.avatar-image img { position: relative; z-index: 1; }

.modal-card { max-height: calc(100vh - 40px); overflow-y: auto; }
.avatar-image .avatar-fallback { pointer-events: none; }
